/* Shared styles for Neuro Academy public landing pages. */

/* Keep the Bookle header/layout untouched. Shared overrides here are limited
   to rules that do not change the theme's desktop header geometry. */
html,
body {
    max-width: 100%;
    overflow-x: clip;
}

img,
svg,
video,
iframe {
    max-width: 100%;
}

img,
video {
    height: auto;
}

nav li a {
    font-weight: 600 !important;
}

nav li:hover,
nav li a:hover {
    color: #ffc107 !important;
}

.contact-info-area {
    justify-content: center;
}

@media (max-width: 767px) {
    .contact-info-area {
        justify-content: flex-start;
    }
}

@media (max-width: 1365px) and (min-width: 801px) {
    .feature-wrapper {
        flex-wrap: wrap;
    }

    .feature-wrapper .feature-box-items {
        min-width: 0;
    }

    .feature-wrapper .feature-box-items .icon {
        background-color: transparent;
        color: var(--theme);
    }
}

@media (min-width: 1366px) {
    .under-hero {
        max-width: 100%;
    }

    .feature-wrapper {
        flex-wrap: wrap;
    }
}

/* Bookle has a discontinuity at 1399px. Keep the 1400px desktop geometry
   through 1200px, but override the whole flex row (not only its children). */
@media (min-width: 1200px) and (max-width: 1399px) {
    .header-1 .header-main {
        flex-wrap: nowrap;
    }

    .header-1 .header-left {
        gap: 280px;
        flex: 1 1 auto;
        min-width: 0;
        flex-wrap: nowrap;
    }

    .header-1 .header-main::before {
        width: 290px;
        height: 177px;
    }

    .header-1 .header-main::after {
        width: 300px;
        height: 177px;
    }

    .header-1 .header-main .main-menu,
    .header-1 .header-main .main-menu > nav,
    .header-1 .header-main .main-menu > nav > ul {
        white-space: nowrap;
        flex-wrap: nowrap;
    }

    .header-main .main-menu ul li {
        margin-inline-end: 25px;
    }

    .header-1 .header-right {
        flex: 0 0 auto;
    }
}

/* At 1200–1399 the header geometry is now stable; adjust only the logo image.
   The wrapper/menu/header remain untouched. */
@media (min-width: 1200px) and (max-width: 1399px) {
    .header-1 .header-left .logo .headerlogo-neuro {
        transform: translateX(-52px);
    }
}

/* Smooth the Bookle jump immediately above 1600px.
   Keep 1601–1800 visually aligned with the stable <=1600 header without
   changing logo, header height, or menu item spacing. */
@media (min-width: 1601px) and (max-width: 1800px) {
    .header-1 .header-left {
        gap: clamp(210px, calc(280px - (100vw - 1600px) * 0.35), 280px);
    }
}




/* Fine-tune the curved desktop logo panel: 177px -> 170px. */
@media (min-width: 1200px) {
    .header-1 .header-main::before,
    .header-1 .header-main::after {
        height: 170px;
    }
}


/* Footer contact strip: balanced four-column layout with consistent alignment. */
@media (min-width: 1200px) {
    .footer-section .contact-info-area {
        display: grid;
        grid-template-columns: .85fr 1.05fr 1.2fr 2.2fr;
        align-items: start;
        gap: 36px;
        padding-top: 72px;
        padding-bottom: 52px;
    }

    .footer-section .contact-info-area .contact-info-items {
        min-width: 0;
        display: grid;
        grid-template-columns: 58px minmax(0, 1fr);
        align-items: center;
        justify-content: initial;
        gap: 16px;
    }

    .footer-section .contact-info-area .contact-info-items .icon {
        width: 58px;
        height: 58px;
        line-height: 54px;
        font-size: 25px;
        flex: none;
    }

    .footer-section .contact-info-area .contact-info-items .content {
        min-width: 0;
    }

    .footer-section .contact-info-area .contact-info-items .content p {
        margin: 0 0 5px;
        line-height: 1.45;
    }

    .footer-section .contact-info-area .contact-info-items .content h3 {
        margin: 0;
        line-height: 1.4;
    }

    .footer-section .contact-info-area .contact-info-items:nth-child(-n + 3) .content h3,
    .footer-section .contact-info-area .contact-info-items:nth-child(-n + 3) .content h3 a {
        white-space: nowrap;
    }

    .footer-section .contact-info-area .contact-info-items:last-child {
        align-items: start;
    }

    .footer-section .contact-info-area .contact-info-items:last-child .icon {
        margin-top: 2px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .footer-section .contact-info-area {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        gap: 32px 40px;
    }

    .footer-section .contact-info-area .contact-info-items {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .footer-section .contact-info-area .contact-info-items {
        width: 100%;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .footer-section .contact-info-area .contact-info-items .content {
        min-width: 0;
    }

    .footer-section .contact-info-area .contact-info-items .content h3,
    .footer-section .contact-info-area .contact-info-items .content p {
        overflow-wrap: anywhere;
    }
}
