/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */
:root {
    --brand-dark: #001F29;
    --brand-mint: #4CD1C2;
    --brand-mint-hover: #3bbcae;
    --brand-cream: #F9F7F2;
    --brand-yellow: #F0E66A; 
    --brand-footer: #007d7e; /* Darker teal for better contrast with white text (WCAG AA) */
    --brand-blue-line: #0099CC;
    /* ITC Avant Garde Gothic Alternative - Poppins (closest free geometric sans-serif) */
    --font-header: 'Poppins', 'Avant Garde', 'Century Gothic', sans-serif;
    --font-body: "Alvant Grade", sans-serif !important;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--brand-cream);
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   TYPOGRAPHY - ITC Avant Garde Gothic Alternative
   All headings use Poppins (geometric sans-serif)
   ========================================= */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-header);
    font-weight: 600;
}

/* Section titles and large headings */
.section-title,
.hero-title,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-header);
    font-weight: 700;
}

/* Navigation uses header font */
.navbar,
.navbar *,
.main-navigation,
.main-navigation * {
    font-family: var(--font-header);
}

.bg-light-cream, .section-bg {
    background-color: var(--brand-cream);
}

.bg-dark-teal {
    background-color: var(--brand-dark);
}

.btn-dark-teal {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}
.btn-dark-teal:hover {
    background-color: #005a5a;
    border-color: #005a5a;
    color: #fff;
}

.bg-yellow {
    background-color: var(--brand-yellow) !important;
}

.text-mint { color: var(--brand-mint) !important; }
.text-dark-teal { color: var(--brand-dark) !important; }
.hover-mint:hover { color: var(--brand-mint) !important; }
.hover-u:hover { text-decoration: underline !important; }

/* Font size helpers */
.navbar-brand sup { font-size: 0.6em; }
.extra-small { font-size: 0.8rem; line-height: 1.5; }
.ls-1 { letter-spacing: 0.5px; }


/* =========================================
   2. HEADERS & HERO CONFIGURATIONS
   ========================================= */

/* A. HOME PAGE HERO (Gradient Background - Full Width) */
.hero-wrapper {
    background: radial-gradient(circle at 10% 20%, #0c3b49 0%, var(--brand-dark) 60%);
    padding-bottom: 60px;
    position: relative;
    z-index: 2;
    min-height: 100vh;
}

/* B. STANDARD HEADER (For News/Generic Pages - Solid Dark) */
.header-wrapper {
    background-color: #001F29; /* Explicit Solid Dark */
    width: 100%;
    position: relative;
    z-index: 100;
}

/* C. SUPPORT PAGE WRAPPER (Solid Dark + Hero Content) */
.support-hero-wrapper {
    background-color: #001F29 !important;
    width: 100%;
    position: relative;
    padding-bottom: 2rem;
}
.support-hero-wrapper .navbar {
    background: transparent !important;
}

/* --- HEADER ELEMENT FIXES (Applies to all dark headers) --- */

/* Force Logo White */
.header-wrapper .navbar-brand,
.hero-wrapper .navbar-brand,
.support-hero-wrapper .navbar-brand {
    color: #ffffff !important;
}

/* Force Toggler (Hamburger) White */
.navbar-dark .navbar-toggler {
    border-color: rgba(255,255,255,0.5);
}
.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Active Nav State */
.navbar-nav .nav-link.active-nav {
    color: var(--brand-mint) !important;
    font-weight: 600;
    opacity: 1;
}

/* Mobile Menu Background Fix */
@media (max-width: 991px) {
    .header-wrapper .navbar-collapse,
    .hero-wrapper .navbar-collapse,
    .support-hero-wrapper .navbar-collapse {
        background-color: #001F29;
        position: absolute; 
        top: 100%; left: 0; right: 0; z-index: 999;
        padding: 1rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        border-radius: 0 0 12px 12px;
    }
    .navbar-nav { align-items: flex-start !important; }
}

/* Buttons */
.btn-outline-custom {
    color: #fff; border: 1px solid rgba(255,255,255,0.3);
}
.btn-outline-custom:hover {
    background: rgba(255,255,255,0.1); border-color: #fff; color: #fff;
}
.btn-mint {
    background-color: var(--brand-mint); color: #002e26; border: none;
    transition: all 0.3s;
}
.btn-mint:hover {
    background-color: var(--brand-mint-hover); transform: translateY(-2px);
}
.btn-outline-mint {
    color: #008B8B; border: 1px solid #7edbd2; background-color: transparent; transition: all 0.3s ease;
}
.btn-outline-mint:hover {
    background-color: var(--brand-mint); color: #002e26; border-color: var(--brand-mint);
}

/* Support Cash CTA Button */
.btn-support-cash {
    background: linear-gradient(135deg, var(--brand-mint) 0%, var(--brand-mint-hover) 100%);
    color: #002e26 !important;
    padding: 0.6rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 209, 194, 0.3);
    gap: 0.25rem;
    border: none;
}
.btn-support-cash:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 209, 194, 0.4);
    color: #002e26 !important;
}


/* =========================================
   3. HOME PAGE SECTIONS
   ========================================= */

/* Video Bridge */
.video-overlap-container {
    margin-bottom: -320px; position: relative; z-index: 10;
}
@media (max-width: 991px) {
    .hero-wrapper { padding-bottom: 120px; }
    .video-overlap-container { margin-bottom: -150px; }
}

/* Why Cash Page Video (No overlap) */
.why-cash-video-container {
    position: relative;
    z-index: 10;
    margin-bottom: 0;
}
.why-cash-video-container .video-card {
    aspect-ratio: 16/9;
    background: #000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.video-card {
    aspect-ratio: 16/7; background: #000; box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.video-card video { width: 100%; height: 100%; object-fit: cover; }
.video-thumbnail-container { width: 100%; height: 100%; }
.play-overlay {
    z-index: 2;
}
.btn-play-external {
    width: 80px; height: 80px; background: var(--brand-mint); border-radius: 50%; border: none;
    font-size: 2.5rem; color: white; display: flex; align-items: center; justify-content: center; transition: 0.3s;
}
.btn-play-external:hover { transform: scale(1.1); box-shadow: 0 0 20px rgba(76,209,194,0.6); }
.video-card img { height: 100%; object-fit: cover; opacity: 0.8; }
.play-btn-wrapper {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.btn-play {
    width: 80px; height: 80px; background: var(--brand-mint); border-radius: 50%; border: none;
    font-size: 2.5rem; color: white; display: flex; align-items: center; justify-content: center; transition: 0.3s;
}
.btn-play:hover { transform: scale(1.1); box-shadow: 0 0 20px rgba(76,209,194,0.6); }

/* Partners */
.partners-section {
    padding-top: 200px; padding-bottom: 50px; position: relative; z-index: 1;
}
.partner-logos h3 { font-family: sans-serif; letter-spacing: -1px; font-weight: 700; }

/* Featured Animation */
.featured-section { position: relative; }
.cards-stack-wrapper {
    position: relative; width: 100%; height: 550px; perspective: 1000px;
}
.featured-card {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: #fff; border-radius: 24px; box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    overflow: hidden; will-change: transform;
}
@media (min-width: 992px) {
    .card-02, .card-03 { transform: translateY(110%); }
    .card-01 { z-index: 1; } .card-02 { z-index: 2; } .card-03 { z-index: 3; }
}
@media (max-width: 991px) {
    .cards-stack-wrapper { height: auto; }
    .featured-card { position: relative; height: auto; margin-bottom: 2rem; transform: none !important; }
}
.active-num { font-size: 2.5rem; font-weight: 700; color: var(--brand-mint); }
.inactive-num { font-size: 1.5rem; font-weight: 700; color: #e0e0e0; }

/* Key Facts */
.text-stat-yellow { color: #FFD700; }
.text-stat-blue   { color: #2CB1FF; }
.text-stat-teal   { color: #008B8B; }
.text-stat-rust   { color: #C04E32; }

.fact-card, .fact-img-wrapper {
    height: 320px; width: 100%;
}
.fact-card { transition: transform 0.3s ease; }
.fact-card:hover { transform: translateY(-5px); }
.fact-img-wrapper img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
}
.fact-img-wrapper:hover img { transform: scale(1.05); }

@media (max-width: 991px) {
    .fact-card, .fact-img-wrapper { height: 300px; }
}

/* Episodes */
.episode-card {
    background-color: #fff; transition: all 0.3s ease; border: 1px solid transparent;
}
.episode-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
    border-color: rgba(76, 209, 194, 0.3);
}
.play-icon-circle {
    width: 50px; height: 50px; background-color: #F9F9F9;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 1px solid #eee; transition: all 0.3s ease;
}
.play-icon-circle i {
    font-size: 1.8rem; color: var(--brand-mint); margin-left: 3px; line-height: 1;
}
.episode-card:hover .play-icon-circle {
    background-color: var(--brand-mint); border-color: var(--brand-mint);
}
.episode-card:hover .play-icon-circle i { color: #fff; }


/* =========================================
   4. NEWS PAGE STYLES
   ========================================= */
.sub-nav-links a { transition: color 0.2s; }
.btn-light-grey { background-color: #E5E5E5; color: #333; border: none; }

.underline-blue {
    text-decoration: underline; text-decoration-color: var(--brand-blue-line);
    text-decoration-thickness: 4px; text-underline-offset: 8px; text-decoration-skip-ink: none; 
}
.article-headline { line-height: 1.4; letter-spacing: -1px; }
@media (max-width: 991px) { .article-headline { font-size: 2.5rem; } }

.social-share-btn {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: 0.2s; text-decoration: none;
}
.social-share-btn:hover {
    transform: translateY(-2px); background-color: var(--brand-mint) !important; color: #000 !important;
}

/* Common Card (Used in News & Studies) */
.news-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.news-card:hover {
    transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
}
.img-wrapper { height: 240px; overflow: hidden; }
.transition-img { transition: transform 0.5s; }
.news-card:hover .transition-img { transform: scale(1.05); }


/* =========================================
   5. SUPPORT PAGE (TABS & ASSETS)
   ========================================= */

/* --- TABS SYSTEM (UI MATCH) --- */
.asset-tabs-container {
    background-color: #fff;
    display: table; /* Centers the container */
    margin: 0 auto;
    border-radius: 4px;
}
/* If you want full width tabs, remove display:table from above */

.custom-asset-tabs {
    display: flex; flex-wrap: wrap; justify-content: center;
    border: none; padding: 0; margin: 0;
}
.custom-asset-tabs .nav-item {
    position: relative; border-right: 1px solid #eee; /* Vertical Divider */
}
.custom-asset-tabs .nav-item:last-child { border-right: none; }

.custom-asset-tabs .nav-link {
    color: #555; font-weight: 400; padding: 1.2rem 2.5rem;
    border: none; border-radius: 0; font-size: 1.1rem;
    background: transparent; transition: all 0.2s ease;
    display: flex; align-items: center; gap: 10px;
}

/* Active State: Teal Text & Dot */
.custom-asset-tabs .nav-link.active {
    color: var(--brand-mint) !important;
    background-color: transparent !important;
    font-weight: 700;
}
/* The Teal Dot */
.custom-asset-tabs .nav-link.active::before {
    content: ''; display: inline-block;
    width: 10px; height: 10px; background-color: var(--brand-mint); border-radius: 50%;
}
.custom-asset-tabs .nav-link:hover { color: #000; background-color: #f9f9f9; }

/* Asset Cards */
.asset-card {
    min-height: 250px; box-shadow: 0 5px 20px rgba(0,0,0,0.03); transition: transform 0.3s;
}
.asset-card:hover { transform: translateY(-5px); }
.invert-dark { filter: invert(1); }

/* Media Contacts Parallax */
.media-contact-section {
    min-height: 500px;
    background-image: url('https://images.unsplash.com/photo-1593113598332-cd288d649433?q=80&w=2000&auto=format&fit=crop');
    background-size: cover; background-position: center; background-attachment: fixed;
}
.overlay-gradient {
    background: linear-gradient(to bottom, rgba(0,31,41,0.3), rgba(0,31,41,0.7));
}


/* =========================================
   6. FOOTER & CTA (Global)
   ========================================= */
.support-section { background-color: #0B3942; }
.curved-mask-wrapper {
    min-height: 500px; height: 100%; width: 100%;
    border-top-left-radius: 50% 100%; border-bottom-left-radius: 50% 100%;
    overflow: hidden; border-left: 8px solid #0f4c57;
}
@media (max-width: 991px) {
    .curved-mask-wrapper {
        border-radius: 24px; margin: 20px; min-height: 300px; border-left: none;
    }
}

.main-footer { 
    background-color: var(--brand-footer); 
}
.main-footer a:not(.btn),
.main-footer p,
.main-footer span,
.main-footer li {
    color: #ffffff !important;
}
.main-footer .opacity-90 {
    opacity: 1 !important; /* Ensure text is fully visible for accessibility */
}
.social-circle {
    width: 40px; height: 40px; background-color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--brand-footer); transition: 0.2s; text-decoration: none;
}
.social-circle:hover { transform: translateY(-3px); color: #005c5d; }
.footer-ica-text {
    font-size: 0.85rem;
    opacity: 0.9;
}
.footer-ica-logo {
    height: 35px;
    width: auto;
}
.btn-dark-custom {
    background-color: #06232d; color: #fff; transition: background 0.3s;
}
.btn-dark-custom:hover { background-color: #000; color: #fff; }

/* Responsive Tabs */
@media (max-width: 991px) {
    .asset-tabs-container { display: block; width: 100%; overflow-x: auto; }
    .custom-asset-tabs { flex-wrap: nowrap; justify-content: flex-start; }
    .custom-asset-tabs .nav-link { white-space: nowrap; padding: 1rem; }
    .custom-asset-tabs .nav-item { border-right: none; }
}

/* =========================================
   7. WHY CASH MATTERS PAGE
   ========================================= */

/* Icon Card Base Style */
.feature-icon-card {
    min-height: 320px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.feature-icon-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    opacity: 0.8;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Specific Brand Colors for Cards */
.bg-feature-blue {
    background-color: #034A6E; /* Dark Blue */
}

.bg-feature-red {
    background-color: #7A2012; /* Dark Rust/Red */
}

.bg-feature-purple {
    background-color: #6C446C; /* Muted Purple */
}

.bg-feature-orange {
    background-color: #965A00; /* Dark Orange/Brown */
}

/* Content Card Right Side */
.feature-content-card {
    border: none;
    transition: transform 0.3s ease;
}

.feature-img-container {
    width: 35%; /* Fixed width for image part on Desktop */
    min-height: 300px;
}

/* Typography specifics for this page */
.feature-content-card h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

.btn-outline-mint {
    color: #4CD1C2;
    border: 1px solid #4CD1C2;
    background: transparent;
    transition: all 0.3s;
}
.btn-outline-mint:hover {
    background: #4CD1C2;
    color: #002e26;
}

/* Responsive Adjustments for Features */
@media (max-width: 991px) {
    /* Stack content card vertically on tablets/mobile */
    .feature-content-card {
        flex-direction: column !important;
    }
    
    .feature-img-container {
        width: 100%; /* Full width image */
        height: 250px; /* Fixed height for image */
    }
    
    .feature-icon-card {
        min-height: 200px; /* Shorter icon card on mobile */
    }
    
    .feature-row {
        margin-bottom: 3rem !important; /* Less gap on mobile */
    }
}


/* =========================================
   8. ABOUT PAGE - WHY CASH MATTERS SECTION
   ========================================= */

/* Readable text for Why Cash Matters feature boxes */
.why-cash-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .why-cash-text {
        font-size: 1.05rem;
    }
}


/* =========================================
   9. HOMEPAGE HERO CAROUSEL (Modern Split Layout)
   ========================================= */

/* Hero Slide Card - Modern Split Design */
.hero-slide-card {
    background: transparent;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    min-height: 450px;
}

/* Left Panel - Text Content */
.hero-text-panel {
    background: linear-gradient(145deg, #0B3942 0%, #07272d 100%);
    min-height: 450px;
}

/* Right Panel - Image */
.hero-image-panel {
    background: #0a2e36;
    min-height: 450px;
    overflow: hidden;
}

/* Full-width hero layout */
.hero-content {
    width: 100%;
}

.hero-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-desc {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 1.6;
    max-width: 100%;
    opacity: 0.9;
}

/* Content Type Badges */
.hero-content-type-badge .badge {
    background-color: var(--brand-mint) !important;
    color: #002e26 !important;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.hero-content-type-badge .badge.type-blog {
    background-color: #4CD1C2 !important;
}

.hero-content-type-badge .badge.type-news {
    background-color: #FFD700 !important;
    color: #1a1a1a !important;
}

.hero-content-type-badge .badge.type-podcast {
    background-color: #9B59B6 !important;
    color: #fff !important;
}

.hero-content-type-badge .badge.type-video,
.hero-content-type-badge .badge.type-interview {
    background-color: #E74C3C !important;
    color: #fff !important;
}

.hero-content-type-badge .badge.type-report,
.hero-content-type-badge .badge.type-studies {
    background-color: #3498DB !important;
    color: #fff !important;
}

/* Hero Title Animation */
#hero-slide-title {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#hero-slide-title.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

#hero-slide-intro {
    transition: opacity 0.3s ease 0.1s;
}

#hero-slide-intro.fade-out {
    opacity: 0;
}

/* Carousel Dots */
.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    border-color: var(--brand-mint);
}

.carousel-dot.active {
    background: var(--brand-mint);
    border-color: var(--brand-mint);
    transform: scale(1.2);
}

/* Carousel Controls */
.btn-carousel {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.btn-carousel:hover {
    background: var(--brand-mint);
    border-color: var(--brand-mint);
    color: #002e26;
}

.btn-carousel:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 209, 194, 0.4);
}

/* Hero Media Image */
.hero-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease, opacity 0.4s ease;
}

.hero-media-img:hover {
    transform: scale(1.03);
}

.hero-media-img.fade-out {
    opacity: 0;
}

.hero-media-item {
    height: 100%;
}

.hero-media-item video {
    height: 100%;
    object-fit: cover;
}

/* Media Type Overlay */
.hero-media-type-overlay .badge {
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
}

/* Auto-play progress bar */
.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--brand-mint);
    width: 0%;
    transition: width linear;
}

.carousel-progress.active {
    animation: carouselProgress 6s linear forwards;
}

@keyframes carouselProgress {
    from { width: 0%; }
    to { width: 100%; }
}

/* Responsive Adjustments for Hero */
@media (max-width: 991px) {
    .hero-wrapper {
        min-height: auto;
        padding-bottom: 80px;
    }
    
    .hero-slide-card {
        border-radius: 16px;
        min-height: auto;
    }
    
    .hero-text-panel {
        min-height: 320px;
        border-radius: 16px 16px 0 0;
    }
    
    .hero-image-panel {
        min-height: 280px;
        border-radius: 0 0 16px 16px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-desc {
        font-size: 0.95rem;
    }
    
    .carousel-controls {
        margin-top: 0.5rem;
    }
}

/* Large screens - make hero more prominent */
@media (min-width: 1200px) {
    .hero-slide-card {
        min-height: 520px;
    }
    
    .hero-text-panel {
        min-height: 520px;
    }
    
    .hero-image-panel {
        min-height: 520px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

/* Extra large screens */
@media (min-width: 1400px) {
    .hero-slide-card {
        min-height: 560px;
    }
    
    .hero-text-panel {
        min-height: 560px;
    }
    
    .hero-image-panel {
        min-height: 560px;
    }
}

/* =========================================
   10. ABOUT PAGE - TEAM SECTION
   ========================================= */

.team-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Team card with modern glassmorphism effect */
.team-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--brand-mint), #2CB1FF, var(--brand-mint));
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

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

.team-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 31, 41, 0.15);
}

/* Team member photo */
.team-photo-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 31, 41, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.team-card:hover .team-photo {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(76, 209, 194, 0.25);
}

/* Photo decorative ring */
.team-photo-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px dashed var(--brand-mint);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
    animation: rotate 20s linear infinite paused;
}

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

.team-card:hover .team-photo-ring {
    opacity: 1;
    animation-play-state: running;
}

/* Team member info */
.team-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-mint);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.team-bio {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

/* LinkedIn button with animation */
.btn-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-linkedin::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-linkedin:hover::before {
    left: 100%;
}

.btn-linkedin:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 119, 181, 0.35);
    color: #fff;
}

.btn-linkedin svg {
    transition: transform 0.3s ease;
}

.btn-linkedin:hover svg {
    transform: scale(1.1);
}

/* Team Social Icons */
.team-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-mint) 0%, #3ab5a7 100%);
    color: var(--brand-dark-teal);
    transition: all 0.3s ease;
    text-decoration: none;
}

.team-social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 25px rgba(76, 209, 194, 0.4);
    color: var(--brand-dark-teal);
}

.team-social-icon svg {
    transition: transform 0.3s ease;
}

.team-social-icon:hover svg {
    transform: scale(1.15);
}

/* Section heading animation */
.team-section-title {
    position: relative;
    display: inline-block;
}

.team-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--brand-mint);
    border-radius: 2px;
}

/* Fade-in animation for cards */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .team-photo-wrapper {
        width: 150px;
        height: 150px;
    }
    
    .team-name {
        font-size: 1.3rem;
    }
    
    .team-bio {
        font-size: 0.95rem;
    }
}