/* ==========================================================================
   MOBNET — Shared styles
   Brand colors are sampled from the MOBNET logo:
   royal blue #2e3192 · signal red #ec1824 · white
   Tailwind utilities in the HTML use the "tw-" prefix so they never clash
   with Bootstrap. Everything MOBNET-specific lives in this file.
   ========================================================================== */

:root {
    --primary: #2e3192;          /* logo blue */
    --primary-dark: #1f2270;
    --primary-soft: #e9eafa;
    --secondary: #ec1824;        /* logo red */
    --secondary-dark: #c4101b;
    --accent: #ffc928;           /* yellow band used in MOBNET flyers */
    --dark: #0e1038;             /* deep navy for text + footer */
    --light: #f5f6fd;            /* soft blue-tinted background */
    --muted: #5b6080;
    --line: #e3e5f3;
    --whatsapp: #25d366;
    --whatsapp-dark: #1ebe5b;

    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 28px;
    --shadow-sm: 0 4px 14px rgba(31, 34, 112, .07);
    --shadow: 0 14px 40px rgba(31, 34, 112, .12);
    --shadow-lg: 0 26px 70px rgba(31, 34, 112, .20);
    --ease: cubic-bezier(.22, .61, .36, 1);
    --header-h: 84px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark);
    background: #fff;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.15;
    color: var(--dark);
}
p { color: var(--muted); }
a { color: var(--primary); text-decoration: none; }
::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 3px solid rgba(46, 49, 146, .45); outline-offset: 3px; border-radius: 6px; }
.hindi { font-family: 'Noto Sans Devanagari', 'Inter', sans-serif; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1.25rem; }
.section { padding: 5.5rem 0; position: relative; }
.section-tint { background: var(--light); }
.skip-link {
    position: absolute; left: -999px; top: 8px; z-index: 2000;
    background: var(--primary); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { left: 8px; color: #fff; }

/* Bootstrap's .collapse is the only Bootstrap helper we rely on for the navbar */
.eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--secondary); margin-bottom: 1rem;
}
.eyebrow::before { content: ''; width: 28px; height: 3px; border-radius: 3px; background: var(--secondary); }
.eyebrow.light { color: #fff; }
.eyebrow.light::before { background: var(--accent); }

.section-title { font-size: clamp(1.85rem, 3.6vw, 2.75rem); margin-bottom: 1rem; }
.section-lead { font-size: 1.08rem; max-width: 640px; }
.section-head { margin-bottom: 3rem; }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin-inline: auto; }
.text-gradient {
    background: linear-gradient(100deg, var(--primary) 10%, var(--secondary) 90%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn-mob {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .95rem;
    padding: .95rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
    cursor: pointer; line-height: 1.2; white-space: nowrap;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn-mob:hover { transform: translateY(-3px); }
.btn-mob:active { transform: translateY(-1px); }
.btn-mob i { font-size: 1.1em; transition: transform .25s var(--ease); }
.btn-mob:hover i.bi-arrow-right { transform: translateX(4px); }
.btn-mob-primary { background: var(--secondary); color: #fff; box-shadow: 0 10px 24px rgba(236, 24, 36, .30); }
.btn-mob-primary:hover { background: var(--secondary-dark); color: #fff; box-shadow: 0 14px 30px rgba(236, 24, 36, .38); }
.btn-mob-blue { background: var(--primary); color: #fff; box-shadow: 0 10px 24px rgba(46, 49, 146, .28); }
.btn-mob-blue:hover { background: var(--primary-dark); color: #fff; }
.btn-mob-wa { background: var(--whatsapp); color: #fff; box-shadow: 0 10px 24px rgba(37, 211, 102, .30); }
.btn-mob-wa:hover { background: var(--whatsapp-dark); color: #fff; }
.btn-mob-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-mob-outline:hover { background: var(--primary); color: #fff; }
.btn-mob-white { background: #fff; color: var(--primary); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.btn-mob-white:hover { background: var(--accent); color: var(--dark); }
.btn-mob-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-mob-ghost:hover { background: #fff; color: var(--primary); }
.btn-mob-sm { padding: .65rem 1.2rem; font-size: .88rem; }

/* ---------- Header / navbar ---------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 1040;
    padding: .9rem 0; background: transparent;
    transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
}
.site-header.scrolled, .site-header.menu-open {
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 8px 30px rgba(31, 34, 112, .10);
    padding: .5rem 0;
}
.site-header .navbar { padding: 0; }
.navbar-brand { padding: 0; margin: 0; }
.navbar-brand img {
    height: 48px; width: auto; border-radius: 10px;
    box-shadow: 0 6px 18px rgba(46, 49, 146, .25);
    transition: height .35s var(--ease);
}
.site-header.scrolled .navbar-brand img { height: 40px; }
.navbar-nav { gap: .25rem; }
.navbar .nav-link {
    position: relative; font-family: 'Poppins', sans-serif; font-weight: 500; font-size: .95rem;
    color: var(--dark); padding: .6rem 1rem !important; transition: color .25s;
}
.navbar .nav-link::after {
    content: ''; position: absolute; left: 1rem; right: 1rem; bottom: .2rem; height: 3px; border-radius: 3px;
    background: var(--secondary); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--primary); }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }
.nav-cta { margin-left: .5rem; }

/* Hamburger */
.navbar-toggler { border: 0; padding: .5rem; box-shadow: none !important; background: transparent; }
.burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 28px; height: 22px; }
.burger span { display: block; height: 3px; width: 100%; border-radius: 3px; background: var(--primary); transition: transform .35s var(--ease), opacity .25s, width .3s; }
.burger span:nth-child(2) { width: 70%; margin-left: auto; }
.navbar-toggler[aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); background: var(--secondary); }
.navbar-toggler[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: var(--secondary); }

@media (max-width: 991.98px) {
    .navbar-collapse { padding: .75rem 0 1rem; }
    .navbar-nav { padding: .5rem 0; }
    .navbar .nav-link { padding: .85rem .5rem !important; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
    .navbar .nav-link::after { display: none; }
    .navbar .nav-link.active { color: var(--secondary); }
    .nav-cta { margin: 1rem 0 0; width: 100%; }
    .navbar-collapse.show .nav-item, .navbar-collapse.collapsing .nav-item { animation: slideIn .45s var(--ease) both; }
    .navbar-collapse.show .nav-item:nth-child(2) { animation-delay: .05s; }
    .navbar-collapse.show .nav-item:nth-child(3) { animation-delay: .10s; }
    .navbar-collapse.show .nav-item:nth-child(4) { animation-delay: .15s; }
    .navbar-collapse.show .nav-item:nth-child(5) { animation-delay: .20s; }
}
@keyframes slideIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }

/* ---------- Hero (home) ---------- */
.hero {
    position: relative; overflow: hidden;
    padding: calc(var(--header-h) + 3rem) 0 5rem;
    background:
        radial-gradient(900px 500px at 85% 10%, rgba(46, 49, 146, .10), transparent 60%),
        radial-gradient(700px 420px at 0% 100%, rgba(236, 24, 36, .07), transparent 60%),
        linear-gradient(180deg, #fff 0%, var(--light) 100%);
}
.hero::before { /* dotted pattern */
    content: ''; position: absolute; left: -40px; top: 120px; width: 220px; height: 220px; opacity: .5;
    background-image: radial-gradient(var(--primary) 1.6px, transparent 1.6px); background-size: 18px 18px;
    -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 72%); mask-image: radial-gradient(circle, #000 30%, transparent 72%);
}
.hero-title { font-size: clamp(2.4rem, 4.6vw, 3.7rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 1.25rem; }
.hero-text { font-size: 1.15rem; max-width: 540px; margin-bottom: 2rem; }
.hero-hindi { color: var(--primary); font-weight: 600; font-size: 1.05rem; margin-top: 1.75rem; display: flex; align-items: center; gap: .6rem; }
.hero-hindi::before { content: ''; width: 34px; height: 3px; background: var(--accent); border-radius: 3px; flex: none; }
.hero-visual { position: relative; padding: 0 0 1.5rem 1.5rem; }
.hero-frame {
    position: relative; border-radius: var(--radius-lg) var(--radius-lg) 120px var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.2; background: var(--primary);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hero-visual:hover .hero-frame img { transform: scale(1.04); }
.hero-ring {
    position: absolute; z-index: -1; right: -26px; top: -26px; width: 180px; height: 180px; border-radius: 50%;
    border: 18px solid var(--secondary); opacity: .9;
}
.hero-blob {
    position: absolute; z-index: -1; left: -6px; bottom: 6px; width: 62%; height: 62%; border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)); opacity: .95;
}
.float-card {
    position: absolute; background: #fff; border-radius: 18px; padding: .9rem 1.1rem;
    box-shadow: var(--shadow); display: flex; align-items: center; gap: .8rem; animation: bob 5s ease-in-out infinite;
}
.float-card .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; flex: none; }
.float-card strong { display: block; font-family: 'Poppins', sans-serif; font-size: .92rem; color: var(--dark); line-height: 1.2; }
.float-card small { color: var(--muted); font-size: .76rem; }
.float-card.fc-1 { left: -6px; top: 14%; }
.float-card.fc-2 { right: -10px; bottom: 7%; animation-delay: -2.4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.fade-up { opacity: 0; transform: translateY(28px); animation: fadeUp .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ---------- Inner page hero ---------- */
.page-hero {
    position: relative; overflow: hidden; text-align: center;
    padding: calc(var(--header-h) + 3.5rem) 0 4.5rem;
    background:
        radial-gradient(600px 320px at 90% 0%, rgba(236, 24, 36, .09), transparent 60%),
        radial-gradient(700px 360px at 0% 100%, rgba(46, 49, 146, .12), transparent 60%),
        linear-gradient(180deg, #fff, var(--light));
}
.page-hero::after {
    content: ''; position: absolute; right: 6%; bottom: -70px; width: 190px; height: 190px; border-radius: 50%;
    border: 16px solid rgba(46, 49, 146, .08);
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 1rem; }
.page-hero p { max-width: 640px; margin-inline: auto; font-size: 1.1rem; }
.crumbs { display: inline-flex; gap: .5rem; align-items: center; font-size: .85rem; font-weight: 600; margin-bottom: 1.25rem; color: var(--muted); }
.crumbs a { color: var(--primary); }
.crumbs i { font-size: .7rem; }

/* ---------- Cards ---------- */
.card-mob {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem;
    height: 100%; position: relative; overflow: hidden; display: flex; flex-direction: column;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card-mob > .card-link { margin-top: auto; padding-top: 1.1rem; }
.card-mob::before { /* top accent bar */
    content: ''; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary)); transform: scaleX(0); transform-origin: left;
    transition: transform .45s var(--ease);
}
.card-mob:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.card-mob:hover::before { transform: scaleX(1); }
.card-mob h3 { font-size: 1.2rem; margin: 1.25rem 0 .6rem; }
.card-mob p { margin: 0; font-size: .96rem; }
.icon-badge {
    width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem;
    background: var(--primary-soft); color: var(--primary); transition: background .3s, color .3s, transform .35s var(--ease);
}
.card-mob:hover .icon-badge { background: var(--primary); color: #fff; transform: rotate(-6deg) scale(1.06); }
.icon-badge.red { background: #fde8e9; color: var(--secondary); }
.card-mob:hover .icon-badge.red { background: var(--secondary); color: #fff; }
.card-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.1rem; align-self: flex-start; font-weight: 600; font-size: .92rem; font-family: 'Poppins', sans-serif; color: var(--secondary); }
.card-link i { transition: transform .25s var(--ease); }
.card-link:hover { color: var(--secondary-dark); }
.card-link:hover i { transform: translateX(5px); }

/* Highlight strip */
.highlights { margin-top: -3.2rem; position: relative; z-index: 5; }
.highlight-box {
    background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.25rem;
    display: grid; gap: .5rem; grid-template-columns: 1fr;
}
.highlight { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem; border-radius: var(--radius); transition: background .3s; }
.highlight:hover { background: var(--light); }
.highlight .icon-badge { width: 52px; height: 52px; font-size: 1.4rem; flex: none; }
.highlight h3 { font-size: 1.02rem; margin: 0 0 .25rem; }
.highlight p { font-size: .88rem; margin: 0; line-height: 1.5; }
@media (min-width: 640px) { .highlight-box { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .highlight-box { grid-template-columns: repeat(4, 1fr); } }

/* About preview */
.split-img { position: relative; }
.split-img .main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.6; }
.split-img .main img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.split-img:hover .main img { transform: scale(1.05); }
.split-img::before {
    content: ''; position: absolute; z-index: -1; left: -18px; bottom: -18px; width: 70%; height: 70%;
    border-radius: var(--radius-lg); background: repeating-linear-gradient(45deg, var(--primary-soft) 0 10px, transparent 10px 20px);
}
.split-img .badge-card {
    position: absolute; right: -10px; bottom: 28px; background: var(--primary); color: #fff; border-radius: 18px;
    padding: 1rem 1.25rem; box-shadow: var(--shadow); max-width: 210px;
}
.split-img .badge-card strong { font-family: 'Poppins', sans-serif; display: block; font-size: 1.05rem; line-height: 1.25; }
.split-img .badge-card small { opacity: .85; }
.check-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .8rem; }
.check-list li { display: flex; gap: .8rem; align-items: flex-start; color: var(--dark); font-weight: 500; }
.check-list li i { color: #fff; background: var(--secondary); border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; font-size: .8rem; flex: none; margin-top: 2px; }

/* Course pills */
.pill-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.pill { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--primary); box-shadow: var(--shadow-sm); }
.pill i { color: var(--secondary); }
.section-head.center .pill-row { justify-content: center; }

/* Curriculum list (admission) */
.syllabus { display: grid; gap: .8rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .syllabus { grid-template-columns: 1fr 1fr; } }
.syllabus li {
    list-style: none; display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 500; color: var(--dark);
    transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.syllabus li:hover { transform: translateX(6px); border-color: var(--primary); box-shadow: var(--shadow-sm); }
.syllabus li i { color: var(--secondary); font-size: 1.15rem; }

/* Steps */
.step { position: relative; text-align: center; padding: 0 .5rem; }
.step-num {
    width: 68px; height: 68px; margin: 0 auto 1.1rem; border-radius: 50%; display: grid; place-items: center;
    font-family: 'Poppins', sans-serif; font-size: 1.4rem; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)); box-shadow: 0 10px 24px rgba(46, 49, 146, .3);
    position: relative; z-index: 2; transition: transform .35s var(--ease), background .3s;
}
.step:hover .step-num { transform: scale(1.1) rotate(-5deg); background: var(--secondary); }
.step h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.step p { font-size: .9rem; margin: 0; }
@media (min-width: 1024px) {
    .step:not(:last-child)::after {
        content: ''; position: absolute; top: 34px; left: calc(50% + 44px); width: calc(100% - 88px); height: 0;
        border-top: 2px dashed #c7c9ea; z-index: 1;
    }
}

/* Vision / mission */
.vm-card { border-radius: var(--radius-lg); padding: 2.5rem; height: 100%; position: relative; overflow: hidden; }
.vm-card.blue { background: linear-gradient(145deg, var(--primary), var(--primary-dark)); color: #fff; }
.vm-card.red { background: linear-gradient(145deg, #fff, #fff2f2); border: 1px solid #fbd0d3; }
.vm-card h3 { font-size: 1.6rem; margin: 1.1rem 0 .8rem; }
.vm-card.blue h3 { color: #fff; }
.vm-card.blue p { color: rgba(255, 255, 255, .85); }
.vm-card .icon-badge { background: rgba(255, 255, 255, .15); color: #fff; }
.vm-card.red .icon-badge { background: var(--secondary); color: #fff; }
.vm-card::after { content: ''; position: absolute; right: -50px; top: -50px; width: 170px; height: 170px; border-radius: 50%; border: 22px solid rgba(255, 255, 255, .08); }
.vm-card.red::after { border-color: rgba(236, 24, 36, .07); }

/* Team */
.team-card { text-align: center; align-items: center; }
.team-card .card-link { align-self: center; }
.avatar {
    width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center;
    font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.6rem; color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}
.team-card h3 { margin: 0 0 .15rem; font-size: 1.15rem; }
.team-card .role { color: var(--secondary); font-weight: 600; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Gallery ---------- */
.bento { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
.bento .gallery-item:first-child { grid-column: span 2; }
@media (min-width: 900px) {
    .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; }
    .bento .gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
}
.bento .gallery-item { margin: 0; }
.gallery-item {
    position: relative; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; background: var(--primary-soft);
    display: block; width: 100%; padding: 0; border: 0; text-align: left; box-shadow: var(--shadow-sm);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.09); }
.gallery-item .overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.1rem;
    background: linear-gradient(0deg, rgba(14, 16, 56, .82) 0%, rgba(46, 49, 146, .25) 55%, transparent 100%);
    opacity: 0; transition: opacity .4s var(--ease); color: #fff;
}
.gallery-item .overlay span { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .95rem; transform: translateY(10px); transition: transform .4s var(--ease); }
.gallery-item .view {
    position: absolute; right: 14px; top: 14px; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--secondary);
    display: grid; place-items: center; transform: scale(.5); opacity: 0; transition: transform .4s var(--ease), opacity .3s;
}
.gallery-item:hover .overlay, .gallery-item:focus-visible .overlay { opacity: 1; }
.gallery-item:hover .overlay span, .gallery-item:focus-visible .overlay span { transform: none; }
.gallery-item:hover .view, .gallery-item:focus-visible .view { transform: scale(1); opacity: 1; }
@media (hover: none) { .gallery-item .overlay { opacity: 1; background: linear-gradient(0deg, rgba(14, 16, 56, .7), transparent 55%); } .gallery-item .overlay span { transform: none; } .gallery-item .view { opacity: 1; transform: scale(.85); } }

.masonry { column-count: 1; column-gap: 1.1rem; }
@media (min-width: 560px) { .masonry { column-count: 2; } }
@media (min-width: 992px) { .masonry { column-count: 3; } }
.masonry .gallery-item { margin: 0 0 1.1rem; break-inside: avoid; }
.masonry .gallery-item img { height: auto; }
.masonry .gallery-item[hidden] { display: none; }
.masonry .gallery-item.pop { animation: pop .5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2.5rem; }
.filter-btn {
    font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .9rem; padding: .6rem 1.3rem; border-radius: 999px;
    background: #fff; color: var(--primary); border: 1px solid var(--line); cursor: pointer; transition: all .3s var(--ease);
}
.filter-btn:hover { border-color: var(--primary); transform: translateY(-2px); }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 8px 20px rgba(46, 49, 146, .28); }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center;
    background: rgba(8, 9, 34, .94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 3.5rem 1rem 4.5rem;
}
.lightbox.open { display: flex; animation: lbIn .3s var(--ease); }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-height: calc(100vh - 11rem); max-height: calc(100dvh - 11rem); width: auto; max-width: 100%; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); animation: lbImg .45s var(--ease); }
@keyframes lbImg { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.lightbox figcaption { color: #fff; margin-top: 1rem; text-align: center; font-family: 'Poppins', sans-serif; font-size: .95rem; }
.lightbox figcaption small { display: block; opacity: .6; font-family: 'Inter', sans-serif; margin-top: .15rem; }
.lb-btn {
    position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
    background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.3rem; transition: background .25s, transform .25s var(--ease);
}
.lb-btn:hover { background: var(--secondary); transform: scale(1.08); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.08); }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; } .lb-prev:hover, .lb-next:hover { transform: scale(1.08); } .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); } }

/* ---------- CTA ---------- */
.cta {
    position: relative; overflow: hidden; border-radius: 36px; padding: 4.5rem 2rem; text-align: center; color: #fff;
    background: radial-gradient(600px 300px at 100% 0%, rgba(236, 24, 36, .55), transparent 60%),
                linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: var(--shadow-lg);
}
.cta::before { content: ''; position: absolute; left: -70px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; border: 28px solid rgba(255, 255, 255, .07); }
.cta::after { content: ''; position: absolute; right: 8%; top: 18%; width: 90px; height: 90px; background-image: radial-gradient(rgba(255, 255, 255, .35) 2px, transparent 2px); background-size: 16px 16px; }
.cta > * { position: relative; z-index: 2; }
.cta h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 1rem; }
.cta p { color: rgba(255, 255, 255, .85); font-size: 1.1rem; max-width: 560px; margin: 0 auto 2rem; }
.cta .hindi { color: var(--accent); font-weight: 600; margin-bottom: 1.8rem; display: block; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); }
@media (min-width: 640px) { .form-card { padding: 2.5rem; } }
.form-label { font-weight: 600; font-size: .88rem; color: var(--dark); margin-bottom: .4rem; }
.form-label .req { color: var(--secondary); }
.form-control, .form-select {
    border: 1.5px solid var(--line); border-radius: 14px; padding: .8rem 1rem; font-size: .96rem; background-color: var(--light); color: var(--dark);
    transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(46, 49, 146, .12); background-color: #fff; }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--secondary); background-image: none; }
.form-control.is-invalid:focus, .form-select.is-invalid:focus { box-shadow: 0 0 0 4px rgba(236, 24, 36, .12); }
.form-control.is-valid, .form-select.is-valid { border-color: #28a263; background-image: none; }
.invalid-feedback { font-size: .82rem; color: var(--secondary); font-weight: 500; }
.form-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 1rem; }
.alert-success-mob {
    display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: 16px; margin-bottom: 1.25rem;
    background: #e8f8ef; border: 1px solid #b6e6cb; color: #155c38; animation: fadeUp .5s var(--ease) both;
}
.alert-success-mob i { font-size: 1.4rem; color: #1e9e5b; }

.modal-content.success-modal { border: 0; border-radius: var(--radius-lg); padding: 2.2rem 1.5rem 1.8rem; text-align: center; overflow: hidden; box-shadow: var(--shadow-lg); }
.success-modal .check {
    width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 1.25rem; display: grid; place-items: center; font-size: 2.8rem; color: #fff;
    background: linear-gradient(135deg, #22b573, #1e9e5b); box-shadow: 0 14px 30px rgba(30, 158, 91, .35);
    animation: popIn .6s var(--ease) both;
}
@keyframes popIn { 0% { transform: scale(.2); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
.success-modal h2 { font-size: 1.55rem; margin-bottom: .6rem; }
.modal-backdrop.show { background: var(--dark); opacity: .6; }

/* ---------- Contact ---------- */
.contact-card { flex-direction: row; gap: 1.1rem; align-items: flex-start; padding: 1.4rem; height: auto; }
.contact-card .icon-badge { flex: none; }
.contact-card h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.contact-card p, .contact-card a { margin: 0; font-size: .95rem; color: var(--muted); display: block; }
.contact-card a:hover { color: var(--secondary); }
.map-box { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--primary-soft); position: relative; width: 100%; height: clamp(300px, 42vw, 440px); }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-fallback { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; text-align: center; padding: 1rem; color: var(--primary); }
.map-box iframe { position: relative; z-index: 1; }

/* ---------- Info blocks ---------- */
.note-box { border-left: 4px solid var(--secondary); background: #fff; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1rem 1.25rem; box-shadow: var(--shadow-sm); font-size: .93rem; }
.rule-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.rule-list li { display: flex; gap: .9rem; align-items: flex-start; color: var(--muted); }
.rule-list li i { color: var(--secondary); margin-top: .25rem; flex: none; }
.rule-list li strong { color: var(--dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .72); position: relative; overflow: hidden; padding: 5rem 0 0; }
.site-footer::before { content: ''; position: absolute; right: -120px; top: -120px; width: 340px; height: 340px; border-radius: 50%; border: 36px solid rgba(46, 49, 146, .35); }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1.3rem; position: relative; padding-bottom: .8rem; }
.site-footer h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; border-radius: 3px; background: var(--secondary); }
.site-footer p { color: rgba(255, 255, 255, .68); font-size: .93rem; }
.site-footer a { color: rgba(255, 255, 255, .72); transition: color .25s, transform .25s var(--ease); }
.site-footer a:hover { color: #fff; }
.footer-logo { height: 54px; width: auto; border-radius: 10px; margin-bottom: 1.2rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; font-size: .93rem; }
.footer-links a { display: inline-flex; align-items: center; gap: .5rem; }
.footer-links a i { font-size: .7rem; color: var(--secondary); transition: transform .25s var(--ease); }
.footer-links a:hover { transform: translateX(4px); }
.footer-contact li { display: flex; gap: .8rem; align-items: flex-start; }
.footer-contact i { color: var(--accent); margin-top: .2rem; flex: none; }
.footer-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.footer-badges span { font-size: .75rem; font-weight: 600; padding: .35rem .75rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); color: #fff; }
.footer-bottom { margin-top: 3.5rem; padding: 1.4rem 0 1.6rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.connect-btns { display: grid; gap: .7rem; }

/* ---------- Floating WhatsApp ---------- */
.float-wa {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1035; display: inline-flex; align-items: center; gap: .6rem;
    background: var(--whatsapp); color: #fff; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .95rem;
    padding: .9rem 1.4rem; border-radius: 999px; box-shadow: 0 14px 34px rgba(37, 211, 102, .45);
    transition: transform .3s var(--ease), background .3s;
}
.float-wa i { font-size: 1.45rem; line-height: 1; }
.float-wa:hover { background: var(--whatsapp-dark); color: #fff; transform: translateY(-4px); }
.float-wa::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--whatsapp); animation: ping 2.8s ease-out infinite; pointer-events: none; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
@media (max-width: 639.98px) {
    .float-wa { width: 58px; height: 58px; padding: 0; justify-content: center; right: 1rem; bottom: 1rem; }
    .float-wa .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .float-wa i { font-size: 1.8rem; }
}
.to-top { position: fixed; right: 1.55rem; bottom: 5.4rem; z-index: 1034; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .3s, transform .3s var(--ease); cursor: pointer; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--secondary); }
@media (max-width: 639.98px) { .to-top { right: 1.3rem; bottom: 5rem; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-left { transform: translateX(-34px); }
.reveal-right { transform: translateX(34px); }

@media (max-width: 575.98px) {
    .section { padding: 4rem 0; }
    .hero { padding-top: calc(var(--header-h) + 1.5rem); padding-bottom: 4rem; }
    .hero-visual { padding: 0 0 1rem 0; }
    .hero-ring { width: 110px; height: 110px; border-width: 12px; right: -12px; top: -16px; }
    .float-card.fc-1 { left: 8px; } .float-card.fc-2 { right: 8px; }
    .float-card { padding: .65rem .85rem; } .float-card small { display: none; }
    .btn-mob { width: 100%; }
    .btn-mob.btn-inline { width: auto; }
    .cta { padding: 3.2rem 1.25rem; border-radius: 26px; }
    .split-img .badge-card { right: 8px; }
    .footer-bottom { justify-content: center; text-align: center; }
}
@media (max-width: 380px) { .navbar-brand img { height: 40px; } .hero-title { font-size: 2.25rem; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal, .fade-up { opacity: 1; transform: none; }
}

/* ---------- Fixed-ratio image cells (home bento + About learning grid) ---------- */
.bento .gallery-item img, .learn-grid .gallery-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.learn-grid .gallery-item { aspect-ratio: 4 / 4.6; }
.team-card > .card-link { margin-top: .5rem; padding-top: 0; }
.team-card > .role { margin-bottom: .4rem; }
@media (max-width: 767.98px) { .hero::before { display: none; } }

/* ==========================================================================
   v2 additions: modern gallery, video section, social icons, PHP form states
   ========================================================================== */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert-error-mob {
    display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: 16px; margin-bottom: 1.25rem;
    background: #fff0f0; border: 1px solid #f7c3c6; color: #8c1119; animation: fadeUp .5s var(--ease) both; font-size: .93rem;
}
.alert-error-mob i { font-size: 1.3rem; color: var(--secondary); margin-top: .1rem; }
.avatar-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; box-shadow: 0 8px 20px rgba(46, 49, 146, .25); border: 3px solid #fff; }

/* Social icons */
.social-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }
.social-row a {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem;
    background: rgba(255, 255, 255, .1); color: #fff !important; transition: transform .3s var(--ease), background .3s;
}
.social-row a:hover { background: var(--secondary); transform: translateY(-4px); }
.social-row-light { margin-top: .5rem; }
.social-row-light a { background: var(--primary-soft); color: var(--primary) !important; }
.social-row-light a:hover { background: var(--primary); color: #fff !important; }

/* Gallery hero */
.gx-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.8rem; }
.gx-chip {
    display: inline-flex; align-items: center; gap: .55rem; padding: .65rem 1.2rem; border-radius: 999px; background: #fff;
    border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-weight: 600; font-size: .92rem; color: var(--muted);
    transition: transform .3s var(--ease), box-shadow .3s;
}
.gx-chip strong { color: var(--primary); font-family: 'Poppins', sans-serif; }
.gx-chip i { color: var(--secondary); font-size: 1.1rem; }
.gx-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.filter-count { display: inline-block; min-width: 1.5em; margin-left: .3rem; padding: .05rem .45rem; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: .75rem; }
.filter-btn.active .filter-count { background: rgba(255, 255, 255, .22); color: #fff; }

/* Photo cards */
.g-card { border-radius: 22px; }
.g-cat {
    position: absolute; left: 12px; top: 12px; z-index: 2; padding: .25rem .7rem; border-radius: 999px; font-size: .7rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase; background: rgba(255, 255, 255, .92); color: var(--primary); backdrop-filter: blur(6px);
}
.gx-empty { text-align: center; padding: 4rem 1rem; border: 2px dashed var(--line); border-radius: var(--radius-lg); color: var(--muted); }
.gx-empty i { font-size: 2.6rem; color: var(--primary); opacity: .6; }
.gx-empty h3 { margin: 1rem 0 .4rem; font-size: 1.3rem; }
.gx-empty-dark { border-color: rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .7); }
.gx-empty-dark i { color: #fff; }
.gx-empty-dark h3 { color: #fff; }

/* Video section */
.gx-videos {
    background: radial-gradient(700px 400px at 100% 0%, rgba(236, 24, 36, .28), transparent 60%),
                radial-gradient(600px 400px at 0% 100%, rgba(46, 49, 146, .55), transparent 60%), var(--dark);
    overflow: hidden;
}
.gx-videos::before { content: ''; position: absolute; left: -90px; top: 40px; width: 260px; height: 260px; border-radius: 50%; border: 30px solid rgba(255, 255, 255, .04); }
.vgrid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; position: relative; }
@media (min-width: 640px) { .vgrid { grid-template-columns: repeat(2, 1fr); } .vgrid .vcard-lg { grid-column: span 2; } }
@media (min-width: 1024px) {
    .vgrid { grid-template-columns: repeat(3, 1fr); }
    .vgrid .vcard-lg { grid-column: span 2; grid-row: span 2; }
    .vgrid-solo { grid-template-columns: 1fr; max-width: 980px; margin-inline: auto; }
    .vgrid-solo .vcard-lg { grid-column: auto; grid-row: auto; }
}
.vcard {
    position: relative; display: block; width: 100%; padding: 0; border: 0; text-align: left; cursor: pointer; overflow: hidden;
    border-radius: 22px; aspect-ratio: 16 / 9; background: #14174f; box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.vcard:hover { transform: translateY(-6px); box-shadow: 0 28px 64px rgba(0, 0, 0, .5); }
.vcard img, .vcard video, .vcard-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.vcard-fallback { background: linear-gradient(135deg, var(--primary), var(--primary-dark) 60%, #3a1c5e); }
.vcard:hover img, .vcard:hover video { transform: scale(1.06); }
.vcard-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 9, 34, .92) 0%, rgba(8, 9, 34, .35) 45%, transparent 75%); }
.vplay {
    position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; display: grid; place-items: center;
    background: var(--secondary); color: #fff; font-size: 2rem; box-shadow: 0 10px 30px rgba(236, 24, 36, .55);
    transition: transform .4s var(--ease), background .3s;
}
.vplay i { margin-left: 3px; }
.vplay::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); animation: ping 2.6s ease-out infinite; }
.vcard:hover .vplay { transform: scale(1.12); background: #fff; color: var(--secondary); }
.vcard-lg .vplay { width: 88px; height: 88px; margin: -44px 0 0 -44px; font-size: 2.6rem; }
.vmeta { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.1rem 1.3rem; color: #fff; }
.vmeta small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .2rem; }
.vmeta strong { display: block; font-family: 'Poppins', sans-serif; font-size: 1rem; line-height: 1.3; }
.vcard-lg .vmeta { padding: 1.6rem 1.8rem; }
.vcard-lg .vmeta strong { font-size: clamp(1.15rem, 2.2vw, 1.6rem); }

/* Lightbox video player */
.lb-video { width: min(1000px, 92vw); aspect-ratio: 16 / 9; max-height: calc(100vh - 11rem); background: #000; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb-video[hidden] { display: none; }
.lb-video iframe, .lb-video video { width: 100%; height: 100%; border: 0; display: block; background: #000; }

/* Footer credits */
.site-footer .footer-bottom { padding-bottom: 1rem; }
.footer-credits { margin: 0; padding: 0 0 1.8rem; text-align: center; font-size: .85rem; color: rgba(255, 255, 255, .5) !important; }
.site-footer .footer-credits a { color: #fff; font-weight: 600; border-bottom: 1px dashed rgba(255, 255, 255, .4); padding-bottom: 1px; transition: color .25s, border-color .25s; }
.site-footer .footer-credits a:hover { color: var(--accent); border-color: var(--accent); }
