/* 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;
    }
}

/* Departments Page Header Styles */
.departments-page-header {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.departments-header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
}

.academic-symbols-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-symbol {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.7;
    animation: floatSymbol 20s infinite linear;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.floating-symbol[data-symbol="math"] {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
    color: #4CAF50;
}

.floating-symbol[data-symbol="science"] {
    top: 25%;
    right: 15%;
    animation-delay: -3s;
    color: #2196F3;
}

.floating-symbol[data-symbol="literature"] {
    bottom: 30%;
    left: 20%;
    animation-delay: -6s;
    color: #FF9800;
}

.floating-symbol[data-symbol="arts"] {
    bottom: 20%;
    right: 25%;
    animation-delay: -9s;
    color: #E91E63;
}

.floating-symbol[data-symbol="technology"] {
    top: 40%;
    left: 5%;
    animation-delay: -12s;
    color: #9C27B0;
}

.floating-symbol[data-symbol="languages"] {
    top: 60%;
    right: 5%;
    animation-delay: -15s;
    color: #00BCD4;
}

.background-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.9) 0%,
        rgba(118, 75, 162, 0.8) 50%,
        rgba(255, 138, 128, 0.7) 100%
    );
}

.departments-header-container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    text-align: center;
    color: white;
}

/* Breadcrumb Navigation */
.departments-breadcrumb-nav {
    margin-bottom: 40px;
}

.breadcrumb-list {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    gap: 10px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.breadcrumb-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.breadcrumb-icon {
    font-size: 1rem;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

.breadcrumb-item.current .breadcrumb-current {
    color: white;
    font-weight: 600;
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Header Content */
.departments-header-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.header-text-content {
    text-align: left;
}

.departments-main-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 30px;
    line-height: 1.1;
    position: relative;
}

.title-main-text {
    display: block;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.title-underline {
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    margin-top: 15px;
    border-radius: 2px;
}

.departments-intro-text {
    font-size: 1.3rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    max-width: 600px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Quick Stats */
.departments-quick-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: center;
}

.stat-item {
    text-align: center;
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #FFD700;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
    transform: rotate(45deg);
    margin: 0 auto 10px;
}

.scroll-text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Animations */
@keyframes floatSymbol {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(0px) rotate(0deg);
    }
    75% {
        transform: translateY(20px) rotate(-5deg);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .departments-main-title {
        font-size: 3.5rem;
    }
    
    .departments-header-content {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .departments-page-header {
        height: auto;
        min-height: 100vh;
        padding: 100px 0 60px;
    }
    
    .departments-header-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .header-text-content {
        text-align: center;
    }
    
    .departments-main-title {
        font-size: 2.8rem;
    }
    
    .departments-intro-text {
        font-size: 1.1rem;
    }
    
    .departments-quick-stats {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .stat-item {
        padding: 20px 15px;
        flex: 1;
        margin: 0 10px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .floating-symbol {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .departments-main-title {
        font-size: 2.2rem;
    }
    
    .departments-intro-text {
        font-size: 1rem;
    }
    
    .departments-quick-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-item {
        margin: 0;
    }
    
    .breadcrumb-list {
        flex-direction: column;
        gap: 5px;
    }
    
    .breadcrumb-separator {
        display: none;
    }
    
    .floating-symbol {
        font-size: 1.5rem;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .floating-symbol {
        animation: none;
    }
    
    .scroll-indicator {
        animation: none;
    }
    
    .stat-item:hover {
        transform: none;
    }
}

/* Departments Overview Section Styles */
.academic-divisions-overview {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f1f3f4 100%);
    position: relative;
    overflow: hidden;
}

.academic-divisions-overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(120, 119, 198, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255, 119, 198, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.divisions-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Section Header */
.divisions-header-section {
    text-align: center;
    margin-bottom: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.divisions-main-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    position: relative;
}

.divisions-title-text {
    display: block;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.divisions-title-underline {
    display: block;
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    margin: 20px auto 0;
    border-radius: 2px;
}

.divisions-intro-description {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #5a6c7d;
    text-align: center;
    margin-bottom: 0;
}

/* Academic Features Grid */
.academic-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 100px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.feature-card[data-feature="curriculum"] {
    border-top: 4px solid #3498db;
}

.feature-card[data-feature="faculty"] {
    border-top: 4px solid #e74c3c;
}

.feature-card[data-feature="facilities"] {
    border-top: 4px solid #2ecc71;
}

.feature-card[data-feature="support"] {
    border-top: 4px solid #f39c12;
}

.feature-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon {
    font-size: 2.5rem;
    z-index: 2;
    position: relative;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2);
}

.feature-background-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #3498db, #e74c3c, #2ecc71, #f39c12, #3498db);
    opacity: 0.1;
    animation: rotateRing 10s linear infinite;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.feature-description {
    color: #5a6c7d;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1rem;
}

.feature-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.highlight-tag {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

/* Disciplines Visual Section */
.disciplines-visual-section {
    margin-bottom: 80px;
}

.disciplines-visual-title {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 50px;
    font-weight: 600;
}

.disciplines-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.discipline-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
}

.discipline-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(52, 152, 219, 0.3);
}

.discipline-icon-container {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.discipline-icon {
    font-size: 2.2rem;
    z-index: 2;
    position: relative;
    transition: all 0.3s ease;
}

.discipline-item:hover .discipline-icon {
    transform: scale(1.3) rotate(5deg);
}

.discipline-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.discipline-item:hover .discipline-glow {
    opacity: 1;
}

.discipline-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    display: block;
}

.discipline-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #2c3e50;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.discipline-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #2c3e50;
}

.discipline-item:hover .discipline-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-15px);
}

/* Call to Action Section */
.divisions-cta-section {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    border-radius: 25px;
    padding: 60px 40px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 60px rgba(52, 152, 219, 0.3);
    position: relative;
    overflow: hidden;
}

.divisions-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulseGlow 4s ease-in-out infinite;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button.primary-cta {
    background: white;
    color: #3498db;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

.cta-button.primary-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
    background: #f8f9fa;
}

.cta-button.secondary-cta {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-button.secondary-cta:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* Animations */
@keyframes rotateRing {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .divisions-main-title {
        font-size: 3rem;
    }
    
    .academic-features-grid {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .academic-divisions-overview {
        padding: 60px 0;
    }
    
    .divisions-main-title {
        font-size: 2.5rem;
    }
    
    .divisions-intro-description {
        font-size: 1.1rem;
    }
    
    .academic-features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 60px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .disciplines-icon-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .divisions-cta-section {
        padding: 40px 20px;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-description {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .divisions-main-title {
        font-size: 2rem;
    }
    
    .divisions-intro-description {
        font-size: 1rem;
    }
    
    .disciplines-icon-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .discipline-item {
        padding: 20px 15px;
    }
    
    .discipline-icon-container {
        width: 50px;
        height: 50px;
    }
    
    .discipline-icon {
        font-size: 1.8rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .feature-background-ring {
        animation: none;
    }
    
    .feature-card:hover {
        transform: none;
    }
    
    .discipline-item:hover {
        transform: none;
    }
    
    .divisions-cta-section::before {
        animation: none;
    }
    
    .feature-card::before {
        display: none;
    }
}


/* Department Navigation & Filter System */
.department-filter-system {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.filter-system-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Filter Header */
.filter-header-section {
    text-align: center;
    margin-bottom: 40px;
}

.filter-system-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.filter-system-description {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Filter Controls Wrapper */
.filter-controls-wrapper {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: start;
    margin-bottom: 30px;
}

/* Search Container */
.search-container {
    position: relative;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    padding: 12px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-input-group:focus-within {
    border-color: #3498db;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.15);
    transform: translateY(-2px);
}

.search-icon {
    font-size: 1.2rem;
    margin-right: 12px;
    color: #6c757d;
    transition: color 0.3s ease;
}

.search-input-group:focus-within .search-icon {
    color: #3498db;
}

.department-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
    color: #2c3e50;
}

.department-search-input::placeholder {
    color: #adb5bd;
}

.search-clear-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #adb5bd;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.search-clear-btn.visible {
    opacity: 1;
    visibility: visible;
}

.search-clear-btn:hover {
    background: #f8f9fa;
    color: #e74c3c;
}

.search-results-count {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-results-count.visible {
    opacity: 1;
}

/* View Toggle */
.view-toggle-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.view-toggle-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.view-toggle-buttons {
    display: flex;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.view-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: #6c757d;
}

.view-toggle-btn.active {
    background: #3498db;
    color: white;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.view-toggle-btn:not(.active):hover {
    background: #f8f9fa;
    color: #495057;
}

.toggle-icon {
    font-size: 1.1rem;
}

.toggle-text {
    font-weight: 500;
}

/* Navigation Controls Container */
.navigation-controls-container {
    margin-bottom: 25px;
}

/* Filter Tabs */
.filter-tabs-section {
    margin-bottom: 20px;
}

.filter-tabs-scroll-container {
    overflow-x: auto;
    padding-bottom: 10px;
}

.filter-tabs-scroll-container::-webkit-scrollbar {
    height: 4px;
}

.filter-tabs-scroll-container::-webkit-scrollbar-track {
    background: #f1f3f4;
    border-radius: 2px;
}

.filter-tabs-scroll-container::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 2px;
}

.filter-tabs {
    display: inline-flex;
    gap: 8px;
    padding: 4px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    min-width: min-content;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
    white-space: nowrap;
    position: relative;
}

.filter-tab.active {
    background: #3498db;
    color: white;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.filter-tab:not(.active):hover {
    background: #f8f9fa;
    color: #495057;
}

.tab-icon {
    font-size: 1.1rem;
}

.tab-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.filter-tab:not(.active) .tab-count {
    background: #f8f9fa;
    color: #6c757d;
}

/* Alphabet Navigation */
.alphabet-nav-section {
    margin-bottom: 10px;
}

.alphabet-nav-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.alphabet-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    white-space: nowrap;
}

.alphabet-letters {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.alphabet-letter {
    padding: 6px 10px;
    border: 1px solid #e9ecef;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    min-width: 32px;
    text-align: center;
}

.alphabet-letter.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
}

.alphabet-letter:not(.active):hover {
    background: #f8f9fa;
    border-color: #3498db;
    color: #3498db;
}

.alphabet-letter.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.alphabet-letter.disabled:hover {
    background: white;
    border-color: #e9ecef;
    color: #495057;
}

/* Active Filters Display */
.active-filters-section {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.active-filters-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.active-filters-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 15px 20px;
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    border-radius: 12px;
}

.active-filters-label {
    font-weight: 600;
    color: #0c5460;
    font-size: 0.9rem;
    white-space: nowrap;
}

.active-filters-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.active-filter-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    border: 1px solid #3498db;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #3498db;
    font-weight: 500;
}

.remove-filter-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #6c757d;
    cursor: pointer;
    padding: 2px;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.remove-filter-btn:hover {
    background: #f8f9fa;
    color: #e74c3c;
}

.clear-all-filters-btn {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-left: auto;
}

.clear-all-filters-btn:hover {
    background: #e74c3c;
    color: white;
}

/* Loading State */
.filter-loading-state {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 40px 20px;
    text-align: center;
}

.filter-loading-state.visible {
    display: flex;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: #6c757d;
    font-size: 1rem;
}

/* No Results State */
.no-results-state {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 60px 20px;
    text-align: center;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
}

.no-results-state.visible {
    display: flex;
}

.no-results-icon {
    font-size: 4rem;
    opacity: 0.5;
    margin-bottom: 10px;
}

.no-results-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.no-results-description {
    color: #6c757d;
    max-width: 400px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.no-results-action-btn {
    padding: 12px 24px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.no-results-action-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .filter-controls-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .view-toggle-container {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .department-filter-system {
        padding: 40px 0 30px;
        position: static;
    }
    
    .filter-system-title {
        font-size: 2rem;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .alphabet-nav-container {
        justify-content: center;
        text-align: center;
    }
    
    .active-filters-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .clear-all-filters-btn {
        margin-left: 0;
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .filter-system-container {
        padding: 0 15px;
    }
    
    .filter-system-title {
        font-size: 1.8rem;
    }
    
    .search-input-group {
        padding: 10px 16px;
    }
    
    .filter-tab {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .alphabet-letters {
        justify-content: center;
    }
    
    .alphabet-letter {
        padding: 6px 8px;
        min-width: 28px;
        font-size: 0.8rem;
    }
    
    .view-toggle-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .search-input-group,
    .view-toggle-btn,
    .filter-tab,
    .alphabet-letter,
    .active-filter-item,
    .clear-all-filters-btn,
    .no-results-action-btn {
        transition: none;
    }
    
    .loading-spinner {
        animation: none;
        border-top-color: #3498db;
    }
}

/* 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;
    }
}