/* إعدادات عامة */
:root {
    --primary-color: #1a3c6e;
    --secondary-color: #2c5282;
    --accent-color: #ebf8ff;
    --text-color: #333;
    --white: #ffffff;
    --gray-bg: #f7f9fc;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--gray-bg);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 2.5rem;
}

.logo-text h1 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: -5px;
}

.logo-text span {
    font-size: 0.8rem;
    color: #666;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: #555;
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.btn-main {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-main:hover {
    background-color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 600px;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.hero-slider,
.slide,
.hero-overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.slide {
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-overlay {
    background: linear-gradient(rgba(26, 60, 110, 0.9), rgba(26, 60, 110, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-text h2 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease-out 0.3s;
}

.hero-text p {
    font-size: 1.4rem;
    margin-bottom: 30px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease-out 0.6s;
}

.slide-btn {
    display: inline-block;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease-out 0.9s;
}

.slide.active .hero-text h2,
.slide.active .hero-text p,
.slide.active .slide-btn {
    transform: translateY(0);
    opacity: 1;
}

/* Main Services */
.main-services {
    display: flex;
    gap: 30px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    flex-wrap: wrap;
    justify-content: center;
}

.service-card {
    background: var(--white);
    flex: 1;
    min-width: 300px;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
}

.icon-circle {
    width: 80px;
    height: 80px;
    background-color: var(--gray-bg);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.service-card p {
    color: #666;
    margin-bottom: 25px;
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 700;
    transition: var(--transition);
    width: 100%;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Stats Bar */
.stats-bar {
    background-color: var(--primary-color);
    padding: 60px 0;
    margin-top: 60px;
    color: var(--white);
    text-align: center;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item .number {
    display: block;
    font-size: 3rem;
    font-weight: 900;
}

.stat-item .label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Departments */
.departments {
    padding: 80px 15px;
    text-align: center;
}

.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.dept-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.dept-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid var(--primary-color);
}

.dept-card i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.dept-card span {
    font-weight: 700;
    color: #444;
}

/* Dept Button */
.dept-btn {
    margin-top: 15px;
    background-color: #e0f2fe;
    color: #0c4a6e;
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 1px solid #bae6fd;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dept-card:hover .dept-btn {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(26, 60, 110, 0.2);
}

/* Academic Plan Banner */
.academic-plan-banner {
    margin: 60px auto;
    padding: 0 15px;
}

.plan-content {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c5282 100%);
    border-radius: 15px;
    padding: 40px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(26, 60, 110, 0.15);
    position: relative;
    overflow: hidden;
}

.plan-content::before {
    content: '\f073';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: -20px;
    bottom: -20px;
    font-size: 10rem;
    opacity: 0.05;
    color: white;
    transform: rotate(15deg);
}

.plan-text {
    flex: 1;
    min-width: 300px;
    position: relative;
    z-index: 1;
}

.plan-text h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.plan-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.plan-action {
    position: relative;
    z-index: 1;
}

.btn-download-plan {
    background-color: #fbbf24;
    color: #1a3c6e;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.btn-download-plan:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background-color: #f59e0b;
}

.btn-download-plan.disabled {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ddd;
    cursor: not-allowed;
    box-shadow: none;
}

/* About Section */
.about-us {
    padding: 80px 15px;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.about-card {
    text-align: center;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 10px;
    transition: var(--transition);
}

.about-card:hover {
    border-color: var(--primary-color);
}

.about-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    background: #ebf8ff;
    padding: 20px;
    border-radius: 50%;
}

.about-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: #0d2546;
    color: #b0c4de;
    padding: 60px 0 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.white-logo {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-right: 5px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    background-color: #0a1c35;
    font-size: 0.9rem;
}

.visitor-counter {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.modal-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 25px;
    font-weight: bold;
}

.modal-btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    color: white;
    font-size: 1.1rem;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-curr-modal {
    background-color: #1a3c6e;
}

.btn-curr-modal:hover {
    background-color: #2c5282;
}

.btn-exam-modal {
    background-color: #d97706;
}

.btn-exam-modal:hover {
    background-color: #b76405;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f1f1f1;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
}

.close-modal:hover {
    background: #e2e2e2;
    color: #333;
}

/* Mobile */
@media (max-width: 768px) {
    .header-content {
        padding: 0 20px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .btn-main {
        display: none;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

    .main-services {
        margin-top: 30px;
        padding: 0 20px;
    }

    .plan-content {
        text-align: center;
        flex-direction: column;
        padding: 30px;
    }

    .plan-text h2 {
        justify-content: center;
        font-size: 1.5rem;
    }
}