/* ==========================================================================
   DIAMOND PUBLIC SCHOOL, KHERLI (DPS KHERLI)
   Clean Base Design System Engine — Derived from Reference HTML
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --ivory: #FAF7EF;
    --ivory-deep: #F2ECDC;
    --paper: #FFFFFF;
    --navy: #132342;
    --navy-2: #1D3763;
    --navy-soft: #3C5478;
    --gold: #B78A34;
    --gold-light: #E4C77E;
    --gold-pale: #F4E7C6;
    --slate: #5B6270;
    --slate-light: #8B92A0;
    --line: #E4DCC8;
    --radius: 18px;
    --shadow-soft: 0 20px 50px -25px rgba(19, 35, 66, 0.25);
    --shadow-card: 0 12px 30px -18px rgba(19, 35, 66, 0.22);
}

/* 100% Light Mode Permanent Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--ivory);
    color: var(--navy);
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-headings {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color .25s ease;
}

ul {
    list-style: none;
}

img, svg {
    display: block;
    max-width: 100%;
}

.text-navy { color: var(--navy) !important; }
.text-gold { color: var(--gold) !important; }
.text-slate { color: var(--slate) !important; }
.text-slate-light { color: var(--slate-light) !important; }

/* Preloader System */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--ivory);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.preloader-logo-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.preloader-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.preloader-spinner-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--line);
    border-top-color: var(--gold);
    animation: preloader-spin 1s linear infinite;
}

@keyframes preloader-spin {
    to { transform: rotate(360deg); }
}

.preloader-title {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--navy);
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.preloader-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--gold);
    margin-bottom: 24px;
}

.preloader-progress-track {
    width: 140px;
    height: 3px;
    background: var(--line);
    border-radius: 99px;
    overflow: hidden;
    position: relative;
}

.preloader-progress-bar {
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, var(--gold-light), var(--gold));
    border-radius: 99px;
    animation: preloader-progress 1.2s ease-in-out infinite alternate;
}

@keyframes preloader-progress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
}

/* ==========================================================================
   Coordinated 5.5-Second Premium Page-Load Entrance Timeline System
   ========================================================================== */

.page-wrapper {
    opacity: 1;
    overflow-x: hidden;
}

/* Header Stability & Gentle Fade (0s - 1.2s) */
header#siteHeader {
    transform: none !important;
}

.page-entrance-active header#siteHeader .brand {
    animation: entrance-brand 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-entrance-active header#siteHeader .nav-links {
    animation: entrance-fade-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.page-entrance-active header#siteHeader .header-actions {
    animation: entrance-fade-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

@keyframes entrance-brand {
    0% { opacity: 0; transform: scale(0.97); }
    100% { opacity: 1; transform: scale(1); }
}

/* Hero Eyebrow & Main Headings (0.8s - 2.5s) */
.page-entrance-active .eyebrow {
    animation: entrance-fade-up 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

.page-entrance-active .hero-title,
.page-entrance-active section h1 {
    animation: entrance-fade-up 1.3s cubic-bezier(0.16, 1, 0.3, 1) 1.1s both;
}

.page-entrance-active .hero-lead,
.page-entrance-active section .section-subtitle {
    animation: entrance-fade-up 1.3s cubic-bezier(0.16, 1, 0.3, 1) 1.5s both;
}

/* Hero Background Slideshow & Visual Cards (1.5s - 3.5s) */
.page-entrance-active .hero-slideshow,
.page-entrance-active .about-visual,
.page-entrance-active .activity-slider-wrap {
    animation: entrance-hero-visual 1.8s cubic-bezier(0.16, 1, 0.3, 1) 1.5s both;
}

@keyframes entrance-hero-visual {
    0% { opacity: 0; transform: scale(1.04); }
    100% { opacity: 1; transform: scale(1); }
}

/* Buttons & Statistics (2.5s - 4.5s) */
.page-entrance-active .hero-ctas,
.page-entrance-active form .btn,
.page-entrance-active .hero-text-box .btn {
    animation: entrance-fade-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) 2.5s both;
}

.page-entrance-active .hero-meta,
.page-entrance-active .stats {
    animation: entrance-fade-up 1.3s cubic-bezier(0.16, 1, 0.3, 1) 3.0s both;
}

/* Marquee Strip & First-Fold Staggered Cards (3.5s - 5.5s) */
.page-entrance-active .strip {
    animation: entrance-fade-in 1.2s ease-out 3.4s both;
}

.page-entrance-active .grid-4 .card:nth-child(1),
.page-entrance-active .grid-3 .card:nth-child(1),
.page-entrance-active .fac-grid .fac-card:nth-child(1),
.page-entrance-active .timeline .t-step:nth-child(1) {
    animation: entrance-fade-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) 3.5s both;
}

.page-entrance-active .grid-4 .card:nth-child(2),
.page-entrance-active .grid-3 .card:nth-child(2),
.page-entrance-active .fac-grid .fac-card:nth-child(2),
.page-entrance-active .timeline .t-step:nth-child(2) {
    animation: entrance-fade-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) 3.8s both;
}

.page-entrance-active .grid-4 .card:nth-child(3),
.page-entrance-active .grid-3 .card:nth-child(3),
.page-entrance-active .fac-grid .fac-card:nth-child(3),
.page-entrance-active .timeline .t-step:nth-child(3) {
    animation: entrance-fade-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) 4.1s both;
}

.page-entrance-active .grid-4 .card:nth-child(4),
.page-entrance-active .fac-grid .fac-card:nth-child(4),
.page-entrance-active .timeline .t-step:nth-child(4) {
    animation: entrance-fade-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) 4.4s both;
}

/* Entrance Keyframes */
@keyframes entrance-fade-up {
    0% { opacity: 0; transform: translateY(24px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes entrance-fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Eyebrow Accent Label */
.eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.eyebrow::before {
    content: '';
    width: 26px;
    height: 1px;
    background: var(--gold);
    display: inline-block;
}

.eyebrow.center::before {
    display: none;
}

/* Signature Crest Mark */
.crest {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.crest-ring {
    transform-origin: 50% 50%;
    animation: spin 26s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hardware-Accelerated Scroll Reveal Engine */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
    .page-wrapper,
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--navy) !important;
    box-shadow: 0 12px 24px -12px rgba(183, 138, 52, 0.7);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -12px rgba(183, 138, 52, 0.85);
    color: var(--navy) !important;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--navy);
    color: var(--navy) !important;
}

.btn-outline:hover {
    background: var(--navy);
    color: var(--ivory) !important;
    transform: translateY(-2px);
}

/* Header & Navigation Architecture */
header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: #FFFFFF;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 20px -10px rgba(19, 35, 66, 0.12);
    transition: background-color .3s ease, box-shadow .3s ease;
    height: 86px;
    display: flex;
    align-items: center;
}

header.scrolled {
    background: #FFFFFF;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px -10px rgba(19, 35, 66, 0.18);
}

.header-container {
    width: 100%;
    max-width: 1440px;
    padding: 0 40px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    min-width: 290px;
}

.school-logo-img {
    height: 60px;
    max-height: 65px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-text .name {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--navy);
    line-height: 1.1;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.brand-text .sub {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 22px;
    align-items: center;
    margin-bottom: 0;
    padding-left: 0;
    flex-shrink: 1;
}

.nav-links a {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--navy-soft);
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
    display: inline-block;
    transition: color .25s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width .3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--navy);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Mobile Navigation Backdrop Overlay */
.mobile-nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(19, 35, 66, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Offcanvas Mobile Navigation Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 86vw;
    height: 100vh;
    height: 100dvh;
    background: #FAF7EF;
    z-index: 1050;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -8px 0 36px rgba(19, 35, 66, 0.22);
}

.mobile-nav-drawer.active {
    transform: translateX(0);
}

body.mobile-menu-open {
    overflow: hidden !important;
}

.mobile-drawer-header {
    flex-shrink: 0;
}

.mobile-drawer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.mobile-drawer-brand .brand-title {
    font-size: 13.5px;
    line-height: 1.1;
}

.mobile-drawer-brand .brand-sub {
    font-size: 9px;
    letter-spacing: 0.08em;
}

.mobile-drawer-close {
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.mobile-drawer-close:hover {
    background-color: var(--ivory-deep);
}

.mobile-nav-list {
    flex-grow: 1;
}

.mobile-nav-list li {
    margin-bottom: 4px;
}

.mobile-nav-list a {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--navy);
    display: flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 10px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-nav-list a:hover,
.mobile-nav-list a.active {
    background-color: var(--ivory-deep);
    color: var(--gold);
}

.mobile-login-section {
    flex-shrink: 0;
}

.mobile-section-label {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mobile-portal-btn {
    font-size: 13px;
    font-weight: 600;
    background: var(--paper);
    border: 1px solid var(--line);
    transition: all 0.2s ease;
}

.mobile-portal-btn:hover {
    background: var(--navy);
    color: var(--ivory) !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* Header Dropdown Menu */
.dropdown-menu-inst {
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    background: var(--paper);
    padding: 8px;
    min-width: 200px;
}

.dropdown-item-inst {
    font-weight: 600;
    color: var(--navy);
    padding: 10px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-item-inst:hover {
    background-color: var(--ivory);
    color: var(--gold);
}

/* Hero Live Photo Slideshow Section Engine */
.hero-slideshow-section {
    position: relative;
    min-height: 640px;
    height: 680px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--navy);
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero-slideshow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.4s ease-in-out, transform 6s ease-out;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg, rgba(250, 247, 239, 0.95) 0%, rgba(250, 247, 239, 0.86) 55%, rgba(250, 247, 239, 0.35) 100%);
    pointer-events: none;
}

.hero-content-wrap {
    z-index: 3;
}

.hero-text-box {
    max-width: 620px;
}

.hero-title {
    font-size: clamp(38px, 4.8vw, 58px);
    line-height: 1.08;
    margin: 18px 0 22px;
    color: var(--navy);
}

.hero-title em {
    font-style: italic;
    color: var(--gold);
}

.hero-lead {
    font-size: 17.5px;
    color: var(--slate);
    margin-bottom: 28px;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 34px;
}

.hero-meta {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.hero-meta .num {
    font-family: 'Fraunces', serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--navy);
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.hero-meta .num span {
    color: var(--gold);
}

.hero-meta .lbl {
    font-size: 12.5px;
    color: var(--slate-light);
    letter-spacing: 0.03em;
}

/* Hero Slideshow Dots Indicator */
.hero-dots {
    position: absolute;
    bottom: 24px;
    right: 40px;
    z-index: 4;
    display: flex;
    gap: 8px;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    background: rgba(250, 247, 239, 0.6);
    cursor: pointer;
    transition: background 0.3s ease, width 0.3s ease;
    padding: 0;
}

.hero-dots button.active {
    background: var(--gold);
    width: 24px;
    border-radius: 6px;
}

.hero-art-inner {
    position: absolute;
    width: 78%;
    height: 78%;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, var(--paper), var(--ivory-deep));
    box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--line);
}

.art-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px dashed rgba(183, 138, 52, 0.4);
    animation: spin 40s linear infinite;
}

.art-ring2 {
    position: absolute;
    width: 60%;
    height: 60%;
    border-radius: 50%;
    border: 1px solid rgba(19, 35, 66, 0.12);
    animation: spin 30s linear infinite reverse;
}

.floaty {
    position: absolute;
    background: var(--paper);
    border-radius: 14px;
    box-shadow: var(--shadow-card);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    z-index: 10;
}

.floaty i, .floaty svg {
    color: var(--gold);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.f1 { top: 6%; left: -6%; }
.f2 { bottom: 14%; right: -8%; }
.f3 { bottom: -2%; left: 14%; }

.crest-center {
    position: relative;
    z-index: 2;
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Information Marquee Strip */
.strip {
    background: var(--navy);
    color: var(--ivory);
    padding: 14px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.strip-track {
    display: inline-flex;
    gap: 48px;
    animation: marquee 26s linear infinite;
}

.strip-track span {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-light);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.strip-track span::after {
    content: '✦';
    color: rgba(228, 199, 126, 0.5);
    margin-left: 36px;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Section Shell & Components */
section {
    padding: 100px 0;
}

.section-head {
    max-width: 640px;
    margin-bottom: 56px;
}

.section-head h2 {
    font-size: clamp(28px, 3.4vw, 40px);
    margin: 14px 0 16px;
}

.section-head p {
    color: var(--slate);
    font-size: 16px;
}

.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* About Section */
.about {
    display: grid;
    grid-template-columns: 0.45fr 0.55fr;
    gap: 56px;
    align-items: center;
}

.about-visual {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 36px -12px rgba(19, 35, 66, 0.22);
    border: 1px solid var(--line);
    background: var(--paper);
    min-height: 380px;
}

.about-img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    max-height: 440px;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.about-visual:hover .about-img {
    transform: scale(1.03);
}

.about-visual .quote-card {
    position: absolute;
    bottom: 18px;
    left: 18px;
    right: 18px;
    background: rgba(250, 247, 239, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 10px 24px -10px rgba(19, 35, 66, 0.25);
    border: 1px solid var(--line);
}

.about-visual .quote-card p {
    font-family: 'Fraunces', serif;
    font-style: italic;
    color: var(--navy);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 0;
}

.about-visual .quote-card .who {
    margin-top: 10px;
    font-size: 12px;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Primary Sports & Activities Section Engine */
.activities-section {
    padding: 90px 0;
}

.max-w-700 {
    max-width: 760px;
}

.activity-slider-wrap {
    position: relative;
    border-radius: 20px;
    box-shadow: 0 16px 36px -12px rgba(19, 35, 66, 0.22);
    background: var(--navy);
    padding: 8px;
    border: 1px solid var(--line);
}

.activity-slider {
    position: relative;
    aspect-ratio: 4/3;
    min-height: 380px;
    border-radius: 16px;
    overflow: hidden;
}

.activity-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.activity-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.activity-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    transition: transform 0.6s ease;
}

.activity-slide:hover .activity-img {
    transform: scale(1.03);
}

.activity-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px 18px;
    background: linear-gradient(0deg, rgba(19, 35, 66, 0.92) 0%, rgba(19, 35, 66, 0.5) 70%, transparent 100%);
    color: #FFFFFF;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.activity-caption h5 {
    color: #FFFFFF;
    font-size: 1.15rem;
    margin-top: 6px;
    margin-bottom: 0;
}

.activity-point-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px 22px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.activity-point-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-card);
    border-color: var(--gold);
}

.activity-point-card .point-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gold-pale);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.activity-point-card h4 {
    font-size: 1.05rem;
    color: var(--navy);
    margin-bottom: 4px;
}

.activity-point-card p {
    font-size: 13.5px;
    color: var(--slate);
    margin-bottom: 0;
    line-height: 1.55;
}

.btn-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-icon:hover {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

.activities-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.activities-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    background: var(--line);
    cursor: pointer;
    transition: background 0.3s ease, width 0.3s ease;
    padding: 0;
}

.activities-dots button.active {
    background: var(--gold);
    width: 22px;
    border-radius: 6px;
}

.about-list {
    margin-top: 26px;
    display: grid;
    gap: 16px;
}

.about-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-size: 15px;
    color: var(--slate);
}

.about-list .tick {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gold-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.about-list .tick i {
    color: var(--gold);
    font-size: 12px;
}

/* Feature Cards System */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 26px;
    transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease, border-color .4s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
    border-color: transparent;
}

.card .icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gold-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card .icon i {
    font-size: 1.4rem;
    color: var(--gold);
}

.card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--navy);
}

.card p {
    font-size: 14.5px;
    color: var(--slate);
    margin-bottom: 0;
}

/* Academics Timeline Journey */
.timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    position: relative;
    margin-top: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 26px;
    left: 8%;
    right: 8%;
    height: 1px;
    background: var(--line);
}

.t-step {
    text-align: center;
    padding: 0 10px;
    position: relative;
}

.t-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--paper);
    border: 1.5px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    color: var(--gold);
    margin: 0 auto 18px;
    position: relative;
    z-index: 2;
    transition: background .3s ease, color .3s ease;
}

.t-step:hover .t-num {
    background: var(--gold);
    color: var(--paper);
}

.t-step h4 {
    font-size: 15.5px;
    margin-bottom: 6px;
    color: var(--navy);
}

.t-step p {
    font-size: 13.5px;
    color: var(--slate-light);
    margin-bottom: 0;
}

/* Facilities Band & Cards */
.facilities-band {
    background: var(--ivory-deep);
}

.fac-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.fac-card {
    background: var(--paper);
    border-radius: 16px;
    padding: 26px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    border: 1px solid var(--line);
    transition: transform .35s ease, box-shadow .35s ease;
}

.fac-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
}

.fac-card .icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fac-card .icon i {
    color: var(--gold-light);
    font-size: 1.1rem;
}

.fac-card h4 {
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--navy);
}

.fac-card p {
    font-size: 13.5px;
    color: var(--slate);
    margin-bottom: 0;
}

/* Statistics Section */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat .num {
    font-family: 'Fraunces', serif;
    font-size: 44px;
    font-weight: 600;
    color: var(--navy);
}

.stat .num span {
    color: var(--gold);
}

.stat .lbl {
    margin-top: 8px;
    font-size: 13px;
    color: var(--slate-light);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Leadership Profile Cards */
.leadership-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-card);
    height: 100%;
}

.leadership-img {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
}

.leadership-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
}

.leadership-role {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Testimonials Parent Quote Slider */
.test-wrap {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    min-height: 200px;
}

.test-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s ease, transform .6s ease;
    pointer-events: none;
}

.test-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.test-slide p {
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-style: italic;
    text-align: center;
    color: var(--navy);
    line-height: 1.5;
}

.test-slide .who {
    text-align: center;
    margin-top: 20px;
    font-size: 13.5px;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.test-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 30px;
}

.test-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--line);
    cursor: pointer;
    transition: background .3s ease, width .3s ease;
}

.test-dots button.active {
    background: var(--gold);
    width: 22px;
    border-radius: 5px;
}

/* Admissions CTA Band */
.cta-band {
    background: linear-gradient(120deg, var(--navy), var(--navy-2) 60%, var(--navy-soft));
    border-radius: 28px;
    padding: 64px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(228, 199, 126, 0.18), transparent 65%);
}

.cta-band h2 {
    color: var(--ivory);
    font-size: clamp(26px, 3vw, 36px);
    max-width: 480px;
}

.cta-band p {
    color: rgba(250, 247, 239, 0.72);
    margin-top: 12px;
    max-width: 440px;
    font-size: 15px;
    margin-bottom: 0;
}

/* Contact Section & Form */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 26px;
    font-size: 15px;
    color: var(--slate);
}

.contact-info .icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--gold-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info .icon i {
    color: var(--gold);
    font-size: 1.1rem;
}

.contact-info strong {
    display: block;
    color: var(--navy);
    font-size: 14.5px;
    margin-bottom: 2px;
}

form {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-card);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

input, textarea, select {
    width: 100%;
    padding: 13px 16px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--ivory);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--navy);
    transition: border-color .25s ease, box-shadow .25s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(183, 138, 52, 0.15);
}

textarea {
    margin-bottom: 18px;
    min-height: 100px;
    resize: vertical;
}

/* Footer Section */
footer {
    background: var(--navy);
    color: rgba(250, 247, 239, 0.7);
    padding: 64px 0 28px;
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.foot-logo-img {
    height: 75px;
    max-height: 85px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.foot-brand .brand-text .name {
    color: var(--ivory);
    font-size: 1.25rem;
    font-weight: 700;
}

.foot-brand p {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.7;
    max-width: 280px;
    color: rgba(250, 247, 239, 0.55);
}

footer h5 {
    color: var(--ivory);
    font-size: 13.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 18px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

footer ul {
    padding-left: 0;
    list-style: none;
    margin-bottom: 0;
}

footer ul li {
    margin-bottom: 10px;
    font-size: 14px;
}

footer a {
    color: rgba(250, 247, 239, 0.7);
}

footer a:hover {
    color: var(--gold-light);
}

.foot-bottom {
    border-top: 1px solid rgba(250, 247, 239, 0.12);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: rgba(250, 247, 239, 0.45);
}

/* Developer Credit Styling */
.foot-credit {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(250, 247, 239, 0.08);
    text-align: center;
    font-size: 13px;
    color: rgba(250, 247, 239, 0.55);
    letter-spacing: 0.01em;
}

.foot-credit .dev-heart {
    display: inline-block;
    margin: 0 2px;
    font-size: 12px;
    vertical-align: middle;
}

.foot-credit .dev-link {
    color: var(--gold-light);
    font-weight: 600;
    text-decoration: none;
    padding: 2px 8px;
    margin-left: 2px;
    border-radius: 4px;
    background: rgba(183, 138, 52, 0.12);
    border: 1px solid rgba(228, 199, 126, 0.25);
    transition: all 0.25s ease;
    display: inline-block;
}

.foot-credit .dev-link:hover {
    color: #FFFFFF;
    background: rgba(183, 138, 52, 0.28);
    border-color: var(--gold-light);
    box-shadow: 0 2px 10px rgba(183, 138, 52, 0.25);
    transform: translateY(-1px);
}

/* Back To Top Button */
.totop {
    position: fixed;
    bottom: 26px;
    right: 26px;
    z-index: 900;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all .35s ease;
    cursor: pointer;
    border: none;
}

.totop.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ==========================================================================
   Footer Social Media Icons
   ========================================================================== */
.foot-social-wrap {
    margin-top: 20px;
}

.foot-social-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--gold-light, #e4c77e);
    text-transform: uppercase;
    font-weight: 600;
}

.foot-social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.foot-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
}

.foot-social-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.foot-social-btn.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(214, 36, 159, 0.45);
}

.foot-social-btn.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.45);
}

.foot-social-btn.youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.45);
}

.hover-gold:hover {
    color: var(--gold-light, #e4c77e) !important;
    transform: translateY(-2px);
    transition: all 0.2s ease;
}

/* ==========================================================================
   Fixed Floating Social Media Bar (Right Side)
   ========================================================================== */
.floating-social-bar {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: auto;
}

.floating-social-bar .float-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 20px;
    text-decoration: none !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
    position: relative;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease, filter 0.28s ease;
    border: 2px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
}

.floating-social-bar .float-btn:hover {
    transform: translateX(-6px) scale(1.08);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
    filter: brightness(1.1);
}

.floating-social-bar .float-btn.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.floating-social-bar .float-btn.facebook {
    background: #1877f2;
}

.floating-social-bar .float-btn.youtube {
    background: #ff0000;
}

.floating-social-bar .float-btn.whatsapp {
    background: #25d366;
}

/* Tooltip on hover */
.floating-social-bar .float-btn .float-tooltip {
    position: absolute;
    right: 58px;
    top: 50%;
    transform: translateY(-50%) scale(0.85);
    background: #0b1226;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.03em;
    pointer-events: none;
    opacity: 0;
    transition: all 0.22s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(228, 199, 126, 0.35);
}

.floating-social-bar .float-btn .float-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #0b1226;
}

.floating-social-bar .float-btn:hover .float-tooltip {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* Responsive adjustment for mobile screens */
@media (max-width: 768px) {
    .floating-social-bar {
        right: 10px;
        gap: 8px;
    }
    .floating-social-bar .float-btn {
        width: 40px;
        height: 40px;
        font-size: 17px;
    }
    .floating-social-bar .float-btn .float-tooltip {
        display: none;
    }
}

/* Responsive Media Queries & Mobile Header Breakpoints */
html, body, .page-wrapper {
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 1366px) {
    .header-container { padding: 0 24px; }
    .nav-links { gap: 16px; }
    .nav-links a { font-size: 13.5px; }
}

@media (max-width: 1199px) {
    .header-container { padding: 0 20px; }
    .nav-links { display: none !important; }
    .menu-toggle { display: block !important; }
}

@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-art { max-width: 380px; margin: 0 auto; order: -1; }
    .about { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .timeline { grid-template-columns: 1fr 1fr; row-gap: 36px; }
    .timeline::before { display: none; }
    .fac-grid { grid-template-columns: 1fr 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .contact { grid-template-columns: 1fr; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    header {
        height: 72px;
    }
    
    .header-container {
        padding: 0 16px;
        gap: 10px;
    }
    
    .brand {
        min-width: 0 !important;
        gap: 10px;
        flex-shrink: 1;
        overflow: hidden;
    }
    
    .school-logo-img {
        height: 42px;
        max-height: 44px;
    }
    
    .brand-text {
        min-width: 0;
        overflow: hidden;
    }
    
    .brand-text .name {
        font-size: 0.9rem;
        line-height: 1.1;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }
    
    .brand-text .sub {
        font-size: 8.5px;
        letter-spacing: 0.05em;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }
    
    .header-actions {
        gap: 6px;
        flex-shrink: 0;
    }
    
    .header-login-btn {
        padding: 6px 10px !important;
        font-size: 12.5px !important;
        white-space: nowrap;
    }

    .menu-toggle {
        padding: 4px !important;
    }

    .menu-toggle svg {
        width: 24px;
        height: 24px;
    }

    .hero-slideshow-section {
        min-height: 560px;
        height: auto;
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .hero-meta {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 680px) {
    .grid-4, .grid-3, .fac-grid, .timeline, .stats { grid-template-columns: 1fr; }
    .cta-band { flex-direction: column; text-align: center; padding: 44px 28px; }
    .form-row { grid-template-columns: 1fr; }
    .foot-grid { grid-template-columns: 1fr; gap: 32px; }
    section { padding: 60px 0; }
    .foot-logo-img { height: 56px; max-width: 80px; }
}

@media (max-width: 480px) {
    header {
        height: 68px;
    }

    .header-container {
        padding: 0 12px;
        gap: 8px;
    }
    
    .brand {
        gap: 8px;
    }

    .school-logo-img {
        height: 38px;
    }

    .brand-text .name {
        font-size: 0.82rem;
    }

    .brand-text .sub {
        font-size: 8px;
        letter-spacing: 0.03em;
    }

    .header-actions {
        gap: 4px;
    }

    .header-login-btn {
        padding: 5px 8px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 360px) {
    header {
        height: 64px;
    }

    .header-container {
        padding: 0 8px;
        gap: 6px;
    }

    .school-logo-img {
        height: 34px;
    }

    .brand-text .name {
        font-size: 0.76rem;
    }

    .brand-text .sub {
        display: none;
    }

    .header-login-btn {
        padding: 4px 7px !important;
        font-size: 11.5px !important;
    }
}

/* =========================================================================
   DPS KHERLI MOBILE APPS SHOWCASE SECTION & ANIMATIONS
   ========================================================================= */
.apps-section {
    padding: 70px 0;
    position: relative;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.app-showcase-card {
    background: #ffffff;
    border: 1px solid rgba(13, 27, 42, 0.08);
    border-radius: 18px;
    padding: 34px 30px;
    box-shadow: 0 12px 32px -10px rgba(13, 27, 42, 0.08);
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-showcase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, #0d1b2a 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-showcase-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 48px -12px rgba(13, 27, 42, 0.16);
    border-color: rgba(245, 185, 66, 0.5);
}

.app-showcase-card:hover::before {
    opacity: 1;
}

.app-card-badge-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 8px;
}

.app-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
}

.app-badge-faculty {
    background: rgba(13, 27, 42, 0.08);
    color: var(--navy);
}

.app-badge-student {
    background: rgba(15, 118, 110, 0.1);
    color: #0f766e;
}

.app-badge-apk {
    background: rgba(245, 185, 66, 0.15);
    color: #946800;
    border: 1px solid rgba(245, 185, 66, 0.3);
}

.app-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

@keyframes appIconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.app-icon-wrapper {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    animation: appIconFloat 4s ease-in-out infinite;
    box-shadow: 0 8px 20px -4px rgba(13, 27, 42, 0.18);
    border: 2px solid rgba(245, 185, 66, 0.4);
}

.app-icon-teacher {
    background: linear-gradient(135deg, #0b1b34 0%, #1a365d 100%);
    color: var(--gold-light);
}

.app-icon-student {
    background: linear-gradient(135deg, #062b2d 0%, #0d474c 100%);
    color: #5eead4;
    animation-delay: 2s;
}

.app-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 4px 0;
}

.app-subtitle {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
}

.app-desc {
    font-size: 0.92rem;
    color: var(--slate);
    line-height: 1.55;
    margin-bottom: 16px;
}

.app-features-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px 0;
    padding: 0;
    list-style: none;
}

.app-features-pills li {
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--ivory);
    color: #1e3a5f;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid rgba(13, 27, 42, 0.06);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.app-specs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(13, 27, 42, 0.02);
    border: 1px dashed rgba(13, 27, 42, 0.12);
    border-radius: 10px;
    padding: 10px 14px;
    margin-top: auto;
    margin-bottom: 22px;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    font-weight: 600;
}

.spec-val {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--navy);
}

.app-cta-wrap {
    margin-top: 0;
}

.btn-app-download {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(135deg, #0d1b2a 0%, #1e3a5f 100%);
    color: #ffffff !important;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none !important;
    border: 1px solid rgba(245, 185, 66, 0.35);
    box-shadow: 0 6px 16px -4px rgba(13, 27, 42, 0.22);
    transition: all 0.28s ease;
    width: 100%;
}

.btn-app-download:hover {
    background: linear-gradient(135deg, #13243d 0%, #0a1523 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -4px rgba(245, 185, 66, 0.35);
    border-color: var(--gold);
    color: #ffffff !important;
}

.btn-app-download .app-dl-icon {
    transition: transform 0.25s ease;
    color: var(--gold);
}

.btn-app-download:hover .app-dl-icon {
    transform: translateY(3px);
}

.btn-app-download-alt {
    background: linear-gradient(135deg, #0b2528 0%, #134e4a 100%);
    border-color: rgba(94, 234, 212, 0.35);
}

.btn-app-download-alt:hover {
    background: linear-gradient(135deg, #07191b 0%, #0f3c39 100%);
    border-color: #5eead4;
}

.btn-app-download-alt .app-dl-icon {
    color: #5eead4;
}

.btn-app-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex-grow: 1;
}

.btn-app-primary-text {
    font-weight: 700;
    font-size: 0.94rem;
    line-height: 1.2;
}

.btn-app-sub-text {
    font-size: 0.72rem;
    opacity: 0.82;
    font-weight: 400;
}

.btn-app-download.disabled {
    background: #64748b;
    border-color: transparent;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.7;
}

@media (max-width: 576px) {
    .app-showcase-card {
        padding: 24px 18px;
    }
    .app-specs-row {
        flex-wrap: wrap;
        gap: 12px;
    }
    .spec-item {
        min-width: 40%;
    }
}
