/* Former Superior Generals Page Styles */

:root {
    --primary-blue: #1965c0;
    --accent-gold: #d4af37;
    --text-dark: #333;
    --text-muted: #666;
    --bg-light: #f8fbff;
}

.former-generals-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.timeline-container {
    position: relative;
    max-width: 1100px;
    margin: 20px auto;
    padding: 10px 0;
}

/* Vertical line */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--primary-blue), transparent);
    transform: translateX(-50%);
    opacity: 0.3;
}

.timeline-era-title {
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

.timeline-era-title h2 {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--primary-blue);
    color: #fff;
    padding: 10px 30px;
    border-radius: 50px;
    font-family: 'Quicksand', sans-serif;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(25, 101, 192, 0.2);
    line-height: 1.2;
}

.timeline-era-title h2 small {
    font-size: 13px;
    font-weight: 500;
    margin-top: 2px;
    opacity: 0.95;
}

/* Card Styles */
.general-card-wrapper {
    position: relative;
    width: 50%;
    padding: 0 30px;
    margin-bottom: 40px;
}

.general-card-wrapper.left {
    left: 0;
    text-align: right;
}

.general-card-wrapper.right {
    left: 50%;
    text-align: left;
}

/* Dot on the timeline */
.general-card-wrapper::after {
    content: '';
    position: absolute;
    top: 30px;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 4px solid var(--primary-blue);
    border-radius: 50%;
    z-index: 3;
}

.general-card-wrapper.left::after {
    right: -10px;
}

.general-card-wrapper.right::after {
    left: -10px;
}

.general-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.general-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-blue);
}

.general-img-outer {
    flex: 0 0 120px;
    width: 120px;
    height: 120px;
    margin-bottom: 0px;
    display: inline-block;
    padding: 5px;
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    background: #fff;
}

.general-img-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #e1e8f0; /* Default placeholder color */
}

.general-img-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.general-card-content {
    flex: 1;
    text-align: left;
}

.general-period {
    display: inline-block;
    padding: 4px 12px;
    background-color: #f1f7ff;
    border-radius: 20px;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.general-name {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.general-councillors {
    text-align: left;
    background: #fdfaf4;
    padding: 15px 20px;
    border-radius: 12px;
    display: inline-block;
    width: 100%;
}

.general-councillors h6 {
    font-size: 13px;
    color: var(--primary-blue);
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 700;
}

.general-councillors ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

.general-councillors li {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.general-councillors li::before {
    content: "•";
    color: var(--accent-gold);
}

/* Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Responsive */
@media (max-width: 991px) {
    .timeline-container::before {
        left: 30px;
    }
    
    .general-card-wrapper {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
        text-align: left;
    }
    
    .general-card {
        padding: 20px;
    }
    
    .general-card-wrapper.left, .general-card-wrapper.right {
        left: 0;
    }
    
    .general-card-wrapper::after {
        left: 20px !important;
        right: auto !important;
    }
}

@media (max-width: 576px) {
    .general-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    
    .general-card-content {
        text-align: center;
    }
    
    .general-img-outer {
        flex: 0 0 100px;
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }
    
    .general-name {
        font-size: 20px;
    }
}
