/* =====================================================================
   Shared site navbar (Views/Shared/Navbar.cshtml) — canonical look.
   Matches how the navbar renders on /about-ciit.

   Loaded by _Layout.cshtml (after home.css + Bootstrap) and by the
   standalone blog articles (Layout = null). Many pages have their own
   leftover .topbar / header / .brand / .menu-toggle rules; everything
   here is scoped to .topbar / .site-header with !important where pages
   were overriding, so the navbar looks the same on every page.
   ===================================================================== */

.topbar,
.site-header {
    --nav-blue: #00afe9;
    --nav-navy: #102b46;
    --nav-topbar: #082b55;
    --nav-orange: #ff8a24;
    --nav-ink: #172b3d;
    --nav-pale: #eefaff;
    --nav-line: #e3edf3;
    font-family: Inter, Arial, sans-serif !important;
    line-height: 1.65 !important;
    letter-spacing: normal;
    box-sizing: border-box;
}

    .topbar *,
    .site-header * {
        box-sizing: border-box;
    }

/* ---------- Top bar ---------- */
html body div.topbar {
    background: var(--nav-topbar) !important;
    color: #fff !important;
    font-size: 13px !important;
    padding: 9px 0 !important;
    margin: 0 !important;
    text-align: left !important;
    border: 0 !important;
}

    html body div.topbar .topbar-inner {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center;
        gap: 12px !important;
        flex-wrap: wrap !important;
        text-align: left !important;
    }

    html body div.topbar a,
    html body div.topbar a:hover,
    html body div.topbar a:focus {
        color: #fff !important;
        text-decoration: none !important;
        border-bottom: 0 !important;
    }

    html body div.topbar .top-sep {
        padding: 0 10px;
        color: #88a9bd;
    }

/* ---------- Header ---------- */
html body header.site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    width: 100%;
    max-width: 100%;
    background: #fff !important;
    border: 0 !important;
    box-shadow: 0 5px 22px rgba(16,43,70,.08) !important;
    padding: 0 !important;
    margin: 0 !important;
}

    html body header.site-header a,
    html body header.site-header a:hover,
    html body header.site-header a:focus,
    html body header.site-header a:visited {
        text-decoration: none !important;
        border-bottom: none !important;
        background-image: none;
    }

    html body header.site-header .nav-wrap {
        min-height: 76px;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 22px;
    }

    /* Logo link — same box as on /about-ciit */
    html body header.site-header .brand {
        display: block !important;
        font-size: 27px !important;
        font-weight: 800 !important;
        line-height: 1.05 !important;
        letter-spacing: -1px !important;
        white-space: nowrap;
        gap: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        background: none !important;
        color: inherit;
    }

    /* ---------- Links ---------- */
    html body header.site-header .main-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 22px;
        margin: 0;
        padding: 0;
        background: none;
    }

        html body header.site-header .main-nav a {
            position: relative;
            display: inline-flex;
            align-items: center;
            color: var(--nav-ink) !important;
            font-size: 13px !important;
            font-weight: 600 !important;
            padding: 10px 0 !important;
            margin: 0;
            transition: color .25s ease;
        }

            html body header.site-header .main-nav a:hover,
            html body header.site-header .main-nav a:focus-visible {
                color: var(--nav-blue) !important;
            }

            html body header.site-header .main-nav a.active,
            html body header.site-header .main-nav a[aria-current="page"] {
                color: var(--nav-blue) !important;
                font-weight: 800 !important;
            }

                html body header.site-header .main-nav a::after,
                html body header.site-header .main-nav a::before {
                    display: none !important;
                    content: none !important;
                }

            html body header.site-header .main-nav a:focus {
                outline: none;
            }

    /* ---------- Enquire button ---------- */
    html body header.site-header .nav-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        border: 0;
        border-radius: 999px !important;
        padding: 13px 21px !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        cursor: pointer;
        transition: .2s;
        background: var(--nav-orange) !important;
        color: #fff !important;
        box-shadow: 0 8px 20px rgba(255,138,36,.2);
    }

        html body header.site-header .nav-button:hover {
            background: #ed7410 !important;
            color: #fff !important;
            transform: translateY(-2px);
        }

    /* ---------- Mobile menu button ---------- */
    html body header.site-header .menu-toggle {
        display: none !important;
        background: var(--nav-pale) !important;
        color: inherit !important;
        border: 0 !important;
        border-radius: 10px !important;
        padding: 10px !important;
        width: 44px !important;
        height: 42px !important;
        font-size: inherit !important;
        cursor: pointer;
    }

        html body header.site-header .menu-toggle span {
            display: block;
            height: 2px;
            background: var(--nav-navy);
            margin: 5px 0;
            border-radius: 2px;
        }

@media (max-width: 1000px) {
    html body header.site-header .main-nav {
        gap: 12px;
    }

        html body header.site-header .main-nav a {
            font-size: 12px !important;
        }
}

@media (max-width: 900px) {
    html body div.topbar .topbar-inner {
        justify-content: center !important;
        text-align: center !important;
    }

    html body header.site-header .nav-wrap {
        min-height: 68px;
    }

    html body header.site-header .menu-toggle {
        display: block !important;
        margin-left: auto;
    }

    html body header.site-header .nav-button {
        display: none !important;
    }

    html body header.site-header .main-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        width: 100%;
        background: #fff;
        padding: 12px 22px 20px;
        box-shadow: 0 15px 20px rgba(16,43,70,.1);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

        html body header.site-header .main-nav.open {
            display: flex;
        }

        html body header.site-header .main-nav a {
            display: block;
            width: 100%;
            padding: 12px 0 !important;
            border-bottom: 1px solid var(--nav-line) !important;
        }
}


/* ==========================================================
   Site-wide responsive safety rules
   Shared by the main site, course pages and standalone blogs.
   These rules avoid horizontal overflow without changing
   existing page-specific layouts or colour themes.
   ========================================================== */
html {
    max-width: 100%;
    overflow-x: clip;
    scroll-padding-top: 90px;
}

body {
    max-width: 100%;
    overflow-x: clip;
}

img, video, iframe, svg, canvas {
    max-width: 100%;
}

main, header, footer, section, article, aside,
.container, .container-fluid, .row,
[class*="col-"] {
    min-width: 0;
}

input, select, textarea, button {
    max-width: 100%;
}

textarea {
    overflow-wrap: anywhere;
}

table {
    max-width: 100%;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

button, [role="button"], .btn, a.btn {
    touch-action: manipulation;
}

@media (max-width: 900px) {
    html {
        scroll-padding-top: 76px;
    }

    .site-header .brand img {
        width: min(200px, 48vw) !important;
        height: auto !important;
        max-height: 60px;
    }

    .site-header .main-nav.open {
        display: flex !important;
    }

    .site-header .nav-wrap {
        gap: 10px !important;
    }

    .site-header .main-nav {
        max-height: calc(100vh - 76px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .topbar .topbar-inner > div,
    .topbar .topbar-inner > span {
        overflow-wrap: anywhere;
    }

    .hero, .hero-section {
        overflow: hidden;
    }

    .hero h1 {
        overflow-wrap: anywhere;
    }

    .section, .section-padding, .blog-content {
        padding-top: clamp(36px, 7vw, 60px);
        padding-bottom: clamp(36px, 7vw, 60px);
    }

    .cta-inner, .hero-actions {
        flex-wrap: wrap;
    }

    .salary-row {
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .container {
        width: calc(100% - 28px);
        max-width: 100%;
    }

    .topbar {
        font-size: 11px;
    }

    .topbar .topbar-inner {
        gap: 6px !important;
    }

    .topbar .social {
        justify-content: center;
    }

    .section-heading {
        padding-inline: 4px;
    }

    .section-heading h1,
    .section-heading h2,
    .section-title {
        overflow-wrap: anywhere;
    }

    .btn, button, input, select {
        min-height: 42px;
    }

    .global-whatsapp {
        right: 12px !important;
        bottom: 14px !important;
        width: 48px !important;
        height: 48px !important;
        font-size: 25px !important;
    }

    .footer-grid, .footer-grid > div {
        min-width: 0;
    }

    .footer-grid a, .footer-grid p {
        overflow-wrap: anywhere;
    }

    .card, .info-card, .review-card, .branch-card,
    .curriculum-card, .benefit, .salary-panel {
        min-width: 0;
    }
}

@media (max-width: 380px) {
    .container {
        width: calc(100% - 20px);
    }

    .site-header .brand img {
        width: min(165px, 44vw) !important;
    }

    .site-header .menu-toggle {
        flex: 0 0 42px;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
    }

    .field-full {
        grid-column: auto !important;
    }
}
