/* ==========================================
   Global Styles & Variables
   ========================================== */

:root {
    --primary-color: #0099cc;
    --secondary-color: #00b4d8;
    --accent-color: #f77f00;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --text-color: #333333;
    --border-color: #e0e0e0;
    --success-color: #06a77d;
    --warning-color: #d62828;
    
    --font-primary: 'Cairo', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    
    --transition: all 0.3s ease;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #ffffff;
}

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

/* ==========================================
   Header & Navigation
   ========================================== */

.header {
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links .cta-button {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    transition: var(--transition);
}

.nav-links .cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 153, 204, 0.3);
}

/* ==========================================
   Hero Section
   ========================================== */

.hero {
    padding: 60px 0;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f7ff 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text {
    animation: slideInRight 0.8s ease;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 153, 204, 0.4);
}

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

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

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

.hero-poster {
    animation: slideInLeft 0.8s ease;
}

.poster-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--box-shadow-hover);
    transition: var(--transition);
}

.poster-image:hover {
    transform: scale(1.02);
}

/* ==========================================
   About Section
   ========================================== */

.about {
    padding: 80px 0;
    background-color: #ffffff;
}

.about h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 3rem;
    text-align: center;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text strong {
    color: var(--primary-color);
}

.about-list {
    list-style: none;
    margin: 1.5rem 0;
}

.about-list li {
    padding: 0.8rem 0;
    padding-right: 2rem;
    position: relative;
    font-size: 1rem;
    color: var(--text-color);
}

.about-list li:before {
    content: "✓";
    position: absolute;
    right: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.3rem;
}

.about-instructor {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f7ff 100%);
    padding: 2rem;
    border-radius: 12px;
}

.instructor-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid var(--primary-color);
    box-shadow: var(--box-shadow);
}

.instructor-info h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.instructor-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.instructor-bio {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ==========================================
   Program Section
   ========================================== */

.program {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f7ff 100%);
}

.program h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    text-align: center;
}

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

.program-modules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.module {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.module:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}

.module-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.module-number {
    font-size: 2.5rem;
    font-weight: 700;
    opacity: 0.3;
}

.module-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.module-content {
    padding: 2rem;
}

.module-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
}

.module-list {
    list-style: none;
}

.module-list li {
    padding: 0.7rem 0;
    padding-right: 2rem;
    position: relative;
    color: var(--text-color);
}

.module-list li:before {
    content: "→";
    position: absolute;
    right: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ==========================================
   Details Section
   ========================================== */

.details {
    padding: 80px 0;
    background-color: #ffffff;
}

.details h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 3rem;
    text-align: center;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.detail-card {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f7ff 100%);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.detail-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.detail-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.detail-card h3 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.detail-card p {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.detail-note {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

.important-note {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    border-left: 5px solid var(--accent-color);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.important-note h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.important-note p {
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* ==========================================
   Partnerships Section
   ========================================== */

.partnerships {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f7ff 100%);
}

.partnerships h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 3rem;
    text-align: center;
}

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

.partner-card {
    background-color: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.partner-card img {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.partner-card h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.partner-card p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ==========================================
   CTA Section
   ========================================== */

.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.cta-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 2rem !important;
}

.cta-section .btn-large {
    background-color: var(--accent-color);
    color: white;
    margin-bottom: 1.5rem;
}

.cta-section .btn-large:hover {
    background-color: #e67e00;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.cta-note {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 600;
}

/* ==========================================
   Footer
   ========================================== */

.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}

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

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.7rem;
}

.footer-section a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.7;
}

/* ==========================================
   Animations
   ========================================== */

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

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

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .program-modules {
        grid-template-columns: 1fr;
    }

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

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

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .logo-text {
        display: none;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    .about h2,
    .program h2,
    .details h2,
    .partnerships h2 {
        font-size: 1.5rem;
    }

    .module-header {
        flex-direction: column;
        text-align: center;
    }

    .module-number {
        font-size: 2rem;
    }

    .detail-card {
        padding: 1.5rem;
    }

    .cta-content h2 {
        font-size: 1.3rem;
    }

    .instructor-image {
        width: 150px;
        height: 150px;
    }
}
