/* Load Jameel Font */
@font-face {
    font-family: 'Jameel';
    src: url('/images/fonts/mehr.woff2') format('woff2'),
    font-weight: normal;
    font-style: normal;
}

/* Global Styles */
body {
    font-family: 'Jameel', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    direction: rtl;

    overflow-x: hidden;  /* Prevents horizontal scrolling */
    max-width: 100%; /* Ensures no unintended extra width */
    margin: 0; /* Removes any default margin */
    padding: 0;
}

/* Heading Style */
h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    font-family: 'Jameel', sans-serif;
}

/* Paragraph and First Line Styling */
p {
    font-size: 24px;
    margin: 10px 0;
}

p.first-line {
    font-size: 28px;
    font-weight: bold;
}

li {
    font-size: 20px;
    
}






.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    padding: 20px;
    max-width: 100%;
    margin: auto;
    overflow-x: hidden;
}


.course-box-blue {
    background-color: #93e1ea;
    border: 0px solid #ccc;
    padding-right: 20px;
    border-radius: 0px;
    text-align: right;
}

.course-box-green {
    background-color: #92e8cc;
    border: 0px solid #ccc;
    padding-right: 20px;
    border-radius: 0px;
    text-align: right;
}

.course-box-red {
    background-color: #ea9393;
    border: 0px solid #ccc;
    padding-right: 20px;
    border-radius: 0px;
    text-align: right;
}

.course-box-yellow {
    background-color: #fff7a8;
    border: 0px solid #ccc;
    padding-right: 20px;
    border-radius: 0px;
    text-align: right;
}

/* Responsive Design */

/* Tablets: 2 columns */
@media (max-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Phones: 1 column */
@media (max-width: 600px) {
    .courses-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}






/* FAQ Section */
.faq-section {
    width: 80%;
    margin: 20px auto;
    padding: 10px;
    display: block; /* Ensures it behaves as a block element */
}

/* FAQ item */
.faq-item {
    border-bottom: 1px solid #ddd;
    text-align: right;
    margin-bottom: 10px;
}

/* Hide checkbox */
.faq-item input {
    display: none;
}

/* Question Styling */
.faq-question {
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 15px;
    background: #f2f2f2;
    border-radius: 5px;
    position: relative;
    transition: background 0.3s;
    display: block;
    -webkit-tap-highlight-color: transparent;
}

/* Hover effect for desktop */
@media (min-width: 601px) {
    .faq-question:hover {
        background: #e0e0e0;
    }
}

/* Plus/Minus Icon */
.faq-question::after {
    content: ""; /* Show minus initially */
    font-size: 22px;
    position: absolute;
    left: 15px;
    transition: transform 0.3s;
}

/* Answer Styling */
.faq-answer {
    background: #fff;
    font-size: 20px;
    padding: 15px;
    border-radius: 5px;
    display: block; /* Ensure visibility */
    overflow: hidden;
    max-height: 1000px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

/* Hide Answer on Click */
.faq-item input:checked + .faq-question + .faq-answer {
    max-height: 0;
    padding: 0;
    overflow: hidden;
    display: none; /* Fully hide */
}

/* Change Icon on Hide */
.faq-item input:checked + .faq-question::after {
    content: ""; /* Change to plus when hidden */
}

/* 📱 Mobile Styles */
@media (max-width: 600px) {
    .faq-container {
        width: 95%;
        padding: 5px;
    }

    .faq-question {
        font-size: 18px;
        padding: 10px;
    }

    .faq-answer {
        font-size: 16px;
    }
}
















/* Container for the contact section */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    background-color: #f8f8f8;
    padding: 20px;
    
}

/* Contact Form */
.contact-form-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    padding: 20px;
    color: #333;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form-wrapper h2 {
    margin-bottom: 15px;
    color: #333;
    text-align: right;
    font-family: 'Jameel', sans-serif;
}

.contact-form-wrapper p {
    color: #333;
    font-size: 14px;
    font-family: 'Titillium Web', sans-serif;
}




.contact-form-wrapper label {
    font-weight: bold;
    margin-top: 0px;
    color: #333;
    display: block;
    font-family: 'Titillium Web', sans-serif;
}

.contact-form-wrapper input,
.contact-form-wrapper textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #8bc34a;
    color: #333;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: 'Titillium Web', sans-serif;
}

.contact-form-wrapper textarea {
    resize: vertical;
    min-height: 100px;
    color: #333;
    font-family: 'Titillium Web', sans-serif;
}

.contact-form-wrapper button {
    background-color: #8bc34a;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    font-family: 'Titillium Web', sans-serif;
}

.contact-form-wrapper button:hover {
    background-color: #7cb342;
}

/* Google Map */
.map-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
}


/* Responsive Design */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }

    .contact-form-wrapper,
    .map-wrapper {
        max-width: 100%;
    }
}









/* Popup Modal Styles */
.popup-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed positioning */
    z-index: 1000; /* Ensure it's on top of other elements */
    bottom: 80px; /* Set to bottom of the page */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Adjust for perfect centering */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.popup-content {
    background-color: #a51c1c;
    color: #ffffff;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    max-width: 400px;
    margin: auto;
}

.popup-content p {
    color: #ffffff;
}



.close-btn {
    position: absolute;
    top: 0px;
    right: 10px;
    font-size: 40px;
    color: #000000;
    cursor: pointer;
}

.close-btn:hover {
    color: white;
}











/* Footer Styling */
.footer {
    background-color: #333; /* Dark gray background */
    color: #ccc; /* Light gray text */
    padding: 15px 20px;
    position: relative;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer p {
    margin: 0;
    font-size: 14px;
}

/* Social Media Icons */
.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    transition: transform 0.2s;
}

.social-icon:hover {
    transform: scale(1.3);
}


/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .social-icons {
        margin-top: 10px;
    }
}


body::-webkit-scrollbar {
    display: none;
}

html, body {
    overflow-x: hidden !important;
}