/* ============================================
   PROFESSIONAL DOSH-FOCUSED DESIGN
   Modern, Animated, Responsive
   ============================================ */

html {
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
}

html, body { 
    margin: 0; 
    padding: 0; 
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --brand-primary: #b44a3f;
    --brand-dark: #8b3a32;
    --brand-light: #d65a4f;
    --brand-accent: #c62828;
    
    --text-primary: #1a1a1a;
    --text-secondary: #555;
    --text-light: #777;
    
    /* Card scroll-in animation: duration and easing for “appear slow” */
    --card-reveal-duration: 0.95s;
    --card-reveal-ease: cubic-bezier(0.16, 1, 0.3, 1);
    
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #f5f5f5;
    --bg-dark: #2c2c2c;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.15);
    --shadow-xl: 0 16px 48px rgba(0,0,0,.2);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    
    --transition-fast: 0.3s ease;
    --transition-base: 0.5s ease;
    --transition-slow: 1.0s ease;
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================
   SECTION DIVIDER
   ============================================ */
.section-divider {
    border: none;
    border-top: 4px solid var(--brand-primary);
    width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    display: block;
    height: 4px;
    line-height: 0;
    overflow: visible;
}

/* ============================================
   HERO SLIDER SECTION
   ============================================ */
.hero-slider-section {
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0;
    padding: 0;
    /* 1) Frame height — second number (↑ = taller slider strip): */
    --slider-banner-aspect-ratio: 487 / 160;
    /* 2) cover = fill frame (upscales small PNGs → blurry text); contain = full image, often sharper */
    --slider-image-fit: contain;
    --slider-image-position: center center;
}

.container-s.hero-slider-section {
    padding: 0;
}

/* Hero strip: carousel track only (dots sit in .hero-slider-dots-strip below the divider) */
.slider-wrapper {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
}

.slider {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

/* One flex item per slide: plain div, or <a> linking to e.g. register */
.hero-slider-section .slider .slider-slide {
    flex: 0 0 100%;
    min-width: 0;
    display: block;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
    aspect-ratio: var(--slider-banner-aspect-ratio);
    background: #fff;
    overflow: hidden;
}
.slider a.slider-slide,
.slider .slider-slide > a {
    cursor: pointer;
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.slider a.slider-slide:focus-visible,
.slider .slider-slide > a:focus-visible {
    outline: 2px solid var(--brand-primary, #1c244b);
    outline-offset: 2px;
}

.hero-slider-section .slider .slider-slide img {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    object-fit: var(--slider-image-fit, contain);
    object-position: var(--slider-image-position, center center);
    display: block;
    pointer-events: none;
}

/* Mobile WebKit (iOS Safari, Chrome): bitmaps inside a transformed carousel often look
   softer than desktop; these hints reduce layer-scaling blur on high-DPR screens. */
@media (max-width: 768px) {
    .hero-slider-section .slider .slider-slide {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    .hero-slider-section .slider .slider-slide img {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* Thin bar under divider: hero carousel dots (mainslide.js) */
.hero-slider-dots-strip {
    padding: 6px 0 4px;
    background: linear-gradient(135deg, #fef5f4 0%, #fdf0ef 50%, #fce8e6 100%);
    overflow-x: hidden;
    overflow-y: visible;
    position: relative;
    z-index: 12;
    width: 100%;
    pointer-events: auto;
}

/* Carousel dots — keep tight to hero / divider */
.hero-slider-dots-strip .slider-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    column-gap: 8px;
    row-gap: 6px;
    width: 100%;
    margin: 0 0 4px;
    padding: 2px 16px 6px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.hero-slider-dots-strip .slider-bullet {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    padding: 8px;
    box-sizing: content-box;
    width: 7px;
    height: 7px;
    border: none;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.28);
    background-clip: content-box;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-slider-dots-strip .slider-bullet:hover {
    background-color: rgba(0, 0, 0, 0.42);
}

.hero-slider-dots-strip .slider-bullet.active {
    background-color: var(--brand-primary, #1c244b);
}

.hero-slider-dots-strip .slider-bullet:focus-visible {
    outline: 2px solid var(--brand-primary, #1c244b);
    outline-offset: 2px;
}

/* ============================================
   MAIN HERO SECTION - DOSH FOCUSED
   Enhanced with Dynamic Animated Backgrounds
   ============================================ */
/*.hero-section-dosh {
    position: relative;
    min-height: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 25%, #e9ecef 50%, #f8f9fa 75%, #ffffff 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    padding: 50px 20px;
    overflow: hidden;
    margin: 0;
} */

/* Animated gradient background */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Geometric animated background elements - replaced circular/blood cell style */
.hero-section-dosh::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, transparent 0%, rgba(180, 74, 63, 0.05) 25%, transparent 50%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 50px,
            rgba(180, 74, 63, 0.02) 50px,
            rgba(180, 74, 63, 0.02) 100px
        );
    background-size: 200% 200%, 200px 200px;
    animation: geometricMove 20s ease infinite;
    pointer-events: none;
    opacity: 0.6;
}

.hero-section-dosh::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(-135deg, transparent 0%, rgba(180, 74, 63, 0.04) 30%, transparent 60%),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 60px,
            rgba(180, 74, 63, 0.015) 60px,
            rgba(180, 74, 63, 0.015) 120px
        );
    background-size: 150% 150%, 250px 250px;
    animation: geometricMove 25s ease infinite reverse;
    pointer-events: none;
    opacity: 0.5;
}

@keyframes geometricMove {
    0%, 100% { 
        background-position: 0% 0%, 0 0;
    }
    50% { 
        background-position: 100% 100%, 200px 200px;
    }
}

/* Additional geometric patterns - replaced circular gradients */
.hero-section-dosh{
    position: relative;
    min-height: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
      linear-gradient(135deg,#ffffff 0%,#f8f9fa 25%,#e9ecef 50%,#f8f9fa 75%,#ffffff 100%),
      linear-gradient(90deg, rgba(180,74,63,.03) 0%, transparent 50%),
      linear-gradient(0deg,  rgba(180,74,63,.02) 0%, transparent 50%);
    background-size: 400% 400%, 300% 300%, 400% 400%;
    animation: gradientShift 15s ease infinite, geometricPatternMove 18s ease infinite;
    padding: 50px 20px;
    overflow: hidden;
    margin: 0;
  }
  

@keyframes geometricPatternMove {
    0%, 100% { 
        background-position: 0% 0%, 50% 50%;
    }
    50% { 
        background-position: 100% 100%, 0% 0%;
    }
}

@keyframes floatLarge {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% { 
        transform: translate(50px, -50px) rotate(90deg) scale(1.1);
    }
    50% { 
        transform: translate(-30px, -80px) rotate(180deg) scale(0.95);
    }
    75% { 
        transform: translate(80px, -30px) rotate(270deg) scale(1.05);
    }
}

@keyframes pulseGlow {
    0%, 100% { 
        opacity: 0.6;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.15);
    }
}

@keyframes backgroundMove {
    0% { background-position: 0% 0%, 100% 100%, 50% 50%; }
    50% { background-position: 100% 50%, 0% 50%, 100% 0%; }
    100% { background-position: 0% 0%, 100% 100%, 50% 50%; }
}

/* Removed circular box-shadow effects */

/* ============================================
   ANIMATED PARTICLES
   ============================================ */
.animated-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: linear-gradient(135deg, rgba(180, 74, 63, 0.15) 0%, rgba(180, 74, 63, 0.05) 50%, transparent 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: particleFloat 20s infinite ease-in-out;
}

.particle-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 15%;
    animation-delay: 0s;
    animation-duration: 25s;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.particle-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 20%;
    animation-delay: 3s;
    animation-duration: 22s;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

.particle-3 {
    width: 90px;
    height: 90px;
    bottom: 20%;
    left: 25%;
    animation-delay: 5s;
    animation-duration: 28s;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

.particle-4 {
    width: 60px;
    height: 60px;
    top: 30%;
    right: 30%;
    animation-delay: 9s;
    animation-duration: 20s;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.particle-5 {
    width: 85px;
    height: 85px;
    bottom: 40%;
    right: 15%;
    animation-delay: 12s;
    animation-duration: 24s;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.particle-6 {
    width: 70px;
    height: 70px;
    top: 50%;
    left: 10%;
    animation-delay: 15s;
    animation-duration: 26s;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translate(50px, -80px) scale(1.2) rotate(90deg);
        opacity: 0.8;
    }
    50% {
        transform: translate(-30px, -120px) scale(0.8) rotate(180deg);
        opacity: 0.4;
    }
    75% {
        transform: translate(80px, -60px) scale(1.1) rotate(270deg);
        opacity: 0.7;
    }
}

.hero-content-wrapper {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 20px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
    color: white;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.badge-icon {
    font-size: 18px;
}

.hero-main-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 900;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.hero-subtitle {
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 600;
    color: var(--brand-primary);
    margin: 0 0 24px 0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.hero-description {
    font-size: clamp(18px, 2vw, 20px);
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0 0 40px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 1s forwards;
}

.btn-primary,
.btn-secondary {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-base);
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-primary));
}

.btn-secondary {
    background: white;
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-secondary:hover {
    background: var(--brand-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   CONTAINER
   ============================================ */
.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(180, 74, 63, 0.1);
    color: var(--brand-primary);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.title-accent {
    color: var(--brand-primary);
    display: block;
    font-size: 0.7em;
    font-weight: 600;
    margin-top: 8px;
}

.section-subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0 0 16px 0;
}

.section-intro {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--text-light);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   DOSH COMPLIANCE SECTION
   Enhanced with Animated Background
   ============================================ */
.dosh-compliance-section {
    padding: 60px 0;
    margin-top: 0;
    margin-bottom: 0;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 50%, #ffffff 100%);
    background-size: 200% 200%;
    animation: subtleGradient 20s ease infinite;
    position: relative;
    overflow: hidden;
}

.dosh-compliance-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(180, 74, 63, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(180, 74, 63, 0.06) 0%, transparent 50%);
    background-size: 400% 400%;
    animation: backgroundFlow 25s ease infinite;
    pointer-events: none;
    z-index: 0;
}

.dosh-compliance-section > .container-custom {
    position: relative;
    z-index: 1;
}

@keyframes subtleGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes backgroundFlow {
    0% { background-position: 0% 0%, 100% 100%; }
    50% { background-position: 100% 50%, 0% 50%; }
    100% { background-position: 0% 0%, 100% 100%; }
}

/* Official Corporate Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: white;
    padding: 40px 32px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e9ecef;
    border-left: 4px solid var(--brand-primary);
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--brand-primary);
    transform: scaleY(0);
    transition: transform 0.5s ease;
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--card-reveal-duration) var(--card-reveal-ease),
                transform var(--card-reveal-duration) var(--card-reveal-ease);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--brand-primary);
    border-left-width: 6px;
}

.feature-card:hover::before {
    transform: scaleY(1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 24px auto;
    box-shadow: 0 4px 12px rgba(180, 74, 63, 0.25);
    position: relative;
    flex-shrink: 0;
}

.feature-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid rgba(180, 74, 63, 0.2);
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-card:hover .feature-icon::after {
    opacity: 1;
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
    letter-spacing: -0.2px;
    text-align: center;
    width: 100%;
}

/* ============================================
   SERVICES SHOWCASE SECTION
   Enhanced with Dynamic Animated Background
   ============================================ */
.services-showcase-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 25%, #ffffff 50%, #f8f9fa 75%, #ffffff 100%);
    background-size: 300% 300%;
    animation: serviceBackgroundFlow 18s ease infinite;
    position: relative;
    overflow: hidden;
}

.services-showcase-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(180, 74, 63, 0.12) 0%, transparent 60%);
    border-radius: 50%;
    animation: rotateFloat 30s linear infinite;
    filter: blur(60px);
}

.services-showcase-section::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -8%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(180, 74, 63, 0.1) 0%, transparent 60%);
    border-radius: 50%;
    animation: rotateFloat 25s linear infinite reverse;
    filter: blur(50px);
}

.services-showcase-section > .container-custom {
    position: relative;
    z-index: 1;
}

@keyframes serviceBackgroundFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes rotateFloat {
    0% { transform: rotate(0deg) translate(0, 0) scale(1); }
    25% { transform: rotate(90deg) translate(30px, -30px) scale(1.1); }
    50% { transform: rotate(180deg) translate(0, -60px) scale(0.9); }
    75% { transform: rotate(270deg) translate(-30px, -30px) scale(1.05); }
    100% { transform: rotate(360deg) translate(0, 0) scale(1); }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-light));
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--card-reveal-duration) var(--card-reveal-ease),
                transform var(--card-reveal-duration) var(--card-reveal-ease);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 50px;
    margin: 0 auto -10px auto;
    display: block;
    text-align: center;
    transition: transform var(--transition-base);
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon .service-icon-img,
.service-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    text-align: center;
    width: 100%;
}

.service-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 24px 0;
    text-align: center;
    width: 100%;
}

.service-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--brand-primary);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    margin: 0 auto;
    margin-top: auto;
}

.service-link span {
    transition: transform var(--transition-base);
}

.service-link:hover {
    color: var(--brand-dark);
}

.service-link:hover span {
    transform: translateX(5px);
}

/* ============================================
   TRAINING SHOWCASE SECTION
   Enhanced with Animated Background
   ============================================ */
.training-showcase-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 30%, #ffffff 60%, #f5f5f5 100%);
    background-size: 250% 250%;
    animation: trainingGradientMove 22s ease infinite;
    position: relative;
    overflow: hidden;
}

.training-showcase-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    background: 
        conic-gradient(from 0deg at 50% 50%, 
            transparent 0deg,
            rgba(180, 74, 63, 0.05) 90deg,
            transparent 180deg,
            rgba(180, 74, 63, 0.05) 270deg,
            transparent 360deg);
    animation: conicRotate 20s linear infinite;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.training-showcase-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(180, 74, 63, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(180, 74, 63, 0.06) 0%, transparent 40%);
    background-size: 500% 500%;
    animation: radialPulse 15s ease infinite;
    pointer-events: none;
}

.training-showcase-section > .container-custom {
    position: relative;
    z-index: 1;
}

@keyframes trainingGradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes conicRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes radialPulse {
    0%, 100% { 
        background-position: 0% 0%, 100% 100%;
        opacity: 0.6;
    }
    50% { 
        background-position: 100% 50%, 0% 50%;
        opacity: 1;
    }
}

.trainings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.training-card {
    background: linear-gradient(135deg, white 0%, #fafafa 100%);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.5s ease;
    border: 2px solid transparent;
    opacity: 0;
    transform: translateY(40px);
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.training-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(180, 74, 63, 0.05) 0%, transparent 70%);
    border-radius: 0 0 0 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.training-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--card-reveal-duration) var(--card-reveal-ease),
                transform var(--card-reveal-duration) var(--card-reveal-ease);
}

.training-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--brand-primary);
}

.training-card:hover::after {
    opacity: 1;
}

.training-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
}

.training-icon {
    font-size: 50px;
    text-align: center;
    display: block;
}

.training-duration {
    padding: 6px 12px;
    background: rgba(180, 74, 63, 0.1);
    color: var(--brand-primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.training-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.training-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 24px 0;
    width: 100%;
}

.training-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--brand-primary);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    margin: 0 auto;
    margin-top: auto;
}

.training-link span {
    transition: transform var(--transition-base);
}

.training-link:hover span {
    transform: translateX(5px);
}

/* ============================================
   CEP PROGRAMME SHOWCASE SECTION
   ============================================ */
.cep-showcase-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #fef7f6 0%, #ffffff 30%, #fef2f0 60%, #ffffff 100%);
    background-size: 250% 250%;
    animation: cepGradientMove 22s ease infinite;
    position: relative;
    overflow: hidden;
}

.cep-showcase-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    background: 
        conic-gradient(from 0deg at 50% 50%, 
            transparent 0deg,
            rgba(180, 74, 63, 0.06) 90deg,
            transparent 180deg,
            rgba(180, 74, 63, 0.06) 270deg,
            transparent 360deg);
    animation: conicRotate 20s linear infinite;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.cep-showcase-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(180, 74, 63, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(180, 74, 63, 0.05) 0%, transparent 40%);
    background-size: 500% 500%;
    animation: radialPulse 15s ease infinite;
    pointer-events: none;
}

.cep-showcase-section > .container-custom {
    position: relative;
    z-index: 1;
}

@keyframes cepGradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.cep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.cep-card {
    background: linear-gradient(135deg, white 0%, #fefaf9 100%);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    opacity: 0;
    transform: translateY(40px);
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cep-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(180, 74, 63, 0.08) 0%, transparent 70%);
    border-radius: 0 0 0 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cep-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--card-reveal-duration) var(--card-reveal-ease),
                transform var(--card-reveal-duration) var(--card-reveal-ease);
}

.cep-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--brand-primary);
}

.cep-card:hover::after {
    opacity: 1;
}

.cep-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
}

.cep-icon {
    font-size: 40px;
    text-align: center;
    display: block;
}

.cep-duration {
    padding: 6px 12px;
    background: rgba(180, 74, 63, 0.12);
    color: var(--brand-primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.cep-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.cep-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 24px 0;
    width: 100%;
}

.cep-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--brand-primary);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    margin: 0 auto;
    margin-top: auto;
}

.cep-link span {
    transition: transform var(--transition-base);
}

.cep-link:hover span {
    transform: translateX(5px);
}

/* ============================================
   WHY CHOOSE US SECTION
   Enhanced with Dynamic Animated Background
   ============================================ */
.why-choose-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 25%, #f8f9fa 50%, #ffffff 75%, #f8f9fa 100%);
    background-size: 400% 400%;
    animation: whyBackgroundShift 16s ease infinite;
    position: relative;
    overflow: hidden;
}

.why-choose-section::before {
    content: '';
    position: absolute;
    top: -25%;
    left: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(180, 74, 63, 0.15) 0%, rgba(180, 74, 63, 0.05) 50%, transparent 70%);
    border-radius: 50%;
    animation: whyFloat 28s ease-in-out infinite;
    filter: blur(70px);
}

.why-choose-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -12%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(180, 74, 63, 0.12) 0%, rgba(180, 74, 63, 0.04) 50%, transparent 70%);
    border-radius: 50%;
    animation: whyFloat 24s ease-in-out infinite reverse;
    filter: blur(65px);
}

.why-choose-section > .container-custom {
    position: relative;
    z-index: 1;
}

@keyframes whyBackgroundShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes whyFloat {
    0%, 100% { 
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    33% { 
        transform: translate(60px, -40px) scale(1.1) rotate(120deg);
    }
    66% { 
        transform: translate(-40px, -80px) scale(0.95) rotate(240deg);
    }
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.why-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.why-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--card-reveal-duration) var(--card-reveal-ease),
                transform var(--card-reveal-duration) var(--card-reveal-ease);
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.why-icon {
    font-size: 48px;
    margin: 0 auto 20px auto;
    display: block;
    text-align: center;
}

.why-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.why-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   HOME TRIPLET — Latest updates | Highlights | Quick links
   (Global / enterprise surface — neutral slate + brand accents)
   ============================================ */
.home-triplet-section {
    padding: clamp(28px, 4vw, 48px) 0 clamp(36px, 5vw, 56px);
    background:
        radial-gradient(ellipse 120% 80% at 80% -20%, rgba(180, 74, 63, 0.045) 0%, transparent 55%),
        radial-gradient(ellipse 90% 60% at 10% 100%, rgba(15, 23, 42, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, #f8fafc 0%, #f1f5f9 45%, #eef2f6 100%);
}

.home-triplet-panel--featured .home-triplet-heading--on-gradient {
    flex-shrink: 0;
    margin: 0;
    padding: 14px 22px 15px;
    color: #f8fafc;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: clamp(16px, 1.55vw, 19px);
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 100%),
        linear-gradient(105deg, #0f172a 0%, #1e293b 38%, #334155 72%, var(--brand-dark) 100%);
    border-radius: 0;
    position: relative;
    border-bottom: 4px solid var(--brand-primary);
}

.home-triplet-inner {
    max-width: 1360px;
}

/* Outer “big container”: holds the three column panels */
.home-triplet-shell {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow:
        0 28px 70px rgba(15, 23, 42, 0.1),
        0 2px 12px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding: clamp(20px, 3.2vw, 36px);
}

/* Softer inner cards so the shell reads as the primary frame */
.home-triplet-shell .home-triplet-panel--featured {
    box-shadow:
        0 10px 32px rgba(15, 23, 42, 0.06),
        0 1px 6px rgba(15, 23, 42, 0.04);
}

.home-triplet-shell .home-triplet-panel--plain .home-triplet-card--body {
    box-shadow:
        0 8px 26px rgba(15, 23, 42, 0.06),
        0 1px 5px rgba(15, 23, 42, 0.04);
}

.home-triplet-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 0.88fr);
    gap: clamp(18px, 2.2vw, 28px);
    align-items: stretch;
}

.home-triplet-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.home-triplet-heading {
    font-size: clamp(15px, 1.35vw, 17px);
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    margin: 0 0 12px;
    padding-left: 0;
    line-height: 1.35;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Featured column: stretches with row; media grows so bottoms align with side columns */
.home-triplet-panel--featured {
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow:
        0 18px 50px rgba(15, 23, 42, 0.08),
        0 2px 8px rgba(15, 23, 42, 0.04);
}

.home-triplet-card {
    border-radius: 14px;
    background: #fff;
    flex: 1;
    min-height: 0;
}

.home-triplet-panel--featured .home-triplet-card--program {
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    background: #fff;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
    box-sizing: border-box;
}

/* Side columns: same card token globally */
.home-triplet-panel--plain .home-triplet-card--body {
    padding: 0;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 260px;
    background: #fff;
    box-shadow:
        0 14px 36px rgba(15, 23, 42, 0.07),
        0 2px 6px rgba(15, 23, 42, 0.04);
}

.home-triplet-panel--quick .home-triplet-card--body {
    background: #fff;
    overflow: hidden;
}

.home-triplet-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 36px 22px;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.55;
}

.home-triplet-latest-list {
    list-style: none;
    margin: 0;
    padding: 4px 0 6px;
}

.home-triplet-latest-list li {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.home-triplet-latest-list li:last-child {
    border-bottom: none;
}

.home-triplet-latest-link {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px 20px;
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.home-triplet-latest-link:hover {
    background: rgba(241, 245, 249, 0.95);
    box-shadow: inset 3px 0 0 var(--brand-primary);
}

.home-triplet-latest-date {
    font-size: 12px;
    font-weight: 600;
    color: #8f4a42;
    letter-spacing: 0.02em;
}

/* Latest updates — training | CEP side by side */
.home-latest-updates {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 4px 0 8px;
    min-height: 0;
}

.home-latest-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    min-height: 0;
}

.home-latest-column {
    min-width: 0;
}

.home-latest-column--cep {
    order: 1;
    border-right: 1px solid rgba(15, 23, 42, 0.08);
}

.home-latest-column--training {
    order: 2;
}

.home-latest-columns .home-latest-block {
    display: flex;
    flex-direction: column;
    padding: 0;
    height: 100%;
}

.home-latest-columns .home-latest-block-more {
    margin-top: auto;
}

.home-latest-columns .home-latest-block-head {
    padding: 12px 14px 8px;
}

.home-latest-columns .home-latest-session-link {
    padding: 10px 14px;
    gap: 10px;
}

.home-latest-columns .home-latest-session-course {
    font-size: 12px;
    line-height: 1.35;
}

.home-latest-columns .home-latest-hot-badge {
    display: inline-block;
    margin-left: 0;
    margin-top: 4px;
    vertical-align: baseline;
}

.home-latest-columns .home-latest-scheduled-label {
    padding-left: 14px;
    padding-right: 14px;
}

.home-latest-columns .home-latest-block-empty {
    padding-left: 14px;
    padding-right: 14px;
}

.home-latest-block {
    padding: 4px 0 10px;
}

.home-latest-block-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 20px 8px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.home-latest-block-title {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1c244b;
}

.home-latest-block-period {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.home-latest-divider {
    height: 1px;
    margin: 4px 16px;
    background: linear-gradient(90deg, transparent, rgba(28, 36, 75, 0.12), transparent);
}

.home-latest-session-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-latest-session-list li {
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.home-latest-session-list li:last-child {
    border-bottom: none;
}

.home-latest-session-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: #0f172a;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.home-latest-session-link:hover {
    background: rgba(241, 245, 249, 0.95);
    box-shadow: inset 3px 0 0 var(--brand-primary);
}

.home-latest-session-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #64748b;
    background: none;
}

.home-latest-session-icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

.home-latest-session-icon--star {
    color: #8f4a42;
}

.home-latest-session-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.home-latest-session-course {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.home-latest-session-date {
    font-size: 12px;
    font-weight: 600;
    color: #8f4a42;
    letter-spacing: 0.02em;
}

.home-latest-session-arrow {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
    transition: color 0.15s ease, transform 0.15s ease;
}

.home-latest-session-link:hover .home-latest-session-arrow {
    color: var(--brand-primary);
    transform: translateX(2px);
}

.home-latest-block-empty {
    margin: 0;
    padding: 10px 20px 6px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.home-latest-block-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding: 11px 14px 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, rgba(241, 245, 249, 0.7) 100%);
    color: #1c244b;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.home-latest-block-more-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.3;
}

.home-latest-block-more-arrow {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: #8f4a42;
    transition: transform 0.18s ease, color 0.18s ease;
}

.home-latest-block-more:hover {
    background: rgba(143, 74, 66, 0.06);
    color: #8f4a42;
}

.home-latest-block-more:hover .home-latest-block-more-arrow {
    color: var(--brand-primary);
    transform: translateX(3px);
}

.home-latest-block-more:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: -2px;
}

.home-latest-session-list--hot {
    background: linear-gradient(180deg, rgba(143, 74, 66, 0.06) 0%, transparent 100%);
}

.home-latest-session-link--hot {
    background: rgba(255, 251, 250, 0.9);
}

.home-latest-session-link--hot:hover {
    background: rgba(255, 245, 243, 0.98);
    box-shadow: inset 3px 0 0 #8f4a42;
}

.home-latest-hot-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #8f4a42 0%, #b85c4a 100%);
    border-radius: 999px;
    vertical-align: middle;
}

.home-latest-scheduled-label {
    margin: 0;
    padding: 10px 20px 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
}

/* Program slider */
.home-triplet-program-slider {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #0f172a;
    border-radius: 0 0 14px 14px;
    overflow: hidden;
}

.home-triplet-program-track {
    position: relative;
    flex: 1 1 auto;
    min-height: 220px;
    margin: 0;
    border-radius: 0 0 14px 14px;
    overflow: hidden;
}

.home-triplet-panel--featured .home-triplet-program-track {
    margin: 0;
}

.home-triplet-program-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.home-triplet-program-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.home-triplet-program-media {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 0 0 14px 14px;
    overflow: hidden;
}

.home-triplet-program-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0 0 14px 14px;
}

.home-triplet-program-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px 22px 48px;
    border-radius: 0 0 14px 14px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.28) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.home-triplet-program-caption {
    margin: 0;
    color: #fff;
    font-size: clamp(13px, 1.2vw, 15px);
    font-weight: 600;
    line-height: 1.4;
    max-width: 88%;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.home-triplet-program-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    background: var(--brand-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
    transition: background var(--transition-fast), transform 0.15s ease, box-shadow 0.2s ease;
}

.home-triplet-program-btn:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.32);
}

.home-triplet-program-dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    top: auto;
    right: auto;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.38);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.home-triplet-program-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.home-triplet-program-dot:hover {
    transform: scale(1.2);
}

.home-triplet-program-dot.is-active {
    background: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.88);
}

/* Quick links / accordion */
.home-triplet-quick-wrap {
    gap: 0;
    overflow: hidden;
}

.home-triplet-info-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    position: relative;
    box-sizing: border-box;
    background: linear-gradient(165deg, #ffffff 0%, #f1f5f9 100%);
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    color: var(--brand-primary);
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        color 0.18s ease;
}

/* Forward chevron — neutral “navigate” affordance */
.home-triplet-info-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    margin-top: -4px;
    margin-left: -5px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    opacity: 0.92;
}

.home-triplet-summary-label {
    flex: 1;
    min-width: 0;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #0f172a;
    line-height: 1.4;
}

.home-triplet-chevron {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    transform: rotate(45deg);
    margin-top: 2px;
    transition: transform 0.2s ease;
}

.home-triplet-details {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
}

.home-triplet-details:last-child {
    border-bottom: none;
}

.home-triplet-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    margin: 0;
    background: #fff;
    transition:
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.home-triplet-summary::-webkit-details-marker {
    display: none;
}

.home-triplet-summary:hover {
    background: #f1f5f9;
    box-shadow: inset 3px 0 0 rgba(180, 74, 63, 0.42);
}

.home-triplet-summary:hover .home-triplet-summary-label {
    color: var(--brand-dark);
}

.home-triplet-summary:hover .home-triplet-chevron {
    border-color: rgba(180, 74, 63, 0.75);
}

.home-triplet-summary:hover .home-triplet-info-icon {
    background: #fff;
    border-color: rgba(180, 74, 63, 0.35);
    color: var(--brand-dark);
    box-shadow:
        0 2px 10px rgba(15, 23, 42, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.home-triplet-details[open] .home-triplet-chevron {
    transform: rotate(225deg);
    margin-top: 6px;
}

.home-triplet-sub {
    display: flex;
    flex-direction: column;
    padding: 0 18px 15px 64px;
    gap: 9px;
    background: #f1f5f9;
}

.home-triplet-sub-link {
    font-size: 13px;
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
    padding: 5px 8px;
    margin: -2px -8px;
    border-radius: 6px;
    transition:
        color 0.15s ease,
        background 0.15s ease;
}

.home-triplet-sub-link:hover {
    color: var(--brand-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
    background: rgba(255, 255, 255, 0.75);
}

.home-triplet-quick-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    transition:
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.home-triplet-quick-row:last-child {
    border-bottom: none;
}

.home-triplet-quick-row:hover {
    background: #f1f5f9;
    box-shadow: inset 3px 0 0 rgba(180, 74, 63, 0.42);
}

.home-triplet-quick-row:hover .home-triplet-summary-label {
    color: var(--brand-dark);
}

.home-triplet-quick-row:hover .home-triplet-info-icon {
    background: #fff;
    border-color: rgba(180, 74, 63, 0.35);
    color: var(--brand-dark);
    box-shadow:
        0 2px 10px rgba(15, 23, 42, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* ============================================
   TRUSTED BY LOGOS SECTION
   ============================================ */
.trusted-logos-section {
    padding: 0;
    background: transparent;
    position: relative;
    width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
}

/* Pautan Luar block above copyright (JKKP-style band) */
.trusted-logos-section--prefooter {
    padding: 14px 0 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    background:
        repeating-linear-gradient(
            -32deg,
            transparent,
            transparent 72px,
            rgba(255, 255, 255, 0.22) 72px,
            rgba(255, 255, 255, 0.22) 144px
        ),
        linear-gradient(160deg, #eef0f4 0%, #e4e7ec 40%, #f2f4f8 100%);
}

.trusted-logos-prefooter-heading {
    max-width: 720px;
    margin: 0 auto 8px;
    padding: 0 20px;
    text-align: center;
}

.trusted-logos-section--prefooter .trusted-title--prefooter {
    margin: 0 0 6px;
    font-weight: 700;
    font-size: clamp(18px, 2vw, 22px);
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.3;
}

.trusted-logos-section--prefooter .trusted-logos-track {
    gap: 22px;
    padding: 0 12px;
}

.trusted-logos-section--prefooter .trusted-logo-item img {
    max-height: 44px;
    max-width: 120px;
    min-height: 0;
    margin-bottom: 0;
}

.trusted-logos-section--prefooter .trusted-logo-item--large img {
    max-height: 52px;
    max-width: 150px;
}

.trusted-logos-section--prefooter .trusted-logo-item--small img {
    max-height: 34px;
    max-width: 88px;
}

.trusted-logos-section--prefooter .trusted-logo-item--down {
    margin-top: 0;
}

.trusted-title {
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    margin: 0 0 -10px 0;
    padding: 0 0;
    line-height: 1.2;
}

.trusted-title--logo {
    margin: 0 0 12px 0;
    line-height: 0;
}

.trusted-heading-logo {
    display: inline-block;
    max-width: min(90vw, 420px);
    width: auto;
    height: auto;
    max-height: clamp(36px, 5vw, 52px);
    object-fit: contain;
    vertical-align: middle;
}

.trusted-title strong {
    font-weight: 700;
    color: var(--brand-primary);
}

.trusted-logos-scroll-wrap {
    overflow: hidden;
    width: 100%;
}

/* Track must contain two identical copies of the logos (see index.php: for $repeat 0..2).
   translateX(-50%) moves by one copy so the loop is seamless. */
.trusted-logos-track {
    display: inline-flex;
    align-items: center;
    gap: 40px;
    padding: 0 20px;
    white-space: nowrap;
    width: -webkit-max-content;
    width: max-content;
    will-change: transform;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
    -webkit-animation: trustedLogosScroll 20s linear infinite;
    animation: trustedLogosScroll 20s linear infinite;
}

@-webkit-keyframes trustedLogosScroll {
    from { -webkit-transform: translate3d(0,0,0); transform: translate3d(0,0,0); }
    to   { -webkit-transform: translate3d(-50%,0,0); transform: translate3d(-50%,0,0); }
}

@keyframes trustedLogosScroll {
    from { transform: translate3d(0,0,0); }
    to   { transform: translate3d(-50%,0,0); }
}

.trusted-logo-item {
    flex: 0 0 auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trusted-logo-item img {
    max-height: 150px;
    max-width: 300px;
    width: auto;
    height: auto;
    min-height: 40px;
    object-fit: contain;
    margin-bottom: -20px;
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
}

.trusted-logo-item--large img {
    max-height: 300px;
    max-width: 480px;
}

.trusted-logo-item--small img {
    max-height: 90px;
    max-width: 220px;
}

.trusted-logo-item--down {
    margin-top: 17px;
}

/* ============================================
   SOCIAL MEDIA SECTION
   Full-width gradient cover (similar to WP cover + dim layer)
   ============================================ */
.socials-section-modern {
    padding: 36px 20px 48px;
    background: linear-gradient(180deg, #eef2f6 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.socials-cover {
    position: relative;
    max-width: 1220px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 24px 56px rgba(15, 23, 42, 0.14),
        0 8px 24px rgba(99, 102, 241, 0.12);
    min-height: min(420px, 70vh);
}

/* Base gradient strip — cyan → blue → violet (reference-style band) */
.socials-cover__background {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        125deg,
        #6ec8ff 0%,
        #3b9eff 20%,
        #5b7cfa 42%,
        #7c6cf0 65%,
        #9b6dca 100%
    );
    background-size: 150% 150%;
    animation: socialsCoverGradientShift 18s ease-in-out infinite alternate;
}

/* Light wash so cards stay readable (less heavy than before) */
.socials-cover__dim {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.28) 0%,
        rgba(255, 255, 255, 0.06) 40%,
        rgba(15, 23, 42, 0.06) 100%
    );
}

.socials-cover__inner {
    position: relative;
    z-index: 1;
    padding: 40px 22px 44px;
}

@keyframes socialsCoverGradientShift {
    0% { background-position: 0% 30%; }
    100% { background-position: 100% 70%; }
}

/* Footer lived inside this section historically */
.socials-section-modern .copyright,
.socials-section-modern .copyright p {
    background: transparent !important;
    background-color: transparent !important;
    color: inherit !important;
    border: none !important;
}

.socials-title-modern {
    color: #fff;
    font-size: clamp(24px, 3.6vw, 36px);
    font-weight: 800;
    text-align: center;
    margin: 0 0 28px 0;
    letter-spacing: 0.02em;
    text-shadow:
        0 1px 2px rgba(15, 23, 42, 0.35),
        0 2px 16px rgba(15, 23, 42, 0.2);
}

/* Three-column social feed cards (light panels on gradient) */
.social-feeds-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 20px);
    align-items: stretch;
}

/* Let columns stay equal: IG embed iframe has a large intrinsic min-width; without this the third column can grow and footer looks shifted */
.social-feeds-grid .social-feed-card {
    min-width: 0;
}

.social-feed-card {
    background: #e8ecf1;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    box-shadow:
        0 4px 18px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
    display: flex;
    flex-direction: column;
    min-height: 650px;
    overflow: hidden;
}



/* Facebook / Instagram poster cards (no iframe feed) */
.social-feed-card--poster {
    min-height: 0;
}

.social-feed-card__title {
    margin: 0;
    padding: 14px 14px 12px;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
    text-align: center;
    letter-spacing: -0.02em;
    background: rgba(255, 255, 255, 0.55);
}

.social-feed-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 14px 16px 16px;
    gap: 14px;
    min-height: 0;
}

.social-feed-card__body--embed {
    flex: 1 1 0;
    min-height: 0;
    min-width: 0;
    padding: 0;
    gap: 0;
}

.social-feed-card__body--stacked {
    padding: 12px 14px 14px;
    gap: 12px;
}

.social-feed-card__poster {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    max-height: 320px;
    margin: 0 2px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.social-feed-card__poster:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 3px;
}

.social-feed-card__poster-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-feed-card__poster-fallback {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 180px;
}

.social-feed-card__poster--facebook .social-feed-card__poster-fallback {
    background: linear-gradient(145deg, #1877f2 0%, #0e5fbc 50%, #0c1a3a 100%);
}

.social-feed-card__poster--instagram .social-feed-card__poster-fallback {
    background:
        radial-gradient(circle at 25% 88%, rgba(254, 218, 117, 0.95) 0%, transparent 42%),
        radial-gradient(circle at 72% 18%, rgba(214, 41, 118, 0.85) 0%, transparent 45%),
        linear-gradient(140deg, #833ab4 0%, #e1306c 42%, #fd1d1d 72%, #fcb045 100%);
}

.social-feed-card__poster-label {
    position: absolute;
    inset: auto 0 0 0;
    padding: 14px 12px 12px;
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.72));
}

.social-feed-card__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
}

.social-feed-card__link-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: 2px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    transition:
        border-color var(--transition-fast),
        color var(--transition-fast),
        box-shadow 0.15s ease;
}

.social-feed-card__link-pill:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    box-shadow: 0 2px 12px rgba(180, 74, 63, 0.2);
}

/* Official Instagram embed (blockquote + instagram.com/embed.js) */
.social-feed-card--instagram-official {
    min-height: 0;
}

.social-feed-card__body--instagram-official {
    flex: 1 1 0;
    padding: 0;
    gap: 0;
    min-width: 0;
    min-height: 0;
}

/* Instagram’s injected iframe is tall (header + media + caption + “View more…”); a short shell only shows part “in place” — scroll the shell or use Watch now / open on Instagram. */
.social-feed-card__instagram-shell {
    flex: 1 1 0;
    min-height: 230px;
    max-height: min(590px, 75vh);
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding: 8px 0 12px;
}

.social-feed-card__instagram-shell .instagram-media {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.social-feed-card__instagram-shell iframe {
    max-width: 100% !important;
}

.social-feed-card__embed {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    max-height: min(680px, 82vh);
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.social-feed-card__iframe {
    flex: 1 1 auto;
    align-self: stretch;
    width: 100%;
    min-height: 560px;
    border: 0;
}

.social-feed-card__embed-footer {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 14px 10px;
    background: #fff;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.social-feed-card__outlink {
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.social-feed-card__outlink:hover {
    color: var(--brand-primary);
}

.social-feed-card__hint {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #475569;
    flex: 1;
    text-align: center;
}

.social-feed-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: auto;
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    background: var(--brand-primary);
    color: #fff;
    box-shadow: 0 2px 10px rgba(180, 74, 63, 0.35);
    transition: background var(--transition-fast), transform 0.15s ease;
}

.social-feed-card__cta--compact {
    width: auto;
    flex: 0 0 auto;
    margin-top: 0;
    padding: 8px 14px;
    font-size: 0.8125rem;
}

.social-feed-card__cta:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

.social-feed-card__cta:focus-visible {
    outline: 2px solid var(--brand-dark);
    outline-offset: 2px;
}

.social-embed-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.social-embed-modal.is-open {
    display: flex;
}

.social-embed-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
}

.social-embed-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: min(90vh, 860px);
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.social-embed-modal__heading {
    margin: 0;
    padding: 14px 48px 10px 18px;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.social-embed-modal__close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--radius-sm);
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.social-embed-modal__close:hover {
    background: rgba(15, 23, 42, 0.12);
}

.social-embed-modal__frame-wrap {
    flex: 1;
    min-height: 480px;
    max-height: calc(90vh - 56px);
    background: #000;
}

.social-embed-modal__iframe {
    width: 100%;
    height: 100%;
    min-height: 480px;
    border: none;
    display: block;
}

.social-embed-modal__fallback {
    padding: 28px 20px 32px;
    text-align: center;
}

.social-embed-modal__fallback-text {
    margin: 0 0 16px;
    color: #475569;
    font-size: 0.95rem;
}

.social-embed-modal__fallback-link {
    display: inline-block;
    text-decoration: none;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Additional animated elements for sections */
.dosh-compliance-section,
.services-showcase-section,
.training-showcase-section,
.cep-showcase-section,
.why-choose-section {
    position: relative;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.animated-badge,
.animated-title,
.animated-subtitle,
.animated-description,
.animated-btn,
.animated-btn-delay {
    opacity: 0;
}

.animated-btn-delay {
    animation-delay: 0.2s;
}

@media (max-width: 1024px) {
    .social-feeds-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1100px) {
    .home-triplet-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .home-latest-columns {
        grid-template-columns: 1fr;
    }

    .home-latest-column--cep {
        border-right: none;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    }

    .home-latest-column--training {
        order: 2;
    }
}

@media (max-width: 768px) {
    .home-triplet-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .home-triplet-section {
        padding: 20px 0 32px;
    }

    .home-triplet-shell {
        border-radius: 16px;
        padding: 18px 16px;
    }

    .home-triplet-card--body {
        min-height: 220px;
    }

    /* Stack layout: fixed image ratio; drop desktop flex-fill */
    .home-triplet-panel--featured .home-triplet-card--program {
        flex: 0 1 auto;
        display: block;
    }

    .home-triplet-program-slider {
        flex: none;
        display: block;
        min-height: 0;
        border-radius: 0 0 14px 14px;
        overflow: hidden;
    }

    .home-triplet-program-track {
        flex: none;
        min-height: clamp(300px, 72vw, 420px);
        max-height: none;
        aspect-ratio: 16 / 18;
        margin: 0;
        border-radius: 0 0 14px 14px;
    }

    .home-triplet-panel--featured .home-triplet-program-track {
        margin: 0;
    }

    .hero-section-dosh {
        min-height: auto;
        padding: 40px 20px;
    }
    
    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .services-grid,
    .trainings-grid,
    .cep-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid,
    .why-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .service-card,
    .training-card,
    .cep-card {
        padding: 28px;
    }
    
    .socials-section-modern {
        padding: 24px 16px 32px;
    }

    .socials-cover {
        min-height: 260px;
        border-radius: var(--radius-md);
    }

    .socials-cover__inner {
        padding: 36px 16px 40px;
    }

    .social-feeds-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .social-feed-card {
        min-height: 430px;
    }

    .social-feed-card--poster {
        min-height: 0;
    }

    .social-feed-card__instagram-shell {
        min-height: 230px;
        max-height: min(550px, 66vh);
    }

    .social-feed-card__embed {
        min-height: 260px;
        max-height: min(600px, 72vh);
    }

    .social-feed-card__iframe {
        min-height: 440px;
    }

    .social-embed-modal__dialog {
        width: 100%;
        max-height: 92vh;
    }

    .social-embed-modal__frame-wrap {
        min-height: 400px;
        max-height: calc(92vh - 52px);
    }

    .social-embed-modal__iframe {
        min-height: 400px;
    }
    
    .hero-slider-dots-strip .slider-nav {
        padding: 0 12px 4px;
        margin: 0 0 2px;
    }

    .trusted-logos-section--prefooter {
        padding: 12px 0 14px;
    }

    .trusted-logos-section--prefooter .trusted-logos-track {
        gap: 16px;
    }

    .trusted-logos-section--prefooter .trusted-logo-item img {
        max-height: 36px;
        max-width: 100px;
    }

    .trusted-logos-section--prefooter .trusted-logo-item--large img {
        max-height: 44px;
        max-width: 128px;
    }

    .trusted-logos-section--prefooter .trusted-logo-item--small img {
        max-height: 30px;
        max-width: 76px;
    }
    
    .trusted-logos-track {
        gap: 24px;
    }
    
    
    .trusted-logo-item img {
        max-height: 56px;
        max-width: 160px;
    }
    
    .trusted-logo-item--large img {
        max-height: 80px;
        max-width: 220px;
    }
    
    .trusted-logo-item--small img {
        max-height: 40px;
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .hero-section-dosh {
        min-height: 400px;
        padding: 40px 15px;
    }
    
    .dosh-compliance-section,
    .services-showcase-section,
    .training-showcase-section,
    .cep-showcase-section,
    .why-choose-section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .features-grid {
        gap: 20px 24px;
    }
    
    .trusted-logos-track {
        gap: 20px;
    }
    
    .trusted-logo-item img {
        max-height: 48px;
        max-width: 120px;
    }
    
    .trusted-logo-item--large img {
        max-height: 64px;
        max-width: 160px;
    }
    
    .trusted-logo-item--small img {
        max-height: 32px;
        max-width: 80px;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 3px solid var(--brand-primary);
    outline-offset: 2px;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    right: calc(24px + env(safe-area-inset-right, 0px));
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
    color: #fff;
}

.whatsapp-float svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   CNY GREETING POP-UP
   ============================================ */
.cny-popup-overlay {
    position: fixed; inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.cny-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cny-popup-overlay[aria-hidden="false"].show .cny-popup-content {
    animation: cnyPopIn 0.35s ease-out;
}

@keyframes cnyPopIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.cny-popup-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.6);
}

.cny-popup-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.cny-popup-slider {
    position: relative;
}

.cny-popup-img {
    display: none;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    transition: opacity 0.3s ease;
}

.cny-popup-img.cny-popup-img-active {
    display: block;
}

.cny-popup-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
}

.cny-popup-prev,
.cny-popup-next {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: #333;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.cny-popup-prev:hover,
.cny-popup-next:hover {
    background: #fff;
    transform: scale(1.1);
}

.cny-popup-dots {
    display: flex;
    gap: 8px;
}

.cny-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.cny-dot:hover,
.cny-dot.active {
    background: rgba(255,255,255,0.95);
    transform: scale(1.2);
}

.cny-popup-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #333;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 1;
}

.cny-popup-close:hover {
    background: #f0f0f0;
}