/* Testimonials Header Styling overrides */
#testimonials-section {
    text-align: center !important;
    max-width: 800px !important;
    margin: 0 auto 48px !important;
}

#testimonials-section .section-main-title {
    font-family: 'Cairo', var(--font-display), sans-serif !important;
    font-size: 2.5rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em !important;
    color: #000000 !important;
    background: none !important;
    -webkit-text-fill-color: #000000 !important;
    margin-bottom: 16px !important;
    text-transform: none !important;
    line-height: normal !important;
}

/* Remove gold underline under testimonials section title */
#testimonials-section .section-main-title::after,
#testimonials-section .section-main-title span::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
}

#testimonials-section .section-sub-title {
    font-family: 'Cairo', var(--font-ui), sans-serif !important;
    font-size: 1.125rem !important;
    color: var(--ap-on-surface-variant) !important;
    font-weight: 300 !important;
    margin: 0 auto !important;
    text-align: center !important;
    display: block !important;
    line-height: normal !important;
}

@media (max-width: 768px) {
    #testimonials-section .section-main-title {
        font-size: 2rem !important;
    }
}

/* ─────────────────────────────────────────────
   Gamified 3D Podium Leaderboard Redesign
   ───────────────────────────────────────────── */
.fcp-podium-section {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 100px;
}

.fcp-podium-base-effect {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 33.333%;
    background: linear-gradient(to top, rgba(197, 160, 89, 0.08) 0%, transparent 100%);
    border-radius: 24px;
    filter: blur(24px);
    pointer-events: none;
    z-index: 1;
}

.fcp-podium-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
    z-index: 2;
    margin-top: 48px !important; /* Move cards down on mobile by 48px */
}

@media (min-width: 600px) {
    .fcp-podium-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 24px !important;
        align-items: end !important;
        margin-top: 112px !important; /* Move cards down on desktop by 48px (64px + 48px) */
    }
}

/* Podium Cards */
.fcp-podium-card {
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.5s ease, border-color 0.5s ease;
}

.fcp-podium-card.glass-panel {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.dark-theme .fcp-podium-card.glass-panel {
    background: rgba(25, 24, 22, 0.8);
}

body:not(.dark-theme) .fcp-podium-card.glass-panel {
    background: #ffffff;
}

/* Thin Borders */
.thin-border {
    border: 0.5px solid rgba(197, 160, 89, 0.3);
}

.thin-border-active {
    border: 0.5px solid rgba(197, 160, 89, 1.0);
}

/* Soft Shadows */
.soft-shadow {
    box-shadow: 0 20px 50px rgba(229, 224, 221, 0.3);
}

.dark-theme .soft-shadow {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Ordering and elevation */
.fcp-first-place {
    order: 1;
    z-index: 10;
}

.fcp-second-place {
    order: 2;
}

.fcp-third-place {
    order: 3;
}

@media (min-width: 600px) {
    .fcp-first-place {
        order: 2 !important;
        transform: scale(1.05) translateY(-64px) !important;
    }
    
    .fcp-second-place {
        order: 1 !important;
        transform: translateY(-32px) !important;
    }
    
    .fcp-third-place {
        order: 3 !important;
        transform: translateY(-16px) !important;
    }
    
    .fcp-first-place:hover {
        transform: scale(1.05) translateY(-80px) !important;
    }
    
    .fcp-second-place:hover {
        transform: translateY(-40px) !important;
    }
    
    .fcp-third-place:hover {
        transform: translateY(-24px) !important;
    }
}

/* Image Header */
.fcp-podium-img-header {
    height: 256px;
    position: relative;
    overflow: hidden;
    background: var(--surface-raised);
}

.first-place-header {
    height: 320px;
}

.fcp-podium-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27, 28, 28, 0.8) 0%, transparent 100%);
    z-index: 1;
}

.first-place-overlay {
    background: linear-gradient(to top, rgba(27, 28, 28, 0.9) 0%, transparent 100%);
}

.fcp-podium-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fcp-podium-card:hover .fcp-podium-img {
    transform: scale(1.05);
}

.fcp-podium-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold-subtle), rgba(197, 160, 89, 0.25));
}

.fcp-podium-img-placeholder .placeholder-initials {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
}

/* Rank Badge */
.fcp-podium-rank-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 20;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 0.5px solid rgba(197, 160, 89, 0.3);
}

.dark-theme .fcp-podium-rank-badge {
    background: rgba(25, 24, 22, 0.8);
}

.first-place-badge {
    width: 48px;
    height: 48px;
    background: #ffffff !important;
    border-color: rgba(197, 160, 89, 0.5) !important;
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.25) !important;
}

.fcp-podium-rank-badge .rank-number {
    font-family: var(--font-ui);
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
}

.first-place-badge .rank-number {
    font-size: 24px;
    font-weight: 700;
    color: #c5a059 !important;
}

/* Content Area */
.fcp-podium-content {
    padding: 24px;
    background: var(--surface-container-lowest);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    z-index: 20;
    direction: rtl;
    text-align: right;
}

.first-place-content {
    padding: 32px;
}

.fcp-podium-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.fcp-podium-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text);
    margin: 0;
}

.first-place-name {
    font-size: 1.7rem;
    font-weight: 700;
}

.fcp-podium-content .icon-premium {
    color: var(--gold);
    font-size: 24px;
}

.fcp-podium-content .icon-trophy {
    color: var(--gold);
    font-size: 32px;
}

.fcp-podium-quote {
    font-family: var(--font-ui);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
}

.first-place-quote {
    font-size: 1.05rem;
    margin-bottom: 32px;
}

/* Metrics Section */
.fcp-podium-metrics {
    border-top: 0.5px solid rgba(197, 160, 89, 0.2);
    padding-top: 16px;
    position: relative;
}

.first-place-metrics {
    border-top: 0.5px solid rgba(197, 160, 89, 0.4);
    padding-top: 24px;
}

.gold-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.15) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.first-place-glow {
    opacity: 0.5;
}

.fcp-podium-card:hover .gold-glow {
    opacity: 1;
}

.fcp-podium-xp-row {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    position: relative;
    z-index: 10;
}

.fcp-podium-xp-row .xp-label {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-left: 8px; /* RTL spacing */
}

.fcp-podium-xp-row .active-xp-lbl {
    color: var(--gold);
}

.fcp-podium-xp-row .xp-value {
    font-family: var(--font-ui);
    font-size: 32px;
    font-weight: 600;
    color: var(--gold);
    line-height: 1;
}

.fcp-podium-xp-row .first-place-xp {
    font-size: 40px;
    font-weight: 700;
}

/* Light Theme Overrides */
body:not(.dark-theme) .fcp-podium-section .glass-panel {
    background: #ffffff !important;
    border: 1px solid var(--border-subtle) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
}

body:not(.dark-theme) .fcp-podium-rank-badge {
    background: rgba(255, 255, 255, 0.9) !important;
}

body:not(.dark-theme) .fcp-podium-rank-badge.first-place-badge {
    background: var(--secondary-container) !important;
}
