:root {
    --red-main: #9d1c1f;
    --red-dark: #7a1416;
    --red-light: #c83b3f;
    --bg-color: #f9f9f9;
    --text-main: #333;
    --text-light: #666;
    --card-bg: #ffffff;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(157, 28, 31, 0.1);
    --shadow-hover: 0 15px 30px rgba(157, 28, 31, 0.2);
    --border-radius: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Encode Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

/* Background Decoration */
.background-decor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bg-pattern {
    position: absolute;
}

.bg-pattern.top-right {
    top: -50px;
    right: -50px;
    transform: rotate(10deg);
}

.bg-pattern.bottom-left {
    bottom: -100px;
    left: -100px;
}

/* Typography & Titles */
.page-title {
    text-align: center;
    padding: 60px 20px 40px;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.title-decor {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.page-title h1 {
    color: var(--red-main);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-title p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
}

/* Layout */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 60px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid rgba(157, 28, 31, 0.1);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--red-light);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--red-main);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: center;
}

.card:hover::before {
    transform: scaleX(1);
}

.avatar {
    width: 150px;
    height: 150px;
    margin-bottom: 15px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 3px solid var(--red-light);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .avatar img {
    transform: scale(1.05);
}

.name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--red-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.role {
    font-size: 0.95rem;
    color: #444;
    font-weight: 500;
    line-height: 1.4;
    min-height: 42px;
    /* For alignment */
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* Specific Styles for General Secretary */
.general-secretary .card {
    max-width: 600px;
    margin: 0 auto;
    background: #fffafa;
    /* Very light red tint */
    border: 1px solid rgba(157, 28, 31, 0.2);
    padding: 40px;
}

.general-secretary .avatar {
    width: 220px;
    height: 220px;
    border-width: 4px;
    border-color: var(--red-main);
}

.general-secretary .name {
    font-size: 1.8rem;
    margin-top: 10px;
    margin-bottom: 5px;
}

.role-highlight {
    font-size: 1.2rem;
    color: var(--red-main);
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.general-secretary .role {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Special Box */
.box {
    background: #fff;
    border-radius: 12px;
    border: 2px solid var(--red-main);
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

.box-header {
    max-width: 800px;
    margin: 0 auto 40px;
}

.box h2 {
    color: var(--red-main);
    font-size: 1.6rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.note {
    font-size: 1rem;
    color: #555;
    font-style: italic;
    line-height: 1.6;
}

/* Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Footer Decor */
.footer-decor {
    margin-top: 40px;
    line-height: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-title h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .page-title h1 {
        font-size: 1.5rem;
    }

    .section {
        padding: 20px 15px 40px;
    }

    .general-secretary .card {
        padding: 30px 20px;
    }

    .role {
        min-height: auto;
    }
}