/* Top Header */
.top-header {
    padding: 10px 0;
    background: #f8f9fa;
}

.lang-switcher .lang-btn {
    background: transparent;
    border: none;
    font-weight: 500;
    cursor: pointer;
    font-size: 14px;
}

.lang-switcher .flag {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.lang-switcher .small-flag {
    width: 18px;
    height: 18px;
}

/* Dropdown styling */
.lang-switcher .dropdown-menu {
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.lang-switcher .dropdown-item {
    padding: 6px 12px;
    font-size: 14px;
}

.lang-switcher .dropdown-item:hover {
    background-color: #f1f1f1;
}

/* Responsive container */
.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #008a95;
    --primary-hover: #007580;
    --text-color: #000000;
    --text-secondary: #000000cc;
    --text-light: #8e949f;
    --bg-light: #7171711a;
    --bg-overlay: #0000003d;
    --border-color: #6b72806b;
    --white: #ffffff;
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 36px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 34px;
    color: var(--text-color);
}

.section-title.white {
    color: var(--white);
}

.section-subtitle {
    font-size: 20px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 40px;
    color: var(--white);
}

.btn {
    font-family: 'Cairo', sans-serif;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
    padding: 8px 32px;
    font-size: 18px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
}

.btn-secondary:hover {
    background-color: var(--primary-hover);
}

.btn-white {
    background-color: var(--white);
    color: var(--text-color);
    padding: 8px 20px;
    font-size: 20px;
}

.btn-white:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.btn-full {
    width: 100%;
}

.top-header {
    background-color: #00415b;
    padding: 29px 0;
}

.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-icons {
    width: 186px;
    height: 24px;
}

.lang-switcher {
    display: flex;
    gap: 40px;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-family: 'Cairo', sans-serif;
    font-size: 18px;
    font-weight: 500;
}

.lang-btn .flag {
    width: 20px;
    height: 15px;
}

.main-nav {
    background-color: var(--white);
    padding: 24px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-nav .container {
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: space-between;
}

.logo {
    width: 58px;
    height: 43px;
}

.brand-logo {
    width: 146px;
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 18px;
}

.nav-link {
    font-size: 20px;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-color);
    padding: 4px 8px;
    transition: all 0.3s ease;
}

.nav-link.active {
    color: #2a9d8f;
    border-bottom: 2px solid var(--primary-color);
}

.nav-link:hover {
    opacity: 0.7;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-input {
    border: none;
    background: transparent;
    font-family: 'Cairo', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-light);
    width: 86px;
    outline: none;
}

.whatsapp-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.whatsapp-btn:hover {
    opacity: 0.8;
}

.whatsapp-btn img {
    width: 18px;
    height: 18px;
}

.hero {
    background-image: url('./public/frame-793-1.png');
    background-size: cover;
    background-position: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    background-color: var(--bg-overlay);
    width: 100%;
    padding: 80px 20px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    font-size: 44px;
    font-weight: 600;
    color: var(--white);
    max-width: 504px;
}

.hero p {
    font-size: 20px;
    font-weight: 500;
    color: var(--white);
}

.hero-dots {
    display: flex;
    gap: 13px;
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
}

.dot.active {
    background-color: var(--white);
}

.courses {
    background-color: var(--bg-light);
    padding: 60px 0;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
    gap: 18px;
    max-width: 1142px;
    margin: 0 auto;
}

.course-card {
    background-color: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.course-image {
    height: 249px;
    background-size: cover;
    background-position: center;
    margin: 12px;
    border-radius: 8px;
    position: relative;
}

.badge {
    position: absolute;
    top: 12px;
    right: 0;
    background-color: rgba(0, 0, 0, 0.26);
    color: var(--white);
    padding: 3px 12px;
    border-radius: 0 20px 20px 0;
    font-size: 10px;
    font-weight: 400;
}

.course-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.course-content h3 {
    font-size: 20px;
    font-weight: 500;
    text-align: right;
}

.instructor {
    font-size: 14px;
    font-weight: 500;
    text-align: right;
}

.datetime {
    font-size: 12px;
    font-weight: 500;
    text-align: right;
}

.price {
    font-size: 14px;
    font-weight: 400;
    text-align: right;
    margin-bottom: 12px;
}

.price .label {
    font-weight: 600;
    color: var(--text-color);
}

.price .amount {
    font-weight: 500;
    color: var(--primary-color);
}

.specialists {
    background-color: var(--bg-light);
    padding: 60px 0;
}

.specialists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(309px, 1fr));
    gap: 14px;
    max-width: 1278px;
    margin: 0 auto;
}

.specialist-card {
    background-color: var(--white);
    border-radius: 10px;
    border: 1px solid rgba(107, 114, 128, 0.4);
    padding: 50px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.specialist-card img {
    width: 209px;
    height: 206px;
}

.specialist-card h3 {
    font-size: 16px;
    font-weight: 500;
}

.credentials {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.description {
    font-size: 20px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.78);
}

.testimonials {
    background-color: var(--bg-light);
    padding: 60px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(417px, 1fr));
    gap: 15px;
    max-width: 1281px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.38);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.quote-icon {
    width: 30px;
    height: 30px;
}

.rating-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.rating {
    font-size: 16px;
    font-weight: 500;
}

.date {
    font-size: 12px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.61);
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
}

.avatar-red {
    background-color: #e15f5f;
}

.avatar-green {
    background-color: #165d31;
}

.avatar-purple {
    background-color: #8a38f5;
}

.stars {
    width: 134px;
    height: 20px;
    align-self: flex-end;
}

.testimonial-text {
    font-size: 12px;
    font-weight: 400;
    text-align: right;
}

.testimonial-footer {
    font-size: 12px;
    font-weight: 400;
    text-align: center;
}

.statistics {
    background-color: var(--primary-color);
    padding: 60px 0;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 100px;
    margin-top: 54px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-number {
    font-size: 40px;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
}

.about {
    padding: 60px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 40px;
    align-items: center;
}

.about-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-text p {
    font-size: 20px;
    font-weight: 300;
    text-align: right;
    line-height: 1.8;
}

.about-text strong {
    font-weight: 500;
}

.partners {
    padding: 60px 0;
}

.partners-image {
    width: 100%;
    max-width: 1224px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.contact {
    padding: 60px 0;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 21px;
    margin-bottom: 88px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-item span {
    font-size: 20px;
    font-weight: 500;
    color: var(--primary-color);
}

.contact-item img {
    width: 20px;
    height: 20px;
}

.contact-form {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 18px;
    font-weight: 500;
    text-align: right;
}

.form-group input,
.form-group textarea {
    font-family: 'Cairo', sans-serif;
    padding: 16px;
    border: 1px solid rgba(107, 114, 128, 0.22);
    border-radius: 10px;
    background-color: rgba(225, 227, 230, 0.38);
    font-size: 16px;
    text-align: right;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
}

.form-group textarea {
    height: 209px;
    resize: none;
}

.footer {
    background-color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto auto 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 40px;
    justify-items: center;
}

.footer-badge {
    width: 112px;
    height: 83px;
}

.footer-logo {
    width: 376px;
    height: auto;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    font-size: 24px;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-color);
    text-align: center;
    transition: color 0.3s ease;
}

.footer-nav a.active {
    color: var(--primary-color);
}

.footer-nav a:hover {
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.footer-links > div {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 24px;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-end;
}

.social-section span {
    font-size: 24px;
    font-weight: 500;
}

.social-section img {
    width: 186px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

.footer-copyright {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-copyright span {
    font-size: 18px;
    font-weight: 300;
}

.footer-copyright img {
    width: 20px;
    height: 20px;
}

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .courses-grid,
    .specialists-grid,
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .main-nav .container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 16px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
