@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

:root {
    --primary-color: #1a237e;  /* أزرق داكن */
    --secondary-color: #3949ab; /* أزرق متوسط */
    --accent-color: #42a5f5;   /* أزرق فاتح */
    --background-color: #f5f6fa;
    --text-color: #2c3e50;
    --menu-hover-color: #283593;
    --submenu-background: rgba(255, 255, 255, 0.98);
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Hero Section Styles */
.hero-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8eaf6 100%);
    position: relative;
    overflow: hidden;
}

.split-layout {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}

.slideshow-container {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.slides {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.slide {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.slides {
    width: 100%;
    height: 100%;
    position: relative;
    perspective: 1000px;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: all 0.8s ease-in-out;
    transform-style: preserve-3d;
    transform: translateZ(0) rotateY(0deg);
}

.slide.active {
    opacity: 1;
    transform: translateZ(0) rotateY(360deg);
}

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

.slide.active {
    opacity: 1;
}

.dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
}

.text-container {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
}

.text-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.3) 100%);
    border-radius: 20px;
}

.text-container h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.8rem;
}

.text-container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.text-container p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .split-layout {
        flex-direction: column;
        text-align: center;
    }
    
    .slides {
        height: 400px;
    }
    
    .text-container {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .slides {
        height: 300px;
    }
    
    .text-container h2 {
        font-size: 2rem;
    }
    
    .text-container p {
        font-size: 1rem;
    }
}

header {
    background-color: var(--primary-color);
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h1 {
    color: white;
    font-family: 'Amiri', serif;
    margin: 1rem 0;
    text-align: center;
    font-size: 2rem;
}

.main-nav {
    background: rgba(255, 165, 0, 0.8);
    padding: 0.5rem;
    margin: 2rem auto;
    max-width: 1200px;
    border-radius: 10px;
}

.main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-family: 'Amiri', serif;
    font-size: 14px;
}

.main-menu li {
    position: relative;
}

.main-menu a {
    color: white;
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

.main-menu a:last-child {
    border-right: none;
}

.main-menu i {
    margin-right: 5px;
    color: white;
    font-size: 14px;
}


.main-menu > li:hover > a::before {
    left: 100%;
}

.main-menu > li:hover > a {
    background-color: var(--menu-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    padding: 1rem;
    border-radius: 15px;
    min-width: 220px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.submenu li a {
    color: #333333;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    display: block;
    width: 100%;
    font-size: 15px;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    border-radius: 25px;
    background: rgba(0, 0, 0, 0.05);
    margin: 0.2rem 0;
}

.submenu li a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #00bfff;
    transform: translateX(5px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.submenu li a:active {
    background: rgba(0, 191, 255, 0.2);
    margin-left: 0.5rem;
    background: rgba(52, 152, 219, 0.8);
}

.submenu .submenu li a {
    color: #333333;
}

.submenu .submenu li a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.submenu .submenu .submenu {
    background: rgba(231, 76, 60, 0.8);
    margin-left: 0;
}

.submenu .submenu .submenu li a {
    color: #333333;
}

.submenu .submenu .submenu li a:hover {
    background: rgba(255, 255, 255, 0.25);
}

.has-submenu:hover > .submenu {
    opacity: 1;
    visibility: visible;
    position: absolute;
}

.has-submenu .has-submenu:hover > .submenu {
    opacity: 1;
    visibility: visible;
    position: absolute;
    left: 100%;
    top: 0;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    padding: 1rem;
    border-radius: 15px;
    min-width: 220px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.submenu .has-submenu:hover > .submenu {
    transform: translateX(0);
}

.submenu li {
    position: relative;
}

.submenu a {
    color: var(--primary-color);
    padding: 0.8rem 1.2rem;
    display: block;
    border-bottom: 1px solid rgba(66, 165, 245, 0.1);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.submenu a:hover {
    background: linear-gradient(to right, transparent, rgba(66, 165, 245, 0.1));
    padding-right: 1.5rem;
    color: var(--secondary-color);
}

.has-submenu > a::after {
    content: '▸';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1em;
    transition: transform 0.3s ease;
    color: #666666;
}

.has-submenu:hover > a::after {
    transform: translateY(-50%) rotate(90deg);
}

.submenu .has-submenu > a::after {
    content: '◂';
    transform: translateY(-50%);
}

.submenu .has-submenu:hover > a::after {
    transform: translateY(-50%) rotate(-90deg);
}

/* تنسيق الترقيم في القائمة */
.main-menu .submenu a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main-menu .submenu a[href^="#"]:before {
    color: var(--primary-color);
    font-family: "Arial", sans-serif;
    font-size: 0.9em;
    opacity: 0.8;
}

/* تأثيرات حركية للأرقام */
.main-menu .submenu a:hover:before {
    opacity: 1;
    transform: scale(1.1);
}

/* تنسيق خاص للأرقام في القائمة */
.main-menu .submenu a {
    font-weight: 500;
}

.main-menu .submenu a:hover {
    color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.05);
}

/* تباعد إضافي للقوائم المرقمة */
.main-menu .submenu .submenu {
    margin-right: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-menu {
        flex-direction: column;
        align-items: center;
    }

    .submenu {
        position: static;
        width: 100%;
        box-shadow: none;
        background-color: rgba(52, 152, 219, 0.1);
    }

    .submenu .submenu {
        right: 0;
    }
}

/* Main Content Styling */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

#welcome {
text-align: center;
padding: 2rem;
background-color: white;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.welcome-message h2 {
font-family: 'Amiri', serif;
color: #2c3e50;
font-size: 2rem;
margin: 0;
}

.hero-section {
width: 100%;
margin-bottom: 4rem;
}

.slideshow-container {
width: 100%;
max-width: 1200px;
margin: 0 auto;
position: relative;
overflow: hidden;
border-radius: 10px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
overflow: hidden;
}

.slides {
display: flex;
transition: transform 0.5s ease-in-out;
}

.slide {
flex: 0 0 100%;
width: 100%;
height: 300px;
position: relative;
overflow: hidden;
transform: scale(1);
z-index: 1;
}

.slide img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}

.slide-content {
    display: none;
}

/* تحسينات إضافية */
.slide::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
}

/* شريط الأخبار */
.news-ticker {
background: linear-gradient(135deg, #ff4757, #ff6b81);
color: white;
padding: 10px 0;
font-family: 'Amiri', serif;
font-size: 14px;
margin: 2rem 0;
}

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

.news-item {
margin-right: 30px;
padding: 0 15px;
border-right: 1px solid rgba(255, 255, 255, 0.2);
display: inline-block;
}

.news-item:last-child {
border-right: none;
}

.news-item i {
margin-right: 8px;
color: #fff;
}

/* Slide Indicators */
.slide-indicators {
position: absolute;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 10px;
z-index: 2;
}

.indicator {
width: 12px;
height: 12px;
border-radius: 50%;
background-color: rgba(255, 255, 255, 0.5);
cursor: pointer;
transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* Slide Animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(1.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOutScale {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

.slide.fade-in {
    animation: fadeInScale 1.5s forwards;
}

.slide.fade-out {
    animation: fadeOutScale 1.5s forwards;
}

/* تنسيق حاوية الشعار */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.logo-wrapper {
    width: 120px;
    height: 120px;
    position: relative;
    animation: logoRotate 20s linear infinite;
}

.logo-wrapper::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(45deg, #3498db, #e74c3c, #2ecc71, #f1c40f);
    animation: borderRotate 3s linear infinite;
    z-index: 1;
}

.logo-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-color);
    border-radius: 50%;
    z-index: 2;
}

.school-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 3;
    transition: transform 0.3s ease;
    border: 3px solid white;
}

.logo-wrapper:hover .school-logo {
    transform: scale(1.1);
}

/* تأثيرات حركية للشعار */
@keyframes borderRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes logoRotate {
    0% {
        filter: drop-shadow(0 0 10px rgba(52, 152, 219, 0.5));
    }
    25% {
        filter: drop-shadow(0 0 10px rgba(231, 76, 60, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 10px rgba(46, 204, 113, 0.5));
    }
    75% {
        filter: drop-shadow(0 0 10px rgba(241, 196, 15, 0.5));
    }
    100% {
        filter: drop-shadow(0 0 10px rgba(52, 152, 219, 0.5));
    }
}

/* تعديل حجم الشعار للشاشات الصغيرة */
@media (max-width: 768px) {
    .logo-container {
        flex-direction: column;
        text-align: center;
    }

    .logo-wrapper {
        width: 100px;
        height: 100px;
    }

    h1 {
        font-size: 1.5rem;
    }
}

/* صفحة عن المدرسة */
.about-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f6fa 0%, #e8eaf6 100%);
    padding: 2rem;
    position: relative;
}

.home-button {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.2);
    z-index: 100;
}

.home-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 35, 126, 0.3);
    background: var(--secondary-color);
}

.about-container {
    max-width: 1200px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: fadeInUp 1s ease;
}

.colonel-image-container {
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.colonel-frame {
    width: 250px;
    height: 300px;
    position: relative;
    margin-bottom: 1.5rem;
    perspective: 1000px;
}

.colonel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    border: 5px solid white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    animation: float 6s ease-in-out infinite;
}

.colonel-frame:hover .colonel-image {
    transform: rotateY(10deg) translateZ(20px);
    box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.3);
}

.image-caption {
    color: white;
    margin-top: 1rem;
}

.image-caption h3 {
    font-size: 1.5rem;
    margin: 0;
}

.image-caption p {
    margin: 0.5rem 0 0;
    opacity: 0.9;
}

.about-content {
    padding: 2rem;
}

.about-content h1 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.about-content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.about-section {
    margin-bottom: 2rem;
    animation: fadeInRight 1s ease;
    animation-fill-mode: both;
}

.about-section:nth-child(2) { animation-delay: 0.2s; }
.about-section:nth-child(3) { animation-delay: 0.4s; }
.about-section:nth-child(4) { animation-delay: 0.6s; }

.about-section h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-section p {
    line-height: 1.8;
    color: var(--text-color);
    text-align: justify;
}

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

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

.values-list li::before {
    content: '◆';
    color: var(--accent-color);
    position: absolute;
    right: 0;
    transform: translateY(-2px);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* تصميم متجاوب */
@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
    }

    .colonel-image-container {
        padding: 2rem 1rem;
    }

    .colonel-frame {
        width: 200px;
        height: 250px;
    }
}

@media (max-width: 600px) {
    .about-page {
        padding: 1rem;
    }

    .about-content {
        padding: 1.5rem;
    }

    .about-content h1 {
        font-size: 1.5rem;
    }

    .about-section h2 {
        font-size: 1.2rem;
    }
}

/* الخط الزمني */
.timeline {
    position: relative;
    padding: 20px 0;
    margin: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    right: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    border-radius: 5px;
}

.timeline-item {
    position: relative;
    padding: 20px 60px 20px 20px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.5s ease both;
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }

.timeline-item::before {
    content: '';
    position: absolute;
    right: 22px;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 0 4px rgba(66, 165, 245, 0.2);
    transition: all 0.3s ease;
}

.timeline-item:hover::before {
    background: var(--primary-color);
    box-shadow: 0 0 0 6px rgba(26, 35, 126, 0.2);
    transform: translateY(-50%) scale(1.2);
}

.timeline-date {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1em;
}

.timeline-content {
    color: var(--text-color);
    line-height: 1.6;
}

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

/* تحسينات إضافية */
.school-naming {
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.05), rgba(66, 165, 245, 0.05));
    padding: 1.5rem;
    border-radius: 10px;
    border-right: 4px solid var(--primary-color);
    margin-top: 2rem;
}

.school-naming h2 {
    color: var(--primary-color);
}

/* صفحة النتائج */
.results-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8eaf6 100%);
    padding: 2rem;
    position: relative;
}

.results-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 2rem;
}

.islamic-frame {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* الزخارف الإسلامية */
.islamic-pattern {
    position: absolute;
    width: 150px;
    height: 150px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><path fill="%231a237e" opacity="0.1" d="M40 0L80 40L40 80L0 40L40 0z M40 10L70 40L40 70L10 40L40 10z"/></svg>');
    background-size: contain;
    opacity: 0.1;
    animation: rotate 40s linear infinite;
}

.islamic-pattern.top-left {
    top: -20px;
    left: -20px;
    transform-origin: bottom right;
}

.islamic-pattern.top-right {
    top: -20px;
    right: -20px;
    transform-origin: bottom left;
}

.islamic-pattern.bottom-left {
    bottom: -20px;
    left: -20px;
    transform-origin: top right;
}

.islamic-pattern.bottom-right {
    bottom: -20px;
    right: -20px;
    transform-origin: top left;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.results-container h1 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.results-container h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.subtitle {
    display: block;
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-top: 0.5rem;
}

/* معرض الصور */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* شبكة النتائج */
.results-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.class-results {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(26, 35, 126, 0.1);
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.5s ease forwards;
}

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

.class-results:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.class-results h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(26, 35, 126, 0.1);
    position: relative;
}

.class-results h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.class-results:hover h2::after {
    width: 100%;
}

.class-results ul {
    list-style: none;
    padding: 0;
}

.class-results li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.class-results li:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(-10px);
}

.student-name {
    color: var(--text-color);
    font-weight: 500;
    flex-grow: 1;
}

.score {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.1rem;
    background: rgba(57, 73, 171, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    min-width: 80px;
    text-align: center;
    transition: all 0.3s ease;
}

/* تنسيق العلامة الأولى في كل قسم */
.class-results li:first-child {
    background: rgba(var(--primary-color-rgb), 0.1);
    border-right: 4px solid var(--primary-color);
}

.class-results li:first-child .score {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* تنسيق العلامات المتساوية */
.class-results li.top-score {
    background: rgba(var(--primary-color-rgb), 0.1);
    border-right: 4px solid var(--primary-color);
}

.class-results li.top-score .score {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* تأثير خاص للعلامات المتساوية */
.class-results li.top-score:nth-child(2) {
    background: rgba(var(--secondary-color-rgb), 0.1);
    border-right: 4px solid var(--secondary-color);
}

.class-results li.top-score:nth-child(2) .score {
    background: var(--secondary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1.1);
    }
}

/* تأخير ظهور كل قسم */
.class-results:nth-child(1) { animation-delay: 0.1s; }
.class-results:nth-child(2) { animation-delay: 0.2s; }
.class-results:nth-child(3) { animation-delay: 0.3s; }
.class-results:nth-child(4) { animation-delay: 0.4s; }
.class-results:nth-child(5) { animation-delay: 0.5s; }
.class-results:nth-child(6) { animation-delay: 0.6s; }
.class-results:nth-child(7) { animation-delay: 0.7s; }
.class-results:nth-child(8) { animation-delay: 0.8s; }
.class-results:nth-child(9) { animation-delay: 0.9s; }

@media (max-width: 768px) {
    .class-results {
        margin: 0 1rem;
    }
    
    .class-results li {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .score {
        width: 100%;
    }
}

/* شريط الصور */
.image-strip-container {
    max-width: 1000px;
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.image-strip {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    height: 400px;
}

.strip-slide {
    min-width: 100%;
    position: relative;
    overflow: hidden;
}

.strip-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}

.strip-slide:hover img {
    transform: scale(1.1);
}

/* نقاط التنقل */
.strip-navigation {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.nav-dot.active {
    background: white;
    transform: scale(1.2);
}

.nav-dot:hover {
    transform: scale(1.3);
    background: rgba(255, 255, 255, 0.5);
}

/* تأثير التلاشي للصور */
.strip-slide {
    opacity: 0.8;
    transition: opacity 0.8s ease;
}

.strip-slide.active {
    opacity: 1;
}

@media (max-width: 768px) {
    .image-strip {
        height: 300px;
    }
}

/* صفحة المجلة المدرسية */
.magazine-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8eaf6 100%);
    padding: 2rem;
    position: relative;
}

.magazine-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
}

.islamic-title {
    font-family: "Amiri", "Traditional Arabic", serif;
    font-size: 3rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.islamic-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.magazine-issues {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    padding: 2rem;
}

.magazine-issue {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.magazine-issue:hover {
    transform: translateY(-10px);
}

.issue-preview {
    text-align: center;
    margin-bottom: 2rem;
}

.issue-preview h2 {
    font-family: "Amiri", "Traditional Arabic", serif;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.issue-image {
    width: 200px;
    height: 280px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.issue-preview:hover .issue-image {
    transform: scale(1.05);
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.download-button:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.download-button i {
    font-size: 1.2rem;
}

.download-text {
    position: relative;
    overflow: hidden;
}

.download-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: white;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.download-button:hover .download-text::after {
    transform: scaleX(1);
}

/* زر العودة */
.home-button {
    position: fixed;
    top: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 1000;
}

.home-button:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.home-button i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .magazine-issues {
        grid-template-columns: 1fr;
    }
    
    .islamic-title {
        font-size: 2rem;
    }
    
    .magazine-issue {
        padding: 1.5rem;
    }
}

/* صفحة الاتصال */
.contact-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8eaf6 100%);
    padding: 2rem;
    position: relative;
}

.contact-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
}

.email-banner {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.5s ease;
}

.email-banner i {
    font-size: 1.3rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.contact-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
    outline: none;
}

.file-upload {
    position: relative;
}

.file-upload label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--secondary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload label:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.file-upload input[type="file"] {
    display: none;
}

.file-name {
    display: inline-block;
    margin-right: 1rem;
    color: #666;
    font-size: 0.9rem;
    font-family: 'Amiri', serif;
}

.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 2rem;
    font-family: 'Amiri', serif;
}

.submit-button:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.submit-button i {
    transition: transform 0.3s ease;
}

.submit-button:hover i {
    transform: translateX(-5px);
}

/* الشريط الرئيسي */
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    height: 30px;
    font-family: 'Amiri', serif;
    font-size: 12px;
}

.nav-menu li {
    position: relative;
    margin: 0 10px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 5px 12px;
    display: block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    line-height: 1.4;
}

.nav-menu a:last-child {
    border-right: none;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.nav-menu i {
    margin-right: 5px;
    color: white;
    font-size: 12px;
}

/* القوائم الفرعية الزجاجية */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 15px 0;
    min-width: 250px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 191, 255, 0.2);
    margin-top: 10px;
    font-family: 'Amiri', serif;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.has-submenu:hover > .submenu {
    display: block !important;
    opacity: 1;
    visibility: visible;
}

.submenu {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.submenu li {
    position: relative;
    margin: 8px 0;
}

.submenu li a {
    color: #2c3e50;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    font-size: 13px;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.submenu li a:hover {
    background: rgba(0, 191, 255, 0.2);
    color: #00bfff;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 191, 255, 0.2);
}

/* القوائم الفرعية المتداخلة */
.submenu .has-submenu:hover > .submenu {
    display: block !important;
    opacity: 1;
    visibility: visible;
}

.submenu .submenu {
    top: 0;
    left: 100%;
    margin-left: 15px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* الشريط الإخباري */
.news-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem;
    font-size: 0.9rem;
    height: 50px;
    line-height: 50px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    animation: ticker 15s linear infinite;
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.news-item {
    display: inline-block;
    padding: 0 1rem;
    white-space: nowrap;
    font-weight: 500;
    color: #333;
}

.news-item i {
    margin-left: 0.5rem;
    color: #42a5f5;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .contact-container {
        padding: 1rem;
    }
    
    .email-banner {
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 2rem;
        justify-content: center;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* صفحة الفيسبوك */
.facebook-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8eaf6 100%);
    padding: 2rem;
    position: relative;
}

.facebook-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
}

.islamic-title .animated-icon {
    color: #1877f2;
    font-size: 2.5rem;
    margin-left: 1rem;
    vertical-align: middle;
}

.facebook-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.facebook-link-card {
    position: relative;
    background: white;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    margin-bottom: 2rem;
    text-align: center;
}

.facebook-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.facebook-link-card:hover .facebook-image {
    transform: scale(1.05);
}

.message-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(24, 119, 242, 0.9);
    color: white;
    padding: 1rem;
    text-align: center;
    font-size: 1.2rem;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
    z-index: 10;
}

.facebook-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(24, 119, 242, 0.1);
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.facebook-link-card:hover::before {
    opacity: 1;
}

@media (max-width: 768px) {
    .facebook-links {
        grid-template-columns: 1fr;
    }
    
    .facebook-link-card {
        margin: 1rem 0;
    }
    
    .islamic-title {
        font-size: 2rem;
    }
    
    .islamic-title .animated-icon {
        font-size: 2rem;
    }
}

/* صفحة أوقات الدوام */
.hours-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8eaf6 100%);
    padding: 2rem;
    position: relative;
}

.hours-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
}

.animated-clock {
    color: #ffd700;
    font-size: 2.5rem;
    margin-left: 1rem;
    animation: tick 2s infinite;
}

@keyframes tick {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(20deg); }
    40% { transform: rotate(-20deg); }
    60% { transform: rotate(10deg); }
    80% { transform: rotate(-10deg); }
    100% { transform: rotate(0deg); }
}

.clock-animation {
    text-align: center;
    margin: 2rem 0;
}

.clock-animation i {
    font-size: 6rem;
    color: var(--primary-color);
    animation: pulse-clock 2s infinite;
}

@keyframes pulse-clock {
    0% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.1) rotate(180deg); opacity: 0.8; }
    100% { transform: scale(1) rotate(360deg); opacity: 1; }
}

.schedule-info {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.sparkle-text {
    font-size: 1.3rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0% { text-shadow: 0 0 0 transparent; }
    50% { text-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.5); }
    100% { text-shadow: 0 0 0 transparent; }
}

.time-period {
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

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

.time-period h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.time-range {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    padding: 1rem;
    background: rgba(var(--primary-color-rgb), 0.05);
    border-radius: 8px;
}

.time-range i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.morning .time-range i {
    color: #ffd700;
}

.evening .time-range i {
    color: #6c757d;
}

.islamic-footer {
    margin-top: 3rem;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.footer-pattern {
    height: 20px;
    background: linear-gradient(45deg, var(--primary-color) 25%, transparent 25%),
                linear-gradient(-45deg, var(--primary-color) 25%, transparent 25%);
    background-size: 20px 20px;
    opacity: 0.1;
    margin-bottom: 1rem;
}

.islamic-footer p {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: bold;
}

@media (max-width: 768px) {
    .hours-container {
        padding: 1rem;
    }
    
    .clock-animation i {
        font-size: 4rem;
    }
    
    .time-range {
        flex-direction: column;
        text-align: center;
    }
    
    .sparkle-text {
        font-size: 1.1rem;
    }
}

/* صفحة التربية الإسلامية */
.islamic-edu-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8eaf6 100%);
    padding: 2rem;
    position: relative;
}

.islamic-edu-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
}

.animated-quran {
    color: #4caf50;
    font-size: 2.5rem;
    margin-left: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.quran-animation {
    text-align: center;
    margin: 2rem 0;
}

.quran-animation i {
    font-size: 6rem;
    color: var(--primary-color);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0% { text-shadow: 0 0 5px rgba(76, 175, 80, 0.5); }
    50% { text-shadow: 0 0 20px rgba(76, 175, 80, 0.8); }
    100% { text-shadow: 0 0 5px rgba(76, 175, 80, 0.5); }
}

.content-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.section-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.quran-section, .education-section, .activities-section {
    margin: 2rem 0;
    padding: 1.5rem;
    border-right: 4px solid var(--primary-color);
    background: rgba(76, 175, 80, 0.05);
    border-radius: 0 10px 10px 0;
    transition: all 0.3s ease;
}

.quran-section:hover, .education-section:hover, .activities-section:hover {
    transform: translateX(-5px);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
}

.quran-section h3, .education-section h3, .activities-section h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quran-section i, .education-section i, .activities-section i {
    color: var(--primary-color);
}

ul {
    list-style: none;
    padding-right: 2rem;
}

ul li {
    margin: 1rem 0;
    position: relative;
    padding-right: 1.5rem;
    line-height: 1.6;
}

ul li::before {
    content: '✧';
    color: var(--primary-color);
    position: absolute;
    right: -1.5rem;
    top: 0;
}

.conclusion {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 10px;
    text-align: center;
}

.conclusion h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.conclusion p {
    font-size: 1.1rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .islamic-edu-container {
        padding: 1rem;
    }
    
    .quran-animation i {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .intro-text {
        font-size: 1.1rem;
    }
    
    ul {
        padding-right: 1rem;
    }
}

/* صفحة اللغة الإنجليزية */
.english-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8eaf6 100%);
    padding: 2rem;
    position: relative;
}

.english-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
}

.english-title {
    color: var(--primary-color);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.animated-lang {
    color: #1e88e5;
    font-size: 2.5rem;
    margin-left: 1rem;
    animation: rotate-lang 3s ease-in-out infinite;
}

@keyframes rotate-lang {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
    100% { transform: rotate(0deg); }
}

.lang-animation {
    text-align: center;
    margin: 2rem 0;
}

.lang-animation i {
    font-size: 6rem;
    color: #1e88e5;
    animation: pulse-globe 2s ease-in-out infinite;
}

@keyframes pulse-globe {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

.source {
    color: #666;
    font-style: italic;
    text-align: left;
    margin-top: 0.5rem;
}

.reforms-section, .early-start-section, .training-section,
.resources-section, .exchange-section, .importance-section {
    margin: 2rem 0;
    padding: 1.5rem;
    border-right: 4px solid #1e88e5;
    background: rgba(30, 136, 229, 0.05);
    border-radius: 0 10px 10px 0;
    transition: all 0.3s ease;
}

.reforms-section:hover, .early-start-section:hover, .training-section:hover,
.resources-section:hover, .exchange-section:hover, .importance-section:hover {
    transform: translateX(-5px);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
}

.reforms-section h3, .early-start-section h3, .training-section h3,
.resources-section h3, .exchange-section h3, .importance-section h3 {
    color: #1e88e5;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reforms-section i, .early-start-section i, .training-section i,
.resources-section i, .exchange-section i, .importance-section i {
    color: #1e88e5;
}

.video-section {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(30, 136, 229, 0.05);
    border-radius: 15px;
}

.video-section h3 {
    color: #1e88e5;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .english-container {
        padding: 1rem;
    }
    
    .lang-animation i {
        font-size: 4rem;
    }
    
    .english-title {
        font-size: 2rem;
    }
    
    .reforms-section, .early-start-section, .training-section,
    .resources-section, .exchange-section, .importance-section {
        padding: 1rem;
    }
}

/* صفحة إبداعات التلاميذ */
.creativity-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8eaf6 100%);
    padding: 2rem;
    position: relative;
}

.creativity-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
}

.animated-palette {
    color: #ff9800;
    font-size: 2.5rem;
    margin-left: 1rem;
    animation: color-change 3s infinite;
}

@keyframes color-change {
    0% { color: #ff9800; }
    33% { color: #4caf50; }
    66% { color: #2196f3; }
    100% { color: #ff9800; }
}

.coming-soon {
    text-align: center;
    font-size: 1.5rem;
    color: #666;
    margin: 3rem 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* صفحة قيد الإنجاز */
.construction-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8eaf6 100%);
    padding: 2rem;
    position: relative;
}

.construction-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
}

.construction-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.egg-container {
    margin: 2rem 0;
    position: relative;
    perspective: 1000px;
}

.egg-image {
    max-width: 300px;
    height: auto;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
}

.message-container {
    text-align: center;
    margin-top: 2rem;
}

.construction-message {
    font-family: "Amiri", serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.thank-you {
    font-family: "Amiri", serif;
    font-size: 1.5rem;
    color: #666;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .egg-image {
        max-width: 200px;
    }
    
    .construction-message {
        font-size: 2rem;
    }
    
    .thank-you {
        font-size: 1.2rem;
    }
}

/* صفحة الأستاذ */
.teacher-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8eaf6 100%);
    padding: 2rem;
    position: relative;
}

.teacher-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
}

.teacher-content {
    padding: 2rem;
}

.teacher-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.teacher-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulse-avatar 2s infinite;
}

@keyframes pulse-avatar {
    0% {
        box-shadow: 0 0 0 0 rgba(30, 136, 229, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(30, 136, 229, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(30, 136, 229, 0);
    }
}

.teacher-avatar i {
    font-size: 4rem;
    color: white;
}

.teacher-name {
    font-family: "Amiri", serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.teacher-name::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.teacher-title {
    font-size: 1.2rem;
    color: #666;
    margin-top: 1rem;
}

.teacher-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.info-section:hover {
transform: translateY(-5px);
}

.info-section h2 {
color: #2c3e50;
font-size: 1.5rem;
margin-bottom: 1.5rem;
display: flex;
align-items: center;
gap: 1rem;
}

.info-section h2 i {
font-size: 1.8rem;
}

.info-section ul {
list-style: none;
padding: 0;
}

.info-section ul li {
margin-bottom: 1rem;
padding-right: 1.5rem;
position: relative;
}

.info-section ul li::before {
content: "●";
color: #2c3e50;
position: absolute;
right: 0;
top: 0;
}

.social-links {
display: flex;
justify-content: center;
gap: 1rem;
margin-top: 2rem;
flex-wrap: wrap;
}

.social-link {
display: flex;
align-items: center;
padding: 0.8rem 1.5rem;
border-radius: 50px;
text-decoration: none;
color: white;
font-size: 1rem;
transition: all 0.3s ease;
gap: 0.5rem;
}

.social-link i {
font-size: 1.2rem;
}

.social-link.facebook {
background: #1877f2;
}

.social-link.instagram {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

.social-link.whatsapp {
    background: #25d366;
}

.social-link.youtube {
    background: #ff0000;
}

.social-link.twitter {
    background: #1da1f2;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-text {
    display: none;
}

.social-link:hover .social-text {
    display: inline;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .social-links {
        gap: 0.5rem;
    }
    
    .social-link {
        padding: 0.6rem;
    }
    
    .social-link i {
        font-size: 1rem;
    }
    
    .teacher-avatar {
        width: 100px;
        height: 100px;
    }
    
    .teacher-avatar i {
        font-size: 3rem;
    }
    
    .teacher-name {
        font-size: 2rem;
    }
    
    .info-section {
        padding: 1.5rem;
    }
}

.teacher-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: glow-avatar 3s infinite;
}

@keyframes glow-avatar {
    0% {
        box-shadow: 0 0 10px #4caf50,
                    0 0 20px #2196f3,
                    0 0 30px #9c27b0;
    }
    50% {
        box-shadow: 0 0 20px #4caf50,
                    0 0 30px #2196f3,
                    0 0 40px #9c27b0;
    }
    100% {
        box-shadow: 0 0 10px #4caf50,
                    0 0 20px #2196f3,
                    0 0 30px #9c27b0;
    }
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
    border: 3px solid white;
}

.teacher-avatar:hover .profile-image {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .teacher-avatar {
        width: 100px;
        height: 100px;
    }
}

.rainbow-text {
    background: linear-gradient(
        to right,
        #ff0000,
}

.rainbow-text i {
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.info-section:hover .rainbow-text {
    animation: rainbow-move 2s linear infinite;
}

.info-section {
    position: relative;
    overflow: hidden;
}

.info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(255,0,0,0.1),
        rgba(255,128,0,0.1),
        rgba(255,255,0,0.1),
        rgba(0,255,0,0.1),
        rgba(0,255,255,0.1),
        rgba(0,0,255,0.1)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-section:hover::before {
    opacity: 1;
}

.small-icon {
    font-size: 0.8em;
}

.facebook-link-card .small-icon {
    font-size: 1.5em;
}
