/* Base Variables & Setup */
:root {
    /* School Logo Theme: Green, Yellow, Red */
    --primary-color: #0b7a42;
    --primary-light: #169c56;
    --primary-dark: #075c31;
    --secondary-color: #ffcc00;
    --secondary-hover: #e6b800;
    --accent-color: #d1221b;
    --accent-hover: #a81811;

    --text-main: #2d3748;
    --text-muted: #4a5568;
    --text-white: #ffffff;
    --text-white-muted: #e2e8f0;

    --bg-main: #ffffff;
    --bg-light: #f7fafc;
    --bg-dark: #0a2140;

    --border-color: #e2e8f0;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --radius-md: 6px;
    --radius-lg: 12px;

    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-main);
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-font {
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Utilities */
.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-primary {
    background-color: var(--primary-color);
}

.bg-accent {
    background-color: var(--accent-color);
}

.text-white {
    color: var(--text-white);
}

.text-white-muted {
    color: var(--text-white-muted);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

.btn-secondary:hover {
    background-color: var(--text-white);
    color: var(--primary-dark);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-dark);
    color: var(--text-white-muted);
    font-size: 0.85rem;
    padding: 0.5rem 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    font-weight: 600;
}

/* Header */
.header {
    background-color: var(--bg-main);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 65px;
    width: auto;
    object-fit: contain;
}

.logo-img.small {
    height: 50px;
    margin-bottom: 1rem;
    border-radius: 4px;
    /* Optional, depending on if it matches footer styles */
}

.logo-title {
    font-size: 1.4rem;
    margin-bottom: 0.1rem;
}

.logo-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.main-nav .nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-main);
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-dark);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 6rem 0;
    background: url('images/hero.png') no-repeat center center;
    background-size: cover;
    color: var(--text-white);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 92, 49, 0.85);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.hero-title {
    color: var(--text-white);
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-white-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

.trust-indicators {
    display: flex;
    gap: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
}

.trust-item {
    display: flex;
    flex-direction: column;
}

.trust-val {
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--secondary-color);
    margin-bottom: 0.2rem;
}

.trust-label {
    font-size: 0.9rem;
    color: var(--text-white-muted);
    font-weight: 500;
}

/* General Sections */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Grids & Layouts */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.two-col.reverse .col-content {
    grid-column: 2;
    grid-row: 1;
}

.two-col.reverse .col-image {
    grid-column: 1;
    grid-row: 1;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

/* Lists */
.feature-list {
    margin-top: 2rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.feature-list i {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-top: 0.2rem;
}

/* Cards */
.card {
    background-color: var(--bg-main);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(13, 44, 84, 0.05);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Animations */
.fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    padding: 0.5rem;
    /* Less padding than normal card */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--radius-lg) - 0.5rem);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.03);
}

/* Image Placeholders (To be replaced logically by JS/Styles) */
.col-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4/3;
    background-color: var(--border-color);
    background-size: cover;
    background-position: center;
}

/* Admissions Steps */
.admission-steps {
    margin-top: 2rem;
}

.step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step-num {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background-color: var(--secondary-color);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step h5 {
    color: var(--text-white);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.step p {
    color: var(--text-white-muted);
    margin-bottom: 0;
}

/* Contact Card */
.contact-card {
    background-color: var(--bg-main);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    color: var(--text-main);
}

.contact-card h4 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-card>p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-row i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.contact-row strong {
    display: block;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.contact-row p {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-card .btn-secondary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.contact-card .btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: var(--text-white-muted);
    padding-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h5 {
    color: var(--text-white);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links h6 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-white-muted);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .two-col,
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .two-col.reverse .col-content {
        grid-column: 1;
        grid-row: 2;
    }

    .two-col.reverse .col-image {
        grid-column: 1;
        grid-row: 1;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-main);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 1rem;
    }

    .main-nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .trust-indicators {
        flex-direction: column;
        gap: 1.5rem;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Admission Inquiry Modal
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-main);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 450px;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    color: var(--text-muted);
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--text-dark);
    text-decoration: none;
}

.modal-header {
    background-color: var(--bg-accent);
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
}

.modal-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.modal-header p {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.modal-body {
    padding: 1.5rem;
}

.modal-instruction {
    text-align: center;
    color: var(--text-main);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

#inquiryForm .form-group {
    margin-bottom: 1.25rem;
}

#inquiryForm label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.9rem;
}

#inquiryForm label i {
    color: var(--primary-color);
    margin-right: 0.25rem;
}

#inquiryForm input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s;
}

#inquiryForm input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(13, 107, 56, 0.1);
}

#inquiryForm small {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.modal-submit {
    margin-top: 0.5rem;
    padding: 0.85rem;
    font-size: 1.05rem;
}

.form-status {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ==========================================================================
   Alumni Testimonial Section
   ========================================================================== */
.alumni-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card {
    background-color: var(--bg-main);
    border-radius: var(--radius-lg);
    padding: 3.5rem 4rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    border-top: 4px solid var(--primary-color);
}

.quote-icon {
    position: absolute;
    top: -25px;
    left: 40px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.testimonial-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-main);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
    font-family: 'Merriweather', serif;
}

.author-credentials {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.author-badge {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    align-self: flex-start;
}

/* Founder Section */
.founder-section {
    position: relative;
}

.founder-img {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 4px solid white;
}

.founder-image-container {
    display: flex;
    justify-content: center;
}

.founder-quote {
    position: relative;
    padding-left: 2rem;
    font-style: italic;
    color: var(--text-muted);
}

.founder-quote p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.founder-quote .quote-mark {
    position: absolute;
    top: -10px;
    left: 0;
    font-size: 2rem;
    color: var(--secondary-color);
    opacity: 0.5;
}

@media (max-width: 768px) {
    .testimonial-card {
        padding: 3rem 2rem;
    }

    .quote-icon {
        left: 20px;
    }
}