
/* =========================================================
   BOARD OF COUNCILS - COMPLETE STYLESHEET
   Assam Veterinary and Fisheries University
========================================================= */


/* =========================================================
   1. BASIC PAGE STYLES
========================================================= */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f7f8fb;
    color: #333;
    line-height: 1.8;
    margin: 0;
}


/* =========================================================
   2. PAGE HEADER
========================================================= */

.intro-header {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.intro-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.02);
}

.intro-header .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(10, 33, 75, 0.92),
        rgba(10, 33, 75, 0.55),
        rgba(10, 33, 75, 0.15)
    );
}

.intro-header h1 {
    position: absolute;
    left: 70px;
    bottom: 120px;
    z-index: 5;

    max-width: 700px;
    color: #fff;

    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-transform: uppercase;

    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   3. MAIN CONTENT AREA
========================================================= */

.intro-content {
    background: #fff;
    padding: 70px 0;
}

.boc-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 25px;
}

.intro-content .intro-card {
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
}


/* =========================================================
   4. GOVERNANCE TABS - MODERN PILL DESIGN
   Inspired by Option 1
========================================================= */

/* Main navigation container */

.intro-card .modern-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between;
    align-items: center;

    width: 100%;
    gap: 8px;

    padding: 8px;
    margin: 0 0 40px;

    background: #f4f7fb;
    border: 1px solid #e5ebf3 !important;
    border-radius: 8px;

    box-shadow: 0 3px 12px rgba(24, 59, 99, 0.04);
}


/* Individual tab containers */

.intro-card .modern-tabs .nav-item {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}


/* Individual navigation buttons */

.intro-card .modern-tabs .nav-link {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 44px;

    padding: 11px 10px;

    background: #edf2f8 !important;
    color: #294c72 !important;

    border: 1px solid transparent !important;
    border-radius: 50px !important;

    font-size: 13px;
    font-weight: 470;

    text-align: center;
    text-transform: none;
    letter-spacing: 0;

    white-space: nowrap;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}


/* Remove previous underline effects */

.intro-card .modern-tabs .nav-link::before,
.intro-card .modern-tabs .nav-link::after {
    display: none !important;
    content: none !important;
}


/* Hover effect */

.intro-card .modern-tabs .nav-link:hover {
    background: #e2ebf6 !important;
    color: #183b63 !important;

    border-color: #d6e1ef !important;

    transform: translateY(-1px);

    box-shadow: 0 3px 8px rgba(24, 59, 99, 0.07);
}


/* Active tab - dark navy pill */

.intro-card .modern-tabs .nav-link.active,
.intro-card .modern-tabs .nav-item.show .nav-link {

    background: linear-gradient(
        135deg,
        #174f87,
        #075ba5
    ) !important;

    color: #ffffff !important;

    border: 1px solid #174f87 !important;
    border-radius: 50px !important;

    font-weight: 600;

    box-shadow:
        0 4px 10px rgba(18, 76, 133, 0.22);

    transform: none;
}


/* Keep active tab unchanged during hover */

.intro-card .modern-tabs .nav-link.active:hover,
.intro-card .modern-tabs .nav-item.show .nav-link:hover {

    background: linear-gradient(
        135deg,
        #174f87,
        #075ba5
    ) !important;

    color: #ffffff !important;

    border-color: #174f87 !important;

    box-shadow:
        0 4px 10px rgba(18, 76, 133, 0.22);

    transform: none;
}


/* Remove Bootstrap focus effects */

.intro-card .modern-tabs .nav-link:focus {
    outline: none !important;
    box-shadow: 0 3px 8px rgba(24, 59, 99, 0.08);
}

/* Preserve active appearance on focus */

.intro-card .modern-tabs .nav-link.active:focus {
    box-shadow: 0 4px 10px rgba(18, 76, 133, 0.22);
}


/* =========================================================
   5. TAB CONTENT
========================================================= */

.intro-card .tab-content {
    width: 100%;
    animation: fadeUp 0.4s ease;
}

.intro-card .tab-pane {
    width: 100%;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

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


/* =========================================================
   6. COUNCIL HEADING AND DECORATIVE LINE
========================================================= */

.council-title-wrap {
    display: table;
    width: auto;
    max-width: 100%;
}

.council-heading {
    display: block;
    width: auto;

    color: #183b63;

    font-size: 28px;
    font-weight: 500;

    text-transform: uppercase;

    margin: 0 0 12px;
    line-height: 1.4;
}

.council-line {
    display: block;

    width: 100%;
    height: 3px;

    background: linear-gradient(
        90deg,
        #d6d6d6,
        #c65d16
    );

    margin-bottom: 30px;
}


/* =========================================================
   7. COUNCIL DESCRIPTION
========================================================= */

.intro-card .tab-pane p {
    color: #444;

    font-size: 15px;
    font-weight: 478;

    line-height: 1.7;
    text-align: justify;

    margin-bottom: 20px;
}


/* =========================================================
   8. COUNCIL TABLE WRAPPER
========================================================= */

.council-table-wrapper {
    width: 100%;

    overflow-x: auto;

    margin: 25px 0 30px;

    border: 1px solid #e1e5eb;
    border-radius: 8px;

    background: #fff;
}


/* =========================================================
   9. COUNCIL TABLE
========================================================= */

.council-table {
    width: 100%;
    min-width: 650px;

    border-collapse: collapse;
    margin: 0;

    background: #fff;
}

/* Table header */

.council-table thead {
    background: #183b63;
    color: #fff;
}

.council-table thead th {
    padding: 16px 18px;

    text-align: left;

    font-size: 16px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.3px;

    vertical-align: middle;

    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

/* Table body */

.council-table tbody td {
    padding: 14px 18px;

    color: #333;

    font-size: 15px;
    font-weight: 500;

    line-height: 1.6;
    vertical-align: middle;

    border-bottom: 1px solid #e7eaf0;
    border-right: 1px solid #dfe3e8;
}

/* Alternating row backgrounds */

.council-table tbody tr:nth-child(even) {
    background: #f7f8fa;
}

.council-table tbody tr:nth-child(odd) {
    background: #fff;
}

/* Hover effect */

.council-table tbody tr:hover {
    background: #fff9e9;
}

/* Remove bottom border from last row */

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

/* Remove right border from final column */

.council-table th:last-child,
.council-table td:last-child {
    border-right: none;
}

/* Serial number column */

.council-table th:first-child,
.council-table td:first-child {
    width: 75px;
    text-align: center;
}

/* Membership column */

.council-table th:nth-child(2),
.council-table td:nth-child(2) {
    width: auto;
}

/* Position column */

.council-table th:last-child,
.council-table td:last-child {
    width: 190px;
}


/* =========================================================
   10. POSITION BADGES
========================================================= */

.position-badge {
    display: inline-block;

    padding: 5px 12px;

    border-radius: 4px;

    font-size: 12px;
    font-weight: 700;

    text-align: center;
    white-space: nowrap;
}

/* Chairman */

.position-badge.chairman {
    background: #e8eef5;
    color: #183b63;
}

/* Member Secretary */

.position-badge.secretary {
    background: #fff0d5;
    color: #a65a12;
}


/* =========================================================
   11. COUNCIL NOTES
========================================================= */

.council-note {
    margin: 25px 0;
    padding: 16px 20px;

    background: #F5F5DC;

    border-left: 4px solid #c65d16;
    border-radius: 4px;

    color: #444;

    font-size: 14px;
    line-height: 1.8;
    font-weight: 450;
}

.council-note strong {
    color: #183b63;
    font-weight: 700;
}


/* =========================================================
   12. GENERAL TEXT AND LISTS
========================================================= */

.intro-card .tab-pane strong {
    font-weight: 600;
}

.intro-card .tab-pane ul,
.intro-card .tab-pane ol {
    padding-left: 25px;
    margin: 20px 0;
}

.intro-card .tab-pane li {
    margin-bottom: 12px;

    color: #333;
    line-height: 1.8;
}

.intro-card .tab-pane li::marker {
    color: #183b63;
}


/* =========================================================
   13. RESPONSIVE - TABLETS
========================================================= */

@media (max-width: 1100px) {

    .intro-header h1 {
        font-size: 3rem;
    }

    .boc-container {
        padding: 0 20px;
    }

    /* Allow horizontal scrolling when tabs need more room */

    .intro-card .modern-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .intro-card .modern-tabs .nav-item {
        flex: 0 0 auto;
    }

    .intro-card .modern-tabs .nav-link {
        padding: 11px 16px;
        font-size: 13px;
    }
}


/* =========================================================
   14. RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 767px) {

    .intro-header {
        height: 240px;
    }

    .intro-header h1 {
        left: 25px;
        bottom: 65px;

        font-size: 2.2rem;
        max-width: 90%;
    }

    .intro-content {
        padding: 45px 0;
    }

    .boc-container {
        padding: 0 15px;
    }

    /* Scrollable pill navigation */

    .intro-card .modern-tabs {
        justify-content: flex-start;
        flex-wrap: nowrap !important;

        gap: 8px;

        overflow-x: auto;
        overflow-y: hidden;

        padding: 8px;
        margin-bottom: 30px;

        border-radius: 14px;
    }

    .intro-card .modern-tabs .nav-item {
        flex: 0 0 auto;
    }

    .intro-card .modern-tabs .nav-link {
        min-height: 40px;

        padding: 10px 16px;

        font-size: 12px;
        white-space: nowrap;
    }

    .intro-card .modern-tabs::-webkit-scrollbar {
        height: 5px;
    }

    .intro-card .modern-tabs::-webkit-scrollbar-thumb {
        background: #cbd2dc;
        border-radius: 5px;
    }

    .council-heading {
        font-size: 14px;
    }

    .council-line {
        width: 100%;
        margin-bottom: 25px;
    }

    .intro-card .tab-pane p {
        font-size: 13px;
    }

    .council-table thead th {
        padding: 12px;
        font-size: 13px;
    }

    .council-table tbody td {
        padding: 12px;
        font-size: 14px;
    }

    .council-note {
        padding: 13px 15px;
        font-size: 13px;
    }
}


/* =========================================================
   15. RESPONSIVE - SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .intro-header {
        height: 200px;
    }

    .intro-header h1 {
        left: 18px;
        bottom: 50px;

        font-size: 1.7rem;
    }

    .council-heading {
        font-size: 13px;
    }

    .intro-card .tab-pane p {
        font-size: 12px;
    }
}
