/* =============================================
   HOMEPAGE PREMIUM REFINEMENT LAYER
   Layered on top of style.css — homepage only
   ============================================= */

/* ─── NAVBAR & HEADER REFINEMENT ─── */
.navbar {
    position: sticky !important;
    top: 0 !important; /* default, becomes 38px only if announcement-strip exists */
    z-index: 10000 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-bottom: 2px solid rgba(62, 35, 108, 0.1) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08) !important;
    transition: background 0.4s ease !important;
    height: auto !important;
    padding: 10px 0 !important;
}

/* Home Page Specific: Sticky Announcement Strip */
.announcement-strip {
    position: sticky !important;
    top: 0 !important;
    z-index: 10001 !important; /* Keep above navbar */
}

/* IMPORTANT: Only offset navbar if announcement-strip is present */
.announcement-strip ~ .navbar {
    top: 38px !important;
}

/* Ensure mobile menu and overlay stay above sticky headers */
.mobile-menu-overlay {
    z-index: 20000 !important;
}

.mobile-menu-btn {
    z-index: 10002 !important; /* Above sticky header */
}



.nav-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

.logo img {
    max-height: 50px !important;
    width: auto !important;
    transition: transform 0.3s ease !important;
}

.nav-links {
    margin: 0 auto !important; /* Center the links */
    display: flex !important;
    gap: 30px !important;
    list-style: none !important;
}

/* Ensure mobile menu button is always on top */
.mobile-menu-btn {
    color: var(--primary-color) !important;
    font-size: 1.8rem !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    display: none !important;
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: block !important;
    }
    .nav-links {
        display: none !important;
    }
    .nav-buttons {
        display: none !important; /* Hide Enquire button in main header on mobile to avoid clutter */
    }
    .logo img {
        max-height: 40px !important;
    }
}

/* ─── 0. GLOBAL SECTION RHYTHM ─── */
.hp-mi-premium,
.hp-programs,
.hp-activities,
.hp-safety,
.hp-testimonials,
.hp-gallery,
.hp-corporate {
    padding-top: clamp(60px, 6vw, 90px);
    padding-bottom: clamp(60px, 6vw, 90px);
}

/* Alternating soft backgrounds for visual rhythm */
.hp-programs { background: var(--bg-white); }
.hp-activities { background: var(--bg-soft-purple); }
.hp-safety { background: var(--bg-white); }
.hp-testimonials { background: linear-gradient(180deg, #F8F5FD 0%, #FFFFFF 100%); }
.hp-gallery { background: var(--bg-white); }

/* ─── SECTION HEADERS: REFINED ─── */
.hp-section-header {
    margin-bottom: clamp(48px, 5vw, 64px);
}
.hp-section-header h2 {
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.hp-section-header p {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
    color: var(--text-muted);
}

/* Tag pill refinement */
/* Tag pill refinement handled globally in style.css */


/* ─── 1. HERO SECTION POLISH ─── */
.hp-hero {
    position: relative;
    overflow: hidden;
    background: #fdfdfd;
    padding-top: 0 !important; /* Adjusted for sticky header stack */
}

.hp-hero-slider-wrapper {
    display: grid !important;
    width: 100%;
    position: relative;
    isolation: isolate;
}

.hp-hero-slide {
    grid-area: 1 / 1;
    display: flex !important;
    width: 100%;
    min-height: 420px;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, 12px, 0) scale(0.995);
    transition:
        opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0.72s;
    animation: none !important;
    will-change: opacity, transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    contain: paint;
}

.hp-hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
    transition-delay: 0s;
}

.hp-hero-container,
.hp-hero-visual,
.hp-hero-blob-premium,
.hp-hero-blob-premium img,
.hp-hero-blob-premium video {
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hp-hero-blob-premium video {
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    .hp-hero-slide {
        transition: none;
        transform: none;
    }
}

/* Ambient Background Glows */
.hp-hero-bg-glow {
    position: absolute;
    width: 80vw;
    height: 80vw;
    max-width: 800px;
    max-height: 800px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}
.glow-1 {
    top: -20%;
    left: -10%;
    background: radial-gradient(circle, rgba(255,236,179,0.5) 0%, transparent 60%);
    animation: drift 20s ease-in-out infinite alternate;
}
.glow-2 {
    bottom: -20%;
    right: -10%;
    background: radial-gradient(circle, rgba(225,190,231,0.4) 0%, transparent 60%);
    animation: drift 25s ease-in-out infinite alternate-reverse;
}

/* Elegant Animated Deco Blobs instead of emojis */
.hp-hero-deco-blob {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    filter: blur(40px);
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
    animation: morphFloat 15s ease-in-out infinite;
}
.blob-1 {
    width: 300px; height: 300px;
    top: 20%; left: 5%;
    background: linear-gradient(135deg, rgba(255,167,38,0.2), rgba(255,202,40,0.2));
}
.blob-2 {
    width: 250px; height: 250px;
    bottom: 30%; left: 50%;
    background: linear-gradient(135deg, rgba(3,169,244,0.15), rgba(77,208,225,0.15));
    animation-delay: -5s;
}

@keyframes morphFloat {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: translate(0,0) rotate(0deg); }
    34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; transform: translate(30px, -50px) rotate(10deg); }
    67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; transform: translate(-20px, 20px) rotate(-5deg); }
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, -50px); }
}

/* Badge */
.hp-hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: rgba(124, 77, 255, 0.08);
    color: #7C4DFF;
    border: 1px solid rgba(124, 77, 255, 0.2);
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Hero Typography Refinements */
.hp-hero-content h1 {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}
.hp-hero-desc {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(45, 27, 78, 0.7);
    margin-bottom: 36px;
}

/* Theme Gradients */
.gradient-green { background: linear-gradient(135deg, #43A047, #81C784); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.gradient-rose { background: linear-gradient(135deg, #E91E63, #F48FB1); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.gradient-blue { background: linear-gradient(135deg, #0288D1, #4FC3F7); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Text Accents */
.text-accent-purple { color: #AB47BC; }
.text-accent-yellow { color: #FFCA28; }
.text-accent-orange { color: #FF7043; }
.text-accent-cyan { color: #26C6DA; }
.text-accent-green { color: #66BB6A; }
.text-accent-rose { color: #EC407A; }
.text-accent-blue { color: #42A5F5; }

/* Squircle Premium Blob */
.hp-hero-blob-premium {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    aspect-ratio: 1;
    border-radius: 35px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(124, 77, 255, 0.2), 0 0 0 8px rgba(255, 255, 255, 0.7);
    transform: translateZ(0);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hp-hero-blob-premium:hover {
    transform: scale(1.02);
}
.hp-hero-blob-premium img, .hp-hero-blob-premium video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.shadow-green { box-shadow: 0 30px 80px rgba(76, 175, 80, 0.2), 0 0 0 8px rgba(255, 255, 255, 0.7); }
.shadow-rose { box-shadow: 0 30px 80px rgba(233, 30, 99, 0.2), 0 0 0 8px rgba(255, 255, 255, 0.7); }
.shadow-blue { box-shadow: 0 30px 80px rgba(3, 169, 244, 0.2), 0 0 0 8px rgba(255, 255, 255, 0.7); }


/* Float cards: better glassmorphism */
.hp-hero-float {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-lg);
    box-shadow:
        0 8px 32px rgba(62, 35, 108, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 16px 24px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.hp-hero-float:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 48px rgba(62, 35, 108, 0.12);
}
.hp-float-icon.text-accent-purple { background: rgba(171, 71, 188, 0.15) !important; color: #AB47BC !important; }
.hp-float-icon.text-accent-yellow { background: rgba(255, 179, 0, 0.15) !important; color: #FFB300 !important; }
.hp-float-icon.text-accent-orange { background: rgba(255, 112, 67, 0.15) !important; color: #FF7043 !important; }
.hp-float-icon.text-accent-cyan { background: rgba(38, 198, 218, 0.15) !important; color: #26C6DA !important; }
.hp-float-icon.text-accent-green { background: rgba(102, 187, 106, 0.15) !important; color: #66BB6A !important; }
.hp-float-icon.text-accent-rose { background: rgba(236, 64, 122, 0.15) !important; color: #EC407A !important; }
.hp-float-icon.text-accent-blue { background: rgba(66, 165, 245, 0.15) !important; color: #42A5F5 !important; }

/* Trust chips: Pill shapes */
.hp-trust-chip {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}
.hp-trust-chip:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

/* Hero wave: ensure smooth transition */
.hp-hero-wave svg {
    display: block;
}

/* ─── SLIDER CONTROLS: HIGH VISIBILITY & INTEGRATION ─── */
.hp-slider-controls-container {
    position: absolute;
    bottom: 90px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    pointer-events: none;
    z-index: 20;
}
.hp-slider-controls {
    position: relative !important;
    bottom: auto !important;
    left: 0 !important;
    transform: none !important;
    justify-content: center !important;
    pointer-events: auto;
}

.hp-slider-arrow {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    color: var(--primary-dark) !important;
    width: 54px !important;
    height: 54px !important;
    border-radius: 50% !important;
    font-size: 1.25rem !important;
    box-shadow:
        0 8px 24px rgba(62, 35, 108, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.hp-slider-arrow:hover {
    background: #fff !important;
    color: var(--accent-purple) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 12px 32px rgba(94, 53, 177, 0.2) !important;
}

.hp-slider-dots .hp-dot {
    width: 12px !important;
    height: 12px !important;
    background: rgba(62, 35, 108, 0.2) !important;
    border: none !important;
    border-radius: 50% !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    margin: 0 6px !important;
}

.hp-slider-dots .hp-dot:hover {
    background: rgba(62, 35, 108, 0.4) !important;
    transform: scale(1.2) !important;
}

.hp-slider-dots .hp-dot.active {
    background: var(--accent-purple) !important;
    width: 36px !important;
    border-radius: 50px !important;
    transform: scale(1) !important;
    box-shadow: 0 4px 12px rgba(124, 77, 255, 0.3) !important;
}


/* ─── 2. STATS BAR — REDESIGNED ─── */
.hp-stats {
    position: relative !important;
    z-index: 10 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 40px 0 !important;
}

.hp-stats-glass {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 20px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.hp-stat-item {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    flex: 1 !important;
    justify-content: center !important;
}

.hp-stat-icon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.15rem !important;
    background: var(--bg-soft-purple) !important;
    color: var(--primary-color) !important;
    transition: transform 0.3s ease, background 0.3s ease !important;
}
.hp-stat-item:hover .hp-stat-icon {
    transform: scale(1.08) rotate(-5deg) !important;
    background: var(--primary-color) !important;
    color: #fff !important;
}

.hp-stat-body {
    display: block !important;
}

.hp-stat-number {
    font-family: var(--font-heading) !important;
    font-weight: 800 !important;
    font-size: clamp(1.6rem, 2.2vw, 2rem) !important;
    color: var(--primary-dark) !important;
    line-height: 1 !important;
    display: inline !important;
}

.hp-stat-plus {
    font-weight: 900 !important;
    color: var(--accent-yellow) !important;
    font-size: 1.2rem !important;
    font-family: var(--font-body) !important;
}

.hp-stat-label {
    display: block !important;
    font-size: 0.8rem !important;
    color: var(--text-muted) !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em !important;
    margin-top: 2px !important;
    white-space: nowrap !important;
}

.hp-stat-divider {
    width: 1px !important;
    height: 40px !important;
    background: linear-gradient(180deg, transparent, rgba(62, 35, 108, 0.1), transparent) !important;
    flex-shrink: 0 !important;
    margin: 0 4px !important;
}

/* Stats responsive */
@media (max-width: 900px) {
    .hp-stats-glass {
        flex-wrap: wrap !important;
        gap: 20px !important;
        justify-content: center !important;
        padding: 28px 24px !important;
    }
    .hp-stat-divider {
        display: none !important;
    }
    .hp-stat-item {
        flex: 0 0 calc(50% - 12px) !important;
        justify-content: flex-start !important;
    }
    .hp-stat-label {
        white-space: normal !important;
    }
}
@media (max-width: 500px) {
    .hp-stat-item {
        flex: 0 0 100% !important;
    }
}



/* ─── 3. MI SECTION — V2 COMPACT REDESIGN ─── */

/* Section Container */
.hp-mi-premium {
    padding: clamp(30px, 4vw, 50px) 0 clamp(50px, 5vw, 80px) !important;
    background: linear-gradient(170deg, #F8F5FD 0%, #FFF9F5 40%, #FFF5EE 70%, #F3F0F9 100%) !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Subtle Background Blobs */
.mi-bg-shapes {
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

.mi-blob {
    position: absolute !important;
    border-radius: 50% !important;
    filter: blur(100px) !important;
    opacity: 0.5 !important;
}

.mi-blob-1 {
    background: radial-gradient(circle, rgba(124, 77, 255, 0.12), transparent 70%) !important;
    width: 500px !important;
    height: 500px !important;
    top: -100px !important;
    right: -80px !important;
}

.mi-blob-2 {
    background: radial-gradient(circle, rgba(255, 152, 0, 0.08), transparent 70%) !important;
    width: 400px !important;
    height: 400px !important;
    bottom: -80px !important;
    left: -60px !important;
}

/* ── HEADER ── */
.mi-header-premium {
    max-width: 680px !important;
    margin: 0 auto 48px !important;
    text-align: center !important;
    position: relative !important;
    z-index: 2 !important;
}

.mi-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(108, 93, 211, 0.12), rgba(108, 93, 211, 0.04));
    color: var(--accent-purple);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 8px 24px;
    border-radius: 50px;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: var(--font-body);
    border: 1px solid rgba(108, 93, 211, 0.15);
    box-shadow: 0 4px 16px rgba(108, 93, 211, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.mi-header-premium h2 {
    font-size: clamp(2rem, 4vw, 3rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 16px !important;
    color: var(--primary-dark) !important;
    letter-spacing: -0.02em !important;
    font-weight: 700 !important;
}

.mi-header-premium h2 em {
    background: linear-gradient(135deg, var(--accent-purple), #E040FB, #FF6D00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic !important;
    font-weight: 700 !important;
}

.mi-lead {
    font-size: 1rem !important;
    line-height: 1.7 !important;
    color: var(--text-muted) !important;
    max-width: 540px !important;
    margin: 0 auto !important;
    font-family: var(--font-body) !important;
}

/* ── V2 COMPACT GRID ── */
.mi-grid-v2 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    position: relative !important;
    z-index: 2 !important;
}

@media (max-width: 768px) {
    .mi-grid-v2 { grid-template-columns: 1fr !important; }
}

/* ── V2 HORIZONTAL CARD ── */
.mi-card-v2 {
    display: flex !important;
    align-items: flex-start !important;
    gap: 18px !important;
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 20px !important;
    padding: 24px !important;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 4px 20px rgba(62, 35, 108, 0.04) !important;
    position: relative !important;
    overflow: hidden !important;
}

.mi-card-v2::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 4px !important;
    height: 100% !important;
    background: var(--accent) !important;
    opacity: 0 !important;
    border-radius: 20px 0 0 20px !important;
    transition: opacity 0.3s ease !important;
}

.mi-card-v2:hover {
    transform: translateY(-4px) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(0, 0, 0, 0.04) !important;
    box-shadow:
        0 12px 36px rgba(62, 35, 108, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.03) !important;
}

.mi-card-v2:hover::before {
    opacity: 1 !important;
}

/* Icon */
.mi-card-v2-icon {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    background: var(--accent-light) !important;
    color: var(--accent) !important;
    border-radius: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.3rem !important;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.mi-card-v2:hover .mi-card-v2-icon {
    background: var(--accent) !important;
    color: #fff !important;
    border-radius: 50% !important;
    transform: scale(1.08) rotate(-5deg) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
}

/* Body */
.mi-card-v2-body {
    flex: 1 !important;
    min-width: 0 !important;
}

.mi-card-v2-body h4 {
    font-family: var(--font-heading) !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--primary-dark) !important;
    margin-bottom: 4px !important;
    line-height: 1.3 !important;
}

.mi-card-v2-body p {
    font-size: 0.88rem !important;
    line-height: 1.55 !important;
    color: var(--text-muted) !important;
    margin: 0 !important;
}




/* ─── 4. PROGRAM CARDS WARMTH ─── */
.hp-card-link {
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    display: block;
    box-shadow: 0 4px 20px rgba(62, 35, 108, 0.06);
    transition:
        transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.4s ease;
}
.hp-card-link:hover {
    transform: translateY(-10px);
    box-shadow:
        0 20px 50px rgba(62, 35, 108, 0.12),
        0 8px 20px rgba(62, 35, 108, 0.06);
}

.hp-card-img {
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.hp-card-img img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hp-card-link:hover .hp-card-img img {
    transform: scale(1.08);
}

.hp-card-desc-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 30px;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 5;
}
.hp-card-desc-overlay i {
    font-size: 2.5rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(0.8);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
}
.hp-card-desc-overlay p {
    margin: 0;
    font-weight: 500;
    color: var(--text-dark);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease 0.15s;
}
.hp-card-link:hover .hp-card-desc-overlay {
    transform: translateY(0);
    opacity: 1;
}
.hp-card-link:hover .hp-card-desc-overlay i {
    transform: scale(1);
}
.hp-card-link:hover .hp-card-desc-overlay p {
    transform: translateY(0);
    opacity: 1;
}

.hp-card-label {
    padding: 20px 24px;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
/* Dark overlay gradient for enhanced text contrast */
.hp-card-label::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.22) 100%);
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
}
.hp-card-label span {
    font-family: var(--font-heading);
    font-size: 1.18rem;
    font-weight: 700;
    color: #fff;
    display: block;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.01em;
}
.hp-card-label small {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
    margin-top: 6px;
    display: block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: var(--font-body);
}


/* ─── 5. ACTIVITY CARDS PREMIUM FEEL ─── */
.hp-activities-track {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}
@media (max-width: 992px) {
    .hp-activities-track {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 600px) {
    .hp-activities-track {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- PREMIUM REDESIGN WRAPPER & DECOR --- */
.hp-activities-premium {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background: #F4EEF8;
}

.hp-act-decor {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.hp-act-decor-left {
    position: absolute;
    top: 15%;
    left: 10%;
    animation: miBlobFloat1 8s ease-in-out infinite;
}

.hp-act-palette-icon {
    width: 80px;
    height: 80px;
    background: #EBE1F2;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D6C2E6;
    font-size: 2.2rem;
    position: relative;
    overflow: hidden;
}
.hp-act-palette-icon::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #FF6F91;
    top: 15px;
    left: 15px;
    box-shadow: 25px 10px 0 #FFC75F;
}

.hp-act-decor-right {
    position: absolute;
    top: 25%;
    right: 15%;
    animation: miBlobFloat2 10s ease-in-out infinite;
}

.hp-act-music-icon {
    position: relative;
    font-size: 5rem;
    color: #FF9671;
    opacity: 0.9;
    transform: rotate(15deg);
}

.hp-act-music-icon .circle-sm {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    bottom: 5px;
    z-index: -1;
}
.hp-act-music-icon .pt-yellow {
    background: #FFC75F;
    left: -5px;
}
.hp-act-music-icon .pt-pink {
    background: #FF6F91;
    right: 5px;
    bottom: 12px;
}

.hp-header-premium {
    position: relative;
    z-index: 1;
}

.hp-tag-purple {
    background: rgba(94, 53, 177, 0.1) !important;
    color: #5e35b1 !important;
    letter-spacing: 0.15em !important;
    font-size: 0.8rem !important;
    padding: 8px 16px !important;
    display: inline-block !important;
    margin-bottom: 20px !important;
}

/* --- OVERHAULED ACT CARD --- */
.hp-activities-track {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-bottom: 20px;
    align-items: start;
}
@media (max-width: 992px) {
    .hp-activities-track {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 600px) {
    .hp-activities-track {
        grid-template-columns: repeat(2, 1fr);
    }
}

.hp-act-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: 0 8px 20px rgba(62, 35, 108, 0.08), 0 2px 6px rgba(62, 35, 108, 0.04);
    border: none;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-align: center;
    position: relative;
    z-index: 1;
}
.hp-act-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(62, 35, 108, 0.12), 0 4px 12px rgba(62, 35, 108, 0.08);
}

.hp-act-card-img {
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    aspect-ratio: auto;
    box-shadow: none;
}
.hp-act-card:hover .hp-act-card-img {
    transform: none;
    box-shadow: none;
}
.hp-act-card-img img {
    width: 100%;
    height: 190px !important;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hp-act-card:hover .hp-act-card-img img {
    transform: scale(1.08);
}

.hp-act-card h4 {
    padding: 16px 12px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: 0.02em;
}


/* ─── 6. SAFETY SECTION VISUAL BALANCE ─── */
.hp-safety {
    position: relative;
}
.hp-safety::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(62, 35, 108, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 213, 79, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hp-safety-row {
    position: relative;
    z-index: 1;
}

.hp-safety-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: linear-gradient(135deg, rgba(62, 35, 108, 0.08), rgba(62, 35, 108, 0.03));
    color: var(--primary-color);
    transition: transform 0.3s ease, background 0.3s ease;
}
.hp-safety-list li:hover .hp-safety-icon {
    transform: scale(1.12);
    background: linear-gradient(135deg, rgba(62, 35, 108, 0.12), rgba(62, 35, 108, 0.06));
}

.hp-safety-list li {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid rgba(62, 35, 108, 0.05);
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hp-safety-list li:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
}
.hp-safety-list li strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 3px;
}
.hp-safety-list li span {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Safety image: refined blob shape */
.hp-safety-img-wrap {
    border-radius: 30% 70% 60% 40% / 50% 40% 60% 50%;
    overflow: hidden;
    box-shadow:
        0 24px 64px rgba(62, 35, 108, 0.1),
        0 0 0 5px rgba(62, 35, 108, 0.04);
    animation: safetyBlobMorph 10s ease-in-out infinite;
    transition: box-shadow 0.4s ease;
}
.hp-safety-img-wrap:hover {
    box-shadow:
        0 32px 80px rgba(62, 35, 108, 0.14),
        0 0 0 6px rgba(62, 35, 108, 0.06);
}
@keyframes safetyBlobMorph {
    0%   { border-radius: 30% 70% 60% 40% / 50% 40% 60% 50%; }
    50%  { border-radius: 60% 40% 45% 55% / 40% 55% 45% 60%; }
    100% { border-radius: 30% 70% 60% 40% / 50% 40% 60% 50%; }
}

/* Safety badge: subtle pulse */
.hp-safety-badge {
    animation: badgePulse 3s ease-in-out infinite;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(62, 35, 108, 0.12);
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(62, 35, 108, 0.12); }
    50%      { box-shadow: 0 8px 32px rgba(62, 35, 108, 0.2), 0 0 0 8px rgba(62, 35, 108, 0.04); }
}


/* ─── 7. TESTIMONIALS REFINEMENT ─── */
.hp-testimonials {
    position: relative;
}

.hp-testi-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: clamp(32px, 4vw, 48px);
    box-shadow:
        0 4px 24px rgba(62, 35, 108, 0.05),
        0 1px 4px rgba(62, 35, 108, 0.03);
    border: 1px solid rgba(62, 35, 108, 0.05);
    position: relative;
    max-width: 680px;
    margin: 0 auto;
    transition: box-shadow 0.4s ease;
}
.hp-testi-card:hover {
    box-shadow:
        0 12px 40px rgba(62, 35, 108, 0.08),
        0 2px 8px rgba(62, 35, 108, 0.04);
}

/* Decorative gradient line at top */
.hp-testi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-yellow), var(--accent-rose));
    border-radius: 0 0 4px 4px;
}

.hp-testi-quote {
    margin-bottom: 16px;
}
.hp-testi-quote i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.6;
}

.hp-testi-stars i {
    color: var(--accent-yellow);
    font-size: 0.9rem;
    margin-right: 2px;
}

.hp-testi-card > p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-style: italic;
    margin: 16px 0 24px;
}

.hp-testi-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(62, 35, 108, 0.06);
}
.hp-testi-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid rgba(62, 35, 108, 0.08);
    flex-shrink: 0;
}
.hp-testi-author h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}
.hp-testi-author small {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Testimonial dots */
.hp-testi-dots {
    text-align: center;
    margin-top: 32px;
}
.hp-testi-dots .hp-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(62, 35, 108, 0.15);
    border: none;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.hp-testi-dots .hp-dot.active {
    background: var(--primary-color);
    width: 28px;
    border-radius: var(--radius-pill);
}


/* ─── 8. GALLERY GRID POLISH ─── */
.hp-masonry {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    padding: 20px 0 !important;
}

@media (max-width: 992px) {
    .hp-masonry { grid-template-columns: repeat(2, 1fr) !important; gap: 20px !important; }
}
@media (max-width: 576px) {
    .hp-masonry { grid-template-columns: 1fr !important; }
}

.hp-masonry-item {
    border-radius: 24px !important;
    overflow: hidden !important;
    position: relative !important;
    background: #ffffff !important;
    padding: 10px !important; /* Premium white frame */
    box-shadow: 0 10px 30px rgba(62, 35, 108, 0.05) !important;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Individual tilts for scrapbook feel */
.hp-masonry-item:nth-child(odd) { transform: rotate(-1.2deg); }
.hp-masonry-item:nth-child(even) { transform: rotate(1.2deg); }

.hp-masonry-item:hover {
    transform: translateY(-12px) rotate(0deg) scale(1.03) !important;
    box-shadow: 0 25px 50px rgba(62, 35, 108, 0.12) !important;
    z-index: 10 !important;
}

.hp-masonry-item img {
    width: 100% !important;
    height: 280px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 16px !important;
    transition: transform 0.6s ease !important;
}

.hp-masonry-item:hover img {
    transform: scale(1.05) !important;
}

/* Decorative hover overlay */
.hp-masonry-item::after {
    content: '' !important;
    position: absolute !important;
    inset: 10px !important;
    background: linear-gradient(180deg, transparent 40%, rgba(62, 35, 108, 0.3) 100%) !important;
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
    border-radius: 16px !important;
    pointer-events: none !important;
}

.hp-masonry-item:hover::after {
    opacity: 1 !important;
}


/* ─── 9. CTA BANNER WARMTH ─── */
.hp-cta {
    position: relative;
    overflow: hidden;
}

.hp-cta-inner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
    border-radius: var(--radius-xl);
    padding: clamp(48px, 6vw, 80px) clamp(32px, 5vw, 64px);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(62, 35, 108, 0.25);
}

/* Warm decorative dots overlay */
.hp-cta-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    pointer-events: none;
}

.hp-cta-urgency {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 213, 79, 0.15);
    color: var(--accent-yellow);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 213, 79, 0.25);
    animation: urgencyGlow 2s ease-in-out infinite;
}
@keyframes urgencyGlow {
    0%, 100% { box-shadow: 0 0 0 transparent; }
    50%      { box-shadow: 0 0 20px rgba(255, 213, 79, 0.2); }
}

.hp-cta-inner h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: white;
    margin-bottom: 16px;
}
.hp-cta-inner h2 span {
    color: var(--accent-yellow);
}
.hp-cta-inner > p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.hp-cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Floating decorative icons */
.hp-cta-float-icon {
    position: absolute;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.08);
    pointer-events: none;
    z-index: 0;
}
.hp-fi-1 { top: 15%; left: 8%; animation: floatSlow 7s infinite alternate; }
.hp-fi-2 { bottom: 20%; right: 10%; animation: gentleBreath 6s infinite alternate; }
.hp-fi-3 { top: 60%; left: 85%; animation: floatSlow 9s infinite alternate-reverse; }


/* ─── 10. CORPORATE CARD ─── */
.hp-corporate-card {
    background: linear-gradient(135deg, #F8F5FD 0%, #EDE7F6 100%);
    border-radius: var(--radius-xl);
    padding: clamp(32px, 4vw, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    border: 1px solid rgba(62, 35, 108, 0.06);
    box-shadow: 0 4px 24px rgba(62, 35, 108, 0.04);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.hp-corporate-card:hover {
    box-shadow: 0 12px 40px rgba(62, 35, 108, 0.08);
    transform: translateY(-4px);
}
@media (max-width: 768px) {
    .hp-corporate-card {
        flex-direction: column;
        text-align: center;
    }
}
.hp-corporate-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}
.hp-corporate-content h3 i {
    color: var(--accent-purple);
    margin-right: 10px;
}
.hp-corporate-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 500px;
}


/* ─── 11. FOOTER REFINEMENT ─── */
.footer {
    position: relative;
}
.footer-gradient-top {
    height: 6px;
    background: linear-gradient(90deg, var(--accent-yellow), var(--accent-rose), var(--primary-color), var(--accent-blue));
}

.footer-col h3,
.footer-col h4 {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 20px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 3px;
    background: var(--accent-yellow);
    border-radius: 2px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-right: 8px;
}
.social-links a:hover {
    background: var(--accent-yellow);
    color: var(--primary-dark);
    transform: translateY(-3px);
    border-color: var(--accent-yellow);
}

.map-mini {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
}
.map-mini iframe {
    border-radius: var(--radius-lg);
}


/* ─── 12. BUTTONS REFINEMENT ─── */
.btn {
    border-radius: var(--radius-pill);
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}
.btn:hover {
    transform: translateY(-2px);
}
.btn:active {
    transform: translateY(0);
}

/* Shimmer effect on primary buttons */
.btn-primary::after,
.btn-accent::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}
.btn-primary:hover::after,
.btn-accent:hover::after {
    left: 100%;
}

.btn-outline {
    border-width: 2px;
    background: transparent;
}
.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Ensure ghost buttons in hero are visible (addressing white-on-white) */
.hp-hero .btn-ghost,
#hero-cta-apply.btn-ghost {
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    font-weight: 700 !important;
}
.hp-hero .btn-ghost:hover,
#hero-cta-apply.btn-ghost:hover {
    background: var(--primary-color) !important;
    color: var(--bg-white) !important;
}

/* Redefine ghost button hover for consistent contrast */
.btn-ghost:hover {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
}

/* Accent button (Virtual Tour) tweak */
.btn-accent {
    background: var(--accent-rose);
    border-color: var(--accent-rose);
    color: white;
}
.btn-accent:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(62, 35, 108, 0.2);
}


/* ─── 13. WAVE SECTION DIVIDERS ─── */
.hp-wave-divider {
    position: relative;
    height: 60px;
    overflow: hidden;
    margin-top: -1px;
}
.hp-wave-divider svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
}

/* Divider before activities (white → soft purple) */
.hp-wave-to-purple svg path { fill: var(--bg-soft-purple); }
/* Divider after activities (soft purple → white) */
.hp-wave-to-white svg path { fill: var(--bg-white); }


/* ─── 14. SLIDER CONTROLS REFINEMENT ─── */
.hp-slider-dots .hp-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.hp-slider-dots .hp-dot.active {
    background: var(--accent-yellow);
    width: 28px;
    border-radius: var(--radius-pill);
    box-shadow: 0 0 12px rgba(255, 213, 79, 0.4);
}

.hp-slider-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}
.hp-slider-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}


/* ─── 15. STAGGERED REVEAL ANIMATION ─── */
.hp-card-grid .hp-card-link:nth-child(1) { transition-delay: 0s; }
.hp-card-grid .hp-card-link:nth-child(2) { transition-delay: 0.1s; }
.hp-card-grid .hp-card-link:nth-child(3) { transition-delay: 0.2s; }
.hp-card-grid .hp-card-link:nth-child(4) { transition-delay: 0.3s; }

.hp-masonry-item:nth-child(1) { transition-delay: 0s; }
.hp-masonry-item:nth-child(2) { transition-delay: 0.08s; }
.hp-masonry-item:nth-child(3) { transition-delay: 0.16s; }
.hp-masonry-item:nth-child(4) { transition-delay: 0.24s; }
.hp-masonry-item:nth-child(5) { transition-delay: 0.32s; }
.hp-masonry-item:nth-child(6) { transition-delay: 0.4s; }

.hp-activities-track .hp-act-card:nth-child(1) { transition-delay: 0s; }
.hp-activities-track .hp-act-card:nth-child(2) { transition-delay: 0.07s; }
.hp-activities-track .hp-act-card:nth-child(3) { transition-delay: 0.14s; }
.hp-activities-track .hp-act-card:nth-child(4) { transition-delay: 0.21s; }
.hp-activities-track .hp-act-card:nth-child(5) { transition-delay: 0.28s; }


/* ─── 16. RESPONSIVE GUARDS ─── */
@media (max-width: 768px) {
    .hp-card-img img {
        height: 200px;
    }
    .hp-masonry-item img {
        height: 180px;
    }
    .hp-act-card-img img {
        height: 140px;
    }
    .hp-stat-divider {
        display: none;
    }
    .hp-stats-glass {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    .hp-activities-track {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hp-masonry {
        grid-template-columns: 1fr;
    }
    .hp-masonry-item img {
        height: 220px;
    }
}

/* --- MULTIPLE INTELLIGENCE GRID REDESIGN --- */
.hp-mi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 28px;
    margin-top: 60px;
    margin-bottom: 60px;
}
@media (max-width: 1024px) {
    .hp-mi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 24px;
    }
}
@media (max-width: 600px) {
    .hp-mi-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin-left: auto;
        margin-right: auto;
        gap: 24px;
    }
}

.hp-mi-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 10px;
    transition: transform 0.4s ease;
}
.hp-mi-card:hover {
    transform: translateY(-5px);
}

/* Icon Circle */
.hp-mi-icon-circle {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.hp-mi-card:hover .hp-mi-icon-circle {
    transform: scale(1.12) rotate(-5deg);
}

/* Title */
.hp-mi-card h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 14px;
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
}

/* Text Box */
.hp-mi-text-box {
    border-radius: 14px;
    padding: 22px 18px;
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.hp-mi-card:hover .hp-mi-text-box {
    box-shadow: 0 12px 28px rgba(62, 35, 108, 0.1);
}

.hp-mi-text-box p {
    font-size: 0.88rem;
    color: rgba(45, 27, 78, 0.7);
    line-height: 1.7;
    margin: 0;
}

/* Theme Purple (primary) */
.hp-mi-card.theme-blue .hp-mi-icon-circle {
    background: linear-gradient(135deg, #7C4DFF, #9C6FFF);
    color: #fff;
    box-shadow: 0 6px 20px rgba(124, 77, 255, 0.3);
}
.hp-mi-card.theme-blue h4 {
    color: var(--primary-color, #604B99);
}
.hp-mi-card.theme-blue .hp-mi-text-box {
    background: rgba(124, 77, 255, 0.04);
    border: 1.5px solid rgba(124, 77, 255, 0.15);
}

/* Theme Warm (accent) */
.hp-mi-card.theme-red .hp-mi-icon-circle {
    background: linear-gradient(135deg, #FF7043, #FF9800);
    color: #fff;
    box-shadow: 0 6px 20px rgba(255, 112, 67, 0.3);
}
.hp-mi-card.theme-red h4 {
    color: #E65100;
}
.hp-mi-card.theme-red .hp-mi-text-box {
    background: rgba(255, 112, 67, 0.04);
    border: 1.5px solid rgba(255, 112, 67, 0.15);
}

/* ─── SAFETY MOSAIC VISUAL ─── */
.hp-safety-img-mosaic {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 1.2fr 1fr !important;
    grid-template-rows: 1fr 1fr !important;
    gap: 20px !important;
    width: 100% !important;
    padding: 0 !important;
    margin-bottom: 35px !important;
}

.hp-safety-img-mosaic img {
    border-radius: 20px !important;
    box-shadow: 0 12px 30px rgba(62, 35, 108, 0.08) !important;
    background: #ffffff !important;
    padding: 10px !important; /* Premium white "Border" look */
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.hp-safety-img-mosaic img:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 20px 45px rgba(62, 35, 108, 0.18) !important;
    z-index: 2 !important;
}

/* Main image */
.mosaic-main {
    grid-column: 1 / 2 !important;
    grid-row: 1 / 3 !important;
    aspect-ratio: 3.5/4 !important;
}

/* Secondary images */
.mosaic-sub1 {
    grid-column: 2 / 3 !important;
    grid-row: 1 / 2 !important;
}

.mosaic-sub2 {
    grid-column: 2 / 3 !important;
    grid-row: 2 / 3 !important;
}

/* Re-position the badge to sit centered at bottom */
.hp-safety-img-mosaic .hp-safety-badge {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    background: var(--accent-purple) !important;
    border-color: rgba(255,255,255,0.3) !important;
    box-shadow: 0 12px 28px rgba(124, 77, 255, 0.3) !important;
    color: #fff;
    white-space: nowrap;
    padding: 10px 18px !important; /* Reduced from 20px 24px */
    border-radius: 14px !important;
    gap: 10px !important;
}

.hp-safety-img-mosaic .hp-safety-badge i {
    font-size: 1.2rem !important;
}

.hp-safety-img-mosaic .hp-safety-badge span {
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
}

@media (max-width: 768px) {
    .announcement-strip {
        position: relative !important;
    }

    .announcement-strip ~ .navbar {
        top: 0 !important;
    }

    .navbar {
        padding: 8px 0 !important;
    }

    .nav-container {
        gap: 12px !important;
    }

    .hp-hero {
        padding-top: 0 !important;
    }

    .hp-hero-glow-1,
    .hp-hero-glow-2,
    .hp-hero-glow-3,
    .blob-1,
    .blob-2 {
        opacity: 0.35 !important;
        filter: blur(80px) !important;
    }

    .hp-hero-blob-premium {
        max-width: 340px !important;
        box-shadow: 0 18px 42px rgba(62, 35, 108, 0.14), 0 0 0 5px rgba(255, 255, 255, 0.78) !important;
    }

    .hp-safety-img-mosaic {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        gap: 14px !important;
    }

    .mosaic-main,
    .mosaic-sub1,
    .mosaic-sub2 {
        grid-column: auto !important;
        grid-row: auto !important;
        aspect-ratio: 4 / 3 !important;
    }

    .hp-safety-img-mosaic .hp-safety-badge {
        position: static !important;
        transform: none !important;
        width: 100%;
        justify-content: center;
        margin-top: 6px;
    }
}

@media (max-width: 480px) {
    .hp-section-header {
        margin-bottom: 36px;
    }

    .hp-hero-badge {
        width: 100%;
        justify-content: center;
        text-align: center;
        font-size: 0.74rem;
        padding: 8px 14px;
    }

    .hp-hero-blob-premium {
        max-width: 290px !important;
        border-radius: 24px !important;
    }
}
