/* Branch Style 2 - Sidebar Layout */
/* Based on branch-1.css with sidebar modifications */

/* Import all base styles from branch-1.css */
/* Tab Content Container */
.faculty-tab-content {
    width: 100%;
}

.faculty-tab-panel {
    display: none;
}

.faculty-tab-panel.active {
    display: block !important;
    visibility: visible !important;
}

/* Faculty Page Main Container */
.faculty-page-main {
    width: 100%;
    min-height: 100vh;
}

/* Faculty Banner Section - No tabs container in banner */
.faculty-banner-section {
    position: relative;
    width: 100%;
    height: 285px;
    min-height: 285px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: visible;
    margin-bottom: 0;
}

.faculty-banner-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    height: 100%;
}

.banner-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.faculty-banner-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
}

.faculty-banner-content {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
}

.banner-text-content {
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.banner-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    font-family: var(--font-english);
    margin: 0;
}

.banner-subtitle {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.6;
    color: #ffffff;
    opacity: 0.95;
    margin: 0;
}

.banner-image-right {
    width: 500px;
    height: auto;
    flex-shrink: 0;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.banner-right-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Sidebar and Content Wrapper */
.branch-style-2-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    max-width: 1400px;
    margin: 40px auto 0;
    padding: 0 20px;
    width: 100%;
    position: relative;
    min-height: calc(100vh - 400px);
}

/* Left Sidebar Navigation */
.branch-sidebar-nav {
    flex: 0 0 280px;
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 20px !important;
    align-self: flex-start;
    z-index: 10;
    height: fit-content;
    max-height: calc(100vh - 40px);
    will-change: position;
}

/* Ensure parent containers don't break sticky */
.faculty-page-main .branch-style-2-wrapper .branch-sidebar-nav {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 20px !important;
}

.branch-sidebar-nav-container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    overflow: hidden;
}

/* Vertical Navigation Tabs */
.branch-sidebar-nav .banner-tabs-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: visible;
    overflow-y: visible;
}

.branch-sidebar-nav .banner-tab {
    background: transparent;
    border: none;
    color: #000000;
    font-size: 16px;
    font-weight: 500;
    padding: 16px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: normal;
    font-family: var(--font-english);
    position: relative;
    width: 100%;
    text-align: left;
    border-left: 4px solid transparent;
}

.branch-sidebar-nav .banner-tab:hover {
    background-color: rgba(176, 0, 32, 0.05);
    color: #000000;
}

.branch-sidebar-nav .banner-tab.active {
    background-color: rgba(176, 0, 32, 0.08);
    color: #b00020;
    font-weight: 700;
    border-left-color: #b00020;
}

.branch-sidebar-nav .banner-tab.active::after {
    display: none;
}

/* Mobile Dropdown Select */
.branch-sidebar-nav .banner-tabs-dropdown {
    display: none;
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #1B2F56;
    background-color: #ffffff;
    color: #1B2F56;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-english);
    border-radius: 16px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%231B2F56' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 14px;
    padding-right: 50px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(27, 47, 86, 0.08);
    margin: 0 20px;
}

.branch-sidebar-nav .banner-tabs-dropdown:hover {
    background-color: #eef2ff;
    border-color: #2c4a7a;
    box-shadow: 0 4px 12px rgba(27, 47, 86, 0.15);
    transform: translateY(-1px);
}

.branch-sidebar-nav .banner-tabs-dropdown:focus {
    border-color: #1B2F56;
    box-shadow: 0 0 0 4px rgba(27, 47, 86, 0.12), 0 4px 16px rgba(27, 47, 86, 0.2);
    background-color: #ffffff;
    transform: translateY(-1px);
}

.branch-sidebar-nav .banner-tabs-dropdown option {
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
}

/* Right Content Area */
.branch-content-area {
    flex: 1;
    min-width: 0;
    width: 100%;
}

/* Faculty Container */
.faculty-container {
    max-width: 100%;
    margin: 0 auto;
    border-radius: 12px;
    background-color: #fff;
    overflow: visible;
    padding: 30px 0px;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Import all other styles from branch-1.css - these remain the same */
/* Branch History Tab Styles */
.branch-history-overview {
    padding: 40px 0;
}

.history-text {
    font-size: 18px;
    line-height: 1.8;
    color: #374151;
    text-align: left;
    margin: 0;
}

/* Branch Specializations Section */
.branch-specializations-section {
    margin-bottom: 60px;
    padding: 20px 0 40px 0;
}

/* Branch Sections Section */
.branch-sections-section {
    margin-bottom: 30px;
    padding: 20px 0 40px 0;
}

.branch-section-title {
    font-size: 32px;
    font-weight: 700;
    color: #182F61;
    margin-bottom: 30px;
    font-family: var(--font-english);
    text-align: left;
}

/* Branch Contact & Map Section */
.branch-contact-map-section {
    margin-bottom: 60px;
    padding: 40px 0;
}

.contact-map-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: stretch;
}

.branch-contact-box {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 4px 20px rgba(24, 47, 97, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(24, 47, 97, 0.08);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-box-title {
    font-size: 32px;
    font-weight: 700;
    color: #182F61;
    margin-bottom: 36px;
    font-family: var(--font-english);
    position: relative;
    padding-bottom: 16px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    flex: 1;
}

.contact-info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #182F61 0%, #2563eb 100%);
    border-radius: 12px;
    padding: 12px;
}

.contact-info-icon img {
    filter: brightness(0) invert(1);
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.contact-info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-info-label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.contact-info-value {
    font-size: 17px;
    color: #1f2937;
    line-height: 1.6;
    font-weight: 500;
}

.contact-info-value a {
    color: #182F61;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 4px;
}

.branch-map-container {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #e5e7eb;
}

.branch-map-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Dean Section */
.dean-section {
    padding: 60px 0 40px 0;
    background-color: #f3f4f7;
}

.dean-card {
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.dean-section-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: flex-start;
    padding: 30px;
}

.dean-name-title {
    font-size: 32px;
    font-weight: 700;
    color: #1B2F56;
    margin: 0 0 8px 0;
    line-height: 1.2;
    font-family: var(--font-english);
}

.dean-title {
    font-size: 18px;
    font-weight: 500;
    color: #64748b;
    margin: 0 0 20px 0;
}

.director-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.director-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.director-contact-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.director-contact-value {
    font-size: 16px;
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Successive Deans Section */
.successive-deans-section {
    padding: 40px 20px 40px;
    overflow: visible;
    background-color: #ffffff;
}

.successive-deans-title {
    font-size: 36px;
    font-weight: 700;
    color: #1B2F56;
    margin: 0 0 24px;
    font-family: var(--font-english);
    text-align: left;
}

/* Unit Council Section */
.unit-council-section {
    padding: 30px 0 50px;
}

.unit-council-table-wrapper {
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    overflow-x: auto;
    overflow-y: hidden;
}

.unit-council-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.unit-council-table th {
    text-align: left;
    padding: 18px 24px;
    background: #1B2F56;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-english);
}

.unit-council-table td {
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 15px;
    color: var(--text-dark);
    font-family: var(--font-english);
}

.name-cell-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.department-card-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 14px;
}
.department-card-avatar img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.department-card-avatar .name-avatar {
    width: 100px;
    height: 100px;
    background-size: 60px 60px;
}

.admin-unit-card-avatar {
    margin-bottom: 20px;
}

.admin-unit-card-avatar .name-avatar {
    width: 100px;
    height: 100px;
    background-size: 60px 60px;
}

/* Academic Departments Section */
.academic-departments-section {
    padding: 30px 0 50px;
}

.department-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.department-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.department-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1B2F56;
    margin: 0 0 24px 0;
    line-height: 1.4;
    text-align: center;
    background-color: #f8f9fa;
    padding: 12px 16px;
    border-radius: 8px;
    width: 100%;
}

.department-card-name {
    font-size: 20px;
    font-weight: 700;
    color: #1B2F56;
    margin: 0 0 24px 0;
}

.department-card-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.contact-row,.contact-row a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-size: 15px;
    justify-content: center;
}

.contact-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Administrative Units Section */
.administrative-units-section {
    padding: 30px 0 50px;
}

.admin-units-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.admin-unit-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.admin-unit-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1B2F56;
    margin: 0 0 24px 0;
    line-height: 1.4;
    text-align: center;
    background-color: #f8f9fa;
    padding: 12px 16px;
    border-radius: 8px;
    width: 100%;
}

.admin-unit-card-name {
    font-size: 22px;
    font-weight: 700;
    color: #1B2F56;
    margin: 0 0 24px 0;
}

.admin-unit-card-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 100%;
}

/* News and Events Sections */
.news-section {
    width: 100%;
    padding: 0 !important;
    background-color: transparent !important;
    margin-top: 0 !important;
    overflow: visible;
}

.events-section {
    width: 100%;
    padding: 0;
    background-color: transparent;
    margin-top: 0;
    overflow: visible;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #182F61;
    font-family: var(--font-english);
    text-align: left;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .branch-style-2-wrapper {
        flex-direction: column;
        gap: 30px;
        padding: 0 20px;
    }

    .branch-sidebar-nav {
        flex: 0 0 auto;
        position: relative;
        top: 0;
        width: 100%;
    }

    .branch-sidebar-nav-container {
        width: 100%;
    }

    .branch-sidebar-nav .banner-tabs-nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 0 20px;
    }

    .branch-sidebar-nav .banner-tab {
        white-space: nowrap;
        border-left: none;
        border-bottom: 4px solid transparent;
        text-align: center;
    }

    .branch-sidebar-nav .banner-tab.active {
        border-left: none;
        border-bottom-color: #b00020;
    }

    .contact-map-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .branch-map-container {
        height: 400px;
    }

    .department-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .admin-units-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .faculty-banner-section {
        height: 200px;
        min-height: 200px;
    }

    .faculty-banner-container {
        padding: 24px 16px;
    }

    .faculty-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .banner-text-content {
        width: 100%;
        gap: 12px;
    }

    .faculty-banner-section .banner-image-right {
        display: none;
    }

    .banner-title {
        font-size: 28px;
        line-height: 1.3;
    }

    .banner-subtitle {
        font-size: 16px;
        line-height: 1.5;
    }

    .branch-style-2-wrapper {
        margin-top: 20px;
        padding: 0 16px;
        gap: 20px;
    }

    .branch-sidebar-nav .banner-tabs-nav {
        display: none;
    }

    .branch-sidebar-nav .banner-tabs-dropdown {
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 12px;
    }

    .branch-history-overview,
    .branch-specializations-section,
    .branch-contact-map-section {
        padding: 48px 0;
        margin-bottom: 40px;
    }

    .history-text {
        font-size: 16px;
    }

    .branch-section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .branch-contact-box {
        padding: 36px 24px;
    }

    .contact-box-title {
        font-size: 26px;
        margin-bottom: 28px;
    }

    .contact-info-list {
        gap: 16px;
    }

    .contact-info-item {
        padding: 16px;
    }

    .branch-map-container {
        height: 300px;
    }

    .department-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .admin-units-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .faculty-banner-section {
        height: 180px;
        min-height: 180px;
    }

    .banner-title {
        font-size: 18px;
        line-height: 1.2;
    }

    .banner-subtitle {
        font-size: 14px;
        line-height: 1.5;
    }

    .branch-sidebar-nav {
        width: 100%;
    }

    .branch-contact-box {
        padding: 28px 20px;
    }

    .contact-box-title {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .contact-info-item {
        gap: 16px;
        padding: 16px;
    }

    .contact-info-icon {
        width: 40px;
        height: 40px;
        padding: 10px;
    }

    .contact-info-value {
        font-size: 14px;
    }
    .breadcrumb-container,
    .faculty-container {
        padding: 0 16px;
        width: 100%;
    }
}

.faculty-page-main .announcements-section {
    background-color: transparent !important;
}

/* Administrative Units Nested Tabs Styles */
.admin-units-tabs-wrapper {
    width: 100%;
}

.admin-units-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    border-bottom: none;
}

.admin-units-tab {
background: none;
    border: none;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: normal;
    color: #49454f;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    margin-bottom: 0;
}
.admin-units-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #e5e7eb;
    border-radius: 25px;
    width: 100%;
}
.admin-units-tab:hover {
    background-color: rgba(27, 47, 86, 0.02);
    color: #1B2F56;
}

.admin-units-tab.active {
    color: #b00020;
    font-weight: bold;
}

.admin-units-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #b00020;
    border-radius: 25px;
    width: 100%;
}

.admin-units-tab-panel {
    display: none;
}

.admin-units-tab-panel.active {
    display: block;
}

.admin-unit-no-data {
    color: #6b7280;
    font-size: 16px;
    text-align: center;
    padding: 20px;
    margin: 0;
    font-style: italic;
}
.news-container {
    padding-bottom: 40px !important;
}
.faculty-page-main .announcements-section {
    padding: 0 0 40px 0 !important;
}
.circulars-section {
    padding: 0 0 40px 0 !important;
}
.events-section{
    padding: 0 0 40px 0 !important;
}