/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

:root {
    --primary-color: rgba(3,104,100,255);
    --secondary-color: #00796b;
    --accent-color: #4caf50;
    --light-color: #e0f2f1;
    --dark-color: #002114;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar Styles
.navbar {
    background-color: var(--primary-color);
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    margin-bottom: 20px;
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Ensures items don't overflow 
    padding: 0 1rem;
}
.logo h1 {
    color: white;
    font-size: 1.5rem; /* Reduced for mobile 
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem; /* Reduce gap for better spacing 
}
.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem; /* Adjust font size 
    transition: color 0.3s;
}
/* Mobile Styles 
@media screen and (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        align-items: center;
    }
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    .logo h1 {
        font-size: 1.2rem;
    }
}*/


/* Navbar Styles */
.navbar {
    background-color: var(--primary-color);
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    padding: 0px;
}

/* Logo Section */
.logo {
    display: flex;
    align-items: center;
    gap: 10px; /* مسافة بين اللوجو والاسم */
    text-align: right;
    justify-content: space-between;
}

.logo img {
    width: 70px; /* تكبير اللوجو */
    height: auto;
    object-fit: contain;
}

.logo h1 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
    white-space: nowrap; /* منع نزول الاسم لسطرين */
}

/* Nav Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .navbar .container {
        flex-direction: row;
        align-items: center;
        text-align: center;
        justify-content: center;
    }

    .logo {
        flex-direction: row; /* اللوجو في اليمين والنص بجانبه */
        justify-content:flex-start;
        width: 100%;
    }

    .logo img {
        width: 60px; /* تصغير اللوجو في الموبايل */
    }

    .logo h1 {
        font-size: 1.3rem;
        white-space: wrap;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .course-announcement{
        margin-top: 30px;
    }
}


/* Hero Section */
/* Hero Section Styles */
.hero {
    position: relative;
    height: 100vh;
    background-image: url('/assets/img/g5.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
}

.animate-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 1s ease forwards;
}

.animate-subtitle {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 1s ease 0.3s forwards;
}

.cta-buttons {
    margin: 2rem 0;
    opacity: 0;
    animation: fadeIn 1s ease 0.6s forwards;
}

.primary-btn, .secondary-btn {
    display: inline-block;
    padding: 1rem 2rem;
    margin: 0 1rem;
    border-radius: 50px;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.primary-btn {
    background-color: #004d40;
    color: white;
    border: 2px solid #004d40;
}

.secondary-btn {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.primary-btn:hover, .secondary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    opacity: 0;
    animation: fadeIn 1s ease 0.9s forwards;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #4caf50;
}

.stat-label {
    font-size: 1.1rem;
    color: #e0f2f1;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    display: block;
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

/* Animations */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .animate-title {
        font-size: 2.5rem;
    }

    .animate-subtitle {
        font-size: 1.3rem;
    }

    .stats-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .primary-btn, .secondary-btn {
        margin: 0;
    }
}
/* Announcement Section */
/* Course Announcement Styles */
.course-announcement {
    padding: 5rem 0;
    background: linear-gradient(135deg, #e0f7fa 0%, #f5f5f5 100%);
    margin-top: 50px;
}

.announcement-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.course-badge {
    position: absolute;
    top: 2rem;
    right: -3rem;
    background: #004d40;
    color: white;
    padding: 0.5rem 3rem;
    transform: rotate(45deg);
    font-weight: bold;
}

.course-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e0f2f1;
}

.course-header h2 {
    color: #004d40;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.course-subtitle {
    color: #666;
    font-size: 1.2rem;
}

.course-info {
    display: flex;
    justify-content: space-around;
    margin: 2rem 0;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-item .icon {
    font-size: 1.5rem;
}

.course-content {
    margin: 2rem 0;
}

.course-content h3 {
    color: #004d40;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.content-list {
    list-style: none;
    padding: 0;
}

.content-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f8f8;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.content-list li:hover {
    transform: translateX(-10px);
}

.content-icon {
    background: #4caf50;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.content-details h4 {
    color: #004d40;
    margin-bottom: 0.5rem;
}

.content-details p {
    color: #666;
    font-size: 0.9rem;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e0f2f1;
}

.register-btn {
    background: #4caf50;
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.register-btn:hover {
    background: #388e3c;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.timer {
    text-align: center;
}

.countdown {
    color: #004d40;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .course-info {
        flex-direction: column;
        gap: 1rem;
    }

    .course-footer {
        flex-direction: column;
        gap: 1.5rem;
    }

    .content-list li:hover {
        transform: none;
    }

    .course-badge {
        font-size: 0.9rem;
        padding: 0.3rem 2rem;
    }
}
/* Features Section */
/* Features Section Styles */
.features {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
}

.section-title {
    text-align: center;
    color: #004d40;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #004d40;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon-wrapper {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: #e0f2f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #004d40;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: #004d40;
    color: white;
    transform: rotate(360deg);
}

.feature-card h3 {
    color: #004d40;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-details {
    text-align: right;
    background: #f8f8f8;
    border-radius: 10px;
    padding: 1rem;
}

.feature-details ul {
    list-style: none;
    padding: 0;
}

.feature-details li {
    color: #004d40;
    padding: 0.5rem 1.5rem;
    position: relative;
}

.feature-details li::before {
    content: "✓";
    position: absolute;
    right: 0;
    color: #4caf50;
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    animation: fadeInUp 0.5s ease forwards;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        padding: 0 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .feature-card:hover {
        transform: translateY(-5px);
    }
}
/* Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #222 100%);
    color: white;
    padding: 3rem 0;
    font-size: 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--light-color);
    font-size: 1.3rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: bold;
}

.footer-section a:hover {
    color: var(--light-color);
    text-decoration: underline;
}

/* أيقونات السوشيال ميديا */
.social-icons {
    margin-top: 1rem;
    display: flex;
    gap: 10px;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
    color: var(--light-color);
}

/* الفوتر السفلي */
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}


/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.2rem;
    }
}
body, button, input, select, form, .modal-content {
    direction: rtl;
    text-align: right;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    width: 80%;
    max-width: 500px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    left: 15px; /* Left side for RTL */
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.submit-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    width: 100%;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #45a049;
}

/* Add some basic styling for the existing elements if needed */
.register-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.register-btn:hover {
    background-color: #45a049;
}