/* --- xMonks Premium Magazine Editorial Stylesheet for Homepage --- */

:root {
    --primary-orange: #ED592C;
    --primary-hover: #D4471B;
    --bg-editorial: #FAF4EB;
    --text-charcoal: #0F172A;
    --text-muted: #64748B;
}

body {
    background-color: var(--bg-editorial);
    background-image: 
      linear-gradient(rgba(237, 89, 44, 0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(237, 89, 44, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    font-family: 'Poppins', sans-serif;
    color: var(--text-charcoal);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}



/* Premium Global Film Grain Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}



/* ========================================
   Editorial Typography & Spacing Overrides
   ======================================== */
.font-editorial {
    font-family: 'Playfair Display', serif;
}


/* ========================================
   Hero Section Effects
   ======================================== */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
}

.hero-glow-orange {
    background: rgba(237, 89, 44, 0.15);
    width: 60vw;
    height: 60vw;
    top: -20%;
    right: -10%;
}

.hero-glow-blue {
    background: rgba(14, 165, 233, 0.1);
    width: 50vw;
    height: 50vw;
    bottom: -10%;
    left: -10%;
}

/* Glassmorphic Partner Cards */
.partner-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.partner-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.partner-logo-container {
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1rem;
}

.partner-logo-container img {
    max-height: 100%;
    max-width: 120px;
    object-fit: contain;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* ========================================
   Infinite Logo Carousel (Editorial Style)
   ======================================== */
.logos {
    overflow: hidden;
    padding: 1.2rem 0;
    background-color: #af3a16;
    background-image: 
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.22'/%3E%3C/svg%3E");
    background-blend-mode: overlay;
    white-space: nowrap;
    position: relative;
    border-top: none;
    border-bottom: none;
}

.logos::before,
.logos::after {
    position: absolute;
    top: 0;
    width: 250px;
    height: 100%;
    content: "";
    z-index: 10;
    pointer-events: none;
}

.logos::before {
    left: 0;
    background: linear-gradient(to right, #af3a16, transparent);
}

.logos::after {
    right: 0;
    background: linear-gradient(to left, #af3a16, transparent);
}

.logos:hover .logos-slide {
    animation-play-state: paused;
}

.logos-slide {
    display: inline-flex;
    align-items: center;
    animation: 45s slide infinite linear;
}

.logos-slide img {
    height: auto;
    max-height: 42px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    margin: 0 55px;
    display: inline-block;
    filter: brightness(0) invert(1) opacity(80%) drop-shadow(0 0 6px rgba(255, 255, 255, 0.25));
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.logos-slide img:hover {
    filter: brightness(0) invert(1) opacity(100%) drop-shadow(0 0 12px rgba(255, 255, 255, 0.65));
    transform: scale(1.08);
}

/* ========================================
   Custom Scrollbar Utilities
   ======================================== */
.scrollbar-none::-webkit-scrollbar {
    display: none;
}
.scrollbar-none {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

@keyframes slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}




/* ========================================
   Our Programs Section Styles
   ======================================== */
/* Premium Segmented Tab Controls (Apple Slider style on Orange) */
.program-tab {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    outline: none;
}

.program-tab:hover {
    color: white;
}

.program-tab.active {
    background: white;
    color: var(--primary-orange) !important;
}


/* Horizontal Program Accordion Card */
.program-accordion-card {
    transition: flex-grow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: flex-grow;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    flex-grow: 1;
    border: 2px solid var(--primary-orange) !important;
}


.program-accordion-card:hover {
    flex-grow: 6 !important;
}

/* Default expanded state for the first card when container is not hovered */
/* Public group default */
#group-public:not(:hover) .program-accordion-card:first-child {
    flex-grow: 6;
}
#group-public:not(:hover) .program-accordion-card:first-child .accordion-content {
    transform: translateY(0);
    opacity: 1;
}
#group-public:not(:hover) .program-accordion-card:first-child div[class*="-rotate-90"] {
    opacity: 0;
}

/* In-house group default */
#group-inhouse:not(:hover) .program-accordion-card:first-child {
    flex-grow: 6;
}
#group-inhouse:not(:hover) .program-accordion-card:first-child .accordion-content {
    transform: translateY(0);
    opacity: 1;
}
#group-inhouse:not(:hover) .program-accordion-card:first-child div[class*="-rotate-90"] {
    opacity: 0;
}

/* Content visibility toggle on hover */
.program-accordion-card .accordion-content {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.program-accordion-card:hover .accordion-content {
    transform: translateY(0);
    opacity: 1;
}

/* Specific sub-element transitions to avoid Tailwind's transition-all */
.program-accordion-card .absolute.top-6.right-6 {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    will-change: transform;
}

.program-accordion-card div[class*="-rotate-90"] {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease !important;
    will-change: transform, opacity;
}

.program-accordion-card .w-12.h-12 {
    transition: background-color 0.3s ease, transform 0.3s ease !important;
    will-change: background-color, transform;
}

.program-accordion-card .absolute.inset-0.bg-gradient-to-t {
    transition: opacity 0.4s ease !important;
    will-change: opacity;
}

.program-accordion-card i {
    transition: transform 0.3s ease;
}

.program-accordion-card:hover i {
    transform: rotate(45deg);
}

/* Static-width background image container to prevent resizing reflow lag */
.program-accordion-card .card-bg-image {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate3d(-50%, 0, 0);
    width: 900px;
    height: 100%;
    background-size: cover;
    background-position: center;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.program-accordion-card:hover .card-bg-image {
    transform: translate3d(-50%, 0, 0) scale(1.05);
}

/* Mobile responsivity overrides: Stack cards vertically and keep them fully visible/expanded */
@media (max-width: 1023px) {
    #group-public, #group-inhouse {
        position: absolute !important;
        opacity: 0 !important;
        pointer-events: none !important;
        height: 0 !important;
        overflow: hidden !important;
        display: none !important;
    }
    
    #group-public.opacity-100, #group-inhouse.opacity-100 {
        position: relative !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        overflow: visible !important;
    }

    .relative.w-full.h-\[520px\] {
        height: auto !important;
        overflow: visible !important;
    }

    .program-accordion-card {
        flex-grow: 0 !important;
        flex-basis: auto !important;
        min-height: 280px !important;
        height: auto !important;
        width: 100% !important;
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .program-accordion-card .card-bg-image {
        width: 100% !important;
        left: 0 !important;
        transform: none !important;
    }

    .accordion-content {
        transform: translateY(0) !important;
        opacity: 1 !important;
    }

    div[class*="-rotate-90"] {
        display: none !important;
    }
}

/* Testimonial 3D Parallax Tilt Animation Transitions */
#testi-image-container {
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1) !important;
    transform-style: preserve-3d;
}

#testi-image {
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* ========================================
   End of Stylesheet
   ======================================== */

/* ========================================
   Our Partners Section (Premium Editorial Grid)
   ======================================== */
.partner-editorial-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner-editorial-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary-orange) !important;
}

/* ========================================
   Diverse Horizons Section (Asymmetric Ecosystem Grid)
   ======================================== */
@keyframes spinSlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spin-slow {
    animation: spinSlow 40s linear infinite;
}









