/* Custom Styles for Institut Al-Marifa */

:root {
    --primary-color: #2c5aa0;
    --secondary-color: #5bc1ac;
    --accent-color: #f39c12;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #bdc3c7;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="bodyPattern" width="60" height="60" patternUnits="userSpaceOnUse"><rect width="60" height="60" fill="none"/><circle cx="30" cy="30" r="1" fill="rgba(44,90,160,0.02)"/><circle cx="15" cy="15" r="0.5" fill="rgba(91,193,172,0.02)"/><circle cx="45" cy="45" r="0.5" fill="rgba(44,90,160,0.01)"/></pattern></defs><rect width="100" height="100" fill="url(%23bodyPattern)"/></svg>');
    opacity: 0.6;
    z-index: -1;
    pointer-events: none;
}

/* Typography */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption .lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 2rem;
}

.service-content h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* About Section */
.about-content .lead {
    font-size: 1.2rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-item i {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-item h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Stats */
.stats-row {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
}

.stat-item {
    color: white;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-item p {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.9;
}

/* Library Section */
.library-features .feature-item {
    display: flex;
    align-items: center;
    text-align: left;
    background: transparent;
    box-shadow: none;
    padding: 0.5rem 0;
}

.library-features .feature-item i {
    margin-right: 1rem;
    margin-bottom: 0;
    font-size: 1.5rem;
}

.library-features .feature-item span {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Training Cards */
.training-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
}

.training-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.training-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, var(--accent-color), var(--warning-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.8rem;
}

.training-card h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.training-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.training-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.training-list li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    position: relative;
    padding-left: 1.5rem;
}

.training-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Calendar Events */
.calendar-event {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.calendar-event:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.event-date {
    text-align: center;
    min-width: 80px;
}

.event-date .month {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
}

.event-date .day {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.event-content h6 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.event-content p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
}

/* News Cards */
.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.news-content h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-content h5 a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.news-content h5 a:hover {
    color: var(--secondary-color);
}

.news-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Testimonials */
.testimonial-item {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: var(--shadow);
    margin: 1rem;
}

.testimonial-avatar img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-name {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.testimonial-position {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Testimonials Carousel Controls */
#testimonial-carousel .carousel-control-prev,
#testimonial-carousel .carousel-control-next {
    width: 4%;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(44, 90, 160, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

#testimonial-carousel .carousel-control-prev:hover,
#testimonial-carousel .carousel-control-next:hover {
    background: rgba(44, 90, 160, 0.2);
    transform: translateY(-50%) scale(1.1);
}

#testimonial-carousel .carousel-control-prev-icon,
#testimonial-carousel .carousel-control-next-icon {
    background-size: 18px;
    filter: invert(1);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-section .lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .carousel-caption h1 {
        font-size: 2.5rem;
    }
    
    .carousel-caption .lead {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .service-card,
    .training-card,
    .calendar-event {
        margin-bottom: 2rem;
    }
    
    .stats-row .row > div {
        margin-bottom: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .carousel-caption {
        padding: 1rem;
    }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .service-card,
    .training-card {
        padding: 1.5rem;
    }
    
    .calendar-event {
        flex-direction: column;
        text-align: center;
    }
}

/* RTL Support */
[dir="rtl"] .service-icon,
[dir="rtl"] .training-icon {
    margin-left: 1.5rem;
    margin-right: 0;
}

[dir="rtl"] .library-features .feature-item i {
    margin-left: 1rem;
    margin-right: 0;
}

[dir="rtl"] .training-list li {
    padding-right: 1.5rem;
    padding-left: 0;
}

[dir="rtl"] .training-list li::before {
    right: 0;
    left: auto;
}

[dir="rtl"] .news-category {
    right: auto;
    left: 1rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for counters */
.counter-number {
    display: inline-block;
    transition: var(--transition);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Institute Studio */
.studio-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

/* Hero Section Enhancements */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-image {
    position: relative;
    background-attachment: fixed !important;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-english {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.9s both;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.feature-card:hover h4 {
    color: var(--secondary-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Stat Cards */
.stat-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.stat-card:hover .stat-number {
    color: var(--secondary-color);
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Collection Cards */
.collection-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.collection-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.collection-card:hover::after {
    transform: scaleX(1);
}

.collection-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.collection-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, var(--accent-color), var(--warning-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.8rem;
    transition: var(--transition);
}

.collection-card:hover .collection-icon {
    transform: scale(1.1) rotate(10deg);
}

.collection-content h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.collection-card:hover .collection-content h4 {
    color: var(--secondary-color);
}

.collection-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.collection-list {
    list-style: none;
    padding: 0;
}

.collection-list li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    position: relative;
    padding-left: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.collection-list li:last-child {
    border-bottom: none;
}

.collection-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    transition: var(--transition);
}

.collection-card:hover .collection-list li::before {
    color: var(--primary-color);
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.05), rgba(91, 193, 172, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.service-card:hover h4 {
    color: var(--secondary-color);
}

.service-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* Hours List */
.hours-list {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.hours-item:last-child {
    border-bottom: none;
}

.hours-item:hover {
    background: rgba(44, 90, 160, 0.05);
    border-radius: 10px;
    padding-left: 1rem;
    padding-right: 1rem;
}

.hours-item .day {
    font-weight: 600;
    color: var(--text-dark);
}

.hours-item .time {
    color: var(--primary-color);
    font-weight: 600;
}

/* Contact Info */
.contact-info {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.contact-info h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item:hover {
    background: rgba(44, 90, 160, 0.05);
    border-radius: 10px;
    padding-left: 1rem;
    padding-right: 1rem;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
}

.contact-item span {
    color: var(--text-dark);
    font-weight: 500;
}

/* Partner Cards */
.partner-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-color);
}

.partner-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.partner-logo {
    width: 120px;
    height: 120px;
    background: #f8f9fa;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.partner-card:hover .partner-logo {
    border-color: var(--primary-color);
    background: white;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.partner-logo i {
    font-size: 3rem;
}

.partner-card h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.partner-type {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.partner-card small {
    font-size: 0.85rem;
    color: var(--text-light);
}

.partner-card .btn {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
}

/* Partnership Cards (Legacy) */
.partnership-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-color);
}

.partnership-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.partnership-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.partnership-card h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.partnership-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* News Cards */
.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem;
    border-radius: 10px;
    text-align: center;
    min-width: 60px;
}

.news-date .day {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.news-date .month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.news-content {
    padding: 1.5rem;
}

.news-content h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Admission Stats */
.admission-stats .stat-item {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.admission-stats .stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.admission-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.admission-stats .stat-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
}

.studio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.studio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.studio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.studio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 90, 160, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.studio-card:hover .studio-overlay {
    opacity: 1;
}

.studio-overlay h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.studio-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Decimal Classification Cards */
.classification-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid #e9ecef;
}

.classification-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.classification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.classification-code {
    background: var(--primary-color);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9rem;
}

.classification-icon {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.classification-content h4 {
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.classification-stats {
    margin: 15px 0;
}

/* Book Cards */
.book-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid #e9ecef;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.book-cover {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-placeholder {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #6c757d;
}

.book-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.book-card:hover .book-overlay {
    opacity: 1;
}

.book-badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

.book-info {
    padding: 20px;
}

.book-title {
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 1.1rem;
    line-height: 1.4;
}

.book-author {
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.book-meta {
    margin-bottom: 12px;
}

.book-description {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-light);
}

/* Small Book Cards */
.book-card-small {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid #e9ecef;
}

.book-card-small:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.book-cover-small {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.book-placeholder-small {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #6c757d;
}

.book-info-small {
    padding: 15px;
}

.book-info-small h6 {
    color: var(--text-dark);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

/* Search and Filter */
.search-filter-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid #e9ecef;
}

.search-form .form-group {
    margin-bottom: 0;
}

.search-form .form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.results-header {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid #e9ecef;
}

.view-options {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid #e9ecef;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: white;
}

.service-card h5 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Stat Cards Small */
.stat-card-small {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #e9ecef;
}

.stat-card-small:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-card-small .stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.2rem;
    color: white;
}

.stat-card-small .stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-card-small .stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* No Results */
.no-results {
    padding: 60px 20px;
}

.no-results i {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .classification-card,
    .book-card,
    .book-card-small,
    .service-card {
        margin-bottom: 20px;
    }
    
    .search-filter-card {
        padding: 20px;
    }
    
    .results-header {
        text-align: center;
    }
    
    .view-options {
        justify-content: center;
        margin-top: 15px;
    }
    
    .book-cover {
        height: 200px;
    }
    
    .book-cover-small {
        height: 150px;
    }
    
    .calendar-grid {
        grid-template-columns: 1fr;
    }
    
    .upcoming-event-card {
        flex-direction: column;
    }
    
    .event-date-badge {
        min-width: auto;
        padding: 1rem;
    }
    
    .issue-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .issue-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hours-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Studio Page Styles */
.studio-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.studio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.studio-media {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-placeholder, .image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.media-type-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.studio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 90, 160, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.studio-card:hover .studio-overlay {
    opacity: 1;
}

.studio-overlay h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.studio-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.gallery-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-image {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.image-placeholder-small {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-color), var(--warning-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 90, 160, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h6 {
    color: white;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.video-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.video-thumbnail {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.video-placeholder-medium {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 90, 160, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.video-overlay h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.video-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.no-media {
    padding: 3rem 1rem;
}

/* Calendar Page Styles */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.calendar-month {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.month-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.month-header h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
}

.month-events {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calendar-event-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 10px;
    transition: var(--transition);
    cursor: pointer;
}

.calendar-event-item:hover {
    background: var(--primary-color);
    color: white;
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 1rem;
    min-width: 60px;
}

.event-date .day {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.event-date .end-day {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.8;
}

.event-content {
    flex: 1;
}

.event-content h6 {
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.event-location {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.3rem;
}

.year-selector {
    margin-bottom: 2rem;
}

.year-selector select {
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
}

.upcoming-event-card {
    display: flex;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.upcoming-event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.event-date-badge {
    background: var(--primary-color);
    color: white;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.date-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.date-month {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.9;
}

.event-details {
    flex: 1;
    padding: 1.5rem;
}

.event-details h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.event-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.event-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.event-type-badge {
    background: var(--accent-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.event-location {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.legend-color.academic { background: var(--primary-color); }
.legend-color.exam { background: var(--danger-color); }
.legend-color.cultural { background: var(--accent-color); }
.legend-color.holiday { background: var(--warning-color); }
.legend-color.graduation { background: var(--success-color); }
.legend-color.other { background: var(--secondary-color); }

.legend-text {
    color: white;
    font-size: 0.9rem;
}

.no-events {
    padding: 3rem 1rem;
}

/* Journal Page Styles */
.latest-issue-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.issue-cover {
    height: 300px;
    position: relative;
}

.cover-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.issue-number {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1rem;
}

.issue-details {
    padding: 2rem;
}

.issue-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.issue-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.issue-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.meta-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.issue-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.issue-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.article-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.article-content {
    padding: 1.5rem;
}

.article-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.article-excerpt {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.article-meta .author,
.article-meta .date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.category-card h6 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.no-articles {
    padding: 3rem 1rem;
}

/* Hours Card Styles */
.hours-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.hours-card h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hours-item:last-child {
    border-bottom: none;
}

.hours-item .day {
    font-weight: 600;
    color: var(--text-dark);
}

.hours-item .time {
    color: var(--primary-color);
    font-weight: 600;
}

/* CTA Card Styles */
.cta-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.cta-card h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-card .lead {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   LIBRARY HERO SECTION SPECIAL STYLES
   =================================== */

/* Library Hero Section Special Styles */
.university-hero-section.library-hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #4a90e2 100%);
}

.university-hero-section.library-hero .hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="books" width="60" height="60" patternUnits="userSpaceOnUse"><rect width="60" height="60" fill="none"/><rect x="10" y="15" width="8" height="30" fill="rgba(255,255,255,0.1)"/><rect x="22" y="10" width="8" height="35" fill="rgba(255,255,255,0.08)"/><rect x="34" y="20" width="8" height="25" fill="rgba(255,255,255,0.12)"/><rect x="46" y="12" width="8" height="33" fill="rgba(255,255,255,0.06)"/></pattern></defs><rect width="100" height="100" fill="url(%23books)"/></svg>');
    opacity: 0.3;
    animation: patternFloat 20s ease-in-out infinite;
}

.university-hero-section.library-hero .badge-icon {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.university-hero-section.library-hero .hero-main-title {
    background: linear-gradient(45deg, #ffffff, #f8f9fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.university-hero-section.library-hero .hero-stats .stat-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
}

.university-hero-section.library-hero .hero-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.university-hero-section.library-hero .hero-stats .stat-number {
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.university-hero-section.library-hero .hero-stats .stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* Book List Hero Section Special Styles */
.university-hero-section.book-list-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.university-hero-section.book-list-hero .hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="search" width="50" height="50" patternUnits="userSpaceOnUse"><rect width="50" height="50" fill="none"/><circle cx="25" cy="25" r="8" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/><line x1="30" y1="30" x2="35" y2="35" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></pattern></defs><rect width="100" height="100" fill="url(%23search)"/></svg>');
    opacity: 0.2;
    animation: patternFloat 25s ease-in-out infinite;
}

.university-hero-section.book-list-hero .badge-icon {
    background: linear-gradient(45deg, #a8edea, #fed6e3);
    box-shadow: 0 4px 15px rgba(168, 237, 234, 0.3);
}

.university-hero-section.book-list-hero .hero-actions .btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.university-hero-section.book-list-hero .hero-actions .btn-primary:hover {
    background: linear-gradient(45deg, #764ba2, #667eea);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Book Detail Hero Section Special Styles */
.university-hero-section.book-detail-hero {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 50%, #e74c3c 100%);
}

.university-hero-section.book-detail-hero .hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="bookDetail" width="80" height="80" patternUnits="userSpaceOnUse"><rect width="80" height="80" fill="none"/><rect x="20" y="15" width="6" height="50" fill="rgba(255,255,255,0.08)"/><rect x="30" y="10" width="6" height="55" fill="rgba(255,255,255,0.06)"/><rect x="40" y="20" width="6" height="45" fill="rgba(255,255,255,0.1)"/><rect x="50" y="12" width="6" height="53" fill="rgba(255,255,255,0.04)"/><rect x="60" y="18" width="6" height="47" fill="rgba(255,255,255,0.12)"/><circle cx="35" cy="35" r="2" fill="rgba(255,255,255,0.05)"/><circle cx="65" cy="65" r="2" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23bookDetail)"/></svg>');
    opacity: 0.25;
    animation: patternFloat 30s ease-in-out infinite;
}

.university-hero-section.book-detail-hero .badge-icon {
    background: linear-gradient(45deg, #e74c3c, #f39c12);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.university-hero-section.book-detail-hero .hero-main-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.university-hero-section.book-detail-hero .hero-description {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.university-hero-section.book-detail-hero .hero-actions .btn-primary {
    background: linear-gradient(45deg, #e74c3c, #f39c12);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.university-hero-section.book-detail-hero .hero-actions .btn-primary:hover {
    background: linear-gradient(45deg, #f39c12, #e74c3c);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.university-hero-section.book-detail-hero .hero-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

.university-hero-section.book-detail-hero .hero-stats .stat-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.university-hero-section.book-detail-hero .hero-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.university-hero-section.book-detail-hero .hero-stats .stat-number {
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 1.1rem;
}

.university-hero-section.book-detail-hero .hero-stats .stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Related Books Section Styles */
.related-books-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.related-books-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="relatedBooks" width="60" height="60" patternUnits="userSpaceOnUse"><rect width="60" height="60" fill="none"/><rect x="10" y="15" width="4" height="30" fill="rgba(44,90,160,0.03)"/><rect x="20" y="10" width="4" height="35" fill="rgba(44,90,160,0.02)"/><rect x="30" y="20" width="4" height="25" fill="rgba(44,90,160,0.04)"/><rect x="40" y="12" width="4" height="33" fill="rgba(44,90,160,0.01)"/><rect x="50" y="18" width="4" height="27" fill="rgba(44,90,160,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23relatedBooks)"/></svg>');
    opacity: 0.5;
}

.related-books-section .container {
    position: relative;
    z-index: 2;
}

.related-books-section .section-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.related-books-section .section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

.related-books-section .book-card-small {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.related-books-section .book-card-small:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.related-books-section .book-cover-small {
    text-align: center;
    margin-bottom: 1rem;
}

.related-books-section .book-cover-small img {
    max-width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.related-books-section .book-placeholder-small {
    width: 100%;
    height: 120px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.related-books-section .book-info-small {
    text-align: center;
}

.related-books-section .book-title-small {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.3;
}

.related-books-section .book-author-small {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.related-books-section .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

.related-books-section .btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

/* ===================================
   PROFESSIONAL UNIVERSITY HERO SECTION
   =================================== */

.university-hero-section {
    position: relative;
    min-height: 70vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

/* RTL Support for Hero Section */
.university-hero-section[dir="rtl"] {
    text-align: right;
}

.university-hero-section[dir="rtl"] .hero-content {
    text-align: right;
}

.university-hero-section[dir="rtl"] .hero-actions {
    justify-content: flex-start;
}

.university-hero-section[dir="rtl"] .hero-stats {
    justify-content: flex-start;
}

/* Background Elements */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.9) 0%, rgba(91, 193, 172, 0.8) 100%);
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: patternFloat 20s ease-in-out infinite;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: shapeFloat 15s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 3s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 6s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    top: 30%;
    right: 30%;
    animation-delay: 9s;
}

/* Content Wrapper */
.hero-content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
}

/* Left Content */
.hero-content {
    color: white;
    padding: 2rem 0;
}

/* University Badge */
.university-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.badge-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(45deg, var(--accent-color), #f39c12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

.badge-text {
    color: white;
    font-weight: 600;
}

/* Main Title */
.hero-main-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Description */
.hero-description {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

/* English Title */
.hero-english-title {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    font-style: italic;
    letter-spacing: 1px;
}

/* Action Buttons */
.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.hero-actions .btn {
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-actions .btn-primary {
    background: linear-gradient(45deg, var(--accent-color), #f39c12);
    border: none;
    color: white;
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.3);
}

.hero-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(243, 156, 18, 0.4);
}

.hero-actions .btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.hero-actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Quick Stats */
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    justify-content: flex-start;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 100px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}









/* Animations */
@keyframes patternFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes shapeFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}





/* Responsive Design for University Hero */
@media (max-width: 991px) {
    .hero-main-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1rem;
    }
    

}

@media (max-width: 768px) {
    .hero-main-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        min-width: auto;
    }
    
    /* RTL Support for Mobile */
    .university-hero-section[dir="rtl"] .hero-actions {
        align-items: center;
    }
    
    .university-hero-section[dir="rtl"] .hero-stats {
        align-items: center;
    }
}

/* ===================================
   HEADER & NAVIGATION ENHANCEMENTS
   =================================== */

/* Enhanced Site Header */
.site-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    padding: 8px 0;
    position: relative;
    overflow: hidden;
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.site-header .container {
    position: relative;
    z-index: 2;
}

.site-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0;
    transition: var(--transition);
}

.site-header p:hover {
    color: white;
}

.site-header i {
    color: var(--accent-color);
    margin-right: 8px;
    transition: var(--transition);
}

.site-header a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
}

.site-header a:hover {
    color: var(--accent-color);
}

/* Enhanced Social Icons */
.social-icon {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 12px;
}

.social-icon-item {
    transition: var(--transition);
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

/* Enhanced Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    transition: var(--transition);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-brand .logo {
    max-width: 50px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.navbar-brand span {
    display: flex;
    flex-direction: column;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
}

.navbar-brand small {
    color: var(--secondary-color);
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.8;
}

/* Enhanced Navigation Links */
.navbar-nav {
    gap: 5px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 600;
    padding: 10px 14px !important;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
}

.nav-link:hover::before {
    opacity: 1;
}

/* Enhanced Language Selector */
#language-select {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 8px 12px;
}

#language-select:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#language-select option {
    background: white;
    color: var(--dark-color);
}

/* RTL Support for Navigation */
[dir="rtl"] .navbar-nav {
    margin-right: auto;
    margin-left: 0;
}

[dir="rtl"] .nav-link {
    text-align: right;
}

[dir="rtl"] .nav-link {
    flex-direction: row-reverse;
}

[dir="rtl"] .navbar-brand {
    flex-direction: row-reverse;
}

/* ===================================
   ACADEMIC SERVICES CARDS ENHANCEMENT
   =================================== */

/* Academic Services Section */
#services {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    position: relative;
}

#services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="servicesPattern" width="80" height="80" patternUnits="userSpaceOnUse"><rect width="80" height="80" fill="none"/><circle cx="40" cy="40" r="2" fill="rgba(44,90,160,0.03)"/><circle cx="20" cy="20" r="1" fill="rgba(91,193,172,0.03)"/><circle cx="60" cy="60" r="1" fill="rgba(44,90,160,0.02)"/><circle cx="10" cy="50" r="0.5" fill="rgba(91,193,172,0.02)"/><circle cx="70" cy="30" r="0.5" fill="rgba(44,90,160,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23servicesPattern)"/></svg>');
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
}

#services .container {
    position: relative;
    z-index: 2;
}

/* Enhanced Service Cards for Academic Services */
#services .service-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(44, 90, 160, 0.08);
    height: 100%;
    position: relative;
    overflow: hidden;
    text-align: center;
}

#services .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

#services .service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.03), rgba(91, 193, 172, 0.03));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

#services .service-card:hover::before {
    transform: scaleX(1);
}

#services .service-card:hover::after {
    opacity: 1;
}

#services .service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(var(--primary-color), 0.2);
}

#services .service-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    font-size: 2.2rem;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 20px rgba(44, 90, 160, 0.3);
}

#services .service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#services .service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 25px rgba(44, 90, 160, 0.4);
}

#services .service-card:hover .service-icon::before {
    opacity: 1;
}

#services .service-card:hover .service-icon i {
    position: relative;
    z-index: 1;
}

#services .service-content {
    position: relative;
    z-index: 2;
}

#services .service-content h5 {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
    line-height: 1.3;
}

#services .service-card:hover .service-content h5 {
    color: var(--primary-color);
}

#services .service-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    min-height: 80px;
    display: flex;
    align-items: center;
    text-align: center;
}

#services .service-content .btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

#services .service-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

#services .service-content .btn i {
    transition: transform 0.3s ease;
}

#services .service-content .btn:hover i {
    transform: translateX(3px);
}

/* RTL Support for Services */
#services[dir="rtl"] .service-content .btn:hover i {
    transform: translateX(-3px);
}

#services[dir="rtl"] .service-content .btn {
    flex-direction: row-reverse;
}

/* Mobile Responsiveness for Services */
@media (max-width: 768px) {
    #services .service-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    #services .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    #services .service-content h5 {
        font-size: 1.2rem;
    }
    
    #services .service-content p {
        font-size: 0.9rem;
        min-height: auto;
    }
}

@media (max-width: 576px) {
    #services .service-card {
        padding: 1.5rem 1rem;
    }
    
    #services .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    #services .service-content h5 {
        font-size: 1.1rem;
    }
}

/* ===================================
   FOOTER ENHANCEMENTS
   =================================== */

/* Enhanced Footer Background */
.site-footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
    z-index: 1;
}

.site-footer .container {
    position: relative;
    z-index: 2;
}

/* Enhanced Footer Logo */
.site-footer .logo {
    max-width: 120px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: var(--transition);
}

.site-footer .logo:hover {
    transform: scale(1.05);
}

/* Enhanced Footer Titles */
.site-footer-title {
    color: white;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.site-footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Enhanced Footer Menu */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu-item {
    margin-bottom: 8px;
    transition: var(--transition);
}

.footer-menu-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding-left: 15px;
    display: block;
}

.footer-menu-link::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 0.6rem;
    transition: var(--transition);
    opacity: 0;
    transform: translateX(-5px);
}

.footer-menu-link:hover {
    color: white;
    padding-left: 20px;
}

.footer-menu-link:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Enhanced Contact Information */
.site-footer .text-white {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    transition: var(--transition);
}

.site-footer .text-white:hover {
    color: white;
}

.site-footer .text-white i {
    color: var(--accent-color);
    margin-right: 10px;
    margin-top: 2px;
    min-width: 16px;
    transition: var(--transition);
}

.site-footer .text-white:hover i {
    transform: scale(1.1);
}

.site-footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
}

.site-footer-link:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* Enhanced Footer Bottom */
.site-footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
    padding: 25px 0;
    position: relative;
    z-index: 2;
}

.copyright-text {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.6;
}

.copyright-text strong {
    color: var(--accent-color);
}

.copyright-text small {
    color: rgba(255, 255, 255, 0.5);
}

/* Enhanced Social Icons */
.social-icon {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.social-icon-item {
    margin: 0;
}

.social-icon-link {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: var(--transition);
    text-decoration: none;
}

.social-icon-link:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(243, 156, 18, 0.3);
}

/* Responsive Footer */
@media (max-width: 768px) {
    /* Header Responsive */
    .site-header {
        padding: 8px 0;
    }
    
    .site-header p {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }
    
    .social-icon {
        gap: 8px;
    }
    
    .social-icon-link {
        width: 28px;
        height: 28px;
    }
    
    /* Navigation Responsive */
    .navbar {
        padding: 10px 0;
    }
    
    .navbar-brand .logo {
        max-width: 50px;
    }
    
    .navbar-brand span {
        font-size: 1rem;
    }
    
    .navbar-brand small {
        font-size: 0.7rem;
    }
    
    .nav-link {
        padding: 10px 12px !important;
        font-size: 0.9rem;
        gap: 4px;
    }
    
    #language-select {
        width: 80px;
        font-size: 0.8rem;
        padding: 8px 10px;
    }
    
    /* Footer Responsive */
    .site-footer {
        text-align: center;
    }
    
    .site-footer .col-lg-4,
    .site-footer .col-lg-3 {
        margin-bottom: 30px;
    }
    
    .site-footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-menu-link {
        padding-left: 0;
        text-align: center;
    }
    
    .footer-menu-link::before {
        display: none;
    }
    
    .footer-menu-link:hover {
        padding-left: 0;
    }
    
    .site-footer .text-white {
        justify-content: center;
        text-align: center;
    }
    
    .site-footer-bottom {
        text-align: center;
    }
    
    .copyright-text {
        text-align: center;
        margin-bottom: 15px;
    }
}

/* Section Background Improvements */
.section-padding {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin: 2rem 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(44, 90, 160, 0.05);
}

.section-padding::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px 20px 0 0;
}

/* Container Background */
.container {
    position: relative;
    z-index: 2;
}

/* Card Background Improvements */
.service-card,
.feature-card,
.stat-card,
.collection-card,
.partner-card,
.news-card,
.book-card,
.classification-card,
.calendar-event,
.studio-card,
.article-card,
.category-card,
.hours-card,
.cta-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(44, 90, 160, 0.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Form Background */
.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(44, 90, 160, 0.15);
    backdrop-filter: blur(5px);
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.15);
}

/* Modal Background */
.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(44, 90, 160, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Dropdown Background */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(44, 90, 160, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Alert Background */
.alert {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(44, 90, 160, 0.1);
}

/* Table Background */
.table {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.table thead th {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    font-weight: 600;
}

/* Pagination Background */
.pagination {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-link {
    background: transparent;
    border: 1px solid rgba(44, 90, 160, 0.15);
    color: var(--primary-color);
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
    color: white;
}

/* RTL Support for Background */
[dir="rtl"] .section-padding::before {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

/* Responsive Background Adjustments */
@media (max-width: 768px) {
    .section-padding {
        margin: 1rem 0;
        border-radius: 15px;
    }
    
    .service-card,
    .feature-card,
    .stat-card,
    .collection-card,
    .partner-card,
    .news-card,
    .book-card,
    .classification-card,
    .calendar-event,
    .studio-card,
    .article-card,
    .category-card,
    .hours-card,
    .cta-card {
        border-radius: 12px;
    }
}

/* Featured Books Section Styles */
.featured-books-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.featured-books-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="featuredBooks" width="50" height="50" patternUnits="userSpaceOnUse"><rect width="50" height="50" fill="none"/><rect x="10" y="10" width="6" height="30" fill="rgba(44,90,160,0.03)"/><rect x="20" y="5" width="6" height="35" fill="rgba(91,193,172,0.03)"/><rect x="30" y="15" width="6" height="25" fill="rgba(44,90,160,0.02)"/><rect x="40" y="8" width="6" height="32" fill="rgba(91,193,172,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23featuredBooks)"/></svg>');
    opacity: 0.5;
    animation: patternFloat 20s ease-in-out infinite;
}

.featured-books-section .container {
    position: relative;
    z-index: 2;
}

.featured-books-section .section-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.featured-books-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.featured-books-section .section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.featured-books-section .book-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(44, 90, 160, 0.05);
    height: 100%;
}

.featured-books-section .book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.featured-books-section .book-cover {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.featured-books-section .book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.featured-books-section .book-card:hover .book-cover img {
    transform: scale(1.1);
}

.featured-books-section .book-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.featured-books-section .book-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 90, 160, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.featured-books-section .book-card:hover .book-overlay {
    opacity: 1;
}

.featured-books-section .book-overlay .btn {
    background: white;
    color: var(--primary-color);
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.featured-books-section .book-overlay .btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.featured-books-section .book-info {
    padding: 1.5rem;
}

.featured-books-section .book-info h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.4;
    height: 3rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.featured-books-section .book-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.featured-books-section .badge {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.featured-books-section .btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.featured-books-section .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.4);
    color: white;
}

/* Responsive Design for Featured Books */
@media (max-width: 768px) {
    .featured-books-section .book-cover {
        height: 200px;
    }
    
    .featured-books-section .book-info {
        padding: 1rem;
    }
    
    .featured-books-section .book-info h5 {
        font-size: 1rem;
        height: 2.5rem;
    }
    
    .featured-books-section .section-title::after {
        width: 60px;
        height: 3px;
    }
}

@media (max-width: 576px) {
    .featured-books-section .book-cover {
        height: 180px;
    }
    
    .featured-books-section .book-info h5 {
        font-size: 0.95rem;
        height: 2.2rem;
    }
}

/* Library Services Section Styles */
.library-services-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.library-services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="libraryServices" width="40" height="40" patternUnits="userSpaceOnUse"><rect width="40" height="40" fill="none"/><circle cx="20" cy="20" r="1.5" fill="rgba(44,90,160,0.03)"/><circle cx="10" cy="10" r="1" fill="rgba(91,193,172,0.03)"/><circle cx="30" cy="30" r="1" fill="rgba(44,90,160,0.02)"/><circle cx="5" cy="35" r="0.5" fill="rgba(91,193,172,0.02)"/><circle cx="35" cy="5" r="0.5" fill="rgba(44,90,160,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23libraryServices)"/></svg>');
    opacity: 0.6;
    animation: patternFloat 25s ease-in-out infinite;
}

.library-services-section .container {
    position: relative;
    z-index: 2;
}

.library-services-section .section-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.library-services-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.library-services-section .section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Library Service Cards */
.library-service-card {
    background: white;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(44, 90, 160, 0.05);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.library-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.library-service-card:hover::before {
    transform: scaleX(1);
}

.library-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.library-service-card .service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.library-service-card .service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.library-service-card:hover .service-icon::before {
    opacity: 1;
}

.library-service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
}

.library-service-card .service-icon i {
    position: relative;
    z-index: 2;
}

.library-service-card h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.library-service-card:hover h5 {
    color: var(--secondary-color);
}

.library-service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Additional Services */
.additional-services {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(44, 90, 160, 0.1);
}

.additional-services h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
}

.additional-services h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.mini-service-item {
    background: white;
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(44, 90, 160, 0.05);
    height: 100%;
}

.mini-service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.mini-service-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
    transition: all 0.3s ease;
}

.mini-service-item:hover i {
    color: white;
    transform: scale(1.2);
}

.mini-service-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.mini-service-item:hover span {
    color: white;
}

/* Responsive Design for Library Services */
@media (max-width: 768px) {
    .library-service-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .library-service-card .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .library-service-card h5 {
        font-size: 1.1rem;
    }
    
    .additional-services {
        padding: 1.5rem;
    }
    
    .mini-service-item {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .mini-service-item i {
        font-size: 1.3rem;
    }
    
    .mini-service-item span {
        font-size: 0.8rem;
    }
    
    .library-services-section .section-title::after {
        width: 60px;
        height: 3px;
    }
}

@media (max-width: 576px) {
    .library-service-card .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .library-service-card h5 {
        font-size: 1rem;
    }
    
    .library-service-card p {
        font-size: 0.9rem;
    }
    
    .additional-services h4 {
        font-size: 1.2rem;
    }
    
    .mini-service-item {
        padding: 0.5rem;
    }
    
    .mini-service-item i {
        font-size: 1.2rem;
    }
    
    .mini-service-item span {
        font-size: 0.75rem;
    }
}

/* Registration Page Styles */
.university-hero-section.registration-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

.university-hero-section.registration-hero .hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="registrationHero" width="60" height="60" patternUnits="userSpaceOnUse"><rect width="60" height="60" fill="none"/><path d="M10 20 L20 10 L30 20 L40 10 L50 20" stroke="rgba(255,255,255,0.1)" stroke-width="2" fill="none"/><path d="M15 40 L25 30 L35 40 L45 30 L55 40" stroke="rgba(255,255,255,0.08)" stroke-width="2" fill="none"/></pattern></defs><rect width="100" height="100" fill="url(%23registrationHero)"/></svg>');
    opacity: 0.3;
    animation: patternFloat 20s ease-in-out infinite;
}

.university-hero-section.registration-hero .badge-icon {
    background: linear-gradient(45deg, var(--accent-color), var(--warning-color));
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.university-hero-section.registration-hero .hero-main-title {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.university-hero-section.registration-hero .hero-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

.university-hero-section.registration-hero .hero-actions .btn-primary {
    background: linear-gradient(45deg, var(--accent-color), var(--warning-color));
    border: none;
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.university-hero-section.registration-hero .hero-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
    color: white;
}

.university-hero-section.registration-hero .hero-stats .stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.university-hero-section.registration-hero .hero-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.university-hero-section.registration-hero .hero-stats .stat-number {
    color: var(--accent-color);
    font-weight: 700;
}

.university-hero-section.registration-hero .hero-stats .stat-label {
    color: rgba(255, 255, 255, 0.9);
}

/* Requirements Section */
.requirements-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.requirements-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="requirements" width="50" height="50" patternUnits="userSpaceOnUse"><rect width="50" height="50" fill="none"/><rect x="10" y="15" width="4" height="20" fill="rgba(44,90,160,0.03)"/><rect x="20" y="10" width="4" height="25" fill="rgba(91,193,172,0.03)"/><rect x="30" y="20" width="4" height="15" fill="rgba(44,90,160,0.02)"/><rect x="40" y="12" width="4" height="23" fill="rgba(91,193,172,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23requirements)"/></svg>');
    opacity: 0.5;
    animation: patternFloat 25s ease-in-out infinite;
}

.requirements-section .container {
    position: relative;
    z-index: 2;
}

.requirement-card {
    background: white;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(44, 90, 160, 0.05);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.requirement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.requirement-card:hover::before {
    transform: scaleX(1);
}

.requirement-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.requirement-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.requirement-card:hover .requirement-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
}

.requirement-card h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.requirement-card:hover h5 {
    color: var(--secondary-color);
}

.requirement-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.requirement-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.requirement-link::after {
    content: '→';
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.requirement-link:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.requirement-link:hover::after {
    transform: translateX(5px);
}

/* Registration Form Section */
.registration-form-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.registration-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="registrationForm" width="40" height="40" patternUnits="userSpaceOnUse"><rect width="40" height="40" fill="none"/><circle cx="20" cy="20" r="1" fill="rgba(44,90,160,0.02)"/><circle cx="10" cy="10" r="0.5" fill="rgba(91,193,172,0.02)"/><circle cx="30" cy="30" r="0.5" fill="rgba(44,90,160,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23registrationForm)"/></svg>');
    opacity: 0.4;
    animation: patternFloat 30s ease-in-out infinite;
}

.registration-form-section .container {
    position: relative;
    z-index: 2;
}

.registration-form-container {
    background: white;
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(44, 90, 160, 0.05);
    position: relative;
    overflow: hidden;
}

.registration-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 25px 25px 0 0;
}

.form-header .section-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.form-header .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.form-header .section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 0;
}

.registration-form {
    margin-top: 2rem;
}

.form-content {
    margin-bottom: 2rem;
}

.form-content .form-group {
    margin-bottom: 1.5rem;
}

.form-content label {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.form-content .form-control,
.form-content .form-select {
    border: 2px solid rgba(44, 90, 160, 0.1);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-content .form-control:focus,
.form-content .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.15);
    background: white;
}

.form-actions .btn {
    border-radius: 25px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
}

.form-actions .btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.form-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.4);
    color: white;
}

.form-actions .btn-outline-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.form-actions .btn-outline-secondary:hover {
    background: var(--text-light);
    color: white;
    transform: translateY(-3px);
}

/* Additional Info Section */
.additional-info-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.additional-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="additionalInfo" width="60" height="60" patternUnits="userSpaceOnUse"><rect width="60" height="60" fill="none"/><path d="M15 15 L25 25 L35 15" stroke="rgba(44,90,160,0.03)" stroke-width="1" fill="none"/><path d="M45 45 L55 55 L65 45" stroke="rgba(91,193,172,0.03)" stroke-width="1" fill="none"/></pattern></defs><rect width="100" height="100" fill="url(%23additionalInfo)"/></svg>');
    opacity: 0.4;
    animation: patternFloat 35s ease-in-out infinite;
}

.additional-info-section .container {
    position: relative;
    z-index: 2;
}

.info-card {
    background: white;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(44, 90, 160, 0.05);
    height: 100%;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--accent-color), var(--warning-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.info-card:hover .info-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.3);
}

.info-card h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.info-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Responsive Design for Registration */
@media (max-width: 768px) {
    .registration-form-container {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .requirement-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .requirement-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .requirement-card h5 {
        font-size: 1rem;
    }
    
    .requirement-card p {
        font-size: 0.85rem;
    }
    
    .info-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .info-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .info-card h5 {
        font-size: 1rem;
    }
    
    .info-card p {
        font-size: 0.85rem;
    }
    
    .form-actions .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .registration-form-container {
        padding: 1.5rem 1rem;
        border-radius: 15px;
    }
    
    .form-header .section-title {
        font-size: 1.5rem;
    }
    
    .form-header .section-subtitle {
        font-size: 1rem;
    }
    
    .requirement-card {
        padding: 1rem;
    }
    
    .requirement-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .info-card {
        padding: 1rem;
    }
    
    .info-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* News Page Styles */
.university-hero-section.news-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

.university-hero-section.news-hero .hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="newsHero" width="60" height="60" patternUnits="userSpaceOnUse"><rect width="60" height="60" fill="none"/><path d="M10 20 L20 10 L30 20 L40 10 L50 20" stroke="rgba(255,255,255,0.1)" stroke-width="2" fill="none"/><path d="M15 40 L25 30 L35 40 L45 30 L55 40" stroke="rgba(255,255,255,0.08)" stroke-width="2" fill="none"/></pattern></defs><rect width="100" height="100" fill="url(%23newsHero)"/></svg>');
    opacity: 0.3;
    animation: patternFloat 20s ease-in-out infinite;
}

.university-hero-section.news-hero .badge-icon {
    background: linear-gradient(45deg, var(--accent-color), var(--warning-color));
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.university-hero-section.news-hero .hero-main-title {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.university-hero-section.news-hero .hero-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

.university-hero-section.news-hero .hero-actions .btn-primary {
    background: linear-gradient(45deg, var(--accent-color), var(--warning-color));
    border: none;
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.university-hero-section.news-hero .hero-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
    color: white;
}

.university-hero-section.news-hero .hero-stats .stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.university-hero-section.news-hero .hero-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.university-hero-section.news-hero .hero-stats .stat-number {
    color: var(--accent-color);
    font-weight: 700;
}

.university-hero-section.news-hero .hero-stats .stat-label {
    color: rgba(255, 255, 255, 0.9);
}

/* Latest News Section */
.latest-news-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.latest-news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="latestNews" width="50" height="50" patternUnits="userSpaceOnUse"><rect width="50" height="50" fill="none"/><circle cx="25" cy="25" r="1" fill="rgba(44,90,160,0.03)"/><circle cx="10" cy="10" r="0.5" fill="rgba(91,193,172,0.03)"/><circle cx="40" cy="40" r="0.5" fill="rgba(44,90,160,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23latestNews)"/></svg>');
    opacity: 0.5;
    animation: patternFloat 25s ease-in-out infinite;
}

.latest-news-section .container {
    position: relative;
    z-index: 2;
}

.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(44, 90, 160, 0.05);
    height: 100%;
    position: relative;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.news-card:hover::before {
    transform: scaleX(1);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.news-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(44, 90, 160, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.news-date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    padding: 0.5rem;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.news-date span {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.news-date small {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.news-content {
    padding: 1.5rem;
}

.news-content h5 {
    margin-bottom: 1rem;
}

.news-content h5 a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-content h5 a:hover {
    color: var(--secondary-color);
}

.news-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-light);
}

.news-meta span {
    display: flex;
    align-items: center;
}

.news-meta i {
    margin-left: 0.25rem;
    color: var(--primary-color);
}

/* News Categories Section */
.news-categories-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.news-categories-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="newsCategories" width="40" height="40" patternUnits="userSpaceOnUse"><rect width="40" height="40" fill="none"/><rect x="10" y="15" width="4" height="20" fill="rgba(44,90,160,0.02)"/><rect x="20" y="10" width="4" height="25" fill="rgba(91,193,172,0.02)"/><rect x="30" y="20" width="4" height="15" fill="rgba(44,90,160,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23newsCategories)"/></svg>');
    opacity: 0.4;
    animation: patternFloat 30s ease-in-out infinite;
}

.news-categories-section .container {
    position: relative;
    z-index: 2;
}

.category-card {
    background: white;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(44, 90, 160, 0.05);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
}

.category-card h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.category-card:hover h5 {
    color: var(--secondary-color);
}

.category-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.news-count {
    background: linear-gradient(45deg, var(--accent-color), var(--warning-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="newsletter" width="60" height="60" patternUnits="userSpaceOnUse"><rect width="60" height="60" fill="none"/><path d="M15 15 L25 25 L35 15" stroke="rgba(255,255,255,0.1)" stroke-width="1" fill="none"/><path d="M45 45 L55 55 L65 45" stroke="rgba(255,255,255,0.08)" stroke-width="1" fill="none"/></pattern></defs><rect width="100" height="100" fill="url(%23newsletter)"/></svg>');
    opacity: 0.2;
    animation: patternFloat 35s ease-in-out infinite;
}

.newsletter-section .container {
    position: relative;
    z-index: 2;
}

.newsletter-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 3rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-container h3 {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.newsletter-container p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.newsletter-form .input-group {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form .form-control {
    border: none;
    border-radius: 25px 0 0 25px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.newsletter-form .form-control:focus {
    background: white;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.3);
}

.newsletter-form .btn {
    border-radius: 0 25px 25px 0;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--accent-color), var(--warning-color));
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.newsletter-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
    color: white;
}

/* Responsive Design for News */
@media (max-width: 768px) {
    .news-card {
        margin-bottom: 1.5rem;
    }
    
    .news-image {
        height: 180px;
    }
    
    .news-content {
        padding: 1rem;
    }
    
    .news-content h5 a {
        font-size: 1rem;
    }
    
    .category-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .category-card h5 {
        font-size: 1rem;
    }
    
    .newsletter-container {
        padding: 2rem 1.5rem;
    }
    
    .newsletter-container h3 {
        font-size: 1.5rem;
    }
    
    .newsletter-container p {
        font-size: 1rem;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .news-image {
        height: 160px;
    }
    
    .news-content h5 a {
        font-size: 0.95rem;
    }
    
    .news-content p {
        font-size: 0.85rem;
    }
    
    .category-card {
        padding: 1rem;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .category-card h5 {
        font-size: 0.95rem;
    }
    
    .category-card p {
        font-size: 0.85rem;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .newsletter-form .form-control,
    .newsletter-form .btn {
        border-radius: 25px;
        margin-bottom: 0.5rem;
    }
}

/* News Detail Page Styles */
.university-hero-section.news-detail-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

.university-hero-section.news-detail-hero .hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="newsDetailHero" width="70" height="70" patternUnits="userSpaceOnUse"><rect width="70" height="70" fill="none"/><path d="M10 15 L20 25 L30 15 L40 25 L50 15" stroke="rgba(255,255,255,0.1)" stroke-width="2" fill="none"/><path d="M15 35 L25 45 L35 35 L45 45 L55 35" stroke="rgba(255,255,255,0.08)" stroke-width="2" fill="none"/></pattern></defs><rect width="100" height="100" fill="url(%23newsDetailHero)"/></svg>');
    opacity: 0.25;
    animation: patternFloat 25s ease-in-out infinite;
}

.university-hero-section.news-detail-hero .hero-main-title {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 2.5rem;
    line-height: 1.2;
}

.university-hero-section.news-detail-hero .hero-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
}

.university-hero-section.news-detail-hero .hero-actions .btn-primary {
    background: linear-gradient(45deg, var(--accent-color), var(--warning-color));
    border: none;
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.university-hero-section.news-detail-hero .hero-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
    color: white;
}

.university-hero-section.news-detail-hero .hero-stats .stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.university-hero-section.news-detail-hero .hero-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.university-hero-section.news-detail-hero .hero-stats .stat-number {
    color: var(--accent-color);
    font-weight: 700;
}

.university-hero-section.news-detail-hero .hero-stats .stat-label {
    color: rgba(255, 255, 255, 0.9);
}

/* News Detail Section */
.news-detail-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.news-detail-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="newsDetail" width="60" height="60" patternUnits="userSpaceOnUse"><rect width="60" height="60" fill="none"/><circle cx="30" cy="30" r="1" fill="rgba(44,90,160,0.02)"/><circle cx="15" cy="15" r="0.5" fill="rgba(91,193,172,0.02)"/><circle cx="45" cy="45" r="0.5" fill="rgba(44,90,160,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23newsDetail)"/></svg>');
    opacity: 0.3;
    animation: patternFloat 30s ease-in-out infinite;
}

.news-detail-section .container {
    position: relative;
    z-index: 2;
}

.news-detail-container {
    background: white;
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(44, 90, 160, 0.05);
    position: relative;
    overflow: hidden;
}

.news-detail-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* News Detail Header */
.news-detail-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(44, 90, 160, 0.1);
}

.news-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.meta-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.meta-item span {
    font-weight: 500;
}

/* News Detail Content */
.news-detail-content {
    margin-bottom: 2rem;
}

.news-summary h3,
.news-additional-content h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    position: relative;
    padding-right: 1rem;
}

.news-summary h3::before,
.news-additional-content h3::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.news-summary p,
.news-additional-content p {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1rem;
    text-align: justify;
    margin-bottom: 1.5rem;
}

.news-highlight {
    margin: 2rem 0;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.05) 0%, rgba(91, 193, 172, 0.05) 100%);
    border: 1px solid rgba(44, 90, 160, 0.1);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    text-align: center;
}

.highlight-box i {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.highlight-box p {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.7;
    font-style: italic;
    margin: 0;
}

/* News Images Section */
.news-images-section {
    margin: 2rem 0;
}

.news-images-section h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    padding-right: 1rem;
}

.news-images-section h3::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.news-image-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.news-image-container img {
    width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

.news-image-container:hover img {
    transform: scale(1.05);
}

/* Share Section */
.news-share-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(44, 90, 160, 0.1);
}

.news-share-section h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.share-btn:hover {
    transform: translateY(-3px);
    color: white;
    text-decoration: none;
}

.share-btn.facebook {
    background: linear-gradient(45deg, #1877f2, #0d6efd);
}

.share-btn.twitter {
    background: linear-gradient(45deg, #1da1f2, #0ea5e9);
}

.share-btn.linkedin {
    background: linear-gradient(45deg, #0077b5, #0ea5e9);
}

.share-btn.whatsapp {
    background: linear-gradient(45deg, #25d366, #22c55e);
}

.share-btn i {
    font-size: 1.1rem;
}

/* Related News Section */
.related-news-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.related-news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="relatedNews" width="50" height="50" patternUnits="userSpaceOnUse"><rect width="50" height="50" fill="none"/><rect x="10" y="20" width="3" height="15" fill="rgba(44,90,160,0.02)"/><rect x="20" y="15" width="3" height="20" fill="rgba(91,193,172,0.02)"/><rect x="30" y="25" width="3" height="10" fill="rgba(44,90,160,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23relatedNews)"/></svg>');
    opacity: 0.4;
    animation: patternFloat 35s ease-in-out infinite;
}

.related-news-section .container {
    position: relative;
    z-index: 2;
}

.related-news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(44, 90, 160, 0.05);
    height: 100%;
    position: relative;
}

.related-news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.related-news-card:hover::before {
    transform: scaleX(1);
}

.related-news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.related-news-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.related-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.related-news-card:hover .related-news-image img {
    transform: scale(1.1);
}

.related-news-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

.related-news-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(44, 90, 160, 0.9);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.related-news-content {
    padding: 1.5rem;
}

.related-news-content h5 {
    margin-bottom: 1rem;
}

.related-news-content h5 a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.related-news-content h5 a:hover {
    color: var(--secondary-color);
}

.related-news-content p {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.related-news-meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

.related-news-meta span {
    display: flex;
    align-items: center;
}

.related-news-meta i {
    margin-left: 0.25rem;
    color: var(--primary-color);
}

/* Responsive Design for News Detail */
@media (max-width: 768px) {
    .university-hero-section.news-detail-hero .hero-main-title {
        font-size: 2rem;
    }
    
    .news-detail-container {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .news-meta-info {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .meta-item {
        font-size: 0.85rem;
    }
    
    .news-summary h3,
    .news-additional-content h3,
    .news-images-section h3 {
        font-size: 1.2rem;
    }
    
    .news-summary p,
    .news-additional-content p {
        font-size: 0.95rem;
    }
    
    .highlight-box {
        padding: 1.5rem;
    }
    
    .highlight-box p {
        font-size: 1rem;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 200px;
        justify-content: center;
    }
    
    .related-news-image {
        height: 150px;
    }
    
    .related-news-content {
        padding: 1rem;
    }
    
    .related-news-content h5 a {
        font-size: 0.95rem;
    }
    
    .related-news-content p {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .university-hero-section.news-detail-hero .hero-main-title {
        font-size: 1.5rem;
    }
    
    .university-hero-section.news-detail-hero .hero-description {
        font-size: 1rem;
    }
    
    .news-detail-container {
        padding: 1.5rem 1rem;
        border-radius: 15px;
    }
    
    .news-summary h3,
    .news-additional-content h3,
    .news-images-section h3 {
        font-size: 1.1rem;
    }
    
    .news-summary p,
    .news-additional-content p {
        font-size: 0.9rem;
    }
    
    .highlight-box {
        padding: 1rem;
    }
    
    .highlight-box p {
        font-size: 0.95rem;
    }
    
    .share-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .related-news-image {
        height: 120px;
    }
    
    .related-news-content h5 a {
        font-size: 0.9rem;
    }
    
    .related-news-content p {
        font-size: 0.75rem;
    }
}

/* Modern Navigation Styles */
.modern-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(44, 90, 160, 0.1);
    padding: 0.3rem 0;
    transition: all 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.modern-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0.2rem 0;
}

/* Brand Styling */
.modern-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.modern-brand:hover {
    transform: translateY(-2px);
}

.brand-logo {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 8px;
    padding: 0.2rem;
}

.brand-logo img {
    max-width: 100%;
    height: auto;
    filter: none;
    background: transparent;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
}

.brand-subtitle {
    color: var(--text-light);
    font-size: 0.6rem;
    font-weight: 500;
    opacity: 0.8;
}

/* Mobile Toggle */
.modern-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    background: transparent;
    transition: all 0.3s ease;
}

.modern-toggler:focus {
    box-shadow: none;
    outline: none;
}

.modern-toggler:hover {
    background: rgba(44, 90, 160, 0.1);
}

.toggler-icon {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.modern-toggler[aria-expanded="true"] .toggler-icon:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.modern-toggler[aria-expanded="true"] .toggler-icon:nth-child(2) {
    opacity: 0;
}

.modern-toggler[aria-expanded="true"] .toggler-icon:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation Menu */
.modern-nav {
    margin-right: auto;
    margin-left: 2rem;
    gap: 0.5rem;
}

.modern-nav .nav-item {
    position: relative;
}

.modern-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem !important;
    color: var(--text-dark) !important;
    font-weight: 500;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.modern-link:hover::before,
.modern-link.active::before {
    opacity: 1;
}

.modern-link:hover,
.modern-link.active {
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.2);
}

.nav-icon {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modern-link:hover .nav-icon,
.modern-link.active .nav-icon {
    transform: scale(1.1);
}

.nav-text {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Language Selector */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-form {
    margin: 0;
}

.language-selector {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.3rem 0.4rem;
    font-size: 0.65rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 50px;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 16 16"><path d="M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.3rem center;
    background-size: 0.6rem;
    padding-right: 1.5rem;
    box-shadow: 0 2px 6px rgba(44, 90, 160, 0.15);
    pointer-events: auto;
    position: relative;
    z-index: 1000;
}

.language-selector:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(44, 90, 160, 0.25);
}

.language-selector:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(91, 193, 172, 0.3);
}

.language-selector option {
    background: white;
    color: var(--text-dark);
    padding: 0.5rem;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .modern-navbar {
        padding: 0.5rem 0;
    }
    
    .modern-nav {
        margin: 0.75rem 0;
        gap: 0.25rem;
    }
    
    .modern-link {
        padding: 0.8rem !important;
        border-radius: 8px;
        margin: 0.25rem 0;
    }
    
    .nav-actions {
        margin-top: 0.75rem;
        justify-content: center;
    }
    
    .language-selector {
        width: 100%;
        max-width: 150px;
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .brand-logo {
        width: 35px;
        height: 35px;
    }
    
    .brand-title {
        font-size: 0.9rem;
    }
    
    .brand-subtitle {
        font-size: 0.55rem;
    }
}

@media (max-width: 576px) {
    .modern-brand {
        gap: 0.6rem;
    }
    
    .brand-logo {
        width: 30px;
        height: 30px;
    }
    
    .brand-title {
        font-size: 0.8rem;
    }
    
    .brand-subtitle {
        font-size: 0.5rem;
    }
    
    .modern-link {
        padding: 0.6rem !important;
        font-size: 0.85rem;
    }
    
    .nav-icon {
        font-size: 0.9rem;
    }
    
    .language-selector {
        padding: 0.35rem 0.5rem;
        font-size: 0.7rem;
        min-width: 60px;
    }
}

/* RTL Support */
[dir="rtl"] .modern-nav {
    margin-right: 2rem;
    margin-left: auto;
}

[dir="rtl"] .language-selector {
    background-position: left 0.75rem center;
    padding-left: 2.5rem;
    padding-right: 1.5rem;
}

[dir="rtl"] .modern-link {
    flex-direction: row-reverse;
}

/* Animation for navbar on scroll */
@keyframes navbarSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modern-navbar.scrolled {
    animation: navbarSlideDown 0.3s ease;
}

/* Hover effects for nav items */
.modern-nav .nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.modern-nav .nav-item:hover::after {
    width: 80%;
}

/* Active state for current page */
.modern-link.active {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white !important;
}

.modern-link.active .nav-icon {
    color: white;
}

/* Our Story Section Styles */
.our-story-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.our-story-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="storyPattern" width="60" height="60" patternUnits="userSpaceOnUse"><rect width="60" height="60" fill="none"/><circle cx="30" cy="30" r="2" fill="rgba(44,90,160,0.03)"/><circle cx="15" cy="15" r="1" fill="rgba(91,193,172,0.03)"/><circle cx="45" cy="45" r="1" fill="rgba(44,90,160,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23storyPattern)"/></svg>');
    opacity: 0.4;
    animation: patternFloat 30s ease-in-out infinite;
}

.our-story-section .container {
    position: relative;
    z-index: 2;
}

/* Story Image Container */
.story-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.story-image-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.story-image {
    position: relative;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: auto;
    transition: all 0.5s ease;
}

.story-image-container:hover .story-image img {
    transform: scale(1.05);
}

/* Story Overlay */
.story-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(44, 90, 160, 0.8), rgba(91, 193, 172, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.story-image-container:hover .story-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
}

.overlay-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.overlay-content span {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Story Badge */
.story-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
}

.badge-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.badge-text {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* Story Content */
.story-content {
    padding: 2rem 0;
}

/* Story Header */
.story-header {
    margin-bottom: 2rem;
    text-align: center;
}

/* Story Description */
.story-description {
    margin-bottom: 2rem;
}

.story-lead {
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.story-text {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Story Features */
.story-features {
    margin-bottom: 2rem;
}

.story-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.story-feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.feature-content h5 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Story Stats */
.story-stats {
    margin-bottom: 2rem;
}

.story-stats .stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.story-stats .stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.story-stats .stat-number {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.story-stats .stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Story Action */
.story-action .btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(44, 90, 160, 0.3);
}

.story-action .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(44, 90, 160, 0.4);
    color: white;
}

/* RTL Support */
[dir="rtl"] .story-badge {
    right: auto;
    left: 20px;
}

[dir="rtl"] .story-feature-item {
    flex-direction: row-reverse;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .story-lead {
        font-size: 1.1rem;
    }
    
    .story-feature-item {
        padding: 1rem;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .story-stats .stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .story-lead {
        font-size: 1rem;
    }
    
    .story-text {
        font-size: 0.9rem;
    }
    
    .story-feature-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .feature-icon {
        margin: 0 auto 1rem;
    }
    
    .story-badge {
        top: 15px;
        right: 15px;
        padding: 0.75rem;
    }
    
    .badge-number {
        font-size: 1.2rem;
    }
    
    .badge-text {
        font-size: 0.7rem;
    }
    
    .story-action .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* About Us Page Styles */
.university-hero-section.about-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Vision & Mission Cards */
.vision-mission-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vision-mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.vision-mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.vision-mission-card .card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.vision-mission-card:hover .card-icon {
    transform: scale(1.1);
}

.vision-mission-card h3 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.vision-mission-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* Value Cards */
.value-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(44, 90, 160, 0.05), rgba(91, 193, 172, 0.05));
    opacity: 0;
    transition: all 0.3s ease;
}

.value-card:hover::before {
    opacity: 1;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, var(--accent-color), var(--warning-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.8rem;
    position: relative;
    z-index: 2;
}

.value-card h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.value-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 55%;
    margin-right: 0;
}

.timeline-content h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Program Cards */
.program-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.program-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.program-card:hover .program-icon {
    transform: scale(1.1);
}

.program-card h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.program-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Facility Cards */
.facility-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.facility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.facility-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, var(--accent-color), var(--warning-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.facility-card:hover .facility-icon {
    transform: scale(1.1);
}

.facility-card h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.facility-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Statistics Cards */
.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* Administrative Structure */
.admin-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 100%;
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.director-card {
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.05), rgba(91, 193, 172, 0.05));
    border: 2px solid var(--primary-color);
}

.admin-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.admin-card:hover .admin-avatar {
    transform: scale(1.1);
}

.admin-info h3,
.admin-info h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.admin-info h3 {
    font-size: 1.5rem;
}

.admin-info h4 {
    font-size: 1.2rem;
}

.admin-name {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.admin-description {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Contact Cards */
.contact-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
}

.contact-card h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* RTL Support */
[dir="rtl"] .timeline-item:nth-child(odd) .timeline-content {
    margin-left: 55%;
    margin-right: 0;
}

[dir="rtl"] .timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: 55%;
}

[dir="rtl"] .admin-card {
    flex-direction: row-reverse;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-marker {
        left: 20px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        margin-right: 0 !important;
    }
    
    .admin-card {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-avatar {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .vision-mission-card {
        padding: 1.5rem;
    }
    
    .value-card,
    .program-card,
    .facility-card,
    .contact-card {
        padding: 1.5rem;
    }
    
    .admin-card {
        padding: 1.5rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .timeline-content {
        padding: 1rem;
    }
}

/* Institute Statistics Section */
.institute-stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.institute-stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="statsPattern" width="40" height="40" patternUnits="userSpaceOnUse"><rect width="40" height="40" fill="none"/><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="30" cy="30" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23statsPattern)"/></svg>');
    opacity: 0.3;
    animation: patternFloat 20s ease-in-out infinite;
}

.institute-stats-section .container {
    position: relative;
    z-index: 2;
}

.institute-stat-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.institute-stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.institute-stat-card .stat-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.institute-stat-card:hover .stat-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.institute-stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.institute-stat-card .stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* Facility Cards Large */
.facility-card-large {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.facility-card-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.facility-card-large:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.facility-content {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.facility-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--accent-color), var(--warning-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.facility-card-large:hover .facility-icon {
    transform: scale(1.1);
}

.facility-info h4 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.facility-info p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.facility-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Administrative Structure Enhanced */
.admin-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.admin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: all 0.3s ease;
}

.admin-card:hover::before {
    opacity: 1;
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.director-card {
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.05), rgba(91, 193, 172, 0.05));
    border: 2px solid var(--primary-color);
}

.director-card::before {
    opacity: 1;
}

.admin-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.admin-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.admin-card:hover .admin-avatar {
    transform: scale(1.1);
}

.admin-info h3,
.admin-info h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.admin-info h3 {
    font-size: 1.5rem;
}

.admin-info h4 {
    font-size: 1.2rem;
}

.admin-name {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.admin-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.admin-contact {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(44, 90, 160, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.contact-link:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* RTL Support for Facilities */
[dir="rtl"] .facility-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .admin-card {
    flex-direction: row-reverse;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .facility-content {
        flex-direction: column;
        text-align: center;
    }
    
    .facility-icon {
        margin: 0 auto 1rem;
    }
    
    .admin-card {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-avatar {
        margin-bottom: 1rem;
    }
    
    .admin-contact {
        justify-content: center;
    }
    
    .institute-stat-card {
        padding: 1.5rem;
    }
    
    .institute-stat-card .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .facility-card-large {
        padding: 1.5rem;
    }
    
    .admin-card {
        padding: 1.5rem;
    }
    
    .facility-info h4 {
        font-size: 1.1rem;
    }
    
    .admin-info h3 {
        font-size: 1.3rem;
    }
    
    .admin-info h4 {
        font-size: 1rem;
    }
    
    .institute-stat-card {
        padding: 1rem;
    }
    
    .institute-stat-card .stat-number {
        font-size: 1.8rem;
    }
    
    .institute-stat-card .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

/* Institute Studio Page Styles */
.university-hero-section.studio-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Studio Introduction Section */
.studio-intro-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.studio-intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="studioPattern" width="50" height="50" patternUnits="userSpaceOnUse"><rect width="50" height="50" fill="none"/><circle cx="25" cy="25" r="1" fill="rgba(44,90,160,0.03)"/><circle cx="10" cy="10" r="0.5" fill="rgba(91,193,172,0.03)"/><circle cx="40" cy="40" r="0.5" fill="rgba(44,90,160,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23studioPattern)"/></svg>');
    opacity: 0.4;
    animation: patternFloat 25s ease-in-out infinite;
}

.studio-intro-section .container {
    position: relative;
    z-index: 2;
}

.studio-intro-content h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.studio-intro-content .section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.intro-text p {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.studio-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-item .feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--accent-color), var(--warning-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
}

.feature-content h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Studio Intro Visual */
.studio-intro-visual {
    position: relative;
    height: 400px;
}

.visual-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.visual-item {
    position: absolute;
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: float 6s ease-in-out infinite;
}

.visual-item-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.visual-item-2 {
    top: 60%;
    right: 20%;
    animation-delay: 1.5s;
}

.visual-item-3 {
    bottom: 20%;
    left: 30%;
    animation-delay: 3s;
}

.visual-item-4 {
    top: 40%;
    right: 40%;
    animation-delay: 4.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Media Filter */
.media-filter {
    text-align: center;
    margin-bottom: 3rem;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* Creative Media Grid */
.creative-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.media-item {
    opacity: 1;
    transition: all 0.3s ease;
}

.media-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.media-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    height: 100%;
}

.media-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.media-preview {
    position: relative;
    height: 200px;
    background: linear-gradient(45deg, rgba(44, 90, 160, 0.3), rgba(91, 193, 172, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.video-preview,
.image-preview {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-type-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    padding: 0.3rem 0.6rem;
    border-radius: 50%;
    font-size: 0.9rem;
}

.media-info {
    padding: 1.5rem;
}

.media-info h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.media-info p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.media-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.media-actions .btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.media-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.media-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.meta-item {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.meta-item.featured {
    color: #ffd700;
}

/* No Media Section */
.no-media-section {
    text-align: center;
    padding: 4rem 0;
}

.no-media-content {
    color: white;
}

.no-media-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.no-media-content h3 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.no-media-content p {
    opacity: 0.8;
    font-size: 1.1rem;
}

/* Pagination Styles */
.pagination-container {
    margin-top: 3rem;
}

.pagination {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.pagination .page-item {
    margin: 0 0.2rem;
}

.pagination .page-link {
    background: transparent;
    border: none;
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.pagination .page-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.pagination .page-item.disabled .page-link {
    color: rgba(255, 255, 255, 0.4);
    background: transparent;
}

.pagination .page-link i {
    font-size: 0.9rem;
}

.pagination-info {
    margin-top: 1rem;
}

.pagination-info small {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Studio Statistics */
.studio-stat-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.studio-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.studio-stat-card .stat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, var(--accent-color), var(--warning-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.studio-stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.studio-stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.studio-stat-card .stat-label {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
}

/* RTL Support */
[dir="rtl"] .feature-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .media-type-badge {
    right: auto;
    left: 1rem;
}

[dir="rtl"] .featured-badge {
    left: auto;
    right: 1rem;
}

[dir="rtl"] .pagination .page-link i.bi-chevron-right {
    transform: scaleX(-1);
}

[dir="rtl"] .pagination .page-link i.bi-chevron-left {
    transform: scaleX(-1);
}

[dir="rtl"] .pagination .page-link i.bi-chevron-double-right {
    transform: scaleX(-1);
}

[dir="rtl"] .pagination .page-link i.bi-chevron-double-left {
    transform: scaleX(-1);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .creative-media-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .studio-intro-content h2 {
        font-size: 2rem;
    }
    
    .visual-item {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .creative-media-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
    }
    
    .media-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .studio-intro-content h2 {
        font-size: 1.8rem;
    }
    
    .intro-text p {
        font-size: 1rem;
    }
    
    .feature-item {
        padding: 1rem;
    }
    
    .feature-item .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .studio-stat-card {
        padding: 1.5rem;
    }
    
    .studio-stat-card .stat-number {
        font-size: 2rem;
    }
    
    .pagination {
        padding: 0.3rem;
        border-radius: 30px;
    }
    
    .pagination .page-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .pagination .page-item {
        margin: 0 0.1rem;
    }
    
    .pagination-info small {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Academic Calendar Page Styles */
.university-hero-section.calendar-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Calendar Overview Section */
.calendar-overview-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.calendar-overview-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="calendarPattern" width="50" height="50" patternUnits="userSpaceOnUse"><rect width="50" height="50" fill="none"/><circle cx="25" cy="25" r="1" fill="rgba(44,90,160,0.03)"/><rect x="10" y="10" width="2" height="2" fill="rgba(91,193,172,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23calendarPattern)"/></svg>');
    opacity: 0.4;
    animation: patternFloat 30s ease-in-out infinite;
}

.calendar-overview-section .container {
    position: relative;
    z-index: 2;
}

.overview-content h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.overview-content .section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.overview-text p {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.calendar-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.calendar-features .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.calendar-features .feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.calendar-features .feature-item .feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--accent-color), var(--warning-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.calendar-features .feature-item:hover .feature-icon {
    transform: scale(1.1);
}

.calendar-features .feature-content h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.calendar-features .feature-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Calendar Visual */
.calendar-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-calendar {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 350px;
    width: 100%;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f3f4;
}

.calendar-header h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
}

.calendar-controls {
    display: flex;
    gap: 0.5rem;
}

.control-btn {
    width: 30px;
    height: 30px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.calendar-grid-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.mini-month {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.mini-month:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

.month-name {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.month-dots {
    display: flex;
    justify-content: center;
    gap: 0.2rem;
}

.event-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.event-dot.academic {
    background: #2c5aa0;
}

.event-dot.cultural {
    background: #28a745;
}

.event-dot.holiday {
    background: #ffc107;
}

/* Year Selector Modern */
.year-selector-modern {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.year-controls {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 1rem 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.year-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.year-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.current-year {
    margin: 0 2rem;
    text-align: center;
    color: white;
}

.year-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
}

.current-year small {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Modern Calendar Grid */
.modern-calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.modern-month-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.modern-month-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.month-header-modern {
    background: linear-gradient(45deg, rgba(44, 90, 160, 0.3), rgba(91, 193, 172, 0.3));
    padding: 1.5rem;
    text-align: center;
    position: relative;
    color: white;
}

.month-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.month-header-modern h4 {
    margin: 0;
    font-weight: 700;
    font-size: 1.3rem;
}

.month-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-weight: 700;
    font-size: 0.8rem;
}

.month-events-modern {
    padding: 1.5rem;
    min-height: 200px;
}

.modern-event-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.modern-event-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.event-date-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.event-details h6 {
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.event-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.event-type-badge.academic {
    background: rgba(44, 90, 160, 0.2);
    color: #2c5aa0;
}

.event-type-badge.exam {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.event-type-badge.cultural {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.event-type-badge.holiday {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.event-type-badge.graduation {
    background: rgba(111, 66, 193, 0.2);
    color: #6f42c1;
}

.event-type-badge.other {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
}

.event-location {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin: 0;
}

.important-badge {
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    color: #333;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.no-events-month {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 2rem;
    font-style: italic;
}

.no-events-month i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Upcoming Events Timeline */
.upcoming-events-timeline {
    position: relative;
}

.upcoming-events-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.timeline-event-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 80px;
}

.timeline-marker {
    position: absolute;
    left: 10px;
    top: 20px;
    z-index: 2;
}

.marker-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.marker-icon.academic {
    background: linear-gradient(45deg, #2c5aa0, #4a90e2);
}

.marker-icon.exam {
    background: linear-gradient(45deg, #dc3545, #ff6b6b);
}

.marker-icon.cultural {
    background: linear-gradient(45deg, #28a745, #5bc85a);
}

.marker-icon.holiday {
    background: linear-gradient(45deg, #ffc107, #ffed4e);
}

.marker-icon.graduation {
    background: linear-gradient(45deg, #6f42c1, #9c68d6);
}

.marker-icon.other {
    background: linear-gradient(45deg, #6c757d, #8e9194);
}

.timeline-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.event-card-modern {
    padding: 2rem;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.event-date-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.date-main {
    text-align: center;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem;
    border-radius: 15px;
    min-width: 80px;
}

.date-main .day {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.date-main .month {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
}

.date-details {
    color: var(--text-light);
}

.weekday {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.year {
    font-size: 0.9rem;
    opacity: 0.7;
}

.importance-badge {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.event-body h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.event-body .event-description {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.event-meta-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-label {
    font-weight: 600;
    color: var(--text-light);
    min-width: 60px;
}

.meta-value {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-dark);
}

.meta-value.event-type-academic {
    color: #2c5aa0;
}

.meta-value.event-type-exam {
    color: #dc3545;
}

.meta-value.event-type-cultural {
    color: #28a745;
}

.meta-value.event-type-holiday {
    color: #ffc107;
}

.meta-value.event-type-graduation {
    color: #6f42c1;
}

.meta-value.event-type-other {
    color: #6c757d;
}

/* No Events Modern */
.no-events-modern {
    text-align: center;
    padding: 3rem;
}

.no-events-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.no-events-modern h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.no-events-modern p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Calendar Statistics */
.calendar-stat-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    height: 100%;
}

.calendar-stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.stat-icon-modern {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.stat-icon-modern.upcoming {
    background: linear-gradient(45deg, #28a745, #5bc85a);
}

.stat-icon-modern.important {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
}

.stat-icon-modern.holiday {
    background: linear-gradient(45deg, #ffc107, #ffed4e);
    color: #333;
}

.calendar-stat-card:hover .stat-icon-modern {
    transform: scale(1.1);
}

.stat-content .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-content .stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Legend */
.legend-container {
    text-align: center;
}

.legend-items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.legend-item-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.legend-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.legend-icon.academic {
    background: linear-gradient(45deg, #2c5aa0, #4a90e2);
}

.legend-icon.exam {
    background: linear-gradient(45deg, #dc3545, #ff6b6b);
}

.legend-icon.cultural {
    background: linear-gradient(45deg, #28a745, #5bc85a);
}

.legend-icon.holiday {
    background: linear-gradient(45deg, #ffc107, #ffed4e);
    color: #333;
}

.legend-icon.graduation {
    background: linear-gradient(45deg, #6f42c1, #9c68d6);
}

.legend-icon.other {
    background: linear-gradient(45deg, #6c757d, #8e9194);
}

.legend-text {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

/* RTL Support for Calendar */
[dir="rtl"] .calendar-features .feature-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .timeline-event-item {
    padding-left: 0;
    padding-right: 80px;
}

[dir="rtl"] .upcoming-events-timeline::before {
    left: auto;
    right: 30px;
}

[dir="rtl"] .timeline-marker {
    left: auto;
    right: 10px;
}

[dir="rtl"] .modern-event-item:hover {
    transform: translateX(-5px);
}

[dir="rtl"] .event-date-info {
    flex-direction: row-reverse;
}

/* Responsive Design for Calendar */
@media (max-width: 991.98px) {
    .modern-calendar-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .overview-content h2 {
        font-size: 2rem;
    }
    
    .visual-calendar {
        max-width: 300px;
    }
    
    .calendar-grid-mini {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .timeline-event-item {
        padding-left: 60px;
    }
    
    [dir="rtl"] .timeline-event-item {
        padding-right: 60px;
    }
}

@media (max-width: 768px) {
    .event-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .event-date-info {
        flex-direction: row;
        justify-content: center;
    }
    
    .importance-badge {
        align-self: center;
    }
    
    .legend-items {
        flex-direction: column;
        align-items: center;
    }
    
    .year-controls {
        padding: 0.8rem 1.5rem;
    }
    
    .current-year {
        margin: 0 1rem;
    }
    
    .year-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .modern-calendar-grid {
        grid-template-columns: 1fr;
    }
    
    .overview-content h2 {
        font-size: 1.8rem;
    }
    
    .overview-text p {
        font-size: 1rem;
    }
    
    .calendar-features .feature-item {
        padding: 1rem;
    }
    
    .calendar-features .feature-item .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .event-card-modern {
        padding: 1.5rem;
    }
    
    .timeline-event-item {
        padding-left: 0;
        margin-bottom: 2rem;
    }
    
    [dir="rtl"] .timeline-event-item {
        padding-right: 0;
    }
    
    .upcoming-events-timeline::before {
        display: none;
    }
    
    .timeline-marker {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .date-main {
        min-width: 60px;
        padding: 0.8rem;
    }
    
    .date-main .day {
        font-size: 1.5rem;
    }
    
    .calendar-stat-card {
        padding: 1.5rem;
    }
    
    .stat-icon-modern {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .stat-content .stat-number {
        font-size: 2rem;
    }
}
