/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* --- Base Styles & Variables --- */
:root {
    --primary-color: #333;
    --secondary-color: #f4f4f4;
    --dark-color: #1a1a1a;
    --light-color: #fff;
    --text-color: #555;
    --border-color: #ddd;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    background: var(--light-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 3rem 2rem;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

/* --- Header & Navbar --- */
header {
    background: var(--light-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 70px;
}

.nav-logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.btn-portal {
    background: var(--primary-color);
    color: var(--light-color);
    padding: 0.5rem 1.2rem;
    border-radius: 5px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.btn-portal:hover {
    opacity: 0.9;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--primary-color);
}


/* --- Hero Section --- */
.heroi {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 300px;
    background-color: var(--secondary-color);
    background-image: url('img/Backgrounds/Home.png');
    background-size: 100%;
    background-repeat: no-repeat;
    text-align: center;
}

.heroi h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    margin-top: 1%;
}
.heroi p {
    font-size: 1.2rem;
    color: var(--text-color);
}
.heroi img {
    width: 300px;
    height: auto;
    margin-top: 0%;
}

.heroc {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 300px;
    background-color: var(--secondary-color);
    background-image: url('img/Backgrounds/Courses.png');
    background-size: 100%;
    background-repeat: no-repeat;
    text-align: center;
}

.heroc h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}
.heroc p {
    font-size: 1.2rem;
    color: var(--text-color);
}
.heroa {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 300px;
    background-color: var(--secondary-color);
    background-image: url('img/Backgrounds/AboutUs.png');
    background-size: 100%;
    background-repeat: no-repeat;
    text-align: center;
}

.heroa h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}
.heroa p {
    font-size: 1.2rem;
    color: var(--text-color);
}
.heroc2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 300px;
    background-color: var(--secondary-color);
    background-image: url('img/Backgrounds/ContactUs.png');
    background-size: 100%;
    background-repeat: no-repeat;
    text-align: center;
}

.heroc2 h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}
.heroc2 p {
    font-size: 1.2rem;
    color: var(--text-color);
}

/* --- Home Page Specific --- */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.card-icon {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}
.card-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.card-icon i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    background: var(--secondary-color);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    line-height: 70px;
}
.card-icon h3 {
    font-size: 1.2rem;
}

.leads-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}
.lead-card img {
    width: 125px;
    height: 125px;
    border-radius: 50%;
    object-fit: cover;
    /* border: 3px solid var(--border-color); */
}
.lead-card p {
    margin-top: 0.5rem;
    font-weight: 500;
}

.who-we-are {
    display: flex;
    align-items: center;
    gap: 3rem;
}
.who-we-are-content, .who-we-are-img {
    flex: 1;
}
.who-we-are-img img {
    max-width: 300px;
}
.who-we-are-content h2 {
    text-align: left;

}
.who-we-are {
    /* These properties set up the side-by-side layout */
    display: flex;
    align-items: center; /* This handles the vertical alignment */
    gap: 3rem;
    flex-wrap: wrap;

    /* --- NEW: Add these lines for guaranteed horizontal centering --- */
    width: fit-content;   /* Makes the container only as wide as its contents */
    margin-left: auto;    /* Centers the container on the page */
    margin-right: auto;   /* Centers the container on the page */
    padding: 2rem 0;      /* Adds some space above and below the section */
}
.who-we-are-content p {
    font-size: 1.1rem;
    color: var(--text-color);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    background: var(--primary-color);
    color: var(--light-color);
    padding: 3rem;
    border-radius: 10px;
    text-align: center;
}
.stat-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.stat-item h3 {
    font-size: 2rem;
}

/* --- About Page Specific --- */
.story-text {
    max-width: 700px;
    margin: 1rem auto 0 auto;
    font-size: 1.1rem;
    color: var(--text-color);
}

.mission-vision {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.mission-vision-item {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.mission-vision-item.reverse {
    flex-direction: row-reverse;
}

.mission-vision-img {
    flex: 1;
    text-align: center;
}

.mission-vision-img img {
    max-width: 350px;
}
.mission-vision-text {
    flex: 1.5;
}

.mission-vision-text h2 {
    text-align: left;
}
.mission-vision-text p {
    font-size: 1.1rem;
    color: var(--text-color);
}

/* --- Courses Page Specific --- */
.track {
    margin-bottom: 4rem;
}
.track-header {
    text-align: center;
    margin-bottom: 2rem;
}
.track-header p {
    max-width: 600px;
    margin: 0.5rem auto 0;
    color: var(--text-color);
}

.track-courses {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.course-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.course-card h4 {
    padding: 1.2rem;
    text-align: center;
}

/* --- Contact Page Specific --- */
.contact-wrapper {
    display: flex;
    gap: 3rem;
    background: #fff;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.contact-info, .contact-form {
    flex: 1;
}
.contact-info h3, .contact-form h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.info-item i {
    font-size: 1.5rem;
    margin-top: 5px;
    color: var(--primary-color);
}
.info-item h4 {
    margin-bottom: 0.2rem;
}
.info-item p {
    color: var(--text-color);
    font-size: 0.95rem;
}
.info-note {
    font-size: 0.85rem;
    color: #888;
}

.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}
.btn-submit {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}
.btn-submit:hover {
    opacity: 0.9;
}
.map-section {
    width: 100%;
    height: 450px;
    margin-top: 2rem;
}
.map-section iframe {
    filter: grayscale(1);
}

/* --- Footer --- */
footer {
    background: var(--dark-color);
    color: #ccc;
    padding: 3rem 2rem 0 2rem;
}

.footer-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-col p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.footer-col h4 {
    color: var(--light-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.footer-col ul li {
    margin-bottom: 0.5rem;
}
.footer-col ul li a {
    font-size: 0.9rem;
    transition: color 0.3s;
}
.footer-col ul li a:hover {
    color: var(--light-color);
}
.social-icons a {
    color: #ccc;
    font-size: 1.2rem;
    margin-right: 1rem;
    transition: color 0.3s;
}
.social-icons a:hover {
    color: var(--light-color);
}

.footer-iso {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid #333;
}
.footer-iso img {
    max-width: 500px;
}


/* --- Media Queries for Responsiveness --- */
@media(max-width: 992px) {
    .grid-4, .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .track-courses {
        grid-template-columns: 1fr;
    }
     .who-we-are, .mission-vision-item, .mission-vision-item.reverse {
        flex-direction: column;
        text-align: center;
    }
    .who-we-are-content h2, .mission-vision-text h2 {
        text-align: center;
    }
    .contact-wrapper {
        flex-direction: column;
    }
}


@media(max-width: 768px) {
    .hamburger {
        display: block;
    }
    .hamburger.active .bar:nth-child(2){
        opacity: 0;
    }
     .hamburger.active .bar:nth-child(1){
        transform: translateY(8px) rotate(45deg);
    }
     .hamburger.active .bar:nth-child(3){
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--light-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        padding: 1rem 0;
    }

    .nav-link {
        font-size: 1.1rem;
    }

    .btn-portal {
        display: none; /* Hide button on mobile nav, can be moved inside if needed */
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

@media(max-width: 576px) {
    .grid-4, .stats-grid {
        grid-template-columns: 1fr;
    }
    .leads-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }
}
.patrick-hand-regular {
  font-family: "Patrick Hand", cursive;
  font-weight: 400;
  font-style: normal;
}













/* --- Modal Styles --- */

/* The dark background overlay */
.modal-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6); /* Black with opacity */
  justify-content: center;
  align-items: center;
}

/* The pop-up window itself */
.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 2rem;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  position: relative;
  text-align: center;
  animation: slide-down 0.4s ease-out;
}

/* Animation for the modal pop-up */
@keyframes slide-down {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-content img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 1rem;
}

.modal-content h2 {
  margin-bottom: 1rem;
}

.modal-content p {
  color: #555;
  margin-bottom: 2rem;
}

/* The Close Button (X) */
.close-button {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 28px;
  font-weight: bold;
}

.close-button:hover,
.close-button:focus {
  color: #333;
  text-decoration: none;
  cursor: pointer;
}

/* Make the course cards clickable */
.course-card.open-modal-btn {
  cursor: pointer;
}





/* --- Custom Design for Form Dropdown --- */
/* Add this to the end of your style.css file */

.form-group select {
    /* --- 1. Basic Styling (to match other inputs) --- */
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: #fff; /* Set an explicit background color */
    font-family: inherit;
    font-size: 1rem;
    color: var(--primary-color);
    cursor: pointer;

    /* --- 2. Remove Default Arrow & Add a Custom One --- */
    /* This removes the default system dropdown arrow */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* This adds our custom arrow using an SVG embedded in the CSS */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23333333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1em;
    
    /* Add extra padding on the right so text doesn't go under the arrow */
    padding-right: 2.5rem;
}

/* Style for the initial "Please select..." placeholder text */
.form-group select:invalid {
    color: #888;
}

/* Style for when the dropdown is focused (clicked on) */
.form-group select:focus {
    outline: none;
    border-color: #555;
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.1);
}

/* Optional: Slightly darker border on hover */
.form-group select:hover {
    border-color: #aaa;
}








/* --- "Our Leads" Scroller Styles --- */

.leads-scroller {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leads-grid-wrapper {
    overflow-x: hidden; /* Hides the horizontal scrollbar */
    scroll-behavior: smooth; /* Makes scrolling smooth */
    width: 100%;
}

/* Modify the existing leads-grid */
.leads-grid {
    display: flex; /* Changed from flex-wrap to flex */
    flex-wrap: nowrap; /* Prevents wrapping to a new line */
    gap: 2rem;
    padding: 1rem 0; /* Add some padding so shadows aren't cut off */
    justify-content: flex-start; /* Align items to the start */
}

/* Give lead-card a fixed width so it doesn't shrink */
.lead-card {
    flex: 0 0 120px; /* Do not grow, do not shrink, base width of 120px */
}

/* Scroller Buttons */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    display: none; /* Hidden by default, JS will show them */
}

.scroll-btn:hover {
    background-color: #f4f4f4;
    transform: translateY(-50%) scale(1.1);
}

.scroll-btn#scroll-left-btn {
    left: -20px;
}

.scroll-btn#scroll-right-btn {
    right: -20px;
}

/* Hide buttons on smaller screens where wrapping is better */
@media (max-width: 768px) {
    .scroll-btn {
        display: none !important; /* Force hide */
    }
    .leads-grid-wrapper {
        overflow-x: auto; /* Allow native touch scrolling on mobile */
    }
}















































/* --- Corrected "Who We Are" Centering --- */

.who-we-are-section {
    /* This rule turns the whole section into a centering container */
    display: flex;
    justify-content: center;
    padding: 3rem 2rem;
}

.who-we-are-content-wrapper {
    /* This holds the text and image side-by-side */
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center; /* Ensures content centers if it wraps */
}

.who-we-are-text,
.who-we-are-img {
    flex: 1; /* Allows the items to flex */
    min-width: 300px; /* Prevents items from becoming too narrow */
}

.who-we-are-text {
    max-width: 500px; /* Prevents text from becoming too wide */
}

.who-we-are-text h2 {
    text-align: left;
}



#modal-title {
    color: #333; /* A dark, standard black for text */
}