/* Variables */
:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --accent-color: #ffdd59;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --header-bg: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    --footer-bg: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    --section-title-color: #2c3e50;
    --section-title-underline: linear-gradient(to right, #3498db, #2980b9);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 1.2rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    font-size: 2rem;
    color: #ffd700;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-abbr {
    background: #ffdd59;
    color: #2980b9;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.logo:hover .logo-abbr {
    transform: translateY(-2px) rotate(2deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
    animation: fadeIn 0.3s ease-out;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    padding: 140px 0 80px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: url('https://via.placeholder.com/1200x800/2980b9/ffffff?text=') center/cover no-repeat;
    opacity: 0.1;
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInDown 1s ease-out;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-content .highlight {
    color: #ffdd59;
    position: relative;
    display: inline-block;
}

.hero-content .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: #ffdd59;
    border-radius: 3px;
    transform: translateY(5px);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    z-index: 0;
}

.hero-shapes .shape-1 {
    width: 150px;
    height: 150px;
    top: -30px;
    right: 10%;
    animation: float 8s ease-in-out infinite;
}

.hero-shapes .shape-2 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 10%;
    animation: float 6s ease-in-out infinite 1s;
}

.hero-shapes .shape-3 {
    width: 60px;
    height: 60px;
    top: 30%;
    left: 20%;
    animation: float 7s ease-in-out infinite 2s;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.date-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 25px;
    border-radius: 30px;
    display: inline-flex;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-out 0.9s both;
    transition: all 0.3s ease;
}

.date-time:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.date-time i {
    color: #ffdd59;
}

/* Main Content */
.main {
    padding: 60px 0;
}

/* Section Titles */
.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3.5rem;
    color: #2c3e50;
    position: relative;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 50%;
    transform: translateX(50%);
    width: 120px;
    height: 2px;
    background: rgba(52, 152, 219, 0.2);
    border-radius: 2px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #3498db, #2980b9);
    border-radius: 2px;
    animation: pulse-width 2s infinite;
}

@keyframes pulse-width {
    0% { width: 60px; }
    50% { width: 80px; }
    100% { width: 60px; }
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.news-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.news-card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 20px 40px rgba(41, 128, 185, 0.2);
    border-color: rgba(52, 152, 219, 0.3);
}

.news-card.featured {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 15px 40px rgba(41, 128, 185, 0.25);
    transform: translateY(0);
}

.news-card.featured:hover {
    transform: translateY(-15px);
}

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

.news-image img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    background-color: #f8f9fa;
    transition: transform 0.3s ease;
    border-bottom: 3px solid #3498db;
}

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

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.news-content {
    padding: 2.5rem;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
}

.news-card.featured .news-content {
    padding: 3rem;
}

.news-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

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

.news-title {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.4;
}

.news-card.featured .news-title {
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.news-card.featured .news-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #3498db, #2980b9);
    border-radius: 2px;
}

.news-excerpt {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.news-card.featured .news-excerpt {
    font-size: 1.1rem;
    line-height: 1.9;
    max-width: 90%;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #2980b9;
    transform: translateX(-5px);
}

/* Announcements Section */
.announcements-section {
    margin-bottom: 4rem;
}

.announcements-container {
    display: grid;
    gap: 1.5rem;
}

.announcement-item {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-bottom: 4px solid transparent;
}

.announcement-item:hover {
    transform: translateX(-8px) translateY(-5px);
    box-shadow: 0 15px 35px rgba(41, 128, 185, 0.15);
    border-bottom-color: #3498db;
}

.announcement-item.urgent {
    border-right: 4px solid #e74c3c;
}

.announcement-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.announcement-item.urgent .announcement-icon {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.announcement-item:not(.urgent) .announcement-icon {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.announcement-content h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.announcement-content p {
    color: #666;
    margin-bottom: 0.5rem;
}

.announcement-date {
    font-size: 0.9rem;
    color: #999;
}

/* Activities Timeline */
.activities-section {
    margin-bottom: 4rem;
}

.activities-timeline {
    position: relative;
    padding-right: 30px;
}

.activities-timeline::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    right: -31px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: 3px solid white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.timeline-date {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    min-width: 80px;
}

.timeline-date .date {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

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

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    flex: 1;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.timeline-content h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.timeline-content p {
    color: #666;
    margin-bottom: 0.5rem;
}

.timeline-content .time {
    font-size: 0.9rem;
    color: #3498db;
    font-weight: 500;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: white;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #3498db, #2980b9, #3498db);
    background-size: 200% 100%;
    animation: gradient-flow 3s ease infinite;
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.footer-bottom {
    text-align: center;
    color: #ecf0f1;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-shapes .shape-1 {
        width: 100px;
        height: 100px;
    }
    
    .hero-shapes .shape-2,
    .hero-shapes .shape-3 {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        position: relative;
        padding: 0 10px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .nav {
        position: static;
    }

    .nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
        z-index: 100;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
        text-align: center;
    }

    .nav ul.active {
        display: flex;
    }
    
    .nav ul li {
        margin: 10px 0;
    }
    
    .nav-link {
        display: inline-block;
        padding: 10px 20px;
        width: 100%;
    }

    .menu-toggle {
        display: block;
        font-size: 1.8rem;
        cursor: pointer;
        z-index: 101;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-badge {
        padding: 0.4rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .date-time {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card.featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
    
    .news-image img {
        height: 200px;
    }

    .announcement-item {
        flex-direction: row;
        text-align: right;
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .logo i {
        font-size: 1.5rem;
    }
    
    .logo h1 {
        font-size: 1rem;
    }
    
    .logo-abbr {
        font-size: 1rem;
        padding: 2px 6px;
    }

    .hero {
        padding: 100px 0 40px;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-content .highlight::after {
        height: 4px;
        transform: translateY(3px);
    }
    
    .hero-content p {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .news-content {
        padding: 1.2rem;
    }
    
    .news-title {
        font-size: 1.1rem;
    }
    
    .news-excerpt {
        font-size: 0.9rem;
    }

    .announcement-item {
        padding: 1.2rem;
        gap: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .announcement-icon {
        margin: 0 auto;
    }
    
    .date-time {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
    
    .hero-shapes {
        display: none;
    }
}

/* تم إزالة أنماط زر الوضع الداكن */

/* Subjects Section */
.subjects-section {
    margin-bottom: 4rem;
    padding-top: 2rem;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.subject-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.subject-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    transition: height 0.3s ease;
}

.subject-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.subject-card:hover::before {
    height: 10px;
}

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

.subject-card h3 {
    color: var(--section-title-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.subject-card p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    opacity: 0.8;
    transition: color 0.3s ease;
}

.subject-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.subject-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Talents Section */
.talents-section {
    margin-bottom: 4rem;
    position: relative;
    padding-top: 2rem;
}

.talents-slider {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 1rem 0.5rem;
    scroll-behavior: smooth;
    scrollbar-width: none;
    position: relative;
}

.talents-slider::-webkit-scrollbar {
    display: none;
}

.talent-card {
    min-width: 350px;
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    flex: 1;
}

.talent-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.talent-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.talent-card:hover .talent-image img {
    transform: scale(1.05);
}

.talent-content {
    padding: 1.5rem;
}

.talent-content h3 {
    color: var(--section-title-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.talent-author {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.talent-excerpt {
    color: var(--text-color);
    line-height: 1.6;
    transition: color 0.3s ease;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.prev-btn,
.next-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: all 0.3s ease;
}

.prev-btn:hover,
.next-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Honor Board Section */
.honor-section {
    margin-bottom: 4rem;
    padding-top: 2rem;
}

.honor-board {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.honor-student {
    width: 200px;
    text-align: center;
    transition: all 0.3s ease;
}

.honor-student:hover {
    transform: translateY(-10px);
}

.honor-avatar {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
}

.honor-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px var(--shadow-color);
}

.honor-student:hover .honor-avatar img {
    border-color: var(--accent-color);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.honor-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 5px 10px var(--shadow-color);
}

.honor-student h3 {
    color: var(--section-title-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.honor-student p {
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Login Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(50px);
    opacity: 0;
    animation: slideUp 0.5s ease-out forwards;
    transition: background-color 0.3s ease;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-content h2 {
    color: var(--section-title-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
    transition: color 0.3s ease;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-color);
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.login-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    font-family: 'Tajawal', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

/* Animation Classes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.news-card,
.announcement-item,
.timeline-item,
.subject-card,
.talent-card,
.honor-student {
    animation: fadeInUp 0.6s ease-out;
}

/* User Controls */
.user-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

#header-login-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

#header-login-btn::before {
    content: '\f007';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

#header-login-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.logged-in-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

#open-chat-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

#open-chat-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ffdd59;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.1);
}

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

/* News Actions */
.news-actions {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.comment-btn, .share-btn {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
    color: #3498db;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.comment-btn:hover, .share-btn:hover {
    color: #2980b9;
    transform: translateY(-2px);
}

/* Comments Section */
.comments-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.comments-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.comments-list {
    margin-bottom: 1.5rem;
}

.comment {
    display: flex;
    gap: 15px;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.5s ease-out;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.comment-content {
    flex: 1;
}

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

.delete-comment {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 2px 5px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.delete-comment:hover {
    opacity: 1;
}

.comment-author {
    font-weight: 700;
    color: #2c3e50;
}

.comment-date {
    font-size: 0.8rem;
    color: #999;
}

.comment-text {
    line-height: 1.6;
    color: #555;
}

.add-comment textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    resize: vertical;
    min-height: 80px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.add-comment textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.add-comment button {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-comment button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.login-prompt {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 10px;
}

.login-prompt a {
    color: #3498db;
    text-decoration: none;
    font-weight: 700;
}

.login-prompt a:hover {
    text-decoration: underline;
}

/* Auth Links */
.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-links a {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.auth-links a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* User Profile */
.user-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 2rem;
}

#user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3498db;
}

#user-fullname {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #2c3e50;
}

#user-username {
    color: #666;
    font-size: 1rem;
}

.user-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
}

.edit-profile-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.edit-profile-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.logout-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.2);
}

/* Profile Edit Modal */
.profile-edit-content {
    max-width: 600px;
}

.avatar-section {
    margin: 2rem 0;
}

.avatar-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #2c3e50;
}

.avatar-preview {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #3498db;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.avatar-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.avatar-option {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.avatar-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.active {
    border-color: #333;
    transform: scale(1.1);
}

.avatar-image-input,
.avatar-gravatar-input {
    margin-top: 0.5rem;
}

.save-profile-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1.5rem;
}

.save-profile-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.2);
}

/* Admin Panel */
#admin-panel-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

#admin-panel-btn:hover {
    color: #f39c12;
    transform: rotate(30deg);
}

.admin-panel-content {
    max-width: 800px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 1rem;
}

.admin-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-tab.active {
    border-bottom-color: #3498db;
    color: #3498db;
    font-weight: bold;
}

.admin-tab-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.admin-action-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 1.5rem;
}

.admin-action-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.admin-form {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.admin-form h4 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 1.5rem;
}

.cancel-btn {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #7f8c8d;
}

.save-btn {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-btn:hover {
    background: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.2);
}

.admin-items-list {
    margin-top: 2rem;
}

.admin-items-list h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.admin-items-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    transition: all 0.3s ease;
}

.admin-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.admin-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.admin-item-header h5 {
    margin: 0;
    font-size: 1.1rem;
    color: #2c3e50;
}

.admin-item-actions {
    display: flex;
    gap: 5px;
}

.admin-item-actions button {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
}

.edit-btn {
    color: #3498db;
}

.edit-btn:hover {
    color: #2980b9;
}

.delete-btn {
    color: #e74c3c;
}

.delete-btn:hover {
    color: #c0392b;
}

.role-btn {
    color: #f39c12;
}

.role-btn:hover {
    color: #d35400;
}

.admin-item-meta {
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.admin-user-username {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.admin-badge {
    background: #f39c12;
    color: white;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.admin-item.admin-user {
    border-right: 3px solid #f39c12;
}

.admin-item.priority-important {
    border-right: 3px solid #f39c12;
}

.admin-item.priority-urgent {
    border-right: 3px solid #e74c3c;
}

.loading-message,
.empty-message {
    text-align: center;
    color: #7f8c8d;
    padding: 1rem;
}

/* Chat Modal */
.chat-modal-content {
    max-width: 600px;
    height: 80vh;
    display: flex;
    flex-direction: column;
}

.chat-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.chat-form {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.chat-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.chat-form input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.chat-form button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.chat-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.chat-message {
    display: flex;
    gap: 10px;
    max-width: 80%;
    animation: fadeInUp 0.3s ease-out;
}

.chat-message.outgoing {
    align-self: flex-start;
}

.chat-message.incoming {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.chat-message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-message-content {
    background: white;
    padding: 10px 15px;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

.chat-message.outgoing .chat-message-content {
    background: #3498db;
    color: white;
    border-bottom-left-radius: 5px;
}

.chat-message.incoming .chat-message-content {
    background: #e0e0e0;
    color: #333;
    border-bottom-right-radius: 5px;
}

.chat-message-author {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.chat-message-text {
    line-height: 1.4;
}

.chat-message-time {
    font-size: 0.7rem;
    text-align: right;
    margin-top: 5px;
    opacity: 0.7;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}
