/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 8px Baseline Grid & Typography */
html {
    font-size: 100%;
}

body {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #212529;
    background-color: #FFFFFF;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    margin-top: 16px;
    color: #212529;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 16px;
}

a {
    color: #00A99D;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #00877A;
    text-decoration: underline;
}

/* --- ADDED: Responsive Images for Content --- */
.post-thumbnail {
    margin-bottom: 1.5rem;
}

.post-thumbnail img,
.entry-content img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Removes any extra space below the image */
}


/* Content Pages */
.entry-content ul,
.entry-content ol {
    margin-left: 1.5rem;
    padding-left: 1.5rem;
    margin-bottom: 1.0rem;
    margin-top: 1.0rem;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 2rem;
}




/* Utility Classes */
.container {
    width: 96%;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

.section {
    padding-top: 64px;
    padding-bottom: 64px;
}

.section-light-bg {
    background-color: #F8F9FA;
}

.text-center {
    text-align: center;
}

.accent-color {
    color: #00A99D;
}

.bold-headline {
    font-weight: 700;
}

.sub-headline {
    font-size: 1.25rem;
    color: #6C757D;
    margin-bottom: 32px;
}

.sub-footline {
    font-size: 1rem;
    color: #6C757D;
    margin: 50px auto 0px;
}


/* Site Layout */
#page {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

.site-main {
    flex-grow: 1;
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    border-radius: 4px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #00A99D;
    color: #FFFFFF;
    border-color: #00A99D;
}

.btn-primary:hover {
    background-color: #00877A;
    border-color: #00877A;
    color: #FFFFFF;
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: #00A99D;
    border: 2px solid #00A99D;
}

.btn-secondary:hover {
    background-color: #E0F7FA;
    color: #00877A;
    border-color: #00877A;
    text-decoration: none;
}

/* --- REFACTORED HEADER AND NAVIGATION STYLES --- */

/* 1. Main Header Container */
.site-header {
    padding: 24px 0 10px;
    background-color: #FFFFFF;
    border-bottom: 1px solid #CED4DA;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

/* 2. Site Branding (Logo & Title) */
.site-branding {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    flex-shrink: 1;
    min-width: 0;
}

.site-branding .site-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #4c9893;
    text-decoration: none;
}

.site-branding:hover {
    transition: filter 0.3s ease;
    filter: brightness(1.2);
}

.site-branding .site-logo {
    width: 80px;
    height: auto;
    flex-shrink: 0;
}

.site-branding .site-title {
    margin: 0;
}

.site-branding a {
    color: inherit;
    text-decoration: none;
}

/* 3. Main Navigation Container */
.main-navigation {
    margin-left: auto;
    /* Pushes the nav to the right, next to branding */
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.main-navigation ul li {
    margin-left: 0;
}

.main-navigation ul li a {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #212529;
    text-decoration: none;
}

.main-navigation ul li a:hover {
    color: #00A99D;
    text-decoration: none;
}

.main-navigation .auth-link-item .auth-link {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* 4. Desktop Dropdown Styles */
.menu-item-has-children {
    position: relative;
}

.menu-item-has-children .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 8px 0;
    margin: 8px 0 0;
    min-width: 490px;
    z-index: 1001;
}


.sub-menu li {
    width: 100%;
}

.sub-menu li a {
    display: block;
    padding: 10px 20px;
    font-weight: 500;
    white-space: normal; /* Allow wrapping */
    line-height: 1.4;   /* Add line height for readability */
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sub-menu li a:hover {
    background-color: #F8F9FA;
    color: #00A99D;
}

.dropdown-toggle .arrow {
    display: inline-block;
    margin-left: 4px;
    font-size: 0.7em;
    transition: transform 0.2s ease-in-out;
}

.menu-item-has-children.dropdown-open .arrow {
    transform: rotate(180deg);
}


/* 5. Mobile Menu Button */
.menu-toggle {
    display: none;
    /* Shown on mobile via media query */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #212529;
}


/* --- END REFACTORED HEADER --- */

/* Hero Section */
.hero-section {
    background-color: #d4e6e7;
    padding: 0 0 64px;
    text-align: center;
}

.hero-illustration {
    display: block;
    max-width: 700px;
    width: 100%;
    height: auto;
    margin: 0 auto 0;
}

.hero-headline {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-sub-wrapper {
    max-width: 80%;
    text-align: left;
    margin: 50px auto 50px auto;
}

.hero-subheadline {
    font-size: 1.5rem;
    color: #6C757D;
    margin-bottom: 10px;
}

.hero-ctas .btn {
    margin: 0 8px;
}


/* Problem + Solution Section */
.problem-solution-section .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.solution-bullets ul {
    list-style: none;
    padding-left: 0;
}

.solution-bullets li {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 1.125rem;
}

.solution-bullets li .icon {
    width: 64px;
    height: 64px;
    margin-right: 24px;
    color: #00A99D;
    flex-shrink: 0;
}


/* Who it's for Section */
.who-its-for-section {
    padding-top: 64px;
    padding-bottom: 64px;
    background-color: #F8F9FA;
}

.who-its-for-section .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.who-item {
    text-align: center;
    padding: 24px;
    border: 1px solid #E0F7FA;
    border-radius: 8px;
    background-color: #FFFFFF;
}

.who-item .icon {
    width: 128px;
    height: 128px;
    margin: 0 auto 16px;
    color: #00A99D;
}

.who-item h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.who-item ul {
    list-style: none;
    padding-left: 0;
    margin-top: 24px;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
}

.who-item li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 8px;
    color: #6C757D;
}

.who-item li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 1px;
    color: #00A99D;
    font-weight: bold;
    font-size: 1.2rem;
}


/* How It Works Section */
.how-it-works-section .section-title {
    text-align: center;
    margin-bottom: 48px;
}

.how-it-works-graphic {
    max-width: 600px;
    margin: 0 auto;
    display: block;
}

.steps-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    gap: 32px;
    margin-top: 32px;
}

.step {
    flex: 1;
}

.step .step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background-color: #00A99D;
    color: white;
    font-weight: bold;
    margin-bottom: 16px;
}

.step h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}


/* Admin Overview Section */
.admin-overview {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto 0;
    max-width: 800px;
}



/* Key Benefits Section */
.key-benefits-section .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.benefit-item {
    text-align: center;
    padding: 24px;
    border: 1px solid #E0F7FA;
    border-radius: 8px;
    background-color: #FFFFFF;
}

.benefit-item .icon {
    width: 128px;
    height: 128px;
    margin: 0 auto 16px;
    color: #00A99D;
}

.benefit-item h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

/* --- THIS IS THE CRITICAL FIX --- */
/* This rule ensures that any SVG or IMG inside a container with the class ".icon"
   will scale to fill that container, resolving both the "tiny icon" and "giant icon" bugs. */
.solution-bullets li .icon img,
.solution-bullets li .icon svg,
.who-item .icon img,
.who-item .icon svg,
.benefit-item .icon img,
.benefit-item .icon svg,
.contact-cta-section .icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Prevents stretching if aspect ratio differs */
}

/* --- END OF FIX --- */


/* SVG Icon Coloring Fix */
.solution-bullets li .icon svg [fill]:not([fill="none"]):not([fill="transparent"]),
.benefit-item .icon svg [fill]:not([fill="none"]):not([fill="transparent"]),
.who-item .icon svg [fill]:not([fill="none"]):not([fill="transparent"]),
.contact-cta-section .icon svg [fill]:not([fill="none"]):not([fill="transparent"]) {
    fill: currentColor;
}

.solution-bullets li .icon svg [stroke]:not([stroke="none"]):not([stroke="transparent"]),
.benefit-item .icon svg [stroke]:not([stroke="none"]):not([stroke="transparent"]),
.who-item .icon svg [stroke]:not([stroke="none"]):not([stroke="transparent"]),
.contact-cta-section .icon svg [fill]:not([fill="none"]):not([fill="transparent"]) {
    stroke: currentColor;
}


/* Social Proof Section */
.social-proof-section .quotes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.quote-card {
    background-color: #FFFFFF;
    padding: 24px;
    border-left: 4px solid #00A99D;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.quote-card blockquote {
    font-size: 1.125rem;
    font-style: italic;
    color: #6C757D;
    margin-bottom: 16px;
    border-left: none;
    padding-left: 0;
}

.quote-author {
    display: flex;
    align-items: center;
}

.quote-author img.headshot {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 16px;
    object-fit: cover;
}

.quote-author cite {
    font-style: normal;
    font-weight: 600;
    color: #212529;
}

.quote-author cite span {
    display: block;
    font-weight: normal;
    font-size: 0.875rem;
    color: #6C757D;
}

/* Contact CTA Section */
.contact-cta-section .icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    color: #00A99D; /* Use theme accent color */
}

/* Re-use existing sub-headline styles but give it some more bottom margin here */
.contact-cta-section .sub-headline {
    margin-bottom: 40px;
}


/* Footer CTA */
.footer-cta-section {
    background-color: #00A99D;
    color: #FFFFFF;
    text-align: center;
    padding: 48px 0;
}

.footer-cta-section .cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #FFFFFF;
}

.footer-cta-section .sub-headline {
    color: #FFFFFF;
}

.footer-cta-section .btn-light {
    background-color: #FFFFFF;
    color: #00A99D;
    border-color: #FFFFFF;
}

.footer-cta-section .btn-light:hover {
    background-color: #E0F7FA;
    color: #00877A;
    border-color: #E0F7FA;
}


/* Site Footer */
.site-footer {
    background-color: #212529;
    color: #CED4DA;
    padding: 40px 0;
    font-size: 0.875rem;
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav ul li {
    margin: 0 12px 8px;
}

.footer-nav ul li a {
    color: #FFFFFF;
}

.footer-nav ul li a:hover {
    color: #00A99D;
    text-decoration: underline;
}

.copyright {
    margin-top: 16px;
}


/* Plans Page Specifics */
.plans-header {
    text-align: center;
    padding-bottom: 40px;
}

.plans-header h1 {
    margin-bottom: 8px;
}

.feature-summary {
    margin-bottom: 48px;
}

.feature-summary table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.feature-summary th,
.feature-summary td {
    padding: 12px 16px;
    border-bottom: 1px solid #CED4DA;
}

.feature-summary th {
    background-color: #F8F9FA;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.feature-summary .check-icon {
    color: #00A99D;
    font-weight: bold;
}

.feature-summary-list ul {
    list-style: none;
    padding: 0;
}

.feature-summary-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #E0F7FA;
}

.feature-summary-list li strong {
    font-family: 'Poppins', sans-serif;
}

.pricing-cards-section {
    background: #00a99dbf;
}

.pricing-cards-section .section-title {
    color: #FFFFFF;
}

.pricing-cards-section .sub-headline {
    color: #FFFFFF
}

.pricing-cards-section .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    align-items: stretch;
}

.pricing-card {
    background-color: #FFFFFF;
    border: 1px solid #CED4DA;
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.pricing-card.popular {
    border-color: #00A99D;
    border-width: 2px;
    position: relative;
}

.pricing-card.popular::before {
    content: "Popular";
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background-color: #00A99D;
    color: white;
    font-size: 1rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.pricing-card h3 {
    font-size: 1.5rem;
    color: #00A99D;
    margin-bottom: 8px;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #212529;
    margin-bottom: 8px;
}

.pricing-card .price .term {
    font-size: 1rem;
    font-weight: normal;
    color: #6C757D;
}

.pricing-card .description {
    color: #6C757D;
    margin-bottom: 24px;
    min-height: 100px;
}

.pricing-card .features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 32px;
    text-align: left;
    flex-grow: 1;
}

.pricing-card .features-list li {
    margin-bottom: 8px;
    padding-left: 24px;
    position: relative;
}

.pricing-card .features-list li::before {
    content: '✓';
    color: #00A99D;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.pricing-card .btn {
    width: 100%;
    margin-top: auto;
}

.pricing-card .no-credit-card-subline {
    font-size: 0.9rem;
    color: #6C757D;
    margin-bottom: -25px;
}

.fair-usage-notice,
.fair-usage-notice a {
    color: #FFFFFF;
    font-size: 0.9rem;
    font-style: italic;
    text-decoration: none;
}

.fair-usage-notice a:hover {
    text-decoration: underline;
}

.fair-usage-notice {
    margin-top: -8px;
    margin-bottom: 32px;
}



/* Detailed Features Section */
.detailed-features-section .feature-block {
    margin-bottom: 48px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

.detailed-features-section .feature-block:nth-child(even) .feature-image-container {
    order: -1;
}

.detailed-features-section .feature-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    display: block;
}

.detailed-features-section .feature-text h3 {
    color: #00A99D;
    margin-bottom: 16px;
}


/* FAQs Section */
.faqs-section {
    padding: 50px 0;
}

#fair-usage-faq {
    position: relative;
    margin-top: 0;
    padding-top: 0;
}

#fair-usage-faq::before {
    content: "";
    display: block;
    height: 80px;
    margin-top: -80px;
    visibility: hidden;
    pointer-events: none;
}

.faqs-section .faq-section-subtitle {
    margin-top: 50px;
}

.faqs-section .faqs-list {
    margin-top: 20px;
    margin-bottom: 60px;
}

.faqs-section .faq-item {
    margin-bottom: 16px;
    border-bottom: 1px solid #CED4DA;
    padding-bottom: 16px;
}

.faqs-section .faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faqs-section .faq-question {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0;
    cursor: pointer;
    position: relative;
    padding-right: 32px;
    transition: color 0.3s ease;
}

.faqs-section .faq-question:hover {
    color: #00A99D;
}

.faqs-section .faq-question::after {
    content: '+';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.75rem;
    font-weight: 300;
    line-height: 1;
    color: #00A99D;
    transition: transform 0.2s ease, color 0.2s ease;
}

.faqs-section .faq-question.active {
    color: #212529;
}

.faqs-section .faq-question.active::after {
    content: '−';
}

.faqs-section .faq-answer {
    color: #6C757D;
    margin-top: 16px;
    padding-left: 20px;
    border-left: 3px solid #E0F7FA;
    display: none;
}

.faqs-section .faq-answer p:last-child {
    margin-bottom: 0;
}



.final-cta-note {
    margin-top: 16px;
    font-size: 0.875rem;
    color: #6C757D;
}


/* Subtle Motion & Hover States */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.benefit-item:hover,
.pricing-card:hover,
.who-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* --- RESPONSIVE DESIGN --- */

/* Desktop view (and large tablets) */
@media (min-width: 992px) {

    /* Space out top-level desktop menu items */
    .main-navigation>ul>li {
        margin: 0 12px;
    }

    .menu-item-has-children.dropdown-open .sub-menu {
        display: block;
        /* Toggled by JS */
    }


    /* Style the main nav bar links for desktop */
    .main-navigation>ul>li>a {
        padding: 8px 4px;
    }

    /* Style desktop auth links */
    .main-navigation ul li.login-item {
        margin-left: 24px;
    }

    .main-navigation ul li.register-item {
        display: flex;
        align-items: center;
    }

    .main-navigation ul li.register-item::before {
        content: '|';
        color: #CED4DA;
        padding: 0 12px;
    }

    /* General Layout */
    .problem-solution-section .grid {
        grid-template-columns: 1fr 1fr;
    }

    .social-proof-section .quotes-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }

    .detailed-features-section .feature-block {
        grid-template-columns: 1fr 1fr;
    }

    .detailed-features-section .feature-block:nth-child(even) .feature-image-container {
        order: -1;
    }

    .detailed-features-section .feature-block:nth-child(odd) .feature-image-container {
        order: 1;
    }

    .site-footer .container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .footer-nav ul {
        margin-bottom: 0;
    }

    .menu-toggle {
        display: none !important;
    }

}

/* Mobile & Tablet view */
@media (max-width: 991px) {

    /* Main mobile menu container */
    .main-navigation {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #FFFFFF;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #CED4DA;
    }

    .main-navigation.toggled-on {
        display: block;
    }

    /* Mobile menu list items */
    .main-navigation ul {
        flex-direction: column;
        align-items: stretch;
    }

    .main-navigation ul li {
        border-bottom: 1px solid #E0F7FA;
    }

    .main-navigation ul li:last-child {
        border-bottom: none;
    }

    .main-navigation ul li a {
        display: block;
        padding: 12px 24px;
    }

    /* Show hamburger icon */
    .menu-toggle {
        display: block;
    }

    /* Mobile auth link styles */
    .main-navigation ul li.register-item,
    .main-navigation ul li.view-catalog-item {
        display: list-item;
    }

    .main-navigation ul li.register-item::before {
        display: none;
    }

    .main-navigation ul li.login-item {
        margin-left: 0;
    }

    /* Mobile hero styles */
    .hero-section {
        padding: 40px 0;
    }

    .hero-headline {
        font-size: 2rem;
    }

    .hero-subheadline {
        font-size: 1.25rem;
    }

    .hero-ctas .btn {
        display: block;
        margin: 8px auto;
        width: 100%;
        max-width: 300px;
    }

    /* General Mobile Layout */
    .steps-container {
        flex-direction: column;
        gap: 32px;
    }

    .detailed-features-section .feature-block .feature-image-container {
        order: 2 !important;
    }

    .detailed-features-section .feature-block .feature-text {
        order: 1 !important;
    }

    .site-branding {
        font-size: 1.4rem;
    }

    .site-branding .site-logo {
        width: 50px;
    }

    .site-branding .site-logo-link {
        font-size: 1.8rem;
        gap: 6px;
    }

    /* --- NEW & IMPROVED: Mobile Menu Scrolling & Accordion --- */

    /* Prevent body from scrolling when mobile menu is open */
    body.mobile-menu-open {
        overflow: hidden;
    }

    /* Make the mobile menu container scrollable */
    .main-navigation.toggled-on {
        max-height: calc(100dvh - 85px);
        /* Adjust 85px if header height changes */
        overflow-y: auto;
    }

    /* Reset desktop dropdown styles for mobile */
    .main-navigation ul .menu-item-has-children {
        position: static;
    }

    .main-navigation ul .sub-menu {
        position: static;
        display: none;
        /* JS will handle showing/hiding this with slideToggle */
        box-shadow: none;
        border: none;
        border-radius: 0;
        width: 100%;
        padding-left: 24px;
        /* Indent sub-items */
        background-color: #f8f9fa;
        /* Slightly different background for sub-items */
        margin: 0;
        min-width: 0;
    }

    /* Style sub-menu items */
    .main-navigation ul .sub-menu li {
        border-bottom: none;
        /* Remove double borders */
    }


    /* Add a top border to every sub-item EXCEPT the first one */
    .main-navigation ul .sub-menu li+li {
        border-top: 1px solid #e9ecef;
    }

    .main-navigation ul .sub-menu li a {
        padding-top: 10px;
        padding-bottom: 10px;
        font-size: 0.9rem;
        /* Make sub-menu text slightly smaller */
        color: #6C757D;
        white-space: normal;
        line-height: 1.4;
        /* Adjust line height for wrapped text */
    }

    .main-navigation ul .sub-menu li a:hover {
        color: #00A99D;
    }


    /* Style the parent link (dropdown toggle) on mobile */
    .main-navigation ul li.menu-item-has-children>a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Hide the desktop arrow and create a new mobile-friendly one */
    .main-navigation ul li.menu-item-has-children>a .arrow {
        display: none;
    }

    .main-navigation ul li.menu-item-has-children>a::after {
        content: '+';
        font-size: 1.5rem;
        font-weight: 300;
        line-height: 1;
        transition: transform 0.2s ease;
    }

    /* Style for when the dropdown is open */
    .main-navigation ul li.menu-item-has-children.dropdown-open>a::after {
        content: '−';
        /* Unicode MINUS SIGN */
    }
}