:root {
    --primary: #d6a361;
    --primary-dark: #b98e56;
    --secondary: #3ba0a7;
    --text: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-bg: #faf6f6;
    --border: #e6d9d9;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    line-height: 1.6;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

body[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

body[dir="rtl"] .module-cards {
    direction: rtl;
}

body[dir="rtl"] .feature-tags {
    justify-content: flex-end;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

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

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url('https://yasminealameddine.sirv.com/Assets/hero2.jpg') center/cover no-repeat;
    padding: 180px 0 100px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--text);
}

.hero p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 40px;
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    background-color: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
}

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

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

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

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--text);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.credentials {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.credential-item i {
    color: var(--primary);
    font-size: 20px;
}

/* Video Section */
.video-section {
    padding: 100px 0;
    text-align: center;
}

.video-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.video-section p {
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-light);
}

.video-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-placeholder {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: url('https://yasminealameddine.sirv.com/Assets/thumbnail.jpg') center/cover no-repeat;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

.play-btn i {
    color: var(--primary);
    font-size: 30px;
    margin-left: 5px;
    /* Offset for play icon */
}

/* Course Features */
.features {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.features h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 20px;
}

.features-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    color: var(--text-light);
}

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

.feature-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon i {
    color: var(--light-bg);
    font-size: 24px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
}

/* CTA Section */
.cta {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(#3ba0a7e3, #3ba0a7d3), url('https://yasminealameddine.sirv.com/Assets/enroll-banner.jpg') center/cover no-repeat;
    color: var(--white);
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 18px;
}

.cta .btn {
    background-color: var(--white);
    color: var(--primary);
    font-size: 18px;
    padding: 16px 40px;
}

.cta .btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Footer */
footer {
    background-color: var(--white);
    padding: 60px 0;
    border-top: 1px solid var(--border);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.footer-links {
    display: flex;
    list-style: none;
}

.footer-links li {
    margin-left: 30px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-light);
    transition: color 0.3s;
}

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

.copyright {
    text-align: center;
    margin-top: 40px;
    color: var(--text-light);
    font-size: 14px;
}

/* Popup Overlay Styling */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.popup-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.popup-btn:hover {
    background-color: var(--primary-dark);
}

.course-details {
    background-color: #f9f9f9;
    padding: 60px 20px;
}

.course-details h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text);
}

.course-details h3 {
    font-size: 20px;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text);
}

.course-intro {
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 1.1rem;
    color: #555;
}

.module-list,
.course-highlights ul {
    list-style-type: disc;
    padding-left: 40px;
    max-width: 900px;
    margin: 0 auto 30px;
    color: #333;
    font-size: 1rem;
}

.course-certification {
    max-width: 800px;
    margin: 40px auto 0;
    text-align: center;
    font-size: 1.1rem;
    color: #444;
}

.course-module,
.course-highlights,
.course-certification {
    margin-bottom: 40px;
}



.module-card {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 5% 10%;
    background-color: #3ba0a754;
    border-radius: 20px;
    -webkit-box-shadow: 1px 18px 7px -7px rgba(0, 0, 0, 0.42);
    box-shadow: 1px 18px 7px -7px rgba(0, 0, 0, 0.42);
}

.module-text {
    margin: 0 50px;
}

.module-text h3 {
    font-family: "poppins";
    font-size: 30px;
    text-align: right;
}

.module-image {
    width: 50%;
    height: 50%;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.module-text {
    flex: 1;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-tag {
    background-color: #e0f0ff;
    color: #0056b3;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.language-selector select {
    font-size: 0.9rem;
    padding: 5px 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: #fff;
    margin-left: 15px;
    padding-right: 30px;
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid var(--border);
    border-radius: 5px;
}

.language-selector-wrapper select {
    font-size: 0.9rem;
    padding: 5px 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: #fff;
    padding-right: 30px;
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid var(--border);
    border-radius: 5px;
    margin: -100px 0 0 -15px
}

.language-selector {
    display: block;
}

.language-selector-wrapper {
    display: none;
}

.scroll {
    margin-top: 50px;
    font-size: 12px;
}

.scroll span {
    display: block;
}

.why {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* center all module-card items */
    gap: 2rem;
    padding: 0 2rem;
    background-color: var(--secondary);
    color: var(--light-bg);
    width: 90%;
    border-radius: 20px;
    margin: auto;
    text-align: center;
    padding: 5%;
    transition: 0.5s;
}

.why p {
    font-weight: 700;
}

.why ul {
    list-style-type: none;
}

.why:hover {
    background-color: var(--primary);
    color: var(--text);
    transition: 0.5s;
}

.end {
    margin: 50px;
    text-align: center;
}

.end a {
    margin: 3%;
}

.whatsapp-container {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background-color: #25d366;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: width 0.3s ease, padding-right 0.3s ease;
    width: 50px;
    overflow: hidden;
    white-space: nowrap;
}

.whatsapp-container:hover {
    width: 270px;
    padding-right: 20px;
}

.whatsapp-icon {
    font-size: 24px;
    margin-right: 10px;
    flex-shrink: 0;
}

.whatsapp-text {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.whatsapp-container:hover .whatsapp-text {
    opacity: 1;
}


.socials {
    text-align: center;
    margin-top: 50px;
    margin-bottom: -2%;
}

.socials a {
    display: block;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 14px;
}

.socials i {
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 18px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .whatsapp-icon {
        font-size: 24px;
        margin-right: 0;
        flex-shrink: 0;
    }
    .whatsapp-container {
        position: fixed;
        top: 90%;
        right: 0;
        transform: translateY(-50%);
        background-color: #25d366;
        color: white;
        text-decoration: none;
        border-top-left-radius: 25px;
        border-bottom-left-radius: 25px;
        display: flex;
        align-items: center;
        cursor: pointer;
        transition: width 0.3s ease, padding-right 0.3s ease;
        width: 50px;
        overflow: hidden;
        white-space: nowrap;
        background-size: 100%;
    }


    .whatsapp-container:hover {
        width: 50px;
    }

    .whatsapp-text {
        opacity: 0;
        display: none;
    }


    .footer-logo {
        text-align: center;
    }

    .contact-us {
        display: none;
    }

    .course-certification {
        margin-left: 20px;
        margin-right: 20px;
    }

    .module-cards {
        display: grid;
        grid-template-columns: 1fr;
        place-items: center;
        gap: 2rem;
        justify-content: center;
        gap: 2rem;
        padding: 0 2rem;
    }

    .module-card {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(2, 1fr);
        align-items: center;
        background-color: #3ba0a754;
        border-radius: 20px;
        height: 30rem;
        width: 20rem;
        margin: 0 auto;
        /* fallback centering */
    }

    .module-text {
        grid-area: 2 / 1 / 3 / 2;
        margin: 0 30px;
        font-size: 14px
    }

    .module-text h3 {
        font-family: "poppins";
        font-size: 22px;
        text-align: right;
        margin-top: -20px;
    }

    .module-image {
        grid-area: 1 / 1 / 2 / 2;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
        flex-shrink: 0;
    }

    .module-text {
        flex: 1;
    }

    .about-container {
        flex-direction: column;
    }

    .about-image {
        order: -1;
    }

    .logo {
        font-family: 'Playfair Display', serif;
        font-size: 16px;
        font-weight: 700;
        color: var(--text);
        text-decoration: none;
    }

    .hero h1 {
        font-size: 32px;
        margin-bottom: 20px;
        color: var(--text);
    }

    .hero p {
        font-size: 16px;
        color: var(--text-light);
        max-width: 700px;
        margin: 0 auto 40px;
    }
}

@media (max-width: 768px) {
    .language-selector {
        display: none;
    }

    .language-selector-wrapper {
        display: block;
        padding: 15px;
    }

    .nav-links {
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 65px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .about-text h2,
    .video-section h2,
    .features h2,
    .cta h2 {
        font-size: 28px;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
    }

    .footer-links {
        margin-top: 20px;
    }

    .footer-links li {
        margin: 0 15px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 150px 0 80px;
    }

    .credentials {
        flex-direction: column;
        gap: 10px;
    }
}

.video-container video {
    max-width: 100%;
    height: auto;
}