:root {
    --primary-color: #004d40; /* Dark Teal */
    --primary-color-dark: #00251a;
    --accent-color: #00796b; /* Lighter Teal */
    --text-color: #333;
    --bg-color: #f4f4f4;
    --font-family: 'Cairo', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0  20px;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    color: white;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    position: relative;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon i {
    position: absolute;
    font-size: 1.2rem;
    color: white;
}

.logo-icon i:first-child {
    transform: translate(-3px, -3px);
}

.logo-icon i:last-child {
    transform: translate(3px, 3px);
    opacity: 0.8;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(45deg, #ffffff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-subtitle {
    font-size: 0.7rem;
    opacity: 0.8;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-top: -2px;
}

.nav-menu {
    display: flex;
    gap: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.nav-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.nav-link.active {
    background: rgba(255,255,255,0.3);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 140px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="30" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-logo {
    margin-bottom: 40px;
}

.hero-brand {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -1px;
    background: linear-gradient(45deg, #ffffff, #f0f8ff, #e6f3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.hero-tagline {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

/* Courses Section */
.courses-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2d3748;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.course-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-icon {
    display: inline-block;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.card-icon i {
    font-size: 2rem;
    color: white;
}

.course-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2d3748;
}

.course-card p {
    color: #4a5568;
    margin-bottom: 20px;
    line-height: 1.6;
}

.chapters-count {
    display: inline-block;
    background: #f7fafc;
    color: #4a5568;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.3);
}

/* Course Header */
.course-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
}

.course-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.course-icon {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-icon i {
    font-size: 3rem;
}

.course-details h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;

}

.course-details p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Course Content */
.course-content {
    padding: 60px 0;
}

.tabs-container {
    max-width: 1000px;
    margin: 0 auto;
}

.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    justify-content: center;
}

.tab-button {
    background: white;
    border: 2px solid #e2e8f0;
    padding: 15px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 60px;
}

.tab-button:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.tab-button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.tab-button i {
    font-size: 1.1rem;
}

.tabs-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content h3 {
    color: #2d3748;
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

.chapter-content p {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 20px;
}

.chapter-content ul {
    list-style: none;
    padding-right: 0;
}

.chapter-content li {
    padding: 12px 0;
    padding-right: 30px;
    position: relative;
    color: #2d3748;
    font-size: 1rem;
    line-height: 1.6;
    border-bottom: 1px solid #f7fafc;
}

.chapter-content li:before {
    content: "✓";
    position: absolute;
    right: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.2rem;
}

.chapter-content li:last-child {
    border-bottom: none;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: white;
    padding: 50px 0 30px;
    margin-top: 60px;
}

.footer-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.footer-brand {
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 10px;
}

.footer-brand p {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 0;
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.7;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin: 0;
}
/* أنماط وسائل التواصل الاجتماعي في الفوتر */
.social-media {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
    background: white;
}

.social-icon:hover .fa-twitter {
    color: #1DA1F2;
}

.social-icon:hover .fa-instagram {
    color: #E1306C;
}

.social-icon:hover .fa-github {
    color: #333;
}

.social-icon:hover .fa-linkedin {
    color: #0077B5;
}
/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }

    .logo-container {
        gap: 10px;
        margin-bottom: 15px;
    }

    .brand-name {
        font-size: 1.5rem;
    }

    .brand-subtitle {
        font-size: 0.6rem;
    }

    .hero-brand {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .nav-menu {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .course-info {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .course-details h1 {
        font-size: 2rem;
    }

    .tabs-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .tab-button {
        justify-content: center;
        text-align: center;
    }

    .tabs-content {
        padding: 25px;
    }

    .tab-content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-brand {
        font-size: 2rem;
    }

    .brand-name {
        font-size: 1.3rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .logo-icon i {
        font-size: 1rem;
    }
}
