/* Banner Section */
.banner-section {
    position: relative;
    height: 280px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    z-index: 2;
}

.banner-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.banner-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.banner-subtitle {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content Section */
.main-content {
    padding: 60px 20px;
    background-color: var(--white);
    min-height: 100vh;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Info */
.document-header {
    background: var(--secondary-color);
    color: var(--white);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.document-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.document-date {
    font-size: 16px;
    opacity: 0.9;
}

/* Section Styles */
.section {
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }
.section:nth-child(5) { animation-delay: 0.5s; }
.section:nth-child(6) { animation-delay: 0.6s; }
.section:nth-child(7) { animation-delay: 0.7s; }
.section:nth-child(8) { animation-delay: 0.8s; }
.section:nth-child(9) { animation-delay: 0.9s; }
.section:nth-child(10) { animation-delay: 1.0s; }
.section:nth-child(11) { animation-delay: 1.1s; }
.section:nth-child(12) { animation-delay: 1.2s; }
.section:nth-child(13) { animation-delay: 1.3s; }
.section:nth-child(14) { animation-delay: 1.4s; }

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

.section-header {
    background: var(--white);
    padding: 20px 25px;
    border-radius: 12px 12px 0 0;
    border: 1px solid var(--border-color);
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--secondary-color);
    font-size: 18px;
}

.section-count {
    background: var(--secondary-color);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Table Styles */
.table-container {
    background: var(--white);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-top: none;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--bg-light);
    color: var(--text-dark);
}

.data-table th {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
}

.data-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.data-table tbody tr:hover {
    background-color: var(--hover-bg);
    transform: translateX(5px);
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.data-table td {
    padding: 15px;
    font-size: 14px;
    vertical-align: middle;
    text-align: center;
}

.federation-name {
    font-weight: 600;
    color: var(--text-dark);
    width: 300px;
    text-align: left;
    vertical-align: middle;
}

.federation-cell {
    background-color: var(--bg-light);
    font-weight: 600;
    color: var(--primary-color);
    text-align: left;
    vertical-align: middle;
    border-right: 2px solid var(--border-color);
}

.councillor-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.councillor-designation {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 3px;
}

.councillor-image {
    width: 50px;
    height: 50px;
    border-radius: 10%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    transition: all 0.3s ease;
}

.data-table tbody tr:hover .councillor-image {
    border-color: var(--secondary-color);
    transform: scale(1.1);
}

.vacancy-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Special Styles for Single Representatives */
.single-representative {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.single-representative .section-title {
    color: var(--primary-color);
}

/* Summary Section */
.summary-section {
    background: linear-gradient(135deg, var(--primary-color), #1a4a33);
    color: var(--white);
    padding: 30px;
    border-radius: 16px;
    margin-top: 40px;
    text-align: center;
}

.summary-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .banner-title {
        font-size: 32px;
    }

    .banner-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 18px;
    }

    .data-table {
        font-size: 13px;
    }

    .data-table th,
    .data-table td {
        padding: 10px;
    }

    .federation-name {
        width: auto;
    }

    .councillor-image {
        width: 40px;
        height: 40px;
    }

    .summary-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .banner-title {
        font-size: 24px;
    }

    .document-title {
        font-size: 22px;
    }

    .section-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .federation-name {
        font-size: 14px;
    }

    .councillor-name {
        font-size: 13px;
    }

    .councillor-designation {
        font-size: 12px;
    }
}