/* --- VARIABLES --- */
:root {
    --primary-color: #800000; /* Maroon */
    --primary-hover: #660000;
    --background-light: #f8f5f2;
    --text-dark: #333;
    --text-light: #fff;
    --border-color: #ddd;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    --font-main: 'Roboto', sans-serif;
    --font-headings: 'Playfair Display', serif;
}

/* --- GLOBAL RESET & DEFAULTS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--background-light);
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- TYPOGRAPHY & SHARED CLASSES --- */
h1, h2, h3, h4 {
    font-family: var(--font-headings);
    color: var(--primary-color);
    line-height: 1.3;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 2rem;
}

.section-desc {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #555;
}

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

/* --- NAVBAR --- */
.navbar {
    background: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo img {
    height: 70px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-btn {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 0.6rem 1.4rem;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.nav-btn:hover {
    background: var(--primary-hover);
}

/* --- HERO SECTION --- */
.hero {
    padding: 5rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

.hero-text h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-primary {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 0.9rem 2.2rem;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.cta-primary:hover {
    background: var(--primary-hover);
}

.hero-image img {
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* --- ABOUT, COURSES, PARTNERS, ETC. --- */
.about, .courses, .partners, .key-personnel, .enrollment {
    padding: 5rem 0;
}

.courses { background-color: #fff; }

.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.course-card {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    border-radius: 10px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; 
    flex-direction: column; 
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.course-card p {
    flex-grow: 1;
}

.course-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.course-card .features {
    margin: 1.5rem 0;
}

.course-card .features li {
    margin-bottom: 0.5rem;
}

.card-btn {
    display: inline-block;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-top: auto; 
}

.card-btn:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 2rem;
}

.partner-logos img {
    max-height: 150px;
    opacity: 0.7;
    transition: opacity .3s ease;
}

.partner-logos img:hover {
    opacity: 1;
}

.personal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.personal-card img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--border-color);
}

.personal-card h3 {
    font-size: 1.5rem;
}

.enrollment { background-color: #fff; }

.enroll-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.enroll-buttons .nav-btn i {
    margin-right: 0.7rem;
}

/* --- FOOTER --- */
.footer {
    background: var(--primary-color);
    color: var(--background-light);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.footer h4 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.footer-info {
    text-align: right;
}

.footer-info .logo img {
    height: 45px;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 3rem;
    border-top: 1px solid var(--primary-hover);
    font-size: 0.9rem;
    color: #ccc;
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-image {
        order: -1; /* Puts image on top */
        margin-bottom: 2rem;
    }
    .course-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section-title { font-size: 2.2rem; }
    .hero-text h1 { font-size: 2.5rem; }
    .nav-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-links {
        display: none; /* Hiding links, can be replaced with a burger menu */
    }
    .logo {
        padding-bottom: 1rem; 
    }
    .course-grid, .personal-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .nav-btn { width: 100%; text-align: center; }
}
