/* =========================================================
   Munam School – top bar, header, hero banner & quick links
   ========================================================= */
:root {
    --ms-navy: #0f2d5e;
    --ms-navy-dark: #0a2249;
    --ms-yellow: #f7c31a;
    --ms-yellow-dark: #e6b310;
    --ms-text: #4e4e4e;
}

/* ---------- 1. Top bar ---------- */
.ms-topbar {
    background: var(--ms-navy);
    color: #fff;
    font-size: 13px;
    font-family: 'Roboto', sans-serif;
    position: relative;
    z-index: 1000;
}
.ms-topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
}
.ms-topbar-info, .ms-topbar-actions {
    display: flex;
    align-items: center;
    gap: 26px;
}
.ms-topbar-info span, .ms-topbar-info a, .ms-topbar-actions a {
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}
.ms-topbar-info i, .ms-topbar-actions i {
    color: var(--ms-yellow);
    font-size: 13px;
}
.ms-topbar-info a:hover, .ms-topbar-actions a:hover {
    color: var(--ms-yellow);
}
.ms-topbar-actions {
    gap: 18px;
}
.ms-topbar-social {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ms-topbar-social a {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    justify-content: center;
    gap: 0;
    transition: background 0.2s, color 0.2s;
}
.ms-topbar-social a i {
    color: #fff;
    font-size: 12px;
}
.ms-topbar-social a:hover {
    background: var(--ms-yellow);
}
.ms-topbar-social a:hover i {
    color: var(--ms-navy);
}
.ms-btn-enquire {
    background: var(--ms-yellow);
    color: var(--ms-navy) !important;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 4px;
    line-height: 1.4;
    transition: .3s;
}
.ms-btn-enquire i {
    color: var(--ms-navy);
}
.ms-btn-enquire:hover {
    background: var(--ms-yellow-dark);
    color: var(--ms-navy) !important;
}

/* ---------- 2. Main header / menu ---------- */
.header-area.header-three .menu-area {
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 45, 94, .10);
    z-index: 999;
    position: relative;
}
.ms-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 118px;
    gap: 20px;
}
.ms-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.ms-brand img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}
.ms-brand-title {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: .5px;
    color: var(--ms-navy);
    text-transform: uppercase;
}
.ms-brand-sub {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: 15.5px;
    color: var(--ms-text);
    margin-top: 3px;
}
.sticky-menu .ms-header-inner {
    min-height: 92px;
}
.sticky-menu .ms-brand img {
    width: 70px;
    height: 70px;
}

/* nav overrides for the template's .main-menu */
.header-three .main-menu {
    margin-right: 0;
}
.header-three .main-menu ul {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}
.header-three .main-menu ul li {
    margin-left: 0;
    display: block;
}
.header-three .main-menu ul li a {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 14.5px;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--ms-navy);
    padding: 40px 9px;
    white-space: nowrap;
}
.header-three .main-menu ul li:hover > a,
.header-three .main-menu ul li.active > a {
    color: var(--ms-yellow-dark);
}
.header-three .main-menu ul li.has-sub > a::after {
    content: "\f078";
    font-family: "Font Awesome 5 Pro";
    font-weight: 400;
    font-size: 9px;
    margin-left: 5px;
    color: inherit;
    display: inline-block;
    vertical-align: 1px;
}
.header-three .main-menu ul li:last-child > a::after {
    display: none;
}
.header-three .main-menu .has-sub > ul {
    display: block;
    border-top: 3px solid var(--ms-yellow);
    min-width: 230px;
    left: 0;
    padding: 0;
}
.header-three .main-menu .has-sub > ul li a {
    padding: 12px 18px;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
    color: #4f4f4f !important;
}
.header-three .main-menu .has-sub > ul li a:hover {
    color: var(--ms-navy) !important;
    background: #f5f7fb;
}
.header-three .main-menu .has-sub > ul li a::after {
    display: none;
}

/* ---------- 3. Hero banner ---------- */
.ms-hero.slider-area {
    height: 600px;
    background: var(--ms-navy-dark);
}
.ms-hero .slider-active,
.ms-hero .slick-list,
.ms-hero .slick-track,
.ms-hero .single-slider {
    height: 600px;
}
.ms-hero .single-slider {
    position: relative;
    overflow: hidden;
}
.ms-hero .slider-bg {
    position: absolute;
    inset: 0;
}
.ms-hero .slider-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.ms-hero .single-slider .overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg,
        rgba(8, 28, 62, .92) 0%,
        rgba(8, 28, 62, .78) 35%,
        rgba(8, 28, 62, .35) 65%,
        rgba(8, 28, 62, .10) 100%);
}
.ms-hero .container {
    position: relative;
    z-index: 2;
    height: 100%;
}
.ms-hero .slider-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 600px;
    padding-bottom: 60px;   /* leaves room for the quick-links strip overlap */
    max-width: 560px;
}
.ms-hero .slider-content h1 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 50px;
    line-height: 1.12;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 22px;
    letter-spacing: .5px;
}
.ms-hero .slider-content h1 span {
    display: block;
    color: var(--ms-yellow);
}
.ms-hero .slider-content p {
    color: #fff;
    font-size: 17px;
    line-height: 1.65;
    max-width: 440px;
    margin-bottom: 28px;
}
.ms-btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--ms-yellow);
    color: var(--ms-navy);
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 14px 30px;
    border-radius: 4px;
    transition: .3s;
}
.ms-btn-hero:hover {
    background: #fff;
    color: var(--ms-navy);
}
/* slider arrows + dots */
.ms-hero .slider-active .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 20px;
    line-height: 46px;
    text-align: center;
    padding: 0;
    margin: 0;
    opacity: 1;
    left: auto;
    right: auto;
    cursor: pointer;
    transition: .3s;
}
.ms-hero .slider-active .slick-prev { left: 70px; }
.ms-hero .slider-active .slick-next { right: 30px; }
.ms-hero .slider-active:hover .slick-prev { left: 70px; }
.ms-hero .slider-active:hover .slick-next { right: 30px; }
.ms-hero .slider-active .slick-arrow:hover {
    background: var(--ms-yellow);
    border-color: var(--ms-yellow);
    color: var(--ms-navy);
}
.ms-hero .slider-active .slick-dots {
    display: block !important;   /* responsive.css hides .slick-dots globally */
    position: absolute;
    left: 0;
    right: 0;
    top: auto;
    bottom: 100px;
    width: 100%;
    text-align: center;
    z-index: 4;
    margin: 0;
    padding: 0;
    line-height: 1;
}
.ms-hero .slider-active .slick-dots li {
    display: inline-block;
    margin: 0 5px;
}
.ms-hero .slider-active .slick-dots li button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    font-size: 0;
    padding: 0;
    cursor: pointer;
    opacity: 1;
    transition: .3s;
}
.ms-hero .slider-active .slick-dots li button::before {
    display: none;
}
.ms-hero .slider-active .slick-dots li.slick-active button {
    background: var(--ms-yellow);
    border-color: var(--ms-yellow);
}

/* floating social rail on the hero */
.ms-social-rail {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ms-social-rail a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
    transition: .3s;
}
.ms-social-rail a:hover {
    transform: translateX(4px);
    color: #fff;
}
.ms-social-rail .fb { background: #1877f2; }
.ms-social-rail .ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.ms-social-rail .yt { background: #ff0000; }
.ms-social-rail .wa { background: #25d366; }

/* ---------- 4. Quick links strip (overlaps the hero) ---------- */
/* Sizes follow the angelshighschool.in "category" panel measured at 1920px:
   panel #07294d r10 · cards 213×210 r5 · 36px gutter · 100px panel-to-card inset */
.ms-quicklinks {
    position: relative;
    z-index: 6;
    margin-top: -78px;
    padding-bottom: 20px;
}
.ms-quicklinks-box {
    background: #07294d;
    border-radius: 10px;
    padding: 45px 40px;
    max-width: 1040px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 185px));
    justify-content: center;
    gap: 30px;
}
.ms-ql-item {
    text-align: center;
    padding: 14px 10px;
    border-radius: 5px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 140px;
    width: 100%;
    transition: .3s;
    position: relative;
}
/* one colour per tile — first three match the reference palette */
.ms-ql-item:nth-child(1) { background: #ff6f6f; }   /* coral  */
.ms-ql-item:nth-child(2) { background: #4886ff; }   /* blue   */
.ms-ql-item:nth-child(3) { background: #b5d56a; }   /* green  */
.ms-ql-item:nth-child(4) { background: #ff9f43; }   /* orange */
.ms-ql-item:nth-child(5) { background: #8e6cf0; }   /* purple */
.ms-ql-item:nth-child(6) { background: #26b8c9; }   /* teal   */
.ms-ql-item:nth-child(7) { background: #e84393; }   /* pink   */
.ms-ql-item:nth-child(8) { background: #2ecc71; }   /* emerald */
.ms-ql-item:hover {
    color: #fff;
    transform: translateY(-4px);
    z-index: 2;
    filter: brightness(1.08);
    box-shadow: 0 12px 22px rgba(0, 0, 0, .25);
}
.ms-ql-item i {
    font-size: 42px;
    line-height: 1;
    color: #fff;
    display: block;
    margin-bottom: 8px;
}
.ms-ql-item strong {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 4px;
}
.ms-ql-item small {
    display: block;
    font-size: 11.5px;
    line-height: 1.4;
    color: rgba(255, 255, 255, .92);
}

/* ---------- 5. Responsive ---------- */
@media (max-width: 1399px) {
    .header-three .main-menu ul li a { padding: 34px 7px; font-size: 13.5px; }
    .ms-header-inner { min-height: 104px; }
    .ms-brand img { width: 76px; height: 76px; }
    .ms-brand-title { font-size: 27px; }
    .ms-brand-sub { font-size: 14px; }
}
@media (max-width: 1199px) {
    .ms-topbar-info span.ms-address { display: none; }
    .header-three .main-menu ul li a { padding: 30px 5px; font-size: 11.5px; }
    .ms-brand img { width: 56px; height: 56px; }
    .ms-brand-title { font-size: 21px; }
    .ms-brand-sub { font-size: 12px; }
    .ms-hero .slider-content h1 { font-size: 42px; }
}
@media (max-width: 991px) {
    .ms-topbar-info { gap: 14px; }
    .ms-topbar-actions .ms-login { display: none; }
    .header-area.header-three .menu-area { padding: 0; }
    .ms-header-inner { min-height: 72px; flex-wrap: wrap; position: relative; padding-right: 56px; }
    .ms-brand img { width: 56px; height: 56px; }
    /* meanmenu (mobile nav) hooks: give it the full row and pin the hamburger to the header's right */
    .ms-header-inner .mobile-menu { flex: 0 0 100%; width: 100%; }
    .header-three .mean-container .mean-bar { position: static; float: none; }
    .header-three .mean-container a.meanmenu-reveal,
    .header-three .sticky-menu .mean-container a.meanmenu-reveal {
        position: absolute; right: 12px; top: 17px; margin-top: 0 !important;
        width: 22px; height: 22px; padding: 8px 9px;
        border: 1px solid var(--ms-navy); color: var(--ms-navy); border-radius: 3px;
    }
    .header-three .mean-container a.meanmenu-reveal span { border-top: 3px solid var(--ms-navy); }
    .header-three .mean-container .mean-nav { margin-top: 0; box-shadow: none; border-top: 1px solid #e9edf3; }
    .header-three .mean-container .mean-nav ul li a { color: var(--ms-navy); font-family: 'Roboto', sans-serif; font-size: 14px; }
    .header-three .mean-container .mean-nav ul li li a { text-transform: none; }
    .ms-hero.slider-area,
    .ms-hero .slider-active, .ms-hero .slick-list, .ms-hero .slick-track,
    .ms-hero .single-slider, .ms-hero .slider-content { height: 520px; }
    .ms-hero .slider-content h1 { font-size: 36px; }
    .ms-social-rail { display: none; }
    .ms-hero .slider-active .slick-arrow { width: 40px; height: 40px; line-height: 38px; font-size: 16px; }
    .ms-hero .slider-active .slick-prev, .ms-hero .slider-active:hover .slick-prev { left: 12px; }
    .ms-hero .slider-active .slick-next, .ms-hero .slider-active:hover .slick-next { right: 12px; }
    .ms-hero .slider-active .slick-dots { bottom: 80px; }
    .ms-quicklinks { margin-top: -60px; }
    .ms-quicklinks-box { grid-template-columns: repeat(2, minmax(0, 185px)); padding: 45px 30px; gap: 24px; }
}
@media (max-width: 767px) {
    .ms-topbar .container { justify-content: center; flex-wrap: wrap; gap: 6px 14px; padding-top: 6px; padding-bottom: 6px; }
    .ms-brand-title { font-size: 19px; }
    .ms-brand-sub { font-size: 12px; }
    .ms-hero.slider-area,
    .ms-hero .slider-active, .ms-hero .slick-list, .ms-hero .slick-track,
    .ms-hero .single-slider, .ms-hero .slider-content { height: 520px; }
    .ms-hero .slider-content { padding-bottom: 125px; }
    .ms-hero .slider-active .slick-dots { bottom: 72px; }
    .ms-hero .slider-content h1 { font-size: 30px; margin-bottom: 14px; }
    .ms-hero .slider-content p { font-size: 15px; margin-bottom: 20px; }
    .ms-btn-hero { padding: 12px 22px; font-size: 13px; }
    .ms-quicklinks-box { grid-template-columns: repeat(2, 1fr); padding: 30px 16px; gap: 16px; }
    .ms-ql-item { height: 130px; }
    .ms-ql-item i { font-size: 38px; margin-bottom: 8px; }
    .ms-ql-item strong { font-size: 15px; }
    .ms-ql-item small { font-size: 11px; }
}

/* ---------- 6. Footer ---------- */
.ms-footer {
    background: var(--ms-navy-dark);
    color: rgba(255, 255, 255, .78);
    font-size: 15px;
    line-height: 1.75;
}
.ms-footer a {
    color: rgba(255, 255, 255, .85);
    transition: .3s;
}
.ms-footer a:hover {
    color: var(--ms-yellow);
}
.ms-footer-main {
    padding: 70px 0 40px;
}
.ms-footer-widget {
    margin-bottom: 30px;
}
.ms-footer-title {
    position: relative;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 26px;
    padding-bottom: 12px;
}
.ms-footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 44px;
    height: 3px;
    border-radius: 2px;
    background: var(--ms-yellow);
}
.ms-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.ms-footer-brand img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 3px;
}
.ms-footer-brand-title {
    display: block;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    line-height: 1.1;
}
.ms-footer-brand-sub {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, .65);
    margin-top: 3px;
}
.ms-footer-about p {
    text-align: justify;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, .78);
}
.ms-footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.ms-footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
}
.ms-footer-social a:hover {
    background: var(--ms-yellow);
    border-color: var(--ms-yellow);
    color: var(--ms-navy);
    transform: translateY(-3px);
}
.ms-footer-embed {
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}
.ms-footer-embed iframe {
    display: block;
    width: 100%;
    height: 300px;
    border: 0;
}
.ms-footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ms-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}
.ms-footer-contact li strong {
    display: block;
    color: #fff;
    font-size: 15px;
    margin-bottom: 2px;
}
.ms-footer-ico {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ms-yellow);
    font-size: 16px;
}
.ms-footer-bottom {
    background: rgba(0, 0, 0, .28);
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 18px 0;
    font-size: 14px;
}
.ms-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.ms-footer-bottom a {
    color: #fff;
}
.ms-footer-credit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.ms-footer-credit img {
    height: 20px;
    vertical-align: middle;
}
@media (max-width: 991px) {
    .ms-footer-main { padding: 56px 0 26px; }
    .ms-footer-embed iframe { height: 280px; }
}
@media (max-width: 767px) {
    .ms-footer-bottom-inner { justify-content: center; text-align: center; }
}
