/* COLLEGE COUNCIL PAGE STYLES */
.council-section {
    padding: 20px 0 60px;
    min-height: 80vh;
    background-color: var(--white);
    background-image: linear-gradient(to bottom, var(--white), var(--cream-warm));
}

/* Header Section Styling */
.council-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.council-section .section-header h2 {
    color: var(--secondary-maroon);
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.council-section .section-lead {
    color: var(--primary-teal);
    font-size: 1.1rem;
    font-weight: 500;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Table Layout & Container */
.council-table-wrapper {
    max-width: 1000px;
    margin: 0 auto 4rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    background: var(--white);
    border: 0;
}

.council-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 600px;
}

/* Table Header (thead) */
.council-table thead th {
    background: linear-gradient(135deg, var(--secondary-maroon) 0%, var(--secondary-maroon-dark) 100%);
    color: var(--white);
    text-align: left;
    padding: 1.5rem 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 4px solid var(--accent-gold);
}

/* Table Body General */
.council-table td {
    padding: 1.25rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    vertical-align: middle;
    transition: all 0.3s ease;
}

/* Ensure borders move with animations and hide them before reveal */
.council-table tr.reveal {
    will-change: transform, opacity;
}

.council-table tr.reveal td {
    transition: opacity 0.8s ease, transform 0.8s ease, border-color 0.8s ease;
}

.council-table tr.reveal:not(.active) td {
    border-bottom-color: transparent;
    border-right-color: transparent;
}

/* Column 1: Designation
   Targets the second-to-last cell across the table rows */
.council-table td:nth-last-child(2) {
    width: 40%;
    color: var(--secondary-maroon);
    font-weight: 700;
    background-color: #fcfcfc;
    border-right: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    font-family: var(--font-primary);
}

/* Column 2: Name
   Targets the last cell in all table rows */
.council-table td:last-child {
    font-weight: 500;
    color: var(--dark-gray);
    font-size: 1.05rem;
}

/* Section Header Rows */
.council-table tr.section-row td {
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    padding: 1.25rem;
    border: none;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Hover Effects */

/* Highlight Rows (applied via JS .row-hover-active class) */
.council-table tbody tr:not(.section-row).row-hover-active td {
    background-color: var(--primary-teal-ultra-light);
}

/* Highlight Designation Cell (applied via JS .hover-active class) */
.council-table td.hover-active {
    background-color: var(--primary-teal-ultra-light) !important;
    color: var(--primary-teal-dark);
    padding-left: 2.5rem;
    /* Slide effect */
}

/* Gold Bar Indicator on Designation */
.council-table td.hover-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background-color: var(--accent-gold);
}

/* Name Slide Effect */
.council-table tbody tr:not(.section-row).row-hover-active td:last-child {
    color: var(--black);
    transform: translateX(5px);
}

/* Disclaimer / Important Note Section */
.council-disclaimer {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2.5rem;
    background: linear-gradient(to right, var(--cream-warm), white);
    border-left: 6px solid var(--secondary-maroon);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 0.3s ease;
}

.council-disclaimer:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.council-disclaimer h4 {
    color: var(--secondary-maroon);
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.3rem;
    text-transform: uppercase;
}

.council-disclaimer p {
    color: var(--gray);
    line-height: 1.7;
    font-size: 1rem;
}

.council-disclaimer a {
    color: var(--primary-teal);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px dotted var(--primary-teal);
}

.council-disclaimer a:hover {
    color: var(--secondary-maroon);
    border-bottom-style: solid;
}

/* RESPONSIVE LAYOUT (Mobile & Tablet) */
@media (max-width: 768px) {
    .council-table thead {
        display: none;
    }

    .council-table {
        min-width: auto;
    }

    .council-table-wrapper {
        box-shadow: none;
        background: transparent;
        overflow: visible;
    }

    .council-table tr {
        display: block;
        margin-bottom: 1.5rem;
        background: var(--white);
        box-shadow: var(--shadow-sm);
        border-radius: 12px;
        overflow: hidden;
    }

    .council-table td {
        display: block;
        width: 100% !important;
        text-align: left;
        padding: 1rem 1.5rem;
        border-right: none;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .council-table td:nth-last-child(2) {
        background-color: var(--cream-warm);
        color: var(--secondary-maroon);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        padding-left: 1.5rem !important;
        /* Reset slide */
    }

    .council-table td:last-child {
        font-size: 1.2rem;
        font-weight: 700;
    }

    .council-table tr.section-row {
        background: transparent;
        box-shadow: none;
        margin-bottom: 0.5rem;
    }

    .council-table tr.section-row td {
        border-radius: 8px;
        font-size: 1rem;
        line-height: 1.5;
        padding: 1.25rem 1rem;
        letter-spacing: 1px;
    }

    .council-table td.hover-active::before {
        display: none;
    }

    .council-table tbody tr.row-hover-active td:last-child {
        transform: none;
    }
}

/* Footer Wave SVG Background Match */
#footer .custom-shape-divider-top .shape-fill {
    fill: var(--cream-warm);
}
