:root {
    --primary-color: #0d3b66; /* Royal Blue*/
    --secondary-color: #ffdd00; /* Gold */
    --accent-color: #0070d9; /* Blue */
    --bg-color: #FDFBF7; /* Cream/Off-white */
    --text-color: #0e0d0c; /* Dark Grey */
    --light-text: #FDFBF7;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}



/* BUTTONS */

.btn {
    font-size: 1rem;
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: bold;
    border-radius: 5px;
    border: 2px solid var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
}
 
.btn034 {
    background-color: rgba(0,0,0,0.4) !important;

}

.btn:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.btn-outline {
    background-color: transparent;
     padding: 12px 30px;
    font-weight: bold;
    border-radius: 5px;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}


.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Header */
header {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--light-text);
    font-weight: 500;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

/* Hero */
.hero {
    background-image: url("hero-image.jpg");
    background-size: cover;
    background-position: center;
    background-position: center; 
    height: 80vh; display: flex; 
    align-items: center; 
    text-align: center; 
    color: #fff;
}

.hero-heading {
    font-size: 3.5rem; 
    margin-bottom: 1rem; 
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-family: Arial, Helvetica, sans-serif;
}

.hero-subheading {
    font-size: 1.2rem; 
    margin-bottom: 2rem; 
    max-width: 700px; 
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
    margin-bottom: 0.5rem;
}

.btn-grid {
    display: flex; 
    gap: 1rem; 
    justify-content: center;
}

/* intro */

.intro {
    padding: 5rem 0;
    text-align: center;
}

.intro-grid {
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 4rem; 
    align-items: center;
}

.intro-heading {
    color: var(--primary-color); 
    font-size: 2.5rem; 
    margin-bottom: 1.5rem;
}
.intro-p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    
}

@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr; 
    }   
}

/* benefits */
.benefits {
    background-color: #f4ece6; 
    padding: 5rem 0;
}

.benefit-heading {
    text-align: center; 
    margin-bottom: 3rem; 
    color: var(--primary-color);
}

.benedit-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem;
}

.benefit-card {
    background: #fff; 
    padding: 2rem; 
    border-radius: 10px; 
    text-align: center; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.fas {
    font-size: 2.5rem; 
    color: var(--secondary-color); 
    margin-bottom: 1rem;
}

/* Course Preview */

.course-preview {
    padding: 5rem 0;
    text-align: center;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Ensure course images are always above the text on narrow screens */
@media (max-width: 768px) {
    .course-detail {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Neutralize the reverse layout used for wider screens */
    .course-detail--reverse {
        direction: ltr;
    }

    /* Keep DOM order and make sure first column (image) appears above the text */
    .course-detail__col {
        order: 0;
    }
    .course-detail__col + .course-detail__col {
        margin-top: 0.75rem;
    }

    /* Image sizing and spacing */
    .course-detail .course-image {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 10px;
        margin-bottom: 0.75rem;
    }
}

.course-card {
    background: #fff;
    border-radius: 10px;
    transition: var(--transition);
    overflow: hidden; /* Add this */
    display: flex; /* Add this */
    flex-direction: column; /* Add this */
}

.course-header {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.course-p {
    margin-bottom: 3rem;
    max-width: 600px;
    margin: 0 auto;
}

.course-image {
    height: 300px;
    align-items: center;
    justify-content: center;
    color: #fff;
    display: flex;
    font-size: 4rem;
    width: 100%; /* Add this */
    flex: 1; /* Add this - makes it fill available space */
}

.c-1 {
    background-color: #ff6f61; /* Coral */
    margin-bottom: 0;
    box-shadow: none;
}
.c-2 {
    background-color: #6b5b95; /* Purple */
    margin-bottom: 0;
    box-shadow: none;
}

.c-3 {
    background-color: #88b04b; /* Green */
    margin-bottom: 0;
    box-shadow: none;
}

/* HTML FILE FOR DETAILED ABOUT SECTION */
.page-header {
    background-color: var(--primary-color); 
    color: #fff; 
    padding: 4rem 0; 
    text-align: center;
}

.story {
    padding: 5rem 0;
}

.page-h {
    font-size: 3rem; 
    color: var(--secondary-color);
}

/* STORY */
.story-grid {
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 4rem; 
    align-items: center;
}

@media (max-width: 768px) {
    .story-grid {
        grid-template-columns: 1fr; 
    }   
}       


.grid-h {
    color: var(--primary-color); 
    margin-bottom: 1.5rem;
}

/* TEACHER BIO */
.teacher {
    background-color: #f4ece6; 
    padding: 5rem 0;
}

.mb-1 { margin-bottom: 1rem; }
.mb-1-5 { margin-bottom: 1.5rem; }
.mb-2 { margin-bottom: 2rem; }

/* Book trial button padding */
.btn-book { padding: 8px 20px; }

/* Story image styles */
.story-image {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.section-title-center {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.teacher-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.teacher-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.teacher-name {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.teacher-title {
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.quote {
    font-style: italic;
}

/* Mission & Vision moved from inline */
.mission {
    padding: 5rem 0;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .mission-grid {
        grid-template-columns: 1fr;
    }   
}


.mission-card {
    padding: 3rem;
    border-radius: 10px;
    text-align: center;
    color: inherit;
}

.mission-card--primary {
    background: var(--primary-color);
    color: #fff;
}

.mission-card--secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.mission-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color); /* default, overridden below if needed */
}

/* Ensure icon colors for modifiers */
.mission-card--primary .mission-icon { color: var(--secondary-color); }
.mission-card--secondary .mission-icon { color: var(--primary-color); }

.mission-card-title {
    margin-bottom: 1rem;
    color: inherit;
}


/* CONTACT DETAILED */
/* ...existing code... */

/* Contact page styles (moved from inline in contact.html) */
.contact {
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

@media screen and (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }       
    
}

.section-heading {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex: 0 0 70px;
    overflow: hidden;
}

.small-text {
    font-size: 0.9rem;
    color: #666;
}

.contact-form-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-full {
    width: 100%;
    border: none;
}

/* Map container + iframe */
.map {
    height: 400px;
    background-color: #eee;
}

.map-iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


/* COURSES SECTION */


/* Courses page: moved inline styles into classes */
.course-levels {
    padding: 5rem 0;
}

.course-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

/* Reverse layout for alternating rows (keeps source order but visually reversed) */
.course-detail--reverse {
    direction: rtl;
}
.course-detail--reverse .course-detail__col {
    direction: ltr;
}

.course-detail__col {}

/* Images used in course detail */
.course-image {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    height: auto;
    display: block;
}

/* Titles, description and lists */
.course-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.course-desc {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

.course-subtitle {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.course-list {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

/* Methodology section */
.methodology {
    background-color: #f4ece6;
    padding: 5rem 0;
    text-align: center;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    align-items: start;
}

.method-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}


/* FEES AND ENROLLMENT */

.fees {
    padding: 5rem 0;
}

.fees-heading {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.fee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.fee-card {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    background: #fff;
}

.fee-card--popular {
    border: 2px solid var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: bold;
    border-bottom-left-radius: 10px;
}

.fee-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.fee-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.fee-price .fee-period {
    font-size: 1rem;
    color: #666;
    font-weight: normal;
}

.save-text {
    color: green;
    font-weight: bold;
    margin-bottom: 1rem;
}

.fee-card ul {
    margin-bottom: 2rem;
    text-align: left;
    padding-left: 1rem;
}

.fee-card li {
    margin-bottom: 0.5rem;
}

.fee-card .fa-check {
    color: green;
    margin-right: 10px;
}

.fees-note {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #666;
}

/* Enrollment */
.enrollment {
    background-color: #f4ece6;
    padding: 5rem 0;
}

.enrollment h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.enrollment-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.step-number {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        background-color: var(--primary-color);
        height: calc(100vh - 70px);
        width: 100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Responsive: ensure course image always appears above text on small screens */
    .course-levels .course-detail {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        align-items: start !important;
        margin-bottom: 3rem;
    }

    /* Cancel the rtl trick used for alternating rows so DOM order is preserved */
    .course-levels .course-detail--reverse {
        direction: ltr !important;
    }

    /* Ensure each column fills width and keeps DOM order (image first) */
    .course-levels .course-detail__col {
        width: 100% !important;
        order: 0 !important;
    }

    /* Make sure the image is full-width, auto height, with spacing */
    .course-levels .course-detail .course-image,
    .course-levels .course-detail__col img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        border-radius: 10px !important;
        margin-bottom: 0.75rem !important;
        object-fit: cover;
    }
}

.mission-card--primary .fas {
    color: var(--secondary-color);
}

.contact-item .fas {
    color: var(--secondary-color);
}

/* ===== Force footer styling (add to the end of styles.css) ===== */
footer {
    background-color: var(--primary-color) !important;
    color: var(--light-text) !important;
    padding: 3rem 0 1rem !important;
    margin-top: 4rem !important;
    width: 100% !important;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08) !important;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 2rem !important;
    margin-bottom: 2rem !important;
}

.footer-section h3 {
    color: var(--secondary-color) !important;
    margin-bottom: 1rem !important;
}

.footer-links li {
    margin-bottom: 0.8rem !important;
}

.footer-links a {
    color: inherit !important;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color) !important;
    padding-left: 5px !important;
}

.social-links a {
    color: var(--light-text) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: rgba(255,255,255,0.03);
}

