/* 
 * Main Stylesheet for IT Fundamentals  Course
 * Optimized for Arabic content and reading comfort
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&family=Tajawal:wght@300;400;500;700&display=swap');

/* CSS Variables for consistent theming */
:root {
    /* Color Palette - Comfortable for reading */
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --text-primary: #333333;
    --text-secondary: #555555;
    --accent-primary: #3a6ea5;
    --accent-hover: #2a5a8f;
    --accent-secondary: #6c757d;
    --border-color: #e1e4e8;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.12);

    /* Typography */
    --font-primary: 'Tajawal', sans-serif;
    --font-heading: 'Cairo', sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --primary-color: #ffffff;
    /* Add your desired color value */
    --text-color: #000000;
    /* Add your desired text color */
}

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

html,
body {
    height: 100%;
    font-family: var(--font-primary);
    font-size: 18px;
    line-height: 1.6;
    color: black;
    background-color: var(--bg-primary);
    scroll-behavior: smooth;
}


/* Main content container */
.container {
    display: flex;
    min-height: 100vh;
    position: relative;
    padding-top: 0px;
}

/* Main Content */
.content {
    flex: 1;
    padding: 0px;
    margin-right: var(--sidebar-current-width, var(--sidebar-width, 320px));
    /* Space for sidebar */
    transition: margin-right 0.3s ease;
    max-width: 100%;
}

/* Course Title */
.course-title {
    margin-bottom: 0px;

}

.course-title h1 {    
    margin-right: 1rem;
    margin-bottom: 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.course-title-text {
    flex: 1;
}

.speaker-icon {
    background: none;
    border: none;
    color: var(--accent-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.speaker-icon:hover {
    color: var(--accent-hover);
    transform: scale(1.1);
}

/* Base Section Styling */
section {
    margin-bottom: var(--spacing-xxl);
    background-color: var(--bg-secondary);
    padding: var(--spacing-sm) var(--spacing-xl) var(--spacing-sm) var(--spacing-xl);
    /* top right bottom left */
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

section:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}





/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-md);
    color: var(--accent-primary);
    line-height: 1.3;
}

h1 {
    font-size: 1.3rem;

}

h2 {
    font-size: 1.1rem;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    position: relative;
}



h3 {
    font-size: 1.4rem;
    margin-top: var(--spacing-lg);
    color: var(--accent-secondary);
}

h4 {
    font-size: 0.8rem;
    color: var(--text-secondary);


}

/* Paragraphs */
p {
    margin-bottom: var(--spacing-md);
    text-align: justify;

}

/* Lists */
ul,
ol {
    margin-bottom: var(--spacing-md);
    padding-right: var(--spacing-xl);
}

li {
    margin-bottom: var(--spacing-xs);
}

/* Links */
a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Code blocks */
code {
    font-family: 'Courier New', monospace;
    background-color: #f5f5f5;
    padding: 2px 4px;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
}

pre {
    background-color: #f5f5f5;
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin-bottom: var(--spacing-md);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--spacing-lg);
}

th,
td {
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    text-align: right;
}

th {
    background-color: #f5f5f5;
    font-weight: 600;
}

/* Comparison Table Styles */
.comparison-table {
    width: 80%;
    /* Adjust width as needed */
    margin: 2rem auto;
    /* Center the table horizontally */
    border-collapse: collapse;
    background-color: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    font-size: 1rem;
}

.comparison-table th,
.comparison-table td {
    padding: 0.1rem;
    text-align: center;
    /* Center align the content */
    border: 1px solid var(--border-color);
}

.comparison-table th {
    background-color: var(--accent-primary);
    color: white;
    font-weight: 600;
}

.comparison-table tr:nth-child(even) {
    background-color: var(--bg-secondary);
}

.comparison-table tr:hover {
    background-color: var(--bg-hover);
}

@media (max-width: 768px) {
    .comparison-table {
        font-size: 0.9rem;
        width: 100%;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.1rem;
    }
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}


/* Strong and Emphasis */
strong {
    font-weight: 700;
    color: var(--text-primary);
}

em {
    font-style: italic;
}

/* Navigation Bar Styles */
.top-nav {
    background-color: var(--accent-hover);
    padding: 10px 0;
    direction: ltr;
    /* For social icons, keep LTR */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
}

.top-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
}

.top-nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.top-nav a:hover {
    color: #75b2eb;
}

.top-nav i {
    font-size: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    height: 40px;
    width: 40px;


}

.logo-text {
    font-size: 1.7rem;
    font-weight: bold;
    color: var(--accent-primary);
    font-family: var(--font-heading);
    color: white;
}

@media (max-width: 768px) {
    .top-nav i {
        font-size: 0.7rem;
    }

    .nav-logo {
        height: 30px;
    }

    .logo-text {
        font-size: 1.3rem;
    }

}

/* Mobile Sidebar Toggle */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: var(--spacing-md);
    right: var(--spacing-md);
    z-index: 1000;
    background-color: var(--accent-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sidebar-toggle:hover {
    background-color: var(--accent-hover);
}

/* Banner Section */
.banner-section {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    padding: 0px;
    margin: 0px;
}

.banner-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgb(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.banner-overlay h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Cairo', sans-serif;
    text-shadow: 1px 1px 1px #000000
}

.banner-overlay p {
    font-size: 1.2rem;
    font-family: 'Tajawal', sans-serif;
}

/* Courses Page Specific Styles */
.courses-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.courses-header {
    text-align: center;
}

.courses-header h1 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    position: relative;
    text-shadow: 1px 1px 1px #000000
}

.courses-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 300px;
    height: 3px;
    background-color: var(--accent-primary);
}

/* Course Cards Container */
.course-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    direction: ltr;
    /* Force left-to-right direction */
}

/* Course Card */
.course-card {
    background: #eef7fd;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid var(--border-color);
}

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

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    direction: rtl;
}

.card-content h1 {
    color: var(--accent-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    text-align: center;
    direction: ltr;


}

.card-content p {
    color: #000000;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.card-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    justify-content: center;
}

.card-level {
    background-image: linear-gradient(to right, #314755 0%, #196486 51%, #5a6e7a 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;

}

.card-button {
    display: inline-block;
    background-image: linear-gradient(to right, #314755 0%, #26a0da 51%, #314755 100%);
    color: white;
    padding: 0.4rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: auto;
    white-space: normal;
    /* Allow text to wrap */
    word-wrap: break-word;
    /* Ensure long words break appropriately */
}

.card-button:hover {
    background-image: linear-gradient(to right, #5e7d91 0%, #255f7a 51%, #19435e 100%);
    color: white;
    text-decoration: none;
}

/* About Section Styles */
.about-section {
    background-color: #f8f9fa;
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;

    opacity: 0.7;
}

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

.about-text {
    background-color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 3px;
    background-color: var(--accent-primary);
}



/* Footer Styles */
.footer {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0px;
    background-color: var(--accent-hover);
    padding: 10px 0;
    direction: ltr;
}

.footer p {
    margin: 0;
    color: var(--text-secondary);
    text-align: center;
    color: white;
}

/* Navigation Buttons Styles */
.class-navigation {
    display: flex;
    justify-content: space-between;
    margin: 0rem 2rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
}

.nav-button {
    padding: 0.8rem 1.5rem;
    background-color: var(--accent-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.nav-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 768px) {
    .nav-button {
        padding: 0.3rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .class-navigation {
        display: flex;
        margin: 0rem 2rem;
        padding: 1rem;
        border-top: 1px solid var(--border-color);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .course-cards {
        grid-template-columns: repeat(2, 1fr);
        padding: 1.5rem;
    }

    .about-container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 1024px) {
    .course-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    /* Banner Section */
    .banner-overlay h1 {
        font-size: 2rem;

    }

    .banner-overlay p {
        font-size: 1rem;
    }

    /* Course Cards */
    .course-cards {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .courses-header h1 {
        font-size: 2rem;

    }

    .courses-header h1::after {
        width: 200px;
    }

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

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

    .about-description {
        font-size: 1rem;
        padding: 1rem;
    }

    .contact-info {
        padding: 1.5rem;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {

    /* Banner Section */
    .banner-section {
        height: 300px;
    }

    .banner-overlay h1 {
        font-size: 1.5rem;
    }

    /* Course Cards */
    .card-content {
        padding: 1rem;
    }

    .card-content h1 {
        font-size: 1.2rem;
    }

    .social-links {
        flex-wrap: wrap;
    }

    /* Back to Top Button */
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent-primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content {
        margin-right: 0;
        padding: 0px;
    }

    .section {
        padding: 3rem;
    }

    .section h2 {
        font-size: 0.8rem;
        margin-top: 0px;
    }

    .section p,
    .section li {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .course-title h1 {
        font-size: 1rem;
        padding-top: 1rem;
    }

    ul {
        padding-right: 1.2rem;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 10px;
    }

    .section {
        padding: 0.8rem;
    }



    .section p,
    .section li {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Audio Controls Styles */
.audio-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}
.audio-controls span {
    font-size: 0.8rem;
}


.speaker-icon,
.mute-icon,
.replay-icon {
    background: none;
    border: none;
    color: var(--accent-primary);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.speaker-icon:hover,
.mute-icon:hover,
.replay-icon:hover {
    color: var(--accent-hover);
    transform: scale(1.1);
}

.speaker-icon.playing,
.mute-icon.playing,
.replay-icon.playing {
    animation: pulse 1s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Course Header Styles */
.course-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    background-color: rgb(198, 226, 248);
}

.course-logo {
    width: 95px;
    height: auto;
    border-radius: var(--radius-md);
}

@media (max-width: 768px) {
    .course-header {
        flex-direction: row;
        justify-content: center;
        /* Center items horizontally */
        align-items: center;
        /* Center items vertically */
        gap: 1rem;
        padding: 0 1rem;
    }

    .course-logo {
        order: -1;
        /* Keep logo on the right */
    }

    .course-header h1 {
        font-size: 0.8rem;
        margin: 0;
        /* Remove default margin */
        text-align: center;
        /* Center the text */
    }

    .course-title-text {
        display: inline-block;
        /* Keep text aligned with logo */
    }
}

/* YouTube Section Styles */
.youtube-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.youtube-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.youtube-content {
    margin-top: 2rem;
}

.youtube-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.youtube-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: var(--accent-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.youtube-button:hover {
    background-color: #1fa8f7;
    transform: translateY(-2px);
    color: white;
}

.youtube-button i {
    font-size: 1.5rem;
}

.youtube-preview {
    max-width: 800px;
    margin: 0 auto 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.youtube-preview:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.youtube-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}

/* Image and Figure Styling */
figure {
    text-align: center;
    margin: 2rem auto;
    max-width: 400px;
    /* Changed from 800px to 400px (50%) */
}

figure img.section-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.image-caption {

    color: var(--text-secondary);
    font-size: 0.7rem;
    /* Changed from default to 1rem */
}

@media (max-width: 768px) {
    figure {
        max-width: 50%;
        /* Makes it responsive on mobile */
        padding: 0 1rem;
        margin: 2rem auto;
    }

    .image-caption {
        font-size: 0.7rem;
        /* Slightly smaller on mobile devices */
    }
}

/* Video Section Styles */
.videos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    max-width: 1000px;
    margin: auto;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);

}

.video-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-md);
    margin: var(--spacing-lg) auto;
    max-width: 900px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.video-card .video-container {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    width: 100%;
}

.videos-grid .video-card {
    margin: 0;
    max-width: 100%;
}

.video-card--half {
    width: 50%;
    max-width: none;
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
    .video-container {
        width: 90%;
        padding-bottom: 50.625%;
        /* Maintain aspect ratio for mobile */
    }
    .video-card {
        padding: var(--spacing-sm);
        max-width: 100%;
        margin: var(--spacing-md) auto;
    }
    .video-card .video-container {
        width: 100%;
    }
    .video-card--half {
        width: 100%;
    }
}

@media (min-width: 1024px) {
    .video-card {
        max-width: 1000px;
    }
}

@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
}

/* PDF Download Section Styles */
.pdf-download {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.pdf-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.3rem 0.5rem;
    background-color: var(--accent-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.pdf-button:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.pdf-button i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .pdf-button {

        font-size: 0.9rem;
    }
}

/* Share Section Styles */
.share-section {
    margin: 1rem 0;
    text-align: center;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.share-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.share-btn {
    border: none;
    padding: 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn.whatsapp {
    background-color: #25D366;
    color: white;
}

.share-btn.telegram {
    background-color: #0088cc;
    color: white;
}

.share-btn.twitter {
    background-color: #1DA1F2;
    color: white;
}

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

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Donate Section Styles */
.donate-section {
    margin-right: 1rem;
    text-align: center;
}

.donate-text {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;

}

.donate-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 1.5rem;
    background-color: #0070ba;
    color: white;
    text-decoration: none;
    /* Removes the underline */
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.3s ease;
}

.donate-button:hover {
    background-color: #003087;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    /* Keeps the underline removed on hover */
    color: white;
}

@media (max-width: 768px) {
    .donate-button {

        font-size: 0.5rem;
        padding: 0.3rem 0.5rem;
        margin-left: 0.5rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    left: 35px;
    /* Changed from right to left */
    top: 15px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #bbb;
}

/* Add animation */
.modal-content {
    animation: zoom 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.group {
    margin-top: 1.5rem;
    text-align: center;
}

.group-join-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.5rem;
    background-color: #0088cc;
    color: white;
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    font-size: 0.6rem;
}

.group-join-btn:hover {
    background-color: #006699;
    transform: translateY(-2px);
    color: white;
}

.quiz-button {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    border-radius: 6px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bolder;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Cairo', sans-serif;
}


.youtubechannel iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.youtubechannel a {
    display: inline-block;
    background: #e7281b;
    color: white;
    padding: 0.7rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: 20px;
    white-space: normal;
    word-wrap: break-word;
    box-shadow: 1px 1px 1px 1px rgb(124, 76, 76);
}

.youtubechannel a:hover {
    background: #f56161;
    color: white;
    text-decoration: none;
}





.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
    font-family: 'Cairo', sans-serif;
}

* Instructors Section */ .instructor-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.instructor-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 280px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.instructor-card img {
    width: 100%;
    border-radius: 50%;
    margin-bottom: 15px;
}

.instructor-card h3 {
    font-size: 1.2rem;
    margin: 10px 0 5px;
    color: #222;
}

.instructor-card p {
    font-size: 0.95rem;
    color: #555;
}

/* Testimonials Section */
.testimonial-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    font-style: italic;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.testimonial-card span {
    display: block;
    margin-top: 10px;
    color: #888;
    font-weight: 600;
}

/* Contact Section */
.contact-form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'Tajawal', sans-serif;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    padding: 12px;
    background-color: #007bff;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background-color: #0056b3;
}

.about-section {
    padding: 60px 20px;
    background-color: #fff;
    text-align: center;
    direction: rtl;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.about-content img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-content img:hover {
    transform: scale(1.02);
}

.about-text {
    max-width: 600px;
    text-align: right;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #333;
    font-family: 'Tajawal', sans-serif;
}
