/* modules/historical_figures/assets/css/heroes.css */

/* --- 1. VARIABLES & TYPOGRAPHY --- */
:root {
    --hero-bg: #f4f1ea;
    --hero-paper: #ffffff;
    --hero-primary: #8a1c1c;
    --hero-secondary: #2d2d2d;
    --hero-gold: #c5a059;
    --hero-border: #e6e2d3;
    --timeline-line: #d4c5a9;
    --shadow-soft: 0 10px 30px rgba(45, 45, 45, 0.08);
}

h1, h2, h3, h4, h5, .font-serif, .display-3 {
    font-family: 'Playfair Display', serif;
    color: var(--hero-secondary);
}

body {
    background-color: var(--hero-bg);
    color: var(--hero-secondary);
    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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}

/* --- 2. LAYOUT FIXES --- */
html, body { height: 100%; }
body { display: flex; flex-direction: column; }
.main-wrapper { flex: 1 0 auto; }

/* --- 3. BRANDING & HEADER --- */
.program-branding-wrapper {
    padding: 70px 0 50px;
    background: transparent;
    text-align: center;
}

.program-main-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #1a202c;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-transform: uppercase;
    background: linear-gradient(45deg, #1a202c, #4a5568);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 2px 4px rgba(0,0,0,0.1);
}

.program-title-divider {
    width: 100px;
    height: 4px;
    background-color: var(--hero-primary);
    margin: 0 auto 20px auto;
    position: relative;
}
.program-title-divider::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--hero-gold);
}

.program-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 4px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    
    /* ★★★ FIX: Centering ★★★ */
    display: block; 
    width: 100%;
    text-align: center !important;
    margin: 0 auto;
}

/* --- 4. FILTERS --- */
.nav-pills .nav-link {
    background-color: transparent;
    border: 1px solid var(--hero-border) !important;
    color: var(--hero-secondary) !important;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}
.nav-pills .nav-link:hover {
    background-color: #eaddcf;
    border-color: #d4c5a9 !important;
}
.nav-pills .nav-link.active {
    background-color: var(--hero-primary) !important;
    border-color: var(--hero-primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(138, 28, 28, 0.3);
}

/* --- 5. CARDS --- */
.figure-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 4px;
    overflow: hidden;
    background: var(--hero-paper);
    height: 100%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    position: relative;
}
.figure-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--hero-gold);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
    z-index: 2;
}
.figure-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft) !important;
    border-color: var(--hero-gold);
}
.figure-card:hover::before { transform: scaleX(1); }

.figure-card .card-body {
    padding: 1.5rem;
    background-image: linear-gradient(to bottom, #ffffff, #faf9f6);
}
.figure-card .card-title a {
    color: var(--hero-secondary);
    font-weight: 700;
    font-size: 1.25rem;
    transition: color 0.3s;
}
.figure-card:hover .card-title a { color: var(--hero-primary); }
.figure-overlay {
    background: rgba(26, 32, 44, 0.6);
    backdrop-filter: blur(2px);
}

/* --- 6. WIDGETS --- */
.on-this-day-card {
    background: #1a202c;
    color: #fff;
    border: none;
    border-radius: 8px;
}
.on-this-day-card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.featured-badge {
    background: linear-gradient(135deg, #c5a059 0%, #e6c88b 100%);
    color: #1a202c;
    font-weight: bold;
    border: 1px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* --- 7. DETAIL HERO --- */
.figure-hero {
    min-height: 550px;
    background: #0f1115;
    color: #fff !important;
    border-bottom: 4px solid var(--hero-gold);
}
.figure-bg-blur {
    filter: blur(15px) grayscale(40%) brightness(0.3);
}

.figure-portrait img {
    width: 180px;  
    height: 180px; 
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--hero-gold);
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.2);
}

.hero-date-container {
    display: flex;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.article-content {
    background: #fff;
    padding: 40px !important;
    border-radius: 2px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #e6e2d3;
    font-family: 'Noto Sans Georgian', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.timeline { border-left: 2px solid var(--hero-gold); }
.timeline-marker {
    background: #fff;
    border: 3px solid var(--hero-primary);
    width: 16px;
    height: 16px;
    left: -38px;
}
.timeline-content {
    background: #fff;
    border: 1px solid #e6e2d3;
    border-left: 4px solid var(--hero-primary);
    border-radius: 4px;
}
.timeline-content:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08) !important;
    transform: translateX(5px);
}

.quote-card {
    border: 1px solid #e6e2d3;
    border-left: 4px solid var(--hero-gold) !important;
    background: #faf9f6;
    font-family: 'Playfair Display', serif;
}
.quote-card i.fa-quote-left { color: var(--hero-gold); opacity: 0.4; }

.sidebar-widget {
    background: #fff;
    border: 1px solid #e6e2d3;
    border-radius: 4px;
}
.sidebar-widget .card-header {
    background: #faf9f6;
    border-bottom: 1px solid #e6e2d3;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--hero-primary);
}

@media (max-width: 768px) {
    .program-main-title { font-size: 2.2rem; }
    .figure-hero h1 { font-size: 2.5rem; }
    .figure-portrait img { width: 150px; height: 150px; }
}