/*==================================================================
    SHIKSHA ACADEMY FOR LEARNING — PLAYFUL LIGHT THEME
    Logo palette: navy #1C1B4E · red #E31E24 · green #2F7A3A
    Loaded last on every page; overrides the legacy template styles.
==================================================================*/

:root {
    --navy: #1c1b4e;
    --navy-2: #3b3a99;
    --navy-soft: #ececfc;
    --red: #e31e24;
    --red-2: #ff5a5f;
    --red-dark: #b8141a;
    --red-soft: #ffeaeb;
    --green: #2f7a3a;
    --green-2: #45a352;
    --green-dark: #22592a;
    --green-soft: #e4f5e6;
    --sun: #f2a900;
    --sun-dark: #c78b00;
    --sun-soft: #fff4d6;

    --ink: #1c1b4e;
    --body: #4c4d6b;
    --muted: #7d7e99;
    --line: #e9e8f5;
    --bg: #ffffff;
    --tint: #f6f5ff;

    --head: 'Fredoka', 'Nunito', 'Segoe UI', sans-serif;
    --sans: 'Nunito', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    --r-sm: 14px;
    --r: 24px;
    --r-lg: 36px;
    --shadow-sm: 0 4px 14px -6px rgba(28, 27, 78, .18);
    --shadow: 0 18px 40px -18px rgba(28, 27, 78, .35);
    --bounce: cubic-bezier(.34, 1.56, .64, 1);
    --ease: cubic-bezier(.2, .7, .2, 1);

    /* wave dividers (fill colour baked in) */
    --wave-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0 50 C 180 95 360 5 540 40 S 900 95 1080 45 S 1320 10 1440 40 L1440 90 L0 90 Z'/%3E%3C/svg%3E");
    --wave-tint: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath fill='%23f6f5ff' d='M0 50 C 180 95 360 5 540 40 S 900 95 1080 45 S 1320 10 1440 40 L1440 90 L0 90 Z'/%3E%3C/svg%3E");
    --squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14'%3E%3Cpath d='M2 8 Q 12 0 22 8 T 42 8 T 62 8 T 82 8 T 102 8 T 118 8' fill='none' stroke='%23e31e24' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
    --squiggle-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14'%3E%3Cpath d='M2 8 Q 12 0 22 8 T 42 8 T 62 8 T 82 8 T 102 8 T 118 8' fill='none' stroke='%23ffd23f' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
    --dots: radial-gradient(circle, rgba(28, 27, 78, .16) 2px, transparent 2.5px) 0 0 / 22px 22px;
}

/*------------------------------------------------------------------
    BASE
-------------------------------------------------------------------*/
html { scroll-behavior: smooth; }

body,
body.host_version {
    font-family: var(--sans);
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--body);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--head);
    color: var(--navy);
    letter-spacing: 0;
}

p, .lead { color: var(--body); }

/* .message-box p,
.section-title p,
.timeline__content p,
.footer p,
.pricing-table-features p { text-align: left !important; } */

a { color: var(--red); transition: color .25s var(--ease); }
a:hover, a:focus { color: var(--red-dark); text-decoration: none; }

::selection { background: var(--red); color: #fff; }
img { max-width: 100%; }

hr { border: 0; height: 0; margin: 0; background: none; }

@keyframes floaty   { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
@keyframes blobMorph {
    0%,100% { border-radius: 58% 42% 46% 54% / 48% 56% 44% 52%; }
    50%     { border-radius: 42% 58% 60% 40% / 56% 42% 58% 44%; }
}
@keyframes wiggle { 0%,100% { transform: rotate(18deg) } 50% { transform: rotate(-8deg) } }

/*------------------------------------------------------------------
    HEADER
-------------------------------------------------------------------*/
.top-navbar { position: -webkit-sticky; position: sticky; top: 0; z-index: 1030; }

.top-navbar .bg-light,
.top-navbar .navbar-light.bg-light {
    background: rgba(255, 255, 255, .95) !important;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 6px 24px -14px rgba(28, 27, 78, .35);
    padding: 10px 0;
}
/* tri-colour ribbon on top of the header */
.top-navbar::before {
    content: '';
    display: block;
    height: 5px;
    background: linear-gradient(90deg, var(--red) 0 33.3%, var(--navy) 33.3% 66.6%, var(--green) 66.6% 100%);
}

.top-navbar .container-fluid { max-width: 1320px; padding-left: 24px; padding-right: 24px; }

.navbar-brand { padding: 0 !important; margin-right: 20px; }
.logoImg { width: 150px; height: auto; display: block; transition: transform .4s var(--bounce); }
.navbar-brand:hover .logoImg { transform: rotate(-3deg) scale(1.04); }

.top-navbar .navbar-light .navbar-nav { align-items: center; gap: 4px; }
.top-navbar .navbar-light .navbar-nav .nav-item { margin: 0; padding: 0; }
.top-navbar .navbar-light .navbar-nav .nav-item::after,
.top-navbar .navbar-light .navbar-nav .nav-item .nav-link::before,
.top-navbar .navbar-light .navbar-nav .nav-item .nav-link::after { display: none; }

.top-navbar .navbar-light .navbar-nav .nav-item .nav-link {
    font-family: var(--head);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .01em;
    text-transform: none;
    color: var(--navy);
    padding: 8px 15px;
    line-height: 1.5;
    border-radius: 999px;
    transition: background-color .25s var(--ease), color .25s var(--ease), transform .3s var(--bounce);
}
.top-navbar .navbar-light .navbar-nav .nav-item .nav-link:hover {
    background: var(--navy-soft);
    color: var(--navy);
    transform: translateY(-2px);
}
.top-navbar .navbar-light .navbar-nav .nav-item.active .nav-link {
    background: var(--red);
    color: #fff;
    box-shadow: 0 4px 0 var(--red-dark);
}

/* Contact as green CTA */
.top-navbar .navbar-light .navbar-nav .nav-item:last-child { margin-left: 10px; }
.top-navbar .navbar-light .navbar-nav .nav-item:last-child .nav-link {
    background: var(--green);
    color: #fff;
    padding: 9px 22px;
    box-shadow: 0 4px 0 var(--green-dark);
}
.top-navbar .navbar-light .navbar-nav .nav-item:last-child .nav-link:hover { background: var(--green-2); color: #fff; }
.top-navbar .navbar-light .navbar-nav .nav-item:last-child.active .nav-link { background: var(--red); box-shadow: 0 4px 0 var(--red-dark); }

.navbar-toggler {
    border: 0 !important;
    border-radius: 14px;
    padding: 12px 11px;
    background: var(--red);
    box-shadow: 0 4px 0 var(--red-dark);
}
.navbar-toggler .icon-bar { background: #fff !important; width: 22px; height: 3px; border-radius: 3px; display: block; }
.navbar-toggler .icon-bar + .icon-bar { margin-top: 4px; }
.navbar-toggler:hover { background: var(--navy); box-shadow: 0 4px 0 #0d0c2b; }
.navbar-toggler:hover .icon-bar { background: #fff !important; }

/*------------------------------------------------------------------
    BUTTONS — chunky, bouncy
-------------------------------------------------------------------*/
.hover-btn-new,
.message-box a.hover-btn-new,
.first-section .big-tagline a.hover-btn-new {
    display: inline-flex;
    align-items: center;
    background: var(--red);
    color: #fff;
    font-family: var(--head);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .01em;
    text-transform: none;
    line-height: 1;
    padding: 17px 30px;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 6px 0 var(--red-dark), 0 14px 24px -10px rgba(227, 30, 36, .6);
    transition: transform .3s var(--bounce), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.hover-btn-new::before,
.hover-btn-new::after,
.message-box a.hover-btn-new::before,
.message-box a.hover-btn-new::after,
.big-tagline a.hover-btn-new::before,
.big-tagline a.hover-btn-new::after { display: none !important; }

.hover-btn-new span { color: inherit !important; }
.hover-btn-new span::after {
    content: '\2192';
    display: inline-block;
    margin-left: 10px;
    transition: transform .3s var(--bounce);
}
.hover-btn-new:hover,
.message-box a.hover-btn-new:hover,
.first-section .big-tagline a.hover-btn-new:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 9px 0 var(--red-dark), 0 20px 30px -12px rgba(227, 30, 36, .6);
}
.hover-btn-new:hover span::after { transform: translateX(5px); }
.hover-btn-new:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--red-dark); }

/*------------------------------------------------------------------
    HERO SLIDER
-------------------------------------------------------------------*/
#carouselExampleControls.box-slider {
    height: calc(100vh - 100px);
    min-height: 580px;
    max-height: 860px;
    background: var(--navy);
    position: relative;
}
/* wave at bottom of hero */
#carouselExampleControls.box-slider::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 90px;
    background: var(--wave-white) center bottom / 100% 100% no-repeat;
    z-index: 5;
    pointer-events: none;
}

.box-slider .carousel-inner,
.box-slider .carousel-item { height: 100%; }
.box-slider .first-section {
    display: table;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}
.first-section::before {
    background: linear-gradient(90deg, rgba(28, 27, 78, .55) 0%, rgba(28, 27, 78, .15) 60%, rgba(28, 27, 78, 0) 100%);
}

.first-section .text-right,
.first-section .text-center,
.first-section .text-left { text-align: left !important; }

/* text in a frosted-glass card */
.first-section .big-tagline {
    position: relative;
    max-width: 600px;
    margin-bottom: 60px;
    padding: 46px 46px 38px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, .08) 100%);
    border: 1.5px solid rgba(255, 255, 255, .38);
    border-radius: var(--r-lg);
    -webkit-backdrop-filter: blur(1px) saturate(160%);
    backdrop-filter: blur(1px) saturate(160%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 24px 50px -20px rgba(13, 12, 43, .55);
}
/* fallback where backdrop blur isn't supported: tint darker so text stays readable */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .first-section .big-tagline { background: rgba(28, 27, 78, .72); }
}
/* confetti around the card */
.first-section .big-tagline::before {
    content: '';
    position: absolute;
    top: -22px; right: 40px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: -90px 4px 0 -12px #ffd23f, 34px 60px 0 -14px var(--navy-2);
    animation: floaty 4s ease-in-out infinite;
}
.first-section .big-tagline::after {
    content: '';
    position: absolute;
    left: -26px; bottom: 50px;
    width: 52px; height: 52px;
    border-radius: 16px;
    background: var(--navy);
    transform: rotate(18deg);
    animation: wiggle 6s ease-in-out infinite;
}

.first-section h2 {
    font-family: var(--head);
    font-size: clamp(34px, 4.2vw, 56px);
    font-weight: 700;
    line-height: 1.08;
    color: #fff;
    text-shadow: 0 2px 14px rgba(13, 12, 43, .35);
    text-transform: none;
    padding: 0 0 18px;
}
.first-section h2 strong { color: #ffd23f; font-weight: 700; }

.first-section .lead {
    text-align: left !important;
    font-family: var(--sans);
    font-size: clamp(16px, 1.3vw, 18.5px);
    font-weight: 600;
    line-height: 1.65;
    color: rgba(255, 255, 255, .92);
    text-shadow: 0 1px 8px rgba(13, 12, 43, .35);
    padding: 0 0 30px;
}

.first-section .big-tagline a.hover-btn-new { margin: 0 12px 12px 0; }
/* second button = navy */
.first-section .big-tagline a.hover-btn-new + a.hover-btn-new {
    background: var(--navy);
    box-shadow: 0 6px 0 #0d0c2b, 0 14px 24px -10px rgba(28, 27, 78, .6);
}
.first-section .big-tagline a.hover-btn-new + a.hover-btn-new:hover {
    box-shadow: 0 9px 0 #0d0c2b, 0 20px 30px -12px rgba(28, 27, 78, .6);
}

.box-slider .carousel-indicators { bottom: 92px; margin-bottom: 0; z-index: 6; }
.box-slider .carousel-indicators li {
    width: 14px; height: 14px;
    border: 3px solid #fff;
    border-radius: 50%;
    margin: 0 5px;
    background: transparent;
    opacity: 1;
    transition: all .3s var(--bounce);
}
.box-slider .carousel-indicators li.active { width: 36px; border-radius: 12px; background: #fff; }

.box-slider .carousel-control-prev,
.box-slider .carousel-control-next {
    width: 56px; height: 56px;
    top: 50%; bottom: auto;
    transform: translateY(-50%);
    margin: 0 24px;
    border-radius: 50%;
    background: #fff !important;
    opacity: 1;
    box-shadow: 0 5px 0 rgba(0, 0, 0, .18);
    transition: transform .3s var(--bounce), background-color .3s;
    z-index: 6;
}
.box-slider .carousel-control-prev:hover,
.box-slider .carousel-control-next:hover { background: #ffd23f !important; transform: translateY(-50%) scale(1.1); }
.box-slider .carousel-control-prev span.fa,
.box-slider .carousel-control-next span.fa {
    position: static;
    margin: 0;
    width: 100%; height: 100%;
    font-size: 28px;
    line-height: 56px;
    color: var(--navy);
    background: none;
}

/*------------------------------------------------------------------
    INNER PAGE TITLE BAND
-------------------------------------------------------------------*/
.all-title-box {
    position: relative;
    overflow: hidden;
    min-height: 0;
    padding: 80px 0 130px;
    background:
        radial-gradient(circle at 12% 30%, rgba(255, 255, 255, .12) 0 70px, transparent 71px),
        radial-gradient(circle at 90% 70%, rgba(255, 255, 255, .09) 0 120px, transparent 121px),
        radial-gradient(circle at 70% 10%, rgba(227, 30, 36, .35) 0 40px, transparent 41px),
        linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%) !important;
}
.all-title-box::before {
    content: '';
    position: absolute;
    top: 40px; left: 18%;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--red-2);
    box-shadow:
        58vw 40px 0 -4px #ffd23f,
        64vw -6px 0 2px var(--green-2),
        110px 110px 0 -8px #fff,
        46vw 150px 0 -6px var(--red-2),
        -10vw 120px 0 -2px #ffd23f;
    animation: floaty 5s ease-in-out infinite;
}
.all-title-box::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 80px;
    background: var(--wave-white) center bottom / 100% 100% no-repeat;
}
.all-title-box:has(+ .section.lb)::after { background-image: var(--wave-tint); }

.all-title-box h1 {
    position: relative;
    z-index: 1;
    display: inline-block;
    font-family: var(--head);
    font-size: clamp(36px, 5vw, 62px);
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    padding: 0 0 28px;
    margin: 0;
    background: var(--squiggle-white) center bottom / 120px 14px no-repeat;
    text-shadow: 0 4px 0 rgba(0, 0, 0, .15);
}
span.m_1 { display: none; }

/*------------------------------------------------------------------
    SECTIONS
-------------------------------------------------------------------*/
.section { padding: 100px 0; position: relative; }
.section.lb { background: var(--tint); }

/* sprinkle of soft shapes on white sections */
.section.wb {
    background:
        radial-gradient(circle at 3% 10%, var(--red-soft) 0 60px, transparent 61px),
        radial-gradient(circle at 98% 50%, var(--green-soft) 0 90px, transparent 91px),
        radial-gradient(circle at 6% 94%, var(--navy-soft) 0 50px, transparent 51px),
        #fff;
}

/* wavy edges on tinted home sections */
.section.wb ~ .section.lb { padding: 150px 0; }
.section.wb ~ .section.lb::before,
.section.wb ~ .section.lb::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 70px;
    background: var(--wave-white) center / 100% 100% no-repeat;
    pointer-events: none;
    z-index: 1;
}
.section.wb ~ .section.lb::before { top: -1px; transform: scaleY(-1); }
.section.wb ~ .section.lb::after { bottom: -1px; }

.container { max-width: 1200px; }
.section-title { margin-bottom: 60px; }

.section-title h3 {
    font-family: var(--head);
    font-size: clamp(32px, 3.6vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--navy);
    margin: 0 0 22px;
    padding-bottom: 24px;
    text-transform: none;
    background: var(--squiggle) center bottom / 110px 14px no-repeat;
}
/* three coloured dots above centred headings */
.section-title.text-center > h3::before,
.section-title.row.text-center h3::before {
    content: '';
    display: block;
    width: 12px; height: 12px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--navy);
    box-shadow: -22px 0 0 var(--red), 22px 0 0 var(--green);
}

.section-title p,
.section-title .lead { color: var(--body); font-size: 17px; line-height: 1.8; font-weight: 400; }
.section-title.text-center p.lead,
.section-title.row.text-center p.lead { font-size: 19px; font-weight: 600; color: var(--body); }

/*------------------------------------------------------------------
    ABOUT / MESSAGE BOXES
-------------------------------------------------------------------*/
#overviews .row.align-items-center + .row.align-items-center { margin-top: 70px; }
.message-box { padding: 0 12px; }

.message-box h4 {
    display: inline-block;
    font-family: var(--head);
    font-size: 15px;
    font-weight: 600;
    text-transform: none;
    color: var(--green);
    background: var(--green-soft);
    padding: 6px 16px;
    border-radius: 999px;
    margin: 0 0 16px;
}
.message-box h2 {
    font-family: var(--head);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.18;
    color: var(--navy);
    text-transform: none;
    margin: 0 0 22px;
    padding: 0;
}
.message-box h2::after {
    content: '';
    display: block;
    width: 90px; height: 12px;
    margin-top: 14px;
    background: var(--squiggle) left center / 90px 12px no-repeat;
}
.message-box p,
.message-box .lead { font-size: 16.5px; line-height: 1.85; color: var(--body); margin-bottom: 18px; }
.message-box a.hover-btn-new { margin-top: 14px; }

/* blob photos */
.post-media {
    position: relative;
    padding: 30px;
    margin: 30px 0;
}
.post-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--red-soft);
    border-radius: 58% 42% 46% 54% / 48% 56% 44% 52%;
    animation: blobMorph 12s ease-in-out infinite;
}
.post-media::after {
    content: '';
    position: absolute;
    right: 0; bottom: 4px;
    width: 120px; height: 120px;
    background: var(--dots);
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
}
.row.align-items-center + .row.align-items-center .post-media::before { background: var(--green-soft); }

.post-media img,
.post-media .img-rounded {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
    border: 8px solid #fff;
    box-shadow: var(--shadow);
    animation: blobMorph 14s ease-in-out infinite reverse;
}

/*------------------------------------------------------------------
    HISTORY — colourful tilted cards
-------------------------------------------------------------------*/
.page-section .timeline,
.page-section .timeline--horizontal { padding: 0; overflow: visible; white-space: normal; font-size: 16px; margin-top: 30px; }
.page-section .timeline::before { display: none; }
.page-section .timeline__wrap { overflow: visible; }

.page-section .timeline__items {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
    padding-top: 36px;
    position: relative;
    transform: none !important;
    width: auto !important;
    height: auto !important;
}
.page-section .timeline__item {
    width: auto !important;
    height: auto !important;
    padding: 0;
    left: 0;
    opacity: 1;
    display: block;
}
.page-section .timeline__item::after { display: none; }

.page-section .timeline__content,
.page-section .timeline__content[class*="img-bg-"] {
    --c: var(--red);
    --c-soft: var(--red-soft);
    position: relative;
    height: 100%;
    margin: 0;
    padding: 0 24px 28px;
    text-align: center;
    background: #fff !important;
    border: 3px solid var(--c-soft);
    border-radius: var(--r);
    box-shadow: 0 8px 0 var(--c-soft);
    transform: rotate(-1.5deg);
    transition: transform .4s var(--bounce);
}
.page-section .timeline__item:nth-child(2) .timeline__content { --c: var(--navy-2); --c-soft: var(--navy-soft); transform: rotate(1.5deg); }
.page-section .timeline__item:nth-child(3) .timeline__content { --c: var(--green); --c-soft: var(--green-soft); }
.page-section .timeline__item:nth-child(4) .timeline__content { --c: var(--sun); --c-soft: var(--sun-soft); transform: rotate(1.5deg); }
.page-section .timeline__item:nth-child(5) .timeline__content { --c: var(--red); --c-soft: var(--red-soft); }
.page-section .timeline__content::before,
.page-section .timeline__content::after { display: none; }
.page-section .timeline__item .timeline__content:hover { transform: rotate(0) translateY(-8px) scale(1.03); }

.page-section .timeline__content h2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px; height: 66px;
    margin: -36px 0 16px;
    border-radius: 50%;
    background: var(--c);
    border: 5px solid #fff;
    box-shadow: 0 5px 0 var(--c-soft);
    font-family: var(--head);
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    transition: transform .4s var(--bounce);
}
.page-section .timeline__content:hover h2 { transform: rotate(-12deg) scale(1.1); }
.page-section .timeline__content p {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.7;
    color: var(--body);
    text-align: center !important;
    margin: 0;
}
.timeline-nav-button { display: none !important; }

/*------------------------------------------------------------------
    LONG-FORM COPY (home) — colourful note cards
-------------------------------------------------------------------*/
.seo-copy .section-title {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 28px;
    margin: 0;
    text-align: left !important;
}
.seo-copy .section-title br { display: none; }
.seo-copy .section-title p {
    position: relative;
    margin: 0;
    padding: 38px 36px 32px;
    font-size: 16px;
    line-height: 1.85;
    color: var(--body);
    border-radius: var(--r);
    background: var(--red-soft);
    transition: transform .4s var(--bounce);
}
.seo-copy .section-title p:nth-of-type(2) { background: var(--navy-soft); }
.seo-copy .section-title p:nth-of-type(3) { background: var(--green-soft); }
.seo-copy .section-title p:nth-of-type(4) { background: var(--sun-soft); }
.seo-copy .section-title p:hover { transform: translateY(-6px) rotate(-.5deg); }
/* pin dot */
.seo-copy .section-title p::before {
    content: '';
    position: absolute;
    top: -11px; left: 36px;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--red);
    border: 5px solid #fff;
    box-shadow: 0 3px 0 rgba(0, 0, 0, .08);
}
.seo-copy .section-title p:nth-of-type(2)::before { background: var(--navy-2); }
.seo-copy .section-title p:nth-of-type(3)::before { background: var(--green); }
.seo-copy .section-title p:nth-of-type(4)::before { background: var(--sun); }

.seo-copy .section-title p:first-child {
    grid-column: 1 / -1;
    font-family: var(--head);
    font-size: clamp(19px, 1.9vw, 23px);
    font-weight: 500;
    line-height: 1.6;
    color: var(--navy);
    padding: 46px 48px 40px;
}

/*------------------------------------------------------------------
    ADMISSION POLICY (home)
-------------------------------------------------------------------*/
#plan .section-title { max-width: 880px; margin: 0 auto 40px; position: relative; z-index: 2; }
#plan .section-title br { display: none; }
#plan .section-title p u {
    text-decoration: none;
    display: inline-block;
    margin-top: 22px;
    padding: 14px 24px;
    border-radius: var(--r-sm);
    background: var(--sun-soft);
    border: 2px dashed var(--sun);
    color: #7a5600;
    font-size: 15.5px;
    line-height: 1.6;
}

#plan .message-box { padding: 0; }
.nav-pills {
    display: flex;
    border: 0;
    padding: 7px;
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    max-width: 440px;
    margin: 0 auto;
}
.nav-pills > li { width: 50%; padding: 0; float: none; }
.nav-pills > li > a,
#plan .message-box .nav-pills > li > a {
    display: block;
    text-align: center;
    padding: 12px 10px;
    border-radius: 999px;
    background: transparent;
    color: var(--navy);
    font-family: var(--head);
    font-size: 17px;
    font-weight: 600;
    text-transform: none;
    transition: background-color .3s var(--ease), color .3s var(--ease);
}
.nav-pills > li > a:hover { background: var(--navy-soft); color: var(--navy); }
.nav-pills > li > a.active,
.nav-pills > li > a.active:hover,
#plan .message-box .nav-pills > li > a.active {
    background: var(--red);
    color: #fff;
    box-shadow: 0 4px 0 var(--red-dark);
}
hr.invis { margin: 30px 0; }

.pricing-table,
.pricing-table.pricing-table-highlighted {
    --c: var(--red);
    --c-dark: var(--red-dark);
    --c-soft: var(--red-soft);
    height: calc(100% - 30px);
    margin: 0 0 30px;
    background: #fff;
    border: 0;
    border-radius: var(--r-lg);
    box-shadow: 0 10px 0 var(--c-soft), var(--shadow-sm);
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform .4s var(--bounce);
}
.tab-pane .row > [class*="col-"]:nth-child(2) .pricing-table { --c: var(--navy-2); --c-dark: var(--navy); --c-soft: var(--navy-soft); }
.tab-pane .row > [class*="col-"]:nth-child(3) .pricing-table { --c: var(--green); --c-dark: var(--green-dark); --c-soft: var(--green-soft); }
.pricing-table:hover { transform: translateY(-8px) rotate(-.6deg); }

.pricing-table-header,
.pricing-table-header.grd1 {
    position: relative;
    padding: 36px 34px 52px;
    background: var(--c) !important;
    border-radius: 0;
    overflow: hidden;
}
.pricing-table-header::before {
    content: '';
    position: absolute;
    right: -30px; top: -30px;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    box-shadow: -70px 80px 0 -36px rgba(255, 255, 255, .14);
}
.pricing-table-header::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 26px;
    background: var(--wave-white) center bottom / 100% 100% no-repeat;
}
.pricing-table-highlighted .pricing-table-header h2,
.pricing-table-header h2 {
    position: relative;
    font-family: var(--head);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
    color: #fff !important;
    text-transform: capitalize;
    margin: 0;
}
.pricing-table-highlighted .pricing-table-header h3,
.pricing-table-header h3 {
    position: relative;
    display: inline-block;
    font-family: var(--head);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--c) !important;
    background: #fff;
    padding: 4px 14px;
    border-radius: 999px;
    text-transform: uppercase;
    margin: 12px 0 0;
}
.pricing-table-space { display: none; }

.pricing-table-features {
    flex: 1;
    margin: 0;
    padding: 14px 34px 24px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.65;
    color: var(--body);
}
.pricing-table-features p {
    position: relative;
    margin: 0;
    padding: 10px 0 10px 34px;
}
.pricing-table-features p::before {
    content: '\2713';
    position: absolute;
    left: 0; top: 11px;
    width: 24px; height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    background: var(--c-soft);
    color: var(--c);
    font-size: 12px;
    font-weight: 800;
}

.pricing-table-sign-up { padding: 0 34px 34px; margin: 0 !important; }
.pricing-table-sign-up .btn,
.pricing-table-sign-up .btn-outline-dark {
    padding: 14px 28px;
    border: 0;
    border-radius: 999px;
    background: var(--c);
    color: #fff;
    font-family: var(--head);
    font-size: 17px;
    font-weight: 600;
    box-shadow: 0 5px 0 var(--c-dark);
    transition: transform .3s var(--bounce);
}
.pricing-table-sign-up .btn span::after { content: '\2197'; margin-left: 10px; }
.pricing-table-sign-up .btn:hover { background: var(--c); color: #fff; transform: translateY(-3px); }

/*------------------------------------------------------------------
    INNER PAGES — colourful content cards
-------------------------------------------------------------------*/
#overviews.section.lb {
    background:
        radial-gradient(circle at 97% 6%, var(--red-soft) 0 80px, transparent 81px),
        radial-gradient(circle at 2% 55%, var(--green-soft) 0 70px, transparent 71px),
        var(--tint);
}

#overviews .section-title.row:not(.text-center) { margin: 0; display: block; }

#overviews .section-title.row:not(.text-center) > [class*="col-"] {
    --c: var(--red);
    --c-soft: var(--red-soft);
    position: relative;
    max-width: 100%;
    overflow: hidden;
    background: #fff;
    border: 0;
    border-radius: var(--r-lg);
    box-shadow: 0 10px 0 var(--c-soft), var(--shadow-sm);
    padding: 52px 56px 48px;
    margin: 0 0 40px !important;
    transition: transform .4s var(--bounce);
}
#overviews .section-title.row:not(.text-center) > [class*="col-"]:nth-of-type(3n+2) { --c: var(--navy-2); --c-soft: var(--navy-soft); }
#overviews .section-title.row:not(.text-center) > [class*="col-"]:nth-of-type(3n+3) { --c: var(--green); --c-soft: var(--green-soft); }
#overviews .section-title.row:not(.text-center) > [class*="col-"]:nth-of-type(4n+4) { --c: var(--sun); --c-soft: var(--sun-soft); }
#overviews .section-title.row:not(.text-center) > [class*="col-"]:hover { transform: translateY(-4px); }

/* corner bubble decoration */
#overviews .section-title.row:not(.text-center) > [class*="col-"]::before {
    content: '';
    position: absolute;
    right: -50px; top: -50px;
    width: 160px; height: 160px;
    border-radius: 50%;
    background: var(--c-soft);
    box-shadow: -80px 50px 0 -62px var(--c);
    pointer-events: none;
}

#overviews .section-title.row:not(.text-center) > hr { display: none; }
#overviews .section-title.row:not(.text-center) br { display: none; }

#overviews .section-title.row:not(.text-center) > [class*="col-"] > h3:not(.sub-heading) {
    position: relative;
    display: inline-block;
    font-family: var(--head);
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    text-transform: capitalize;
    color: var(--c);
    margin: 0 0 22px;
    padding: 0 0 16px;
    background: none;
}
#overviews .section-title.row:not(.text-center) > [class*="col-"] > h3:not(.sub-heading)::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 70px; height: 6px;
    border-radius: 6px;
    background: var(--c-soft);
}

#overviews .section-title.row:not(.text-center) p,
#overviews .section-title.row:not(.text-center) .lead {
    position: relative;
    font-size: 16.5px;
    line-height: 1.85;
    color: var(--body);
    margin: 0 0 16px;
}
#overviews .section-title.row:not(.text-center) p:last-child { margin-bottom: 0; }

/* bold sub-labels (Campus facilities) as coloured chips */
#overviews .section-title.row:not(.text-center) p > b:only-child {
    display: inline-block;
    margin-top: 14px;
    font-family: var(--head);
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    padding: 6px 18px;
    border-radius: 999px;
    background: var(--c);
    box-shadow: 0 4px 0 rgba(0, 0, 0, .12);
}

#overviews p.lead u { text-decoration: none; }
#overviews p.lead u b {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 999px;
    background: var(--sun-soft);
    border: 2px dashed var(--sun);
    color: #7a5600;
    font-weight: 700;
}

#overviews .sub-heading,
h3.sub-heading {
    font-family: var(--head);
    font-size: 21px !important;
    font-weight: 600;
    text-transform: none !important;
    color: var(--navy) !important;
    margin: 28px 0 14px !important;
    padding: 0 !important;
    background: none !important;
}

#overviews .section-title.row .row > .col-md-6 { margin-bottom: 20px; }
#overviews .section-title.row .row > .col-md-6 > .sub-heading { margin-top: 0 !important; }

#overviews ul.lead {
    list-style: none;
    padding: 22px 26px;
    margin: 0;
    border-radius: var(--r);
    background: var(--c-soft, var(--tint));
    font-size: 16px;
    font-weight: 600;
}
#overviews .row > .col-md-6:nth-child(2) ul.lead { background: var(--green-soft); }
#overviews ul.lead li {
    position: relative;
    padding: 8px 0 8px 36px;
    color: var(--body);
}
#overviews ul.lead li::before {
    content: '\f017';
    font-family: 'FontAwesome';
    position: absolute;
    left: 0; top: 9px;
    width: 26px; height: 26px;
    line-height: 26px;
    text-align: center;
    border-radius: 50%;
    background: #fff;
    color: var(--c, var(--red));
    font-size: 14px;
}

/* admission table */
#overviews table.table {
    margin: 22px 0 8px;
    border: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
    font-size: 16px;
}
#overviews table.table th,
#overviews table.table td {
    border: 0;
    padding: 18px 24px;
    vertical-align: middle;
    line-height: 1.7;
}
#overviews table.table th {
    width: 30%;
    background: var(--red);
    color: #fff;
    font-family: var(--head);
    font-weight: 600;
    font-size: 17px;
    border-radius: var(--r-sm) 0 0 var(--r-sm);
}
#overviews table.table tr:nth-child(2) th { background: var(--navy-2); }
#overviews table.table tr:nth-child(3) th { background: var(--green); }
#overviews table.table tr:nth-child(4) th { background: var(--sun); }
#overviews table.table tr:nth-child(5) th { background: var(--navy); }
#overviews table.table td {
    background: var(--tint);
    color: var(--body);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/*------------------------------------------------------------------
    ABOUT — Admissions / Vision / History cards
-------------------------------------------------------------------*/
.hmv-box { padding: 100px 0; background: #fff; }
.hmv-box .row > [class*="col-"] { margin-bottom: 30px; }

.inner-hmv {
    --c: var(--red);
    --c-dark: var(--red-dark);
    position: relative;
    height: 100%;
    overflow: hidden;
    padding: 44px 36px 40px;
    background: var(--c);
    border-radius: var(--r-lg);
    box-shadow: 0 10px 0 var(--c-dark);
    text-align: left;
    transition: transform .4s var(--bounce);
}
.hmv-box .row > [class*="col-"]:nth-child(2) .inner-hmv { --c: var(--navy-2); --c-dark: var(--navy); }
.hmv-box .row > [class*="col-"]:nth-child(3) .inner-hmv { --c: var(--green); --c-dark: var(--green-dark); }
.inner-hmv:hover { transform: translateY(-8px) rotate(-1deg); }

.icon-box-hmv,
.inner-hmv:hover .icon-box-hmv {
    width: 72px; height: 72px;
    line-height: 72px;
    margin: 0 0 24px;
    border-radius: 24px;
    background: #fff;
    text-align: center;
    transform: rotate(-8deg);
    transition: transform .4s var(--bounce);
}
.inner-hmv:hover .icon-box-hmv { transform: rotate(8deg) scale(1.08); }
.icon-box-hmv i,
.icon-box-hmv i::before,
.inner-hmv:hover .icon-box-hmv i,
.inner-hmv:hover .icon-box-hmv i::before {
    font-size: 32px !important;
    margin: 0 !important;
    color: var(--c) !important;
}

.inner-hmv h3,
.inner-hmv:hover h3 {
    font-family: var(--head);
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    padding: 0;
    text-transform: none;
}
.inner-hmv p { font-size: 16px; font-weight: 600; line-height: 1.8; color: rgba(255, 255, 255, .92); margin: 0; position: relative; z-index: 1; }

.tr-pa {
    position: absolute;
    right: 14px; top: -16px;
    font-family: var(--head);
    font-size: 170px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    opacity: .14;
    transition: transform .4s var(--bounce);
}
.inner-hmv:hover .tr-pa { color: #fff; opacity: .22; transform: rotate(10deg); }

/*------------------------------------------------------------------
    GALLERY — year tiles
-------------------------------------------------------------------*/
.annual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    padding-top: 60px;
    padding-bottom: 110px;
}
.annual-box { margin: 0; }
.annual-link {
    --c: var(--red);
    --c-dark: var(--red-dark);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 250px;
    margin: 0;
    padding: 30px;
    overflow: hidden;
    border: 0;
    border-radius: var(--r-lg);
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .18) 0 90px, transparent 91px),
        radial-gradient(circle at 0% 100%, rgba(255, 255, 255, .10) 0 70px, transparent 71px),
        var(--c);
    color: #fff;
    font-family: var(--head);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 10px 0 var(--c-dark);
    transition: transform .4s var(--bounce);
}
.annual-box:nth-child(2) .annual-link { --c: var(--navy-2); --c-dark: var(--navy); }
.annual-box:nth-child(3) .annual-link { --c: var(--green); --c-dark: var(--green-dark); }
.annual-box:nth-child(4) .annual-link { --c: var(--sun); --c-dark: var(--sun-dark); }
.annual-box:nth-child(odd) .annual-link { transform: rotate(-1.5deg); }
.annual-box:nth-child(even) .annual-link { transform: rotate(1.5deg); }

.annual-link::before {
    content: '\f030';
    font-family: 'FontAwesome';
    position: absolute;
    top: 28px; left: 30px;
    width: 58px; height: 58px;
    line-height: 58px;
    text-align: center;
    border-radius: 18px;
    background: #fff;
    color: var(--c);
    font-size: 24px;
    transform: rotate(-8deg);
    transition: transform .4s var(--bounce);
}
.annual-link::after {
    content: '\2192';
    position: absolute;
    right: 26px; bottom: 26px;
    width: 46px; height: 46px;
    line-height: 44px;
    text-align: center;
    border-radius: 50%;
    background: #fff;
    color: var(--c);
    font-size: 22px;
    transition: transform .4s var(--bounce);
}
.annual-link span { max-width: 70%; }
.annual-box .annual-link:hover { color: #fff; opacity: 1; transform: rotate(0) translateY(-10px) scale(1.03); }
.annual-link:hover::before { transform: rotate(8deg) scale(1.1); }
.annual-link:hover::after { transform: rotate(-45deg); }

/*------------------------------------------------------------------
    ANNUAL YEAR — polaroid photos & videos
-------------------------------------------------------------------*/
.gallerySection {
    --c: var(--red);
    --c-soft: var(--red-soft);
    width: 100%;
    margin: 0 0 36px;
    padding: 40px 44px 48px;
    background: #fff;
    border-radius: var(--r-lg);
    box-shadow: 0 10px 0 var(--c-soft), var(--shadow-sm);
}
.gallerySection:nth-of-type(4n+2) { --c: var(--navy-2); --c-soft: var(--navy-soft); }
.gallerySection:nth-of-type(4n+3) { --c: var(--green); --c-soft: var(--green-soft); }
.gallerySection:nth-of-type(4n+4) { --c: var(--sun); --c-soft: var(--sun-soft); }

.gallerySection:not(:has(img)) {
    background: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 24px;
}

.gallery-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--head);
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 600;
    color: #fff;
    background: var(--c);
    text-align: left;
    border: 0;
    margin: 0 0 30px;
    padding: 8px 24px 8px 10px;
    border-radius: 999px;
    box-shadow: 0 5px 0 rgba(0, 0, 0, .12);
}
.gallery-title::before {
    content: '\f030';
    font-family: 'FontAwesome';
    flex: none;
    width: 38px; height: 38px;
    line-height: 38px;
    text-align: center;
    border-radius: 50%;
    background: #fff;
    color: var(--c);
    font-size: 15px;
}

.flexImg,
.flexImg1 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin: 0;
}
.flexImg img,
.flexImg1 img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    padding: 8px 8px 26px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 10px 24px -10px rgba(28, 27, 78, .45);
    transform: rotate(-2deg);
    transition: transform .4s var(--bounce), box-shadow .3s var(--ease);
}
.flexImg1 img { aspect-ratio: 3 / 4; }
.flexImg img:nth-child(even),
.flexImg1 img:nth-child(even) { transform: rotate(2deg); }
.flexImg img:nth-child(3n),
.flexImg1 img:nth-child(3n) { transform: rotate(-1deg); }
.flexImg img:hover,
.flexImg1 img:hover {
    transform: rotate(0) scale(1.06);
    box-shadow: 0 22px 40px -14px rgba(28, 27, 78, .5);
    position: relative;
    z-index: 2;
}

/* videos */
.video-row { margin: 0 -14px; width: calc(100% + 28px); }
.video-row > div,
.video-row div { padding: 0 14px; margin-bottom: 34px; text-align: left; }
.video-row > [class*="col-"] { display: flex; flex-direction: column; }
.video-row > [class*="col-"] > hr { display: none; }
.video-row > [class*="col-"] > h2,
.video-row div h2 {
    order: 2;
    align-self: flex-start;
    font-family: var(--head);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--navy);
    text-align: left;
    margin: 16px 0 0;
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--navy-soft);
}
.video-row > [class*="col-"]:nth-child(3n+1) > h2 { background: var(--red-soft); color: var(--red-dark); }
.video-row > [class*="col-"]:nth-child(3n+3) > h2 { background: var(--green-soft); color: var(--green-dark); }
.video-row iframe {
    order: 1;
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    border: 6px solid #fff;
    border-radius: var(--r);
    background: var(--navy);
    box-shadow: 0 8px 0 var(--navy-soft), var(--shadow-sm);
}

/*------------------------------------------------------------------
    CONTACT
-------------------------------------------------------------------*/
#contact .section-title { margin-bottom: 50px; }

.contact_form {
    height: calc(100% - 30px);
    padding: 44px;
    margin: 0 0 30px;
    background: #fff;
    border-radius: var(--r-lg);
    box-shadow: 14px 14px 0 var(--red-soft), var(--shadow);
}
.contact_form .row-fluid > [class*="col-"] { margin-bottom: 18px; }
.contact_form .form-control {
    height: 58px;
    padding: 14px 24px;
    margin: 0;
    background: var(--tint);
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    box-shadow: none;
    transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.contact_form textarea.form-control { height: auto; min-height: 170px; border-radius: var(--r); resize: vertical; }
.contact_form .form-control:focus { background: #fff; border-color: var(--navy-2); box-shadow: 0 0 0 5px var(--navy-soft); outline: 0; }
.contact_form .form-control::placeholder { color: var(--muted); }

.contact_form .pd { width: 100%; padding: 6px 15px 0; }
.contact_form .btn,
.contact_form .btn.grd1 {
    height: 58px;
    border: 0;
    border-radius: 999px;
    background: var(--red) !important;
    color: #fff;
    font-family: var(--head);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: .04em;
    box-shadow: 0 6px 0 var(--red-dark);
    transition: transform .3s var(--bounce);
}
.contact_form .btn:hover { transform: translateY(-3px); color: #fff; }

.map-box {
    height: calc(100% - 30px);
    min-height: 420px;
    overflow: hidden;
    border-radius: var(--r-lg);
    border: 8px solid #fff;
    box-shadow: -14px 14px 0 var(--green-soft), var(--shadow);
    margin-bottom: 30px;
}
.map-box iframe { display: block; width: 100%; height: 100%; min-height: 404px; }

/* thank-you */
.section.wb > .container > .section-title.text-center > h4 {
    font-family: var(--head);
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 600;
    line-height: 1.5;
    color: var(--navy);
    max-width: 640px;
    margin: 20px auto;
    padding: 50px 40px;
    border-radius: var(--r-lg);
    background: var(--green-soft);
    box-shadow: 0 10px 0 #cfe9d2;
}

/*------------------------------------------------------------------
    FOOTER
-------------------------------------------------------------------*/
.footer {
    position: relative;
    margin-top: 70px;
    padding: 70px 0 40px;
    background:
        radial-gradient(circle at 94% 20%, rgba(227, 30, 36, .08) 0 90px, transparent 91px),
        radial-gradient(circle at 4% 90%, rgba(47, 122, 58, .08) 0 80px, transparent 81px),
        var(--tint);
}
.footer::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: -69px;
    height: 70px;
    background: var(--wave-tint) center bottom / 100% 100% no-repeat;
}
.section.lb ~ .footer { margin-top: 0; }
.section.lb ~ .footer::before { display: none; }
.section.lb ~ .footer { border-top: 3px dashed #dcdaf2; }

.footer .widget { margin-bottom: 36px; }
.footer .widget-title { margin-bottom: 20px; }
.footer .widget-title h3 {
    font-family: var(--head);
    font-size: 24px;
    font-weight: 700;
    text-transform: none;
    color: var(--navy);
    margin: 0;
    padding: 0 0 18px;
    background: var(--squiggle) left bottom / 70px 10px no-repeat;
}
.footer .widget-title h3::before,
.footer .widget-title h3::after { display: none; }

.footer p { font-size: 15.5px; line-height: 1.8; color: var(--body); margin-bottom: 16px; }

.footer .footer-links { padding: 0; margin: 0; list-style: none; }
.footer .footer-links .row { margin: 0 -8px; }
.footer .footer-links .row > [class*="col-"] { padding: 0 8px; }
.footer .footer-links li { list-style: none; margin: 0 0 6px; padding: 0; border: 0; }
.footer .footer-links li a {
    position: relative;
    display: inline-block;
    padding: 3px 0 3px 18px;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--body);
    word-break: break-word;
    transition: color .25s var(--ease), transform .3s var(--bounce);
}
.footer .footer-links li a::before {
    content: '';
    display: block;
    position: absolute;
    left: 0; top: 50%;
    width: 8px; height: 8px;
    margin-top: -4px;
    border-radius: 50%;
    background: var(--red);
}
.footer .footer-links li:nth-child(2n) a::before { background: var(--navy-2); }
.footer .footer-links li:nth-child(3n) a::before { background: var(--green); }
.footer .footer-links li a:hover { color: var(--red); transform: translateX(5px); }


.copyrights { padding: 20px 0; background: var(--navy); }
.copyrights .footer-distributed { padding: 0; background: none; text-align: center; }
.copyrights .footer-company-name,
.footer-distributed .footer-company-name {
    margin: 0;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, .82);
}

/* back to top */
#scroll-to-top,
.dmtop {
    width: 52px; height: 52px;
    line-height: 52px;
    right: 24px; bottom: 28px;
    border-radius: 18px !important;
    background: var(--red) !important;
    color: #fff;
    font-size: 24px;
    text-align: center;
    box-shadow: 0 5px 0 var(--red-dark);
    transition: transform .3s var(--bounce);
}
#scroll-to-top:hover { color: #fff; transform: translateY(-4px) rotate(-8deg); }

/*------------------------------------------------------------------
    RESPONSIVE
-------------------------------------------------------------------*/
@media (max-width: 1199px) {
    .top-navbar .navbar-light .navbar-nav .nav-item .nav-link { padding: 8px 10px; font-size: 15px; }
    .top-navbar .navbar-light .navbar-nav .nav-item:last-child .nav-link { padding: 9px 16px; }
    .page-section .timeline__items { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 64px; }
}

@media (max-width: 991px) {
    .logoImg { width: 124px; }
    .top-navbar .navbar-collapse {
        margin-top: 12px;
        padding: 14px;
        border-radius: var(--r);
        background: #fff;
        box-shadow: var(--shadow);
    }
    .top-navbar .navbar-light .navbar-nav { align-items: stretch; gap: 4px; }
    .top-navbar .navbar-light .navbar-nav .nav-item .nav-link { padding: 12px 18px; font-size: 17px; }
    .top-navbar .navbar-light .navbar-nav .nav-item:last-child { margin: 8px 0 0; }
    .top-navbar .navbar-light .navbar-nav .nav-item:last-child .nav-link { text-align: center; }

    .section, .hmv-box { padding: 72px 0; }
    .section.wb ~ .section.lb { padding: 110px 0; }
    .all-title-box { padding: 60px 0 100px; }
    #overviews .row.align-items-center + .row.align-items-center { margin-top: 30px; }
    #overviews .row.align-items-center > [class*="col-"]:has(.post-media) { order: -1; }
    .message-box { padding: 0; }

    .box-slider .carousel-control-prev,
    .box-slider .carousel-control-next { display: none; }

    .page-section .timeline__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .seo-copy .section-title { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    body, body.host_version { font-size: 15.5px; }
    .top-navbar .container-fluid { padding-left: 16px; padding-right: 16px; }

    #carouselExampleControls.box-slider { height: auto; min-height: 620px; max-height: none; }
    .box-slider .carousel-inner, .box-slider .carousel-item, .box-slider .first-section { min-height: 620px; }
    .first-section::before { background: rgba(28, 27, 78, .35); }
    .first-section .big-tagline {
        margin: 40px 8px 120px;
        padding: 30px 24px 22px;
    }
    .first-section .big-tagline::after { width: 36px; height: 36px; left: -14px; }
    .first-section .big-tagline a.hover-btn-new { padding: 14px 22px; font-size: 15px; }
    .box-slider .carousel-indicators { bottom: 70px; }

    .section-title { margin-bottom: 44px; }
    .section-title.text-center p.lead,
    .section-title.row.text-center p.lead { font-size: 17px; }

    .page-section .timeline__items { grid-template-columns: 1fr; row-gap: 56px; }
    .seo-copy .section-title p,
    .seo-copy .section-title p:first-child { padding: 34px 24px 26px; }

    #overviews .section-title.row:not(.text-center) > [class*="col-"],
    .gallerySection { padding: 36px 22px 30px; border-radius: var(--r); }

    #overviews table.table,
    #overviews table.table tbody,
    #overviews table.table tr,
    #overviews table.table th,
    #overviews table.table td { display: block; width: 100%; }
    #overviews table.table tr { margin-bottom: 12px; }
    #overviews table.table th { border-radius: var(--r-sm) var(--r-sm) 0 0; padding: 12px 18px; }
    #overviews table.table td { border-radius: 0 0 var(--r-sm) var(--r-sm); padding: 14px 18px; }

    .pricing-table-header, .pricing-table-header.grd1 { padding: 30px 26px 46px; }
    .pricing-table-features { padding: 12px 26px 22px; }
    .pricing-table-sign-up { padding: 0 26px 28px; }

    .flexImg, .flexImg1 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .flexImg img, .flexImg1 img { padding: 5px 5px 16px; }

    .contact_form { padding: 28px 20px; box-shadow: 8px 8px 0 var(--red-soft), var(--shadow); }
    .map-box, .map-box iframe { min-height: 340px; }
    .map-box { box-shadow: -8px 8px 0 var(--green-soft), var(--shadow); }

    .annual-grid { padding-top: 40px; padding-bottom: 70px; }
    .footer { padding: 54px 0 24px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/*------------------------------------------------------------------
    NEWS & EVENTS — national level sports showcase
-------------------------------------------------------------------*/
.sports-showcase { margin-top: 34px; text-align: center; }

.sports-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    max-width: 560px;
    margin: 0 auto 10px;
    color: var(--sun);
    font-size: 30px;
}
.sports-divider::before,
.sports-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    border-radius: 2px;
    background: var(--navy-2);
    opacity: .5;
}
.sports-divider i { animation: wiggle 4s ease-in-out infinite; }

#overviews .section-title.row .sports-caption {
    font-family: var(--head);
    font-size: clamp(15px, 1.4vw, 18px);
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--navy);
    margin: 0 0 36px;
}

.sports-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
}

.sport-tile {
    position: relative;
    margin: 0;
    padding-bottom: 24px;
    transition: transform .4s var(--bounce);
}
.sport-tile:nth-child(odd) { transform: rotate(-1.5deg); }
.sport-tile:nth-child(even) { transform: rotate(1.5deg); }
.sport-tile:hover { transform: rotate(0) translateY(-8px) scale(1.04); }

.sport-tile img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 236 / 172;
    object-fit: contain;
    mix-blend-mode: multiply; /* melts the artwork's off-white background into the card */
}

/* brush-stroke label */
.sport-tile figcaption {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) rotate(-2deg);
    min-width: 78%;
    padding: 12px 26px 10px;
    background: var(--navy);
    color: #fff;
    font-family: var(--head);
    font-size: clamp(16px, 1.6vw, 21px);
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    line-height: 1.2;
    clip-path: polygon(2% 18%, 9% 4%, 22% 12%, 38% 2%, 55% 10%, 71% 0, 86% 9%, 98% 3%, 100% 40%, 96% 62%, 100% 88%, 88% 100%, 72% 90%, 54% 100%, 37% 91%, 20% 100%, 6% 92%, 0 70%, 3% 45%);
}
.sport-tile:nth-child(2) figcaption { background: var(--navy-2); }
.sport-tile:nth-child(3) figcaption { background: var(--red); }
.sport-tile:nth-child(4) figcaption { background: var(--green); }

@media (max-width: 991px) {
    .sports-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
}
@media (max-width: 480px) {
    .sports-grid { gap: 26px 14px; }
    .sport-tile figcaption { padding: 9px 14px 8px; min-width: 88%; }
}

/*------------------------------------------------------------------
    ACADEMICS — programme cards
-------------------------------------------------------------------*/
.academic-programs { display: grid; gap: 30px; }

.program-card {
    --c: var(--sun);
    --c-dark: var(--sun-dark);
    --c-soft: var(--sun-soft);
    --c-tint: #fffbef;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) 300px;
    align-items: center;
    gap: 34px;
    padding: 30px 36px;
    background: var(--c-tint);
    border: 2px solid var(--c-soft);
    border-radius: var(--r-lg);
    box-shadow: 0 10px 0 var(--c-soft), var(--shadow-sm);
    transition: transform .4s var(--bounce);
}
.program-card:hover { transform: translateY(-5px); }
.program-primary { --c: #1f6fd1; --c-dark: #17549f; --c-soft: #dcebfb; --c-tint: #f3f8fe; }
.program-high    { --c: var(--green); --c-dark: var(--green-dark); --c-soft: var(--green-soft); --c-tint: #f4fbf5; }

.program-media img {
    display: block;
    width: 100%;
    height: auto;
    border: 6px solid #fff;
    border-radius: 28px;
    box-shadow: 0 8px 0 var(--c-soft), var(--shadow-sm);
    transition: transform .4s var(--bounce);
}
.program-card:hover .program-media img { transform: rotate(-3deg) scale(1.05); }

.program-body h3 {
    display: inline-block;
    margin: 0 0 16px;
    padding: 6px 30px 8px;
    border-radius: 999px;
    background: var(--c);
    box-shadow: 0 5px 0 var(--c-dark);
    font-family: var(--head);
    font-size: clamp(26px, 2.6vw, 34px);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
}
.program-pre .program-body h3 { color: var(--navy); }

.program-body p {
    margin: 0;
    text-align: left;
    font-size: 16.5px;
    line-height: 1.8;
    color: var(--body);
}

.program-points {
    list-style: none;
    margin: 0;
    padding: 6px 0 6px 28px;
    border-left: 2px solid var(--c-soft);
}
.program-points li {
    position: relative;
    padding: 7px 0 7px 36px;
    font-family: var(--head);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--navy);
}
.program-points li::before {
    content: '\2713';
    position: absolute;
    left: 0; top: 6px;
    width: 24px; height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    background: var(--c);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}
.program-pre .program-points li::before { color: var(--navy); }

.program-tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin: 18px 0 0;
    font-family: 'Caveat', var(--head);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 700;
    color: var(--navy);
    text-align: center;
}
.program-tagline::before,
.program-tagline::after {
    content: '';
    width: 110px;
    height: 2px;
    border-radius: 2px;
    background: #8fc0f2;
}

@media (max-width: 1199px) {
    .program-card { grid-template-columns: 200px minmax(0, 1fr); }
    .program-points {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 24px;
        padding: 18px 0 0;
        border-left: 0;
        border-top: 2px solid var(--c-soft);
    }
}
@media (max-width: 767px) {
    .program-card { grid-template-columns: 1fr; gap: 18px; padding: 26px 22px; text-align: left; }
    .program-media { max-width: 220px; margin: 0 auto; }
    .program-points { grid-template-columns: 1fr; }
    .program-tagline::before,
    .program-tagline::after { width: 40px; }
}

/*------------------------------------------------------------------
    CAMPUS — Our Facilities (grouped icon cards)
-------------------------------------------------------------------*/
/* the inner tiles lift on hover, so keep the big outer card still */
#overviews .section-title.row:not(.text-center) > .facilities-card:hover { transform: none; }

#overviews .section-title .facilities-card .fac-intro {
    font-size: 17.5px;
    max-width: 900px;
    margin-bottom: 8px;
}

#overviews .section-title .facilities-card .fac-group {
    position: relative;
    margin-top: 44px;
}
#overviews .section-title .facilities-card .fac-group-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--head);
    font-size: 22px;
    font-weight: 600;
    color: var(--g);
    background: var(--g-soft);
    padding: 8px 22px 8px 8px;
    border-radius: 999px;
    margin: 0 0 22px;
}
#overviews .section-title .facilities-card .fac-group-title .fa {
    width: 38px; height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--g);
    color: #fff;
    font-size: 17px;
}

#overviews .section-title .facilities-card .fac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

#overviews .section-title .facilities-card .fac-item {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 2px solid var(--line);
    border-radius: var(--r);
    padding: 24px 22px 22px;
    transition: transform .35s var(--bounce), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
#overviews .section-title .facilities-card .fac-item::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 5px;
    background: var(--g);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease);
}
#overviews .section-title .facilities-card .fac-item:hover {
    transform: translateY(-6px);
    border-color: var(--g-soft);
    box-shadow: 0 16px 30px -18px rgba(28, 27, 78, .4);
}
#overviews .section-title .facilities-card .fac-item:hover::after { transform: scaleX(1); }

#overviews .section-title .facilities-card .fac-num {
    position: absolute;
    top: 10px; right: 16px;
    font-family: var(--head);
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    color: var(--g-soft);
    pointer-events: none;
}
#overviews .section-title .facilities-card .fac-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px; height: 54px;
    margin-bottom: 14px;
    border-radius: 18px;
    background: var(--g-soft);
    color: var(--g);
    font-size: 24px;
    transition: transform .35s var(--bounce), background .25s, color .25s;
}
#overviews .section-title .facilities-card .fac-item:hover .fac-icon {
    background: var(--g);
    color: #fff;
    transform: rotate(-8deg) scale(1.06);
}
#overviews .section-title .facilities-card .fac-item h5 {
    position: relative;
    font-family: var(--head);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--navy);
    margin: 0 0 10px;
}
#overviews .section-title .facilities-card .fac-item p {
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

#overviews .section-title .facilities-card .fac-banner {
    position: relative;
    overflow: hidden;
    margin-top: 48px;
    padding: 40px 44px;
    border-radius: var(--r-lg);
    background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%);
    text-align: center;
}
#overviews .section-title .facilities-card .fac-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, .12) 2px, transparent 2.5px) 0 0 / 22px 22px;
    pointer-events: none;
}
#overviews .section-title .facilities-card .fac-banner-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--sun);
    color: #fff;
    font-size: 26px;
    margin-bottom: 14px;
    animation: floaty 4s ease-in-out infinite;
}
#overviews .section-title .facilities-card .fac-banner h4 {
    position: relative;
    font-family: var(--head);
    font-size: clamp(22px, 2.6vw, 32px);
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
    padding-bottom: 20px;
    background: var(--squiggle-white) center bottom / 100px 12px no-repeat;
}
#overviews .section-title .facilities-card .fac-banner p {
    color: rgba(255, 255, 255, .88);
    max-width: 760px;
    margin: 0 auto;
    text-align: center !important;
}

@media (max-width: 767px) {
    #overviews .section-title .facilities-card .fac-grid { grid-template-columns: 1fr; gap: 16px; }
    #overviews .section-title .facilities-card .fac-group-title { font-size: 19px; }
    #overviews .section-title .facilities-card .fac-banner { padding: 32px 22px; }
}
@media (prefers-reduced-motion: reduce) {
    #overviews .section-title .facilities-card .fac-banner-icon { animation: none; }
}

/* News & Events — three-tile variant of the sports showcase */
.sports-grid.sports-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 920px;
    margin: 0 auto;
}
@media (max-width: 767px) {
    .sports-grid.sports-grid--3 { grid-template-columns: minmax(0, 1fr); max-width: 300px; row-gap: 34px; }
}
