/* =================================
   SYMPTOMS CHECKER PAGE STYLING
   ================================= */

/* Search Section Styling */
.symptom-search-section h2 {
    font-size: 1.5rem;
    color: #1d4e89;
    font-weight: bold;
    margin-bottom: 8px;
}

.symptom-search-section p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 12px;
}

/* ================================
   Additional Information Section
   ================================ */
.additional-info {
    margin-top: 30px;
}

.additional-info h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 10px;
    margin-inline: auto;
}

.info-link {
    display: block;
    margin-bottom: 10px;
    color: #1d9bf0;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 550;
    transition: color 0.3s ease;
}

.info-link:hover {
    color: #154572;
    text-decoration: underline;
}

/* ================================
   Google Custom Search Styling
   ================================ */
.symptom-search-section .gsc-control-cse {
    display: block !important;
    background: rgba(180, 225, 255, 1) !important;
    /* Black with Light Opacity */
    color: #333 !important;
    font-family: 'Arial', sans-serif !important;
    border-radius: 10px !important;
}

/* Ensure the container is visible */
.symptom-search-section .gsc-control-cse {
    border-radius: 10px !important;
}

.gsc-search-button {
    background: #2563eb !important;
    border: none !important;
    border-radius: 5px !important;
    padding: 5px 10px !important;
}

/* Hover Effect for Search Button */
.gsc-search-button:hover {
    background: #154572 !important;
    transform: none !important;
}

/* Styling for the Search Results */
.gs-title {
    font-size: 1rem !important;
    color: hsl(210, 80%, 40%) !important;
    text-align: left !important;
}

.gs-title:hover {
    text-decoration: underline !important;
}

.gs-snippet {
    font-size: 0.9rem !important;
    color: #555 !important;
}

/* Center Google Custom Search Results */
.gsc-results-wrapper-visible {
    display: block !important;
    justify-content: center !important;
    /* Centers horizontally */
    align-items: center !important;
    /* Centers vertically */
    position: fixed !important;
    top: 47% !important;
    /* Moves it to the center vertically */
    left: 50% !important;
    /* Moves it to the center horizontally */
    transform: translate(-50%, -50%) !important;
    /* Perfect centering */
    width: 80vw !important;
    /* Ensures it takes an appropriate width */
    max-width: 750px !important;
    /* Prevents it from being too wide */
    height: 80vw !important;
    max-height: 780px;
    border-radius: 7px !important;
    /* Smooth rounded edges */
    padding: 30px !important;
    /* Adds spacing around results */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
    /* Enhances visibility */
}

/* Individual Search Result Styling */
.gs-result {
    display: block !important;
    justify-content: center !important;
    /* Centers horizontally */
    align-items: center !important;
    padding-bottom: 20px !important;

}

/* Remove underline under "Web" tab */
.gsc-tabHeader.gsc-tabhActive {
    border-bottom: none !important;
    /* Removes default underline */
    cursor: default;
}

/* Ensure text still looks active */
.gsc-tabHeader.gsc-tabhActive {
    font-weight: bold !important;
    color: #2563eb !important;
    /* Adjust color if needed */
}

/* Dark Overlay When Google Search Results Are Visible */
.search-overlay {
    display: none;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(235, 255, 255, 1);
    z-index: 1000;
    /* Below search results but above the site */
    transition: opacity 0.2s ease-in-out;
}

/* Show Overlay When Needed */
.search-overlay.active {
    display: block !important;
    opacity: 1 !important;
}

/* Hide Overlay When Not Needed */
.search-overlay.hidden {
    display: none !important;
    opacity: 0 !important;
}

.gsc-completion-container {
    display: none !important;
    visibility: hidden !important;
}

/* ================================
   Responsive Adjustments (Tablets)
   ================================ */
@media (max-width: 1200px) {
    .symptom-checker-container {
        max-width: 100%;
        padding: 15px 20px;
    }

    .symptom-checker-header h1 {
        font-size: 1.8rem;
    }

    .symptom-search-section h2 {
        font-size: 1.4rem;
    }

    .gsc-results-wrapper-visible {
        top: 47% !important;
        max-height: 800px;
    }
}

/* ================================
   Responsive Adjustments (Mobile)
   ================================ */
@media (max-width: 768px) {
    .symptom-checker-container {
        padding: 10px 15px;
    }

    .symptom-checker-header h1 {
        font-size: 1.7rem;
    }

    .symptom-search-section h2 {
        font-size: 1.3rem;
    }

    .symptom-search-section p {
        font-size: 0.9rem;
    }

    .info-link {
        font-size: 0.95rem;
    }
}

@media (max-width: 600px) {
    .symptoms-modern .additional-info {
        grid-template-columns: 1fr;
        row-gap: 0.25rem;
        padding: 0.7rem;
    }

    .gsc-results-wrapper-visible {
        height: 85vh !important;
        max-height: 825px !important;
    }

    .symptoms-modern .gsc-results .gsc-webResult.gsc-result,
    .symptoms-modern .gsc-results .gsc-result {
        margin: 0 !important;
        margin-bottom: 0 !important;
    }
}

/* ================================
   Responsive Adjustments (Small Mobile)
   ================================ */
@media (max-width: 480px) {
    .symptom-checker-container {
        max-width: 95%;
        padding: 10px 12px;
    }

    .symptom-checker-header h1 {
        font-size: 1.6rem;
    }

    .symptom-search-section h2 {
        font-size: 1.2rem;
    }

    .info-link {
        font-size: 0.9rem;
    }
}

/* ================================
   DARK MODE - SYMPTOMS CHECKER PAGE
   ================================ */
.dark-mode .home-icon {
    background-color: rgba(24, 49, 83, 0.85);
    /* Dark blue with slight transparency */
    backdrop-filter: blur(5px);
    /* Subtle background blur */
    border: 2px solid transparent;
}

.dark-mode .search-img {
    background-color: rgba(24, 49, 83, 0.85);
    /* Dark blue with slight transparency */
    backdrop-filter: blur(5px);
    /* Subtle background blur */
    border: 2px solid transparent;
}

.dark-mode .symptom-checker-container {
    background-color: hsl(220, 20%, 15%);
    color: hsl(0, 0%, 90%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    border: 1px solid hsl(220, 20%, 25%);
}

.dark-mode .symptom-checker-header {
    background-color: transparent;
    justify-content: center;
    margin: 0 auto;
}

.dark-mode .symptom-checker-header h1 {
    color: hsl(0, 0%, 95%);
}

/* Dark Mode for Search Section */
.dark-mode .symptom-search-section {
    background-color: hsl(220, 20%, 18%);
    border: .1px solid hsl(220, 20%, 30%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.dark-mode .symptom-search-section h2 {
    color: hsl(200, 80%, 70%);
}

.dark-mode .symptom-search-section p {
    color: hsl(0, 0%, 85%);
}

/* Dark Mode for Additional Information */
.dark-mode .additional-info h3 {
    color: hsl(0, 0%, 95%);
}

.dark-mode .info-link {
    color: hsl(210, 80%, 65%);
}

.dark-mode .info-link:hover {
    color: hsl(210, 80%, 50%);
}

/* Google Search Dark Mode */
.dark-mode .symptom-search-section .gsc-control-cse {
    color: hsl(0, 0%, 95%) !important;
    background: rgba(180, 225, 255, 0.5) !important;
    border: none;
}

/* Dark Mode - Google Search Input Field */
.dark-mode .gsc-input-box {
    background-color: hsl(220, 20%, 20%) !important;
    /* Fully black background */
    border: 1px solid rgba(180, 225, 255, 0.5) !important;
    /* Slightly visible border */
}

.dark-mode .gsc-search-button {
    background: hsl(221, 85%, 56%) !important;
    /* Equivalent of #2563eb */
    border: none !important;
}

.dark-mode .gsc-search-button:hover {
    background: hsl(210, 67%, 27%) !important;
    /* Equivalent of #154572 */
    transform: none !important;
}

/* Dark Mode: Input field styling */
.dark-mode .gsc-input input {
    background-color: hsl(220, 20%, 20%) !important;
    color: hsl(0, 0%, 95%) !important;
    border: none !important;
}

/* =================================
   DARK MODE - SYMPTOMS CHECKER RESULTS
================================= */
/* Dark Mode for the Search Overlay */
.dark-mode .search-overlay {
    background: hsl(220, 20%, 15%, 1) !important;
}

/* Dark Mode - Search Results Container */
.dark-mode .gsc-results-wrapper-visible {
    background-color: hsl(220, 20%, 20%);
    color: hsl(0, 0%, 95%);
    border: 1px solid hsl(220, 20%, 30%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6) !important;
    padding: 20px !important;
}

/* Dark Mode - Search Result Titles */
.dark-mode .gs-title {
    color: hsl(210, 80%, 62%) !important;
    font-size: 1rem !important;
    transition: color 0.3s ease;
}

.dark-mode .gs-title:hover {
    text-decoration: underline !important;
}

/* Dark Mode - Search Result Snippet */
.dark-mode .gs-snippet {
    font-size: 0.95rem !important;
    color: hsl(0, 0%, 85%) !important;
    line-height: 1.6 !important;
}

/* Dark Mode - URL in Search Results */
.dark-mode .gs-visibleUrl {
    color: hsl(120, 100%, 35%) !important;
}

/* Dark Mode - Pagination Links */
.dark-mode .gsc-cursor-box {
    background-color: hsl(220, 20%, 18%) !important;
    border-radius: 5px !important;
    padding: 8px !important;
}

.dark-mode .gsc-cursor-page {
    color: hsl(0, 0%, 85%) !important;
    font-weight: bold !important;
}

.dark-mode .gsc-cursor-page:hover {
    color: hsl(0, 0%, 100%) !important;
    text-decoration: underline !important;
}

/* Dark Mode - Highlighted Text in Results */
.dark-mode .gs-title b,
.dark-mode .gs-snippet b {
    color: hsl(210, 80%, 75%) !important;
}

/* Dark Mode - Google Search Button */
.dark-mode .gsc-search-button {
    background: hsl(221, 85%, 56%) !important;
    /* Equivalent of #2563eb */
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
}

.dark-mode .gsc-search-button:hover {
    background: hsl(210, 67%, 27%) !important;
    /* Equivalent of #154572 */
}

/* Dark Mode - Loading Indicator */
.dark-mode .gsc-loading {
    color: hsl(0, 0%, 90%) !important;
}

/* Dark Mode - No Results Found */
.dark-mode .gsc-result-info {
    color: hsl(0, 0%, 90%) !important;
}

/* Remove only the first bottom line in dark mode */
.dark-mode .gs-result:first-of-type {
    border-bottom: none !important;
    /* Removes top border of first result */
}

/* Remove first top line in dark mode */
.dark-mode .gsc-above-wrapper-area-container {
    border-bottom: none !important;
}

/* Remove the second white line below */
.dark-mode .gsc-above-wrapper-area {
    border-left: none !important;
    border-right: none !important;
}

/* Improve search snippet readability */
.dark-mode .gs-snippet {
    font-size: 0.95rem !important;
    color: hsl(0, 0%, 85%) !important;
    line-height: 1.6 !important;
}

/* Remove any unwanted background colors */
.dark-mode .gsc-webResult.gsc-result {
    background-color: transparent !important;
    border: 0.9px solid hsl(220, 20%, 30%) !important;
    border-left: none !important;
    border-right: none !important;
}

/* Dark Mode: Style the "About X results" text */
.dark-mode .gsc-result-info {
    color: hsl(0, 0%, 85%) !important;
}

/* Dark Mode: Sort By Dropdown */
.dark-mode .gsc-selected-option-container {
    background-color: hsl(220, 20%, 15%) !important;
    color: hsl(0, 0%, 85%) !important;
    border: 1px solid hsl(220, 20%, 25%) !important;
}

/* Dark Mode: Dropdown Items */
.dark-mode .gsc-option-menu-item {
    background-color: hsl(220, 20%, 18%) !important;
    color: hsl(0, 0%, 85%) !important;
    padding: 2px 16px !important;
    /* Adjust to fit content */
    margin: 0 !important;
    border: none !important;
}

.dark-mode .gsc-option-menu-item:hover {
    background-color: hsl(220, 20%, 25%) !important;
}

/* Dark Mode: Remove extra spaces around the dropdown */
.dark-mode .gsc-option-menu {
    background-color: hsl(220, 20%, 18%) !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Highlight the current active page number in pagination */
.dark-mode .gsc-cursor-page.gsc-cursor-current-page {
    /* Highlighted background */
    color: hsl(210, 80%, 50%) !important;
    /* White text */
    font-weight: bold !important;
}

/* Dark Mode Scrollbar - WebKit Browsers (Chrome, Edge, Safari) */
.dark-mode ::-webkit-scrollbar {
    width: 10px !important;
    /* Set width */
}

/* Scrollbar Track (Background) */
.dark-mode ::-webkit-scrollbar-track {
    background: hsl(220, 20%, 15%) !important;
    /* Dark background */
}

/* Scrollbar Thumb (Draggable Part) */
.dark-mode ::-webkit-scrollbar-thumb {
    background: hsl(220, 20%, 35%) !important;
    /* Slightly lighter thumb */
    border: 2px solid hsl(220, 20%, 15%) !important;
    /* Matches track */
}

/* Hover Effect on Scrollbar */
.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: hsl(220, 20%, 45%) !important;
    /* Lighter when hovered */
}

/* Dark Mode for Firefox */
.dark-mode {
    scrollbar-color: hsl(220, 20%, 35%) hsl(220, 20%, 1%) !important;
    /* Thumb color | Track color */
}

/* Hide Scrollbar Buttons (Optional) */
.dark-mode ::-webkit-scrollbar-button {
    display: none !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .dark-mode .gsc-results-wrapper-visible {
        width: 90vw !important;
        max-width: 650px !important;
        padding: 15px !important;
    }
}

/* ===== Merged from symptoms-modern.css ===== */
.symptoms-modern {
    background:
        radial-gradient(circle at 12% 10%, rgba(52, 152, 255, 0.16), transparent 30%),
        radial-gradient(circle at 88% 14%, rgba(16, 185, 129, 0.12), transparent 26%),
        #ecf2fa;
    color: #15263f;
    font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.symptoms-modern > header {
    background: rgba(12, 52, 95, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Keep site search modal above sticky header on symptoms page */
.symptoms-modern .search-container {
    z-index: 1200 !important;
}

/* When Google results modal is open, keep site search modal behind it */
.symptoms-modern #searchOverlay.active~.search-container {
    z-index: 900 !important;
    pointer-events: none !important;
}

.symptoms-modern .logo-text {
    font-family: 'Sora', 'Manrope', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.01em;
}

.symptoms-modern main {
    width: min(1040px, calc(100% - 2rem));
    margin: 0 auto 0;
    padding: 0;
    position: relative;
    z-index: 0;
    flex: 1;
}

.symptoms-modern .symptom-kicker {
    display: inline-block;
    margin-bottom: 0.65rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: #d9ebff;
    color: #0e4b88;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 800;
}

.symptoms-modern .symptom-checker-header h1 {
    font-family: 'Sora', 'Manrope', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.45rem);
    color: #123e6b;
    margin-bottom: 0.3rem;
}

.symptoms-modern .symptom-intro {
    color: #5c728b;
    margin-bottom: 0.9rem;
}

.symptoms-modern .symptom-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.symptoms-modern .symptom-highlights span {
    border-radius: 999px;
    border: 1px solid #cfe4f8;
    background: #f1f8ff;
    color: #315578;
    padding: 0.4rem 0.75rem;
    font-size: 0.86rem;
    font-weight: 700;
}

.symptoms-modern .symptom-search-section {
    margin-top: 1rem;
    border-radius: 16px;
    border: 1px solid #d6e4f2;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(16, 43, 79, 0.09);
}

.symptoms-modern .symptom-search-section h2 {
    font-family: 'Sora', 'Manrope', sans-serif;
    color: #103a64;
}

.symptoms-modern .symptom-search-section p {
    color: #607893;
}

.symptoms-modern .additional-info {
    margin-top: 1.2rem;
    border-radius: 16px;
    border: 1px solid #d6e4f2;
    background: #ffffff;
}

.symptoms-modern .additional-info h3 {
    font-family: 'Sora', 'Manrope', sans-serif;
    color: #103a64;
}

.symptoms-modern .info-caption {
    color: #607893;
    margin-bottom: 0.7rem;
    text-align: center !important;
}

.symptoms-modern .info-link {
    width: min(420px, 100%);
    margin: 0.45rem auto !important;
    border-radius: 11px;
    border: 1px solid #cbe1f5;
    background: #f6fbff;
    color: #1f5f98;
    padding: 0.7rem 1rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
    text-align: center;
}

.symptoms-modern .info-link:hover {
    background: #e4f2ff;
    text-decoration: none;
    transform: translateY(-1px);
}

.symptoms-modern .symptom-search-section .gsc-control-cse {
    border-radius: 12px !important;
    border: 1px solid #d5e5f4 !important;
    background: #f7fbff !important;
}

.symptoms-modern .gsc-search-button {
    border-radius: 8px !important;
    padding: 7px 12px !important;
    background: #1f78d0 !important;
}

.symptoms-modern .gsc-search-button:hover {
    background: #175ca0 !important;
}

.symptoms-modern .gsc-results-wrapper-visible {
    border-radius: 12px !important;
    border: 1px solid #c9dcf0 !important;
    background: #ffffff !important;
    box-shadow: 0 18px 40px rgba(13, 33, 58, 0.24) !important;
}

.symptoms-modern footer {
    background: linear-gradient(170deg, #0d3f72, #0f4c86);

}

.symptoms-modern .footer-content {
    width: min(1610px, calc(100% - 2rem));
    margin: 0 auto;
    gap: 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.symptoms-modern .footer-links {
    order: 2;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.6rem;
    margin-left: auto;
    text-align: right;
}

.symptoms-modern .footer-links a {
    padding: 0.44rem 0.74rem;
    border-radius: 999px;
    border: 1px solid rgba(229, 241, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: #e9f3ff;
    font-size: 0.86rem;
}

.symptoms-modern .footer-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.symptoms-modern .footer-social {
    order: 1;
    margin-right: auto;
}

.symptoms-modern .footer-social ul {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.symptoms-modern .footer-social .item a {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(196, 219, 243, 0.46);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(238, 247, 255, 0.94));
    box-shadow: 0 8px 18px rgba(8, 33, 63, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.symptoms-modern .footer-social .item a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--bg-color);
    z-index: 0;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.35s ease;
}

.symptoms-modern .footer-social .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
    font-size: 1.2rem;
    color: #123f6e;
    transition: transform 0.35s ease, color 0.35s ease;
    z-index: 1;
}

.symptoms-modern .footer-social .item a:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(8, 33, 63, 0.3);
}

.symptoms-modern .footer-social .item a:hover::before {
    transform: scaleY(1);
}

.symptoms-modern .footer-social .item a:hover .icon {
    transform: rotateY(360deg);
    color: #ffffff;
}

.symptoms-modern .footer-copyright {
    margin-top: 0.6rem;
    color: rgba(232, 243, 255, 0.92);
    font-size: 0.88rem;
    text-align: center;
    letter-spacing: 0.01em;
}

.symptoms-modern.dark-mode {
    background:
        radial-gradient(circle at 12% 10%, rgba(52, 152, 255, 0.13), transparent 30%),
        radial-gradient(circle at 88% 14%, rgba(16, 185, 129, 0.08), transparent 26%),
        #0b1727;
}

.symptoms-modern.dark-mode > header {
    background: rgba(8, 20, 36, 0.94);
    border-bottom: 1px solid rgba(114, 155, 198, 0.26);
}

.symptoms-modern.dark-mode .logo-text {
    color: #e2effd;
}

.symptoms-modern.dark-mode .home-icon,
.symptoms-modern.dark-mode .search-icon,
.symptoms-modern.dark-mode .user-profile {
    background: linear-gradient(170deg, rgba(22, 43, 69, 0.9), rgba(13, 31, 52, 0.86));
    border-color: rgba(108, 145, 184, 0.52);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34);
}

.symptoms-modern.dark-mode .symptom-checker-container {
    background: linear-gradient(165deg, rgba(17, 32, 53, 0.95), rgba(14, 26, 45, 0.9));
    border-color: rgba(89, 127, 167, 0.38);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38);
}

.symptoms-modern.dark-mode .symptom-checker-header h1,
.symptoms-modern.dark-mode .symptom-search-section h2,
.symptoms-modern.dark-mode .additional-info h3 {
    color: #d7e8ff;
}

.symptoms-modern.dark-mode .symptom-intro,
.symptoms-modern.dark-mode .symptom-search-section p,
.symptoms-modern.dark-mode .info-caption {
    color: #adc3df;
}

.symptoms-modern.dark-mode .symptom-highlights span {
    background: #1a314d;
    border-color: #2f4d70;
    color: #c7def8;
}

.symptoms-modern.dark-mode .symptom-search-section,
.symptoms-modern.dark-mode .additional-info {
    background: #16283f;
    border-color: #2f4d70;
}

.symptoms-modern.dark-mode .info-link {
    background: #1b314c;
    border-color: #355679;
    color: #c6dbf1;
}

.symptoms-modern.dark-mode .symptom-search-section .gsc-control-cse {
    background: #16283f !important;
    border-color: #355679 !important;
}

.symptoms-modern.dark-mode .gsc-results-wrapper-visible {
    background: #102036 !important;
    border-color: #355679 !important;
}

.symptoms-modern.dark-mode .search-overlay {
    background:
        radial-gradient(circle at 18% 12%, rgba(83, 170, 255, 0.16), transparent 32%),
        radial-gradient(circle at 84% 18%, rgba(23, 185, 146, 0.1), transparent 28%),
        rgba(3, 10, 20, 0.72) !important;
}

.symptoms-modern.dark-mode .footer-links a {
    border-color: rgba(116, 154, 195, 0.35);
    background: rgba(26, 50, 78, 0.7);
    color: #d5e8fb;
}

.symptoms-modern.dark-mode .footer-links a:hover {
    background: rgba(46, 79, 116, 0.78);
    color: #f0f7ff;
}

.symptoms-modern.dark-mode .footer-social .item a {
    background: linear-gradient(165deg, #132941, #193652);
    border-color: #34587e;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.36);
}

.symptoms-modern.dark-mode .footer-social .icon {
    color: #cbe2fb;
}

.symptoms-modern.dark-mode .footer-copyright {
    color: rgba(201, 223, 246, 0.9);
}

.symptoms-modern.dark-mode footer {
    background: linear-gradient(170deg, #081a2c, #0e2c48);
    border-top: 1px solid rgba(114, 155, 198, 0.22);
}

@media (max-width: 920px) {
    .symptoms-modern .gsc-results-wrapper-visible {
        top: 50% !important;
        left: 50% !important;
    }

}

@media (max-width: 768px) {
    .symptoms-modern .logo-text {
        font-size: 1.65rem;
    }

    .symptoms-modern .symptom-checker-container {
        width: calc(100% - 1.4rem);
        padding: 1.2rem 0.9rem;
    }
}

@media (max-width: 768px) {
    .symptoms-modern .footer-links {
        order: 2;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-left: 0;
        gap: 0.5rem;
        text-align: center;
    }

    .symptoms-modern .footer-social {
        order: 1;
        margin-right: 0;
    }

    .symptoms-modern .footer-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .symptoms-modern .footer-links a {
        font-size: 0.84rem;
        padding: 0.41rem 0.66rem;
    }

    .symptoms-modern .footer-social .item a {
        width: 2.45rem;
        height: 2.45rem;
    }

    .symptoms-modern .footer-social .icon {
        font-size: 1.1rem;
    }

    .symptoms-modern .footer-copyright {
        font-size: 0.8rem;
    }
}


@media (max-width: 640px) {
    .symptoms-modern .symptom-checker-container {
        border-radius: 16px;
    }

    .symptoms-modern .symptom-highlights {
        justify-content: flex-start;
    }

    .symptoms-modern .info-link {
        width: 100%;
    }

    .symptoms-modern .footer-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .symptoms-modern .footer-social {
        order: 1;
        margin-right: 0;
    }

    .symptoms-modern .footer-links {
        order: 2;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-left: 0;
        text-align: center;
    }

    .symptoms-modern .footer-links a {
        font-size: 0.8rem;
        padding: 0.37rem 0.62rem;
    }
}

/* ===== Final Symptoms Checker Redesign Overrides ===== */
.symptoms-modern .symptom-checker-container {
    width: min(1040px, calc(100% - 2rem));
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(260px, 1fr);
    grid-template-areas:
        "head head"
        "search side";
    grid-template-rows: auto 360px;
    gap: 1.2rem;
    padding: 1.8rem 1.3rem;
    min-height: 640px;
    height: auto;
    align-items: stretch;
    text-align: center;
    margin: 2rem auto 0;
    border-radius: 22px;
    border: 1px solid rgba(27, 73, 121, 0.16);
    box-shadow: 0 18px 44px rgba(16, 42, 80, 0.14);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(247, 252, 255, 0.9));
    position: relative;
    z-index: 0;
}

.symptoms-modern .symptom-checker-header {
    grid-area: head;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0.45rem 0.3rem 0.75rem;
    position: relative;
    z-index: 0;
}

.symptoms-modern .symptom-highlights {
    justify-content: center;
    position: relative;
    z-index: 0;
}

.symptoms-modern .symptom-search-section {
    grid-area: search;
    margin-top: 0;
    padding: 1rem;
    height: 100%;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 16px;
    border: 1px solid #d6e4f2;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(16, 43, 79, 0.09);
}

.symptoms-modern .additional-info {
    grid-area: side;
    margin-top: 0;
    height: 100%;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    padding: 1rem;
    gap: 0;
    border-radius: 16px;
    border: 1px solid #d6e4f2;
    background: #ffffff;
}

.symptoms-modern .additional-info h3 {
    margin-bottom: 0.45rem;
}

.symptoms-modern .info-caption {
    margin-bottom: 0.85rem;
}

.symptoms-modern .info-link {
    width: 100%;
    margin: 0.35rem 0;
}

.symptoms-modern .symptom-search-section .gsc-control-cse {
    padding: 0.55rem 0 0.55rem 0 !important;
    border-radius: 14px !important;
    border: 1px solid #d7e6f4 !important;
    background: linear-gradient(165deg, #fafdff, #f1f8ff) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 10px 20px rgba(24, 72, 125, 0.08);
    box-sizing: border-box;
}

.symptoms-modern .gsc-search-box td.gsc-search-button {
    padding-left: 2px !important;
    width: 30px !important;
    vertical-align: middle !important;
}

.symptoms-modern .gsc-input-box {
    min-height: 30px !important;
    height: 48px;
    margin: 0 auto !important;
    border-radius: 999px !important;
    border: 1px solid #c8dbef !important;
    background: #ffffff !important;
    box-shadow: 0 6px 14px rgba(25, 74, 128, 0.1);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    line-height: 1 !important;
}

.symptoms-modern .gsc-input-box:hover {
    border-color: #a6c8e7 !important;
}

.symptoms-modern .gsc-input-box-focus {
    border-color: #4e95d7 !important;
    box-shadow: 0 0 0 3px rgba(78, 149, 215, 0.2) !important;
}

.symptoms-modern .gsc-input-box input {
    font-size: 0.88rem !important;
    color: #163550 !important;
    background: transparent !important;
    height: 18px !important;
    line-height: 18px !important;
    padding: 1px 2px !important;
    box-sizing: border-box;
}

.symptoms-modern input.gsc-input {
    height: 18px !important;
    line-height: 18px !important;
    padding: 1px 8px 1px 10px !important;
    font-size: 1rem !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.symptoms-modern .gsc-input-box .gsib_a {
    padding: 0 36px !important;
}

.symptoms-modern .gsc-input-box .gsib_b {
    padding: 0 3px !important;
}

.symptoms-modern .gsc-search-button-v2,
.symptoms-modern .gsc-search-button {
    border-radius: 999px !important;
    border: 1px solid #1d66a8 !important;
    background: linear-gradient(145deg, #2b8eeb, #1c6bbc) !important;
    box-shadow: 0 6px 14px rgba(24, 89, 155, 0.26) !important;
    min-width: 24px !important;
    height: 24px !important;
    width: 24px !important;
    padding: 0 6px !important;
    margin: 0 !important;
    transition: transform 0.2s ease, filter 0.2s ease !important;
    box-sizing: border-box;
    line-height: 1 !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.symptoms-modern .gsc-search-button-v2:hover,
.symptoms-modern .gsc-search-button:hover {
    transform: translateY(-1px);
    filter: brightness(0.96);
}

.symptoms-modern .gsc-search-button-v2 svg {
    fill: #ffffff !important;
    width: 11px !important;
    height: 11px !important;
}

.symptoms-modern.dark-mode .symptom-checker-header {
    background: transparent;
    border-color: transparent;
}

.symptoms-modern.dark-mode .gsc-input-box {
    background: #122238 !important;
    border-color: #355679 !important;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.symptoms-modern.dark-mode .symptom-search-section .gsc-control-cse {
    border-color: #355679 !important;
    background: linear-gradient(165deg, #13253d, #1a314d) !important;
    box-shadow: inset 0 1px 0 rgba(146, 178, 210, 0.08), 0 10px 20px rgba(0, 0, 0, 0.28);
}

.symptoms-modern.dark-mode .gsc-input-box input {
    color: #e4effc !important;
}

.symptoms-modern.dark-mode .gsc-search-button-v2,
.symptoms-modern.dark-mode .gsc-search-button {
    border-color: #38608a !important;
    background: linear-gradient(145deg, #2d76bc, #245f96) !important;
}

/* ======================
   Responsive Adjustments
   ====================== */
@media (max-width: 920px) {
    .symptoms-modern .symptom-checker-container {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "head head"
            "search side";
        width: calc(100% - 1.4rem);
        padding: 1rem;
        min-height: 480px;
    }

    .symptoms-modern .symptom-checker-header {
        text-align: center;
    }

    .symptoms-modern .symptom-highlights {
        justify-content: center;
    }

    .symptoms-modern .additional-info {
        align-items: center;
        text-align: center;
    }

    .symptoms-modern .symptom-search-section,
    .symptoms-modern .additional-info {
        min-height: 320px;
    }

    .symptoms-modern .gsc-results-wrapper-visible {
        width: min(95vw, 800px) !important;
        max-height: 80vh !important;
    }
}

@media (max-width: 768px) {
    .symptoms-modern .symptom-checker-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "head"
            "search"
            "side";
        grid-template-rows: auto auto auto;
        margin-bottom: 2.4rem;
    }
}

@media (max-width: 480px) {
    .symptom-search-section h2 {
        font-size: 1.3rem;
    }

    .info-link {
        font-size: 0.9rem;
    }
}

/* ===== Google Modal Background Match ===== */
.symptoms-modern .search-overlay {
    background:
        radial-gradient(circle at 18% 14%, rgba(83, 170, 255, 0.2), transparent 30%),
        radial-gradient(circle at 84% 18%, rgba(23, 185, 146, 0.14), transparent 28%),
        rgba(8, 23, 42, 0.58) !important;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.symptoms-modern .gsc-results-wrapper-visible {
    border: 1px solid rgba(168, 201, 233, 0.62) !important;
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.98), rgba(240, 248, 255, 0.96)) !important;
    box-shadow: 0 22px 48px rgba(7, 25, 48, 0.34) !important;
}

/* Match Web/Image strip with light-mode results modal surface */
.symptoms-modern .gsc-above-wrapper-area-container,
.symptoms-modern .gsc-above-wrapper-area,
.symptoms-modern .gsc-tabsArea,
.symptoms-modern .gsc-tabHeader,
.symptoms-modern .gsc-tabHeader.gsc-inline-block,
.symptoms-modern .gsc-tabHeader.gsc-tabhActive,
.symptoms-modern .gsc-tabHeader.gsc-tabhInactive {
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.45), rgba(240, 248, 255, 0.50)) !important;
}

/* Center Web/Image tabs */
.symptoms-modern .gsc-tabsArea {
    gap: .5rem !important;
}

/* Softer result cards without separator lines */
.symptoms-modern .gsc-webResult.gsc-result,
.symptoms-modern .gsc-result {
    border-bottom: none !important;
    margin: 0 0 0.55rem 0 !important;
    padding: 0.72rem 0.68rem !important;
    background: rgba(233, 243, 253, 0.96) !important;
    border: 1px solid rgba(183, 210, 236, 0.8) !important;
    border-radius: 5px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.symptoms-modern.dark-mode .search-overlay {
    background:
        radial-gradient(circle at 18% 12%, rgba(83, 170, 255, 0.16), transparent 32%),
        radial-gradient(circle at 84% 18%, rgba(23, 185, 146, 0.1), transparent 28%),
        rgba(3, 10, 20, 0.72) !important;
}

.symptoms-modern.dark-mode .gsc-results-wrapper-visible {
    border: 1px solid rgba(85, 123, 162, 0.62) !important;
    background: linear-gradient(170deg, rgba(20, 38, 60, 0.96), rgba(14, 30, 47, 0.94)) !important;
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.56) !important;
}

/* Google top-tab strip background in dark mode */
.symptoms-modern.dark-mode .gsc-above-wrapper-area-container,
.symptoms-modern.dark-mode .gsc-above-wrapper-area,
.symptoms-modern.dark-mode .gsc-tabsArea {
    background: transparent !important;
}


.symptoms-modern.dark-mode .gsc-tabHeader,
.symptoms-modern.dark-mode .gsc-tabHeader.gsc-inline-block,
.symptoms-modern.dark-mode .gsc-tabHeader.gsc-tabhActive,
.symptoms-modern.dark-mode .gsc-tabHeader.gsc-tabhInactive {
    background: transparent !important;
}

.symptoms-modern.dark-mode .gsc-tabHeader.gsc-tabhInactive {
    color: #b9d2ec !important;
}

.symptoms-modern.dark-mode .gsc-tabHeader.gsc-tabhActive {
    color: #5ea8ff !important;
}

.symptoms-modern.dark-mode .gsc-webResult.gsc-result,
.symptoms-modern.dark-mode .gsc-result {
    border-bottom: none !important;
    background: rgba(22, 42, 64, 0.94) !important;
    border: 1px solid rgba(84, 122, 160, 0.7) !important;
    box-shadow: inset 0 1px 0 rgba(121, 160, 198, 0.22);
}

/* Remove internal Google separator strips/rows inside each result card (iPhone/iPad issue) */
.symptoms-modern .gsc-results .gsc-result .gs-webResult,
.symptoms-modern .gsc-results .gsc-result .gsc-table-result,
.symptoms-modern .gsc-results .gsc-result .gsc-table-cell-snippet-close,
.symptoms-modern .gsc-results .gsc-result .gsc-table-cell-thumbnail,
.symptoms-modern .gsc-results .gsc-result .gs-snippet,
.symptoms-modern .gsc-results .gsc-result .gs-visibleUrl {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Remove Google stats/sort row consistently across themes and breakpoints */
.symptoms-modern .gsc-result-info-container,
.symptoms-modern .gsc-orderby-container,
.symptoms-modern td.gsc-result-info-container,
.symptoms-modern td.gsc-orderby-container,
.symptoms-modern .gsc-result-info,
.symptoms-modern .gsc-orderby {
    display: none !important;
}

/* Modal pagination (scoped) */
.symptoms-modern .gsc-cursor-box {
    background: rgba(226, 239, 252, 0.95) !important;
    border: 1px solid rgba(181, 208, 234, 0.92) !important;
    border-radius: 5px !important;
    padding: 0.55rem 0.8rem !important;
    margin: 0 !important;
}

.symptoms-modern .gsc-cursor-page {
    color: #3f5f82 !important;
    background: transparent !important;
    border-radius: 50% !important;
    padding: 0.14rem 0.35rem !important;
    font-weight: 700 !important;
}

.symptoms-modern .gsc-cursor-page:hover {
    color: #1f4f85 !important;
    background: rgba(185, 214, 241, 0.45) !important;
}

.symptoms-modern .gsc-cursor-current-page,
.symptoms-modern .gsc-cursor-page.gsc-cursor-current-page {
    color: #1f6fbe !important;
    background: rgba(143, 189, 232, 0.3) !important;
}

.symptoms-modern.dark-mode .gsc-cursor-box {
    background: rgba(28, 43, 64, 0.96) !important;
    border: 1px solid rgba(72, 104, 139, 0.86) !important;
}

.symptoms-modern.dark-mode .gsc-cursor-page {
    color: #c9dff6 !important;
    background: transparent !important;
}

.symptoms-modern.dark-mode .gsc-cursor-page:hover {
    color: #e5f2ff !important;
    background: rgba(90, 133, 179, 0.34) !important;
}

.symptoms-modern.dark-mode .gsc-cursor-current-page,
.symptoms-modern.dark-mode .gsc-cursor-page.gsc-cursor-current-page {
    color: #7fbcff !important;
    background: rgba(55, 94, 133, 0.55) !important;
}

/* Dark mode readability for "Search \"word\" on Google" row */
.symptoms-modern.dark-mode .gsc-find-more-on-google,
.symptoms-modern.dark-mode .gsc-find-more-on-google-query,
.symptoms-modern.dark-mode .gsc-find-more-on-google-magnifier,
.symptoms-modern.dark-mode .gcsc-find-more-on-google,
.symptoms-modern.dark-mode .gcsc-find-more-on-google-query,
.symptoms-modern.dark-mode .gcsc-find-more-on-google-magnifier {
    color: #9aa3af !important;
}

.symptoms-modern.dark-mode [class*="find-more-on-google"],
.symptoms-modern.dark-mode [class*="find-more-on-google"] a {
    color: #9aa3af !important;
}

.symptoms-modern.dark-mode [class*="find-more-on-google"] svg,
.symptoms-modern.dark-mode [class*="find-more-on-google"] path,
.symptoms-modern.dark-mode [class*="find-more-on-google"] i {
    fill: #9aa3af !important;
    color: #9aa3af !important;
    stroke: #9aa3af !important;
}


/* Use custom overlay background and keep results panel above it */
.symptoms-modern #searchOverlay {
    pointer-events: auto !important;
    z-index: 1000 !important;
}

.symptoms-modern #cseModalRoot {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1001;
    background: transparent !important;
    visibility: hidden !important;
}

.symptoms-modern #cseModalRoot .gcse-searchresults {
    pointer-events: auto;
}


.symptoms-modern .gsc-modal-background-image {
    display: none !important;
}

.symptoms-modern .gsc-results-wrapper-overlay,
.symptoms-modern .gsc-results-wrapper-visible {
    z-index: 1001 !important;
    position: fixed !important;
}

.symptoms-modern .gsc-results-wrapper-visible {
    opacity: 1 !important;
}

/* Rounded modal scrollbar to match results panel radius */
.symptoms-modern .gsc-results-wrapper-visible {
    scrollbar-width: thin;
    scrollbar-color: rgba(164, 187, 212, 0.95) rgba(231, 240, 249, 0.9);
}

.symptoms-modern .gsc-results-wrapper-visible::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.symptoms-modern .gsc-results-wrapper-visible::-webkit-scrollbar-track {
    background: rgba(231, 240, 249, 0.9);
    border-radius: 12px;
}

.symptoms-modern .gsc-results-wrapper-visible::-webkit-scrollbar-thumb {
    background: rgba(164, 187, 212, 0.95);
    border-radius: 12px;
    border: 2px solid rgba(231, 240, 249, 0.9);
}

.symptoms-modern .gsc-results-wrapper-visible::-webkit-scrollbar-corner {
    background: transparent;
}

.symptoms-modern .gsc-results-wrapper-visible::-webkit-scrollbar-thumb:hover {
    background: rgba(140, 169, 198, 0.98);
}

.symptoms-modern.dark-mode .gsc-results-wrapper-visible {
    scrollbar-color: rgba(89, 122, 156, 0.96) rgba(19, 35, 54, 0.88);
}

.symptoms-modern.dark-mode .gsc-results-wrapper-visible::-webkit-scrollbar-track {
    background: rgba(19, 35, 54, 0.88);
}

.symptoms-modern.dark-mode .gsc-results-wrapper-visible::-webkit-scrollbar-thumb {
    background: rgba(89, 122, 156, 0.96);
    border-color: rgba(19, 35, 54, 0.88);
}

/* Unified modal viewport across desktop, tablet, and mobile */
.symptoms-modern .gsc-results-wrapper-visible {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: min(94vw, 780px) !important;
    height: auto !important;
    max-height: 84dvh !important;
    padding: 16px !important;
    border-radius: 12px !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

@supports not (height: 1dvh) {
    .symptoms-modern .gsc-results-wrapper-visible {
        max-height: 84vh !important;
    }

    .symptoms-modern .gsc-results .gsc-webResult.gsc-result,
    .symptoms-modern .gsc-results .gsc-result {
        margin: 0 !important;
        margin-bottom: 0 !important;
    }
}
