:root {
    --primary-color: #1a4d8c;
    --secondary-color: #f8b739;
    --accent-color: #2c6eb5;
    --light-color: #f5f7fa;
    --dark-color: #333;
}

body {
    font-family: Vazir, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 0 !important;
    margin: 0;
    background: #fff !important;
}

.custom-navbar {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1030;
}

.custom-navbar.scrolled {
    background: rgba(26, 77, 140, 0.9) !important;
    backdrop-filter: blur(25px);
    padding: 0.5rem 0;
}

.brand-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    font-size: 2rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-main {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.brand-sub {
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 2px;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 2px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 600;
}

.navbar-nav .nav-link.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 1rem;
    left: 1rem;
    height: 2px;
    background: linear-gradient(90deg, #f8b739, #ffd700);
    border-radius: 2px;
}

.navbar-nav .nav-link i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover i {
    transform: scale(1.1);
}

.admin-section .btn-admin {
    background: linear-gradient(135deg, #f8b739, #ffa726);
    color: #fff !important;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(248, 183, 57, 0.3);
}

.admin-section .btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(248, 183, 57, 0.4);
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.header-spacer {
    height: 90px;
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg') center/cover no-repeat;
    color: white !important;
    padding: 120px 0;
    margin-top: -90px;
}

.hero-section h1,
.hero-section p,
.hero-section a {
    color: white !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.min-vh-80 {
    min-height: 80vh;
}

.hover-shadow {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.staff-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.staff-card:hover {
    transform: translateY(-3px);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.news-card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.filter-btn {
    border: 1px solid #dee2e6;
    margin: 0 5px 5px 0;
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.question-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.question-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(26, 77, 140, 0.1);
}

.birthday-highlight {
    background: linear-gradient(45deg, #ff6b6b, #f8b739);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.modal-header .btn-close {
    margin: -0.5rem -0.5rem -0.5rem auto;
}

.btn-group {
    direction: ltr;
}

.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: 0.375rem !important;
    border-bottom-left-radius: 0.375rem !important;
}

.btn-group .btn:last-child {
    border-top-right-radius: 0.375rem !important;
    border-bottom-right-radius: 0.375rem !important;
}

.btn-group .btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    z-index: 2;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-navbar {
    animation: fadeInDown 0.6s ease;
}

.card {
    background: #fff !important;
    border: none !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
}

.card-body h5 {
    color: #2c3e50 !important;
    font-weight: 600;
}

.card-body p {
    color: #6c757d !important;
    line-height: 1.6;
}

.card-body .text-muted {
    color: #868e96 !important;
}

.btn {
    font-weight: 500;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    color: #fff !important;
    background-color: var(--primary-color) !important;
}

.display-4 {
    color: #2c3e50 !important;
    font-weight: 700;
}

.lead {
    color: #495057 !important;
}

section:not(.hero-section) {
    background: #fff !important;
}

section:not(.hero-section) h2 {
    color: #2c3e50 !important;
    font-weight: 700;
    margin-bottom: 2rem;
}

.quick-links .card {
    transition: all 0.3s ease;
}

.quick-links .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
}

.quick-links .card i {
    color: var(--primary-color) !important;
    margin-bottom: 1rem;
}

.quick-links .card-title {
    color: #2c3e50 !important;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.quick-links .card-text {
    color: #6c757d !important;
    margin-bottom: 1rem;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.bg-light h2 {
    color: #2c3e50 !important;
}

.text-dark {
    color: #2c3e50 !important;
}

.text-body {
    color: #495057 !important;
}

.card-title {
    color: #2c3e50 !important;
}

.card-text {
    color: #6c757d !important;
}

.text-muted {
    color: #868e96 !important;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(26, 77, 140, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 12px;
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    
    .navbar-nav .nav-link {
        margin: 4px 0;
        text-align: center;
    }
    
    .admin-section {
        text-align: center;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .brand-content {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .header-spacer {
        height: 70px;
    }
    
    .hero-section {
        padding: 100px 0;
        margin-top: -70px;
    }
    
    .brand-main {
        font-size: 1.1rem;
    }
    
    .brand-icon {
        font-size: 1.6rem;
        padding: 6px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}