/* =============================================
   TABLE OF CONTENTS
   1. Global Styles & CSS Variables
   2. Basic Reset & Accessibility
   3. Layout & Utility Classes
   4. Modern Header & Navigation
   5. Page Content Sections (Hero, Services)
   6. Modern Footer
   7. Responsive Design
============================================= */

/* --- 1. Global Styles & CSS Variables --- */
:root {
    --primary-color: #005f73; /* A strong, professional blue */
    --secondary-color: #0a9396; /* A complementary teal */
    --background-color: #f8f9fa; /* A very light grey for off-white background */
    --text-color: #343a40; /* Dark grey for text, not pure black */
    --heading-color: #001219; /* A darker shade for headings */
    --accent-color: #ee9b00; /* A warm gold for call-to-action buttons */
    
    --font-family: 'Poppins', sans-serif;
    --container-width: 1100px;
    --border-radius: 5px;
}

/* --- 2. Basic Reset & Accessibility --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    background-color: var(--background-color);
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* CRUCIAL for accessibility: Makes keyboard focus visible */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* --- 3. Layout & Utility Classes --- */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section {
    padding: 4rem 0;
}

.section-bg {
    background-color: #ffffff;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--heading-color);
}

.btn-accent:hover, .btn-accent:focus {
    background-color: #ffb703; /* A lighter shade of the accent */
    transform: translateY(-2px);
    text-decoration: none;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-color);
    color: white;
    padding: 8px;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Screen-reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* --- 4. Modern Header & Navigation --- */
.site-header {
    background-color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    position: sticky;
    top: 0;
    z-index: 999;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--heading-color);
    text-decoration: none;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list a {
    font-weight: 600;
    color: var(--text-color);
    position: relative;
    padding: 0.5rem 0;
    text-decoration: none;
}

/* Modern underline effect */
.nav-list a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.nav-list a:not(.btn-nav):hover::after,
.nav-list a:not(.btn-nav):focus::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Styling for the contact button in the nav */
.btn-nav {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    transition: background-color 0.3s, transform 0.3s;
}

.btn-nav:hover, .btn-nav:focus {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    z-index: 1000;
}

.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 3px;
    background: var(--heading-color);
    border-radius: 3px;
    transition: all 0.25s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    height: 3px;
    width: 25px;
    background: var(--heading-color);
    border-radius: 3px;
    transition: all 0.25s ease-in-out;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}


/* --- 5. Page Content Sections (Hero, Services) --- */
main {
    padding-top: 4rem; /* Add padding to account for sticky header */
}

.hero {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 6rem 0;
}

.hero h1 {
    color: #fff;
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-align: center;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* --- 6. Modern Footer --- */
.site-footer {
    background-color: var(--heading-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem 0;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-column {
    padding-right: 1rem;
}

.footer-heading {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-column p {
    line-height: 1.8;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 0.8rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
}

.footer-nav a:hover,
.footer-nav a:focus {
    color: #fff;
    padding-left: 5px;
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: background-color 0.3s, transform 0.3s;
}

.social-icon:hover,
.social-icon:focus {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.social-icon svg {
    width: 22px;
    height: 22px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}


/* --- 7. Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .hero h1 { font-size: 2.8rem; }
    
    /* --- Mobile Navigation --- */
    .nav-toggle {
        display: block; /* Show hamburger button */
    }

    .nav-list {
        position: fixed;
        inset: 0 0 0 30%; /* Start off-screen to the right */
        flex-direction: column;
        justify-content: center;
        gap: 3rem;
        padding: min(20vh, 10rem) 2rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        transform: translateX(100%);
                visibility: hidden; /* ADD THIS to hide from assistive tech */
        transition: transform 350ms ease-out, visibility 350ms ease-out; /* UPDATE THIS to transition both */
         }

    /* State when mobile menu is open */
    .nav-list[data-visible="true"] {
        transform: translateX(0%);
                visibility: visible; /* ADD THIS to make it accessible again */
    }

    .nav-list a {
        font-size: 1.5rem;
    }

    /* Hamburger animation to 'X' */
    .nav-toggle[aria-expanded="true"] .hamburger {
        background: transparent;
    }

    .nav-toggle[aria-expanded="true"] .hamburger::before {
        transform: rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] .hamburger::after {
        transform: rotate(-45deg);
    }
}

/* --- ================================== --- */
/* --- NEW STYLES FOR INDEX.PHP (ADD ON) -- */
/* --- ================================== --- */

/* --- General Section Styling --- */
.text-center {
    text-align: center;
}

.section-title {
    margin-bottom: 0.5rem;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    color: #555;
}

/* --- Advantage Section --- */
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: center;
}

.advantage-icon {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.advantage-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

/* --- Testimonial Section --- */
.testimonial-section {
    background-color: var(--heading-color);
    color: #fff;
}

.testimonial-section blockquote {
    margin: 0;
    padding: 0;
    border: none;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-section blockquote p {
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 300; /* Lighter weight for the quote */
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.testimonial-section blockquote cite {
    font-style: normal;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

/* --- Final Call to Action (CTA) Section --- */
.cta-section {
    background-color: var(--primary-color);
    color: #fff;
}

.cta-section h2 {
    color: #fff;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
}

.cta-section .btn-accent {
    transform: scale(1.1); /* Make the button slightly larger */
}
.cta-section .btn-accent:hover {
    transform: scale(1.15) translateY(-2px);
}



/* --- ================================== --- */
/* --- NEW STYLES FOR SERVICES.PHP      --- */
/* --- ================================== --- */

/* --- Internal Page Header --- */
.page-header {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 4rem 0;
}

.page-header h1 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

/* --- Services Feature Grid --- */
.services-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-feature-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-feature-icon {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.service-feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.service-feature-card p {
    flex-grow: 1; /* Ensures cards in a row have equal height */
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.btn-learn-more {
    display: inline-block;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    align-self: flex-start; /* Aligns button to the left */
}

.btn-learn-more:hover,
.btn-learn-more:focus {
    text-decoration: underline;
}


/* --- ================================== --- */
/* --- NEW STYLES FOR ABOUT.PHP         --- */
/* --- ================================== --- */

/* --- About Story Section --- */
.about-story-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .about-story-content {
        grid-template-columns: 2fr 1fr; /* Text takes more space */
    }
}

.story-text h2 {
    margin-bottom: 1.5rem;
}

.story-text p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.story-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* --- Mission & Vision Section --- */
.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .mission-vision-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.mission-card, .vision-card {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.mission-card h3, .vision-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* --- Team Section --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-member-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.team-photo-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    background-color: #e9ecef;
    /* You can add a background image icon if you like */
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w.org/2000/svg" width="64" height="64" viewBox="0 0 24 24" fill="none" stroke="%23adb5bd" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>');
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: center;
}

.team-member-card h3 {
    margin-bottom: 0.25rem;
}

.team-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}



/* --- ================================== --- */
/* --- NEW STYLES FOR COURSES.PHP       --- */
/* --- ================================== --- */

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.course-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    border-top: 5px solid var(--primary-color);
}

.course-icon {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.course-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.course-card p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.course-card ul {
    list-style: none; /* Remove default bullets */
    padding-left: 0;
    margin-bottom: 2rem;
    flex-grow: 1; /* Pushes the button to the bottom */
}

.course-card ul li {
    position: relative;
    padding-left: 25px; /* Space for custom checkmark */
    margin-bottom: 0.75rem;
}

/* Custom checkmark for list items */
.course-card ul li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary-color);
    font-weight: 600;
}

.btn-course {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.7rem 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-course:hover, .btn-course:focus {
    background-color: var(--secondary-color);
    text-decoration: none;
}


/* --- ================================== --- */
/* --- NEW STYLES FOR CONTACT.PHP       --- */
/* --- ================================== --- */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    background-color: #fff;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 1.5fr; /* Make form column wider */
    }
}

/* --- Contact Info Column --- */
.contact-info h3 {
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-icon {
    color: var(--primary-color);
}

.info-item strong {
    display: block;
    margin-bottom: 0.25rem;
}

/* --- Contact Form --- */
.contact-form-container h3 {
    margin-bottom: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 95, 115, 0.2);
    outline: none; /* Custom focus style is better */
}

.form-submit-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
}

