/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Main Header Styles */
.main-header {
    background-color: #2c3e50;
    color: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 80px;
}

/* Logo Section */
.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.school-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.school-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

/* Main Navigation - Desktop */
.main-nav {
    display: flex;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 0;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #3498db;
}

.nav-link.active {
    color: #3498db;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #3498db;
}

/* Mobile Menu Button - Hidden on Desktop */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    width: 30px;
    height: 30px;
    justify-content: space-between;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .header-container {
        height: 70px;
        padding: 0 15px;
    }

    .school-name {
        font-size: 1.2rem;
    }

    .school-logo {
        width: 40px;
        height: 40px;
    }

    /* Hide desktop navigation on mobile */
    .main-nav {
        display: none;
    }

    /* Show mobile menu button */
    .mobile-menu-btn {
        display: flex;
    }

    /* Mobile menu when active */
    .main-nav.mobile-active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #2c3e50;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .main-nav.mobile-active .nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }

    .main-nav.mobile-active .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav.mobile-active .nav-item:last-child {
        border-bottom: none;
    }

    .main-nav.mobile-active .nav-link {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
    }

    /* Hamburger animation when active */
    .mobile-menu-btn.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-btn.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .header-container {
        height: 60px;
    }

    .school-name {
        font-size: 1rem;
    }

    .school-logo {
        width: 35px;
        height: 35px;
    }
}

/* Accessibility Improvements */
.nav-link:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.mobile-menu-btn:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .nav-link,
    .hamburger-line {
        transition: none;
    }
}


/* Structure Page Header Section Base Styles */
.structure-header-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 800px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
}

/* Background Image with Overlay */
.header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7);
    transition: transform 0.8s ease;
}

.structure-header-section:hover .background-image {
    transform: scale(1.05);
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(44, 62, 80, 0.85) 0%,
        rgba(52, 152, 219, 0.7) 50%,
        rgba(41, 128, 185, 0.85) 100%
    );
    z-index: -1;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    position: absolute;
    top: 2rem;
    left: 0;
    width: 100%;
    z-index: 10;
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.75rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.breadcrumb-item::after {
    content: '›';
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    font-weight: 300;
}

.breadcrumb-item:last-child::after {
    content: none;
}

.breadcrumb-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #ffffff;
}

.breadcrumb-text {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Header Content */
.header-content {
    position: relative;
    z-index: 2;
    padding: 0 2rem;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* Title Section */
.title-section {
    margin-bottom: 2rem;
}

.page-main-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #e74c3c);
    margin: 0 auto;
    border-radius: 2px;
    opacity: 0;
    transform: scaleX(0);
    animation: scaleIn 0.6s ease 0.5s forwards;
}

/* Introduction Text */
.intro-section {
    margin-bottom: 3rem;
}

.page-intro-text {
    font-size: 1.3rem;
    line-height: 1.6;
    margin: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.nav-tab {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease 0.6s forwards;
}

.nav-tab:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.nav-tab.active {
    background: #3498db;
    border-color: #3498db;
    color: white;
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
    transform: translateY(-2px);
}

.tab-icon {
    font-size: 1.2rem;
}

/* Structure Stats */
.structure-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
}

.stat-item:nth-child(1) { animation: fadeInUp 0.6s ease 0.8s forwards; }
.stat-item:nth-child(2) { animation: fadeInUp 0.6s ease 0.9s forwards; }
.stat-item:nth-child(3) { animation: fadeInUp 0.6s ease 1.0s forwards; }
.stat-item:nth-child(4) { animation: fadeInUp 0.6s ease 1.1s forwards; }

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: #3498db;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease 1.2s forwards;
}

.primary-action {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.3);
}

.primary-action:hover {
    background: linear-gradient(135deg, #2980b9, #2471a3);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(52, 152, 219, 0.4);
}

.secondary-action {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.secondary-action:hover {
    background: white;
    color: #2c3e50;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

.btn-icon {
    font-size: 1.2rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
    animation: fadeIn 0.6s ease 1.4s forwards;
}

.scroll-text {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.scroll-arrow {
    animation: bounce 2s infinite;
}

.scroll-arrow svg {
    color: rgba(255, 255, 255, 0.7);
}

/* Decorative Elements */
.decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 40px;
    height: 40px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 30px;
    height: 30px;
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-main-title {
        font-size: 2.8rem;
    }
    
    .page-intro-text {
        font-size: 1.2rem;
    }
    
    .structure-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .structure-header-section {
        height: 90vh;
        min-height: 500px;
    }
    
    .page-main-title {
        font-size: 2.3rem;
    }
    
    .page-intro-text {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .nav-tabs {
        gap: 0.75rem;
    }
    
    .nav-tab {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .structure-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .breadcrumb-container {
        padding: 0 1rem;
    }
    
    .header-content {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .structure-header-section {
        height: 85vh;
        min-height: 450px;
    }
    
    .page-main-title {
        font-size: 2rem;
    }
    
    .page-intro-text {
        font-size: 1rem;
    }
    
    .nav-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-tab {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .structure-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .action-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .floating-shape {
        display: none;
    }
}

/* Accessibility */
.action-btn:focus,
.breadcrumb-link:focus,
.nav-tab:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .background-image,
    .page-main-title,
    .title-underline,
    .page-intro-text,
    .nav-tab,
    .stat-item,
    .action-btn,
    .scroll-indicator,
    .floating-shape {
        animation: none;
        transition: none;
    }
    
    .structure-header-section:hover .background-image {
        transform: none;
    }
    
    .nav-tab:hover,
    .action-btn:hover {
        transform: none;
    }
    
    .scroll-arrow {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .background-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .breadcrumb-link {
        color: #ffffff;
        text-decoration: underline;
    }
    
    .nav-tab {
        border: 2px solid #ffffff;
    }
    
    .action-btn {
        border: 2px solid #ffffff;
    }
}

/* Organizational Overview Section Styles */
.org-overview {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    margin: 0 auto;
    border-radius: 2px;
}

/* Content Layout */
.org-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.org-text {
    padding-right: 20px;
}

.intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
    text-align: justify;
}

/* Principles Grid */
.principles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.principle-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.principle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.principle-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.principle-card h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.principle-card p {
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Organizational Chart */
.org-chart-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.simplified-org-chart {
    text-align: center;
    margin-bottom: 30px;
}

.chart-level {
    margin: 20px 0;
}

.chart-node {
    display: inline-block;
    background: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    margin: 0 10px;
    min-width: 150px;
    transition: all 0.3s ease;
    border: 2px solid;
}

.chart-node:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.node-content h4 {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.node-content p {
    margin: 0;
    font-size: 0.8rem;
    color: #7f8c8d;
}

/* Node Types */
.top-level .chart-node {
    border-color: #e74c3c;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.top-level .chart-node h4,
.top-level .chart-node p {
    color: white;
}

.executive-level .chart-node {
    border-color: #3498db;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.executive-level .chart-node h4,
.executive-level .chart-node p {
    color: white;
}

.management-level .chart-node {
    border-color: #2ecc71;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.management-level .chart-node h4,
.management-level .chart-node p {
    color: white;
}

.department-level .chart-node {
    border-color: #9b59b6;
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
}

.department-level .chart-node h4,
.department-level .chart-node p {
    color: white;
}

/* Chart Connectors */
.chart-connector {
    margin: 10px 0;
}

.connector-line {
    width: 2px;
    height: 30px;
    background: #bdc3c7;
    margin: 0 auto;
}

.connector-arrow {
    color: #95a5a6;
    font-size: 1.2rem;
    margin-top: -5px;
}

/* Nodes Layout */
.chart-nodes-row {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.chart-nodes-grid {
    display: flex;
    justify-content: center;
}

/* Chart Legend */
.chart-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.legend-color.strategic {
    background: #e74c3c;
}

.legend-color.executive {
    background: #3498db;
}

.legend-color.operational {
    background: #2ecc71;
}

/* Responsive Design */
@media (max-width: 968px) {
    .org-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .org-text {
        padding-right: 0;
    }
    
    .principles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .org-overview {
        padding: 50px 0;
    }
    
    .chart-nodes-row {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .chart-legend {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .principle-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .org-chart-container {
        padding: 20px;
    }
    
    .chart-node {
        min-width: 120px;
        padding: 12px 18px;
    }
}


/* Leadership Hierarchy Section - Unique Class Names */
.leadership-structure-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-top: 1px solid #e9ecef;
}

.structure-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.structure-header-section {
    text-align: center;
    margin-bottom: 60px;
}

.structure-main-title {
    font-size: 2.5rem;
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.structure-title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    margin: 0 auto;
    border-radius: 2px;
}

.structure-subheading {
    font-size: 1.1rem;
    color: #6c757d;
    margin-top: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hierarchy Control Panel */
.hierarchy-control-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.control-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0;
}

.view-mode-selector {
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    background: white;
    color: #495057;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-mode-selector:focus {
    outline: none;
    border-color: #3498db;
}

.chart-control-button {
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 40px;
}

.chart-control-button:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Interactive Hierarchy Container */
.interactive-hierarchy-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: auto;
    min-height: 600px;
}

.organization-hierarchy-chart {
    min-width: 800px;
    position: relative;
    transition: all 0.3s ease;
}

/* Hierarchy Levels */
.hierarchy-level {
    margin: 30px 0;
    position: relative;
}

.level-description {
    text-align: center;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.level-nodes-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Organization Nodes */
.organization-node {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    min-width: 200px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
}

.organization-node:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.organization-node.node-active {
    border-color: #3498db;
    background: #f8f9fa;
}

.node-symbol {
    font-size: 2rem;
    flex-shrink: 0;
}

.node-details {
    flex-grow: 1;
}

.node-title {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.node-role {
    margin: 0 0 8px 0;
    font-size: 0.85rem;
    color: #6c757d;
}

.node-metrics {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.metric-tag {
    font-size: 0.75rem;
    color: #85929e;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 10px;
    display: inline-block;
}

.node-interaction-buttons {
    flex-shrink: 0;
}

.node-info-trigger {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.node-info-trigger:hover {
    background: #e9ecef;
}

/* Level-specific Styles */
.level-strategic .organization-node {
    border-color: #e74c3c;
    background: linear-gradient(135deg, #fff, #fadbd8);
}

.level-executive .organization-node {
    border-color: #3498db;
    background: linear-gradient(135deg, #fff, #d6eaf8);
}

.level-management .organization-node {
    border-color: #2ecc71;
    background: linear-gradient(135deg, #fff, #d5f4e6);
}

.level-department .organization-node {
    border-color: #9b59b6;
    background: linear-gradient(135deg, #fff, #e8daef);
}

.level-faculty .organization-node {
    border-color: #f39c12;
    background: linear-gradient(135deg, #fff, #fdebd0);
}

.level-support .organization-node {
    border-color: #34495e;
    background: linear-gradient(135deg, #fff, #d6dbdf);
}

/* Department Nodes Grid */
.department-nodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.department-nodes-grid .organization-node {
    min-width: auto;
    flex-direction: column;
    text-align: center;
    padding: 15px;
}

.department-nodes-grid .node-symbol {
    font-size: 1.5rem;
}

/* Hierarchy Connectors */
.hierarchy-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 0;
}

.connector-vertical-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, #bdc3c7, #ecf0f1);
    margin: 0 auto;
}

.connector-direction-arrow {
    color: #95a5a6;
    font-size: 1.5rem;
    margin-top: -8px;
}

/* Information Panel */
.hierarchy-info-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-top: 30px;
    border-left: 4px solid #3498db;
    display: none;
}

.hierarchy-info-panel.panel-active {
    display: block;
    animation: hierarchyPanelSlideIn 0.3s ease;
}

.info-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.info-panel-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.info-panel-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.info-panel-close:hover {
    background: #e9ecef;
    color: #e74c3c;
}

.info-panel-content {
    padding: 20px;
}

.info-panel-placeholder {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    margin: 0;
}

/* Hierarchy Statistics Grid */
.hierarchy-statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.statistic-card-item {
    background: white;
    padding: 25px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid #3498db;
}

.statistic-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.statistic-number-display {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.statistic-label-text {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

/* Custom Animations */
@keyframes hierarchyPanelSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .organization-hierarchy-chart {
        min-width: 600px;
    }
    
    .department-nodes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hierarchy-control-panel {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .control-section {
        justify-content: center;
    }
    
    .interactive-hierarchy-container {
        padding: 15px;
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
    }
    
    .organization-hierarchy-chart {
        min-width: 100%;
        transform: scale(0.9);
        transform-origin: top left;
    }
    
    .level-nodes-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .organization-node {
        min-width: 250px;
    }
    
    .department-nodes-grid {
        grid-template-columns: 1fr;
    }
    
    .hierarchy-statistics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .organization-node {
        min-width: 200px;
        flex-direction: column;
        text-align: center;
    }
    
    .node-metrics {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hierarchy-statistics-grid {
        grid-template-columns: 1fr;
    }
    
    .structure-main-title {
        font-size: 2rem;
    }
}

/* Footer Section Base Styles */
.site-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    padding: 3.75rem 0 0;
    position: relative;
    margin-top: auto;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.25rem;
    background: linear-gradient(90deg, #3498db, #e74c3c, #2ecc71);
}

.footer-container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Footer Content Grid */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
    gap: 2.5rem;
    margin-bottom: 3.75rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.section-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.625rem;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 3.125rem;
    height: 0.125rem;
    background: #e74c3c;
    border-radius: 0.0625rem;
}

/* Contact Information */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9375rem;
}

.contact-icon {
    color: #3498db;
    margin-top: 0.1875rem;
    flex-shrink: 0;
}

.contact-text {
    flex: 1;
}

.contact-label {
    font-size: 0.875rem;
    color: #bdc3c7;
    margin-bottom: 0.3125rem;
    font-weight: 600;
}

.contact-value {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

.contact-link {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #3498db;
}

/* Quick Links */
.footer-nav {
    margin-top: 0.625rem;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.3125rem 0;
    display: block;
    position: relative;
}

.nav-link:hover {
    color: #3498db;
    transform: translateX(0.3125rem);
}

.nav-link::before {
    content: '›';
    position: absolute;
    left: -0.9375rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover::before {
    opacity: 1;
}

/* Operating Hours */
.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.1);
}

.hours-day {
    font-size: 0.9rem;
    color: #bdc3c7;
}

.hours-time {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2ecc71;
}

.emergency-info {
    background: rgba(231, 76, 60, 0.1);
    border: 0.0625rem solid rgba(231, 76, 60, 0.3);
    border-radius: 0.5rem;
    padding: 0.9375rem;
    margin-top: 0.625rem;
}

.emergency-text {
    font-size: 0.85rem;
    color: #bdc3c7;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.emergency-link {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.emergency-link:hover {
    color: #c0392b;
}

/* Social Media */
.social-description {
    font-size: 0.9rem;
    color: #bdc3c7;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.social-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.875rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 0.0625rem solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-0.125rem);
}

.social-link.facebook:hover {
    color: #1877f2;
}

.social-link.twitter:hover {
    color: #1da1f2;
}

.social-link.instagram:hover {
    color: #e4405f;
}

.social-link.youtube:hover {
    color: #ff0000;
}

.social-name {
    font-weight: 500;
}

/* Newsletter Signup */
.newsletter-signup {
    background: rgba(255, 255, 255, 0.05);
    border: 0.0625rem solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-top: 0.625rem;
}

.newsletter-title {
    font-size: 1rem;
    font-weight: 600;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.newsletter-description {
    font-size: 0.85rem;
    color: #bdc3c7;
    margin-bottom: 0.9375rem;
    line-height: 1.4;
}

.newsletter-form {
    display: flex;
    gap: 0.625rem;
}

.email-input {
    flex: 1;
    padding: 0.75rem;
    border: 0.0625rem solid rgba(255, 255, 255, 0.2);
    border-radius: 0.375rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ecf0f1;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.email-input::placeholder {
    color: #95a5a6;
}

.email-input:focus {
    outline: none;
    border-color: #3498db;
    background: rgba(255, 255, 255, 0.15);
}

.subscribe-btn {
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.subscribe-btn:hover {
    background: linear-gradient(135deg, #2980b9, #2471a3);
    transform: translateY(-0.125rem);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 0.0625rem solid rgba(255, 255, 255, 0.1);
    padding: 1.875rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.copyright-text {
    font-size: 0.9rem;
    color: #bdc3c7;
    margin: 0;
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.legal-link {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: #3498db;
}

.link-separator {
    color: #7f8c8d;
    font-size: 0.85rem;
}

.accreditation-text {
    font-size: 0.85rem;
    color: #2ecc71;
    font-weight: 600;
    margin: 0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 1.875rem;
    right: 1.875rem;
    width: 3.125rem;
    height: 3.125rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    box-shadow: 0 0.25rem 0.9375rem rgba(52, 152, 219, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #2980b9, #2471a3);
    transform: translateY(-0.3125rem);
    box-shadow: 0 0.5rem 1.25rem rgba(52, 152, 219, 0.4);
}

.back-to-top:active {
    transform: translateY(-0.125rem);
}

/* Responsive Design */
@media (max-width: 64rem) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .legal-links {
        order: -1;
    }
}

@media (max-width: 48rem) {
    .site-footer {
        padding: 2.5rem 0 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.875rem;
    }
    
    .social-links {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .back-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 2.75rem;
        height: 2.75rem;
    }
}

@media (max-width: 30rem) {
    .site-footer {
        padding: 2rem 0 0;
    }
    
    .footer-container {
        padding: 0 0.9375rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .section-heading {
        font-size: 1.125rem;
    }
    
    .contact-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .contact-icon {
        margin-top: 0;
    }
    
    .hours-item {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
    
    .social-links {
        grid-template-columns: 1fr;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .link-separator {
        display: none;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* Accessibility */
.contact-link:focus,
.nav-link:focus,
.social-link:focus,
.legal-link:focus,
.email-input:focus,
.subscribe-btn:focus,
.back-to-top:focus {
    outline: 0.125rem solid #3498db;
    outline-offset: 0.125rem;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .contact-link,
    .nav-link,
    .social-link,
    .subscribe-btn,
    .back-to-top,
    .email-input {
        transition: none;
    }
    
    .nav-link:hover,
    .social-link:hover,
    .back-to-top:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .site-footer {
        background: #000000;
        border-top: 0.1875rem solid #ffffff;
    }
    
    .footer-bottom {
        border-top: 0.125rem solid #ffffff;
        background: #000000;
    }
    
    .contact-link,
    .nav-link,
    .social-link,
    .legal-link {
        border: 0.0625rem solid transparent;
    }
    
    .contact-link:focus,
    .nav-link:focus,
    .social-link:focus,
    .legal-link:focus {
        border-color: #ffffff;
    }
    
    .newsletter-signup,
    .emergency-info {
        border: 0.125rem solid #ffffff;
    }
}