/* Import Titillium Web Font and PT Sans*/
@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&display=swap');

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


/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PT Sans', sans-serif;
}

body {
    overflow-x: hidden;
    position: relative;
}


/* Sticky Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    z-index: 10;
    transition: background-color 0.3s, padding 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
}

header.scrolled {
    background-color: #2eb3d1;
    padding: 10px 20px;
}

/* Logo Styles */
.logo img {
    max-width: 190px;
    height: auto;
    transition: max-width 0.3s, padding 0.3s;
}

header.scrolled .logo img {
    max-width: 130px;
    padding: 5px;
}

/* Navigation */
header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-family: 'Titillium Web', sans-serif;
    font-weight: 600;
    font-size: 17px;
    transition: color 0.3s;
    white-space: nowrap;
}

header nav ul li a:hover {
    color: #353535;
}

/* Background Slider */
.background-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

/* Section Separator */
.section-separator {
    background-color: black;
    color: white;
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 1;
    margin-top: 0;
    font-family: 'Titillium Web', sans-serif;
    font-size: 36px;
}

/* Arrow Down */
.arrow-down {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid white;
    margin: 10px auto 0;
}

/* Courses Section */
.courses-section {
    padding: 50px 15%;
    background-color: #f9f9f9;
    z-index: 1;
}

.courses-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Enforce 3 columns */
    gap: 20px;
}

/* Course Item Styles */
.course-item {
    background-color: white;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.course-item:hover {
    transform: translateY(-5px);
}

.course-item img {
    max-width: 100%;
    border-radius: 8px;
}

.course-item h3 {
    margin: 10px 0;
    font-size: 32px;
    font-family: 'Jameel';
}

.course-item p {
    margin: 10px 0;
    color: #555;
    font-size: 20px;
    font-family: 'Jameel';
    line-height: 1.8;
}

/* Full Clickable Style */
.full-clickable {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Button Style */
.course-link-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #1a9bcc;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-family: 'Jameel';
    transition: background-color 0.3s;
}

.course-link-btn:hover {
    background-color: #0d5c7a;
}

/* Dummy Content
.filler {
    height: 1000px;
}
*/

/* Mobile Styles */
@media (max-width: 768px) {
    /* Header */
    header {
        padding: 10px 20px;
        flex-direction: column;
    }

    .logo img {
        max-width: 130px;
        margin-bottom: 10px;
    }

    header nav ul {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    header nav ul li a {
        font-size: 14px;
    }

    /* Hide the slider on mobile */
    .background-slider {
        display: none;
    }

    /* Show a static image instead */
    .mobile-slider-placeholder {
        display: block;
        width: 100%;
        height: auto;
    }

    /* Courses in a single column on mobile */
    .courses-table {
        grid-template-columns: 1fr;
        padding: 10px;
    }
}

/* Hide mobile slider on desktop */
.mobile-slider-placeholder {
    display: none;
}

/* Show only on mobile */
@media (max-width: 768px) {
    .mobile-slider-placeholder {
        display: block;
        width: 100%;
        height: auto;
    }

    .background-slider {
        display: none;
    }
}


/* Why Us Section */
.why-us-section {
    padding: 50px 10%;
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
}

.why-us-container {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
}

/* Left Column (Text) */
.why-us-text {
    flex: 1;
    max-width: 50%;
}

.why-us-text h2 {
    font-size: 42px;
    font-family: 'Titillium Web', sans-serif;
    margin-bottom: 20px;
    color: #333;
}

.why-us-text p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Right Column (Image) */
.why-us-image {
    flex: 1;
    max-width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.why-us-image img {
    max-width: 100%;
    height: auto;
}

/* Counters Section */
.counters-section {
    display: flex;
    justify-content: space-around;
    padding: 50px 10%;
    background-color: #f9f9f9;
}

.counter-item {
    text-align: center;
}

.counter-icon {
    font-size: 50px;
    margin-bottom: 10px;
    color: #4caf50;
}

.counter-item h3 {
    font-size: 48px;
    color: #4caf50;
    margin: 10px 0;
    font-family: 'Titillium Web', sans-serif;
}

.counter-item p {
    font-size: 20px;
    color: #555;
    font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .why-us-container {
        flex-direction: column;
        text-align: center;
    }

    .why-us-text, .why-us-image {
        max-width: 100%;
    }

    .counters-section {
        flex-direction: column;
        gap: 20px;
    }
}

/* Services Section */
.services-section {
    padding: 50px 10%;
    background-color: #f9f9f9;
    text-align: center;
}


.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-item {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.service-item img {
    max-width: 120px;
    margin-bottom: 15px;
}

.service-item h3 {
    font-size: 26px;
    margin: 10px 0;
    font-family: 'Titillium Web', sans-serif;
    color: #353535;
}

.service-item p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    font-family: 'PT Sans', sans-serif;
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}


/* Online Presence Section */
.online-presence {
    text-align: center;
    padding: 0px 0px;
    margin-top: 0; /* No extra margin on top */
    background-color: #f8f8f8;
}

.online-presence h2 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: #333;
}

.online-presence p {
    font-size: 1.2rem;
    margin-bottom: 0px;
    color: #666;
}

.online-presence img {
    width: 100%;
    max-width: 100%;
    height: auto;
}



/* Work Section */
.work-section {
    padding: 60px 0;
    text-align: center;
    background-color: #f8f8f8;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.work-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.work-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.work-item p {
    margin-top: 10px;
    font-size: 1.2rem;
    color: #333;
    font-family: 'Titillium Web', sans-serif;
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2);
}





/* Review Section */
.reviews-container {
    padding: 40px 20px;
    background-color: #f9f9f9; /* Consistent background color */
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.review-card {
    background-color: #282828;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.2s;
}

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

.review-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.review-name {
    font-size: 1.2em;
    font-weight: bold;
    margin: 10px 0 5px;
    color: #eeeeee;
    font-family: 'Titillium Web', sans-serif;
}

.review-location {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
    color: #eeeeee;
    font-family: 'Titillium Web', sans-serif;
}

.review-stars {
    color: #f39c12; /* Consistent star color */
    font-size: 1.2em;
    margin: 5px 0;
}

.review-text {
    font-size: 0.9em;
    color: #333;
    line-height: 1.4;
    color: #eeeeee;
    font-family: 'Titillium Web', sans-serif;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

/* Update for mobile (phones) */
@media (max-width: 480px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns on phone */
    }

    /* Ensure consistent background color */
    body, .reviews-container {
        background-color: #f9f9f9;
    }
}








/* 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;
    font-family: 'Titillium Web', sans-serif;
}

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




.contact-form-wrapper label {
    font-weight: bold;
    margin-top: 20px;
    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;
    }
}


/* Responsive Styles for Our Work Section */
@media (max-width: 768px) {
    .work-grid {
        grid-template-columns: 1fr 1fr; /* Two columns on tablets */
        gap: 20px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .work-grid {
        grid-template-columns: 1fr; /* Single column on phones */
        gap: 15px;
        padding: 10px;
    }
}



/* Back to Top Button Styles */
.back-to-top-btn {
    position: fixed; /* Ensures the button floats */
    bottom: 20px; /* Position from the bottom */
    right: 20px; /* Position from the right */
    width: 50px;
    height: 50px;
    background-color: #333; /* Dark color */
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 1000;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top-btn:hover {
    background-color: #555;
    transform: scale(1.1);
}

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