/* CSS for Meadow Minds - Professional Education Style */

:root {
    --primary-color: #1a5d3b;
    /* Forest Green - from Logo */
    --secondary-color: #555555;
    /* Dark Gray - from Logo */
    --accent-color: #9ccc65;
    /* Brighter Green for better visibility */
    --text-color: #333;
    --light-bg: #f9fbf9;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #1a5d3b 0%, #2e7d32 100%);
    --gradient-accent: linear-gradient(135deg, #2e7d32 0%, #1a5d3b 100%);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 45px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --nav-height: 80px;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    font-size: 1.15rem;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(26, 93, 59, 0.1);
    font-size: 1.05rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: white;
    color: #000;
    box-shadow: 0 4px 15px rgba(26, 93, 59, 0.15);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 93, 59, 0.25);
    border-color: rgba(26, 93, 59, 0.3);
}

@media (max-width: 768px) {
    .btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Navbar styles */
header {
    height: var(--nav-height);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    font-weight: 600;
    font-size: 1.1rem;
    padding: 10px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 250px;
    box-shadow: var(--shadow-hover);
    border-radius: 8px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    padding: 10px 20px;
    display: block;
    width: 100%;
}

.dropdown-menu li a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Sections */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title p {
    color: #666;
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2rem;
    }

    .section-title p {
        font-size: 1rem;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    margin-top: var(--nav-height);
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 25px;
    background: linear-gradient(to right, #fff, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease, shine 3s infinite linear;
}

@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
}

@keyframes shine {
    0% {
        background-position: -100px;
    }

    100% {
        background-position: 200px;
    }
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 1.2s ease;
}

.hero-image {
    position: absolute;
    right: 5%;
    top: 55%;
    transform: translateY(-50%);
    width: 45%;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    text-align: center;
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.card i {
    font-size: 3.5rem;
    margin-bottom: 20px;
    transition: var(--transition);
    display: inline-block;
}

.card:hover i {
    transform: rotateY(360deg) scale(1.1);
    color: var(--primary-color);
}

/* Base Layout Classes */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Force exactly 4 cards in one row */
.card-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Force exactly 3 cards in one row */
.card-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .card-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .card-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {

    .card-grid-4,
    .card-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Animations & Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(-50%) translateX(0);
    }

    50% {
        transform: translateY(-55%) translateX(10px);
    }
}

@keyframes wave {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Background Animated Shapes */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.05) 50%, transparent 60%);
    animation: wave 10s linear infinite;
    pointer-events: none;
}

/* Timeline */
.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding-top: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.timeline-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.timeline-dot {
    width: 30px;
    height: 30px;
    background: var(--gradient-primary);
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 5px solid var(--white);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background: #111;
    color: #eee;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #888;
    flex-wrap: wrap;
    gap: 15px;
}

.developer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #bbb;
}

.developer-logo i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .copyright {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
}


/* Responsive */
@media (max-width: 992px) {
    .hero {
        height: auto;
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-image {
        display: none;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    /* stack all 2-col grids */
    .about-grid,
    .approach-grid,
    .mv-grid,
    .grid-2,
    .counselling-grid,
    .founder-section {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 30px !important;
        text-align: center !important;
    }

    .founder-img {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    section {
        padding: 40px 0;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: var(--nav-height);
        flex-direction: column;
        background: var(--white);
        width: 100%;
        height: calc(100vh - var(--nav-height));
        padding: 40px;
        transition: 0.5s;
        box-shadow: var(--shadow-soft);
        text-align: center;
        overflow-y: auto;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-toggle {
        display: block;
    }

    .timeline {
        flex-direction: column;
        gap: 30px;
    }

    .timeline::before {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* --- Page Specific Styles --- */

/* index.html */
.bg-circles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: moveCircle 20s infinite alternate;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    right: -100px;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    bottom: -50px;
    left: -50px;
    animation-duration: 15s;
}

@keyframes moveCircle {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(100px, 100px);
    }
}

/* common page header */
.page-header {
    background: var(--gradient-primary);
    color: white;
    padding: 100px 0 50px;
    text-align: center;
    height: 300px;
    margin-bottom: 60px;
}

/* about.html */
.about-section {
    padding: 60px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.mission-vision {
    background: var(--light-bg);
    padding: 60px 0;
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.mv-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
}

.approach-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.approach-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    border-top: 5px solid var(--primary-color);
}

.cta-highlight {
    background: var(--gradient-primary);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.founder-section {
    display: flex;
    align-items: center;
    gap: 50px;
    background: var(--light-bg);
    padding: 60px;
    border-radius: 20px;
}

.founder-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #ddd;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #999;
    border: 5px solid white;
}

.cert-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.cert-item {
    width: 150px;
    height: 80px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    filter: grayscale(1);
    transition: var(--transition);
}

.cert-item:hover {
    filter: grayscale(0);
    transform: translateY(-5px);
}

/* Vision Section Layout */
.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Symmetrical 1-on-1 look */
    gap: 60px;
    align-items: center;
}

.vision-image-col img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: var(--shadow-hover);
}

.vision-content-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.vision-supporting-image {
    display: block;
    /* No grid needed for single image */
}

.vision-supporting-image img {
    width: 250px;
    /* Supporting image size */
    height: 180px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.vision-supporting-image img:hover {
    transform: scale(1.05);
}

.vision-content h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.vision-content p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .vision-grid {
        grid-template-columns: 1fr;
    }

    .vision-image-col img {
        height: 400px;
    }

    .vision-supporting-image img {
        width: 100%;
        height: 200px;
    }
}

/* Leadership Section */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    /* Centered framing for 2 cards */
    margin: 40px auto 0;
}

.leader-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* Cleaner shadow matching the reference */
    position: relative;
    text-align: center;
    padding: 30px 15px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Added subtle border for framing */
}

.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.leader-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
    /* Updated to match theme */
}

.leader-image-container {
    width: 180px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.leader-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-role {
    color: var(--primary-color);
    /* Updated role color */
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.leader-name {
    color: #000;
    /* Bold black name */
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.leader-details {
    color: #555;
    /* Grey details */
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 2px;
}

/* Leadership Responsive */
@media (max-width: 1100px) {
    .leadership-grid {
        gap: 20px;
    }

    .leader-image-container {
        width: 150px;
        height: 170px;
    }
}

@media (max-width: 992px) {
    #leadership .container.grid-2 {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .leadership-title-col {
        justify-content: center;
        margin-bottom: 30px;
    }

    .section-title.text-left.no-margin {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .leadership-grid {
        grid-template-columns: 1fr;
    }
}

/* dmit.html */
.science-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.science-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    border-bottom: 5px solid var(--accent-color);
}

.benefits-section {
    background: var(--light-bg);
    padding: 60px 0;
}

.benefit-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.benefit-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.report-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 15px;
}

.report-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: var(--light-bg);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.process-container {
    position: relative;
    max-width: 1000px;
    margin: 60px auto 0;
}

.process-step {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
}

.step-num {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
    z-index: 2;
}

.process-step::after {
    content: '';
    position: absolute;
    left: 25px;
    top: 50px;
    width: 2px;
    height: calc(100% - 0px);
    background: #eee;
    z-index: 1;
}

/* student-development.html */
.feature-list {
    list-style: none;
    margin-top: 20px;
}

.feature-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.module-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--primary-color);
}

/* faculty-development.html */
.module-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.module-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.module-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 5px;
}

/* soft-skills.html */
.methodology {
    background: var(--light-bg);
    padding: 80px 0;
    border-radius: 50px 50px 0 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.highlight-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    margin-top: 20px;
}

/* parental-counselling.html */
.counselling-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin: 40px 0;
}

.quote-box {
    background: var(--light-bg);
    border-left: 5px solid var(--primary-color);
    padding: 30px;
    font-style: italic;
    font-size: 1.1rem;
}

/* outbound-training.html */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.activity-card {
    border-radius: 15px;
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.activity-card:hover {
    transform: scale(1.05);
}

.activity-img {
    height: 200px;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-content {
    padding: 25px;
}

/* gallery.html */
.filter-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border-radius: 50px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
    background: var(--light-bg);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 93, 59, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: white;
    font-size: 2rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* contact.html */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-info-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: var(--light-bg);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.contact-form-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
    height: auto;
    min-height: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 93, 59, 0.1);
}

.map-container {
    margin-top: 80px;
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    background: var(--light-bg);
    border: 1px solid #ddd;
}

.qr-section {
    margin-top: 50px;
    text-align: center;
    padding: 40px;
    background: var(--light-bg);
    border-radius: 15px;
}

.qr-code {
    width: 150px;
    height: 150px;
    background: white;
    margin: 20px auto;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #999;
}

/* ===== Contact Page – Responsive (Tablet Landscape) ===== */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 30px;
    }

    .contact-form-card {
        min-height: auto;
    }

    .header-contact {
        height: auto;
        min-height: 220px;
        padding: 100px 0 40px;
    }

    .header-contact h1 {
        font-size: 2.2rem;
    }

    .header-contact p {
        font-size: 1rem;
    }
}

/* ===== Contact Page – Responsive (Tablet Portrait) ===== */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 20px;
    }

    /* Stack the phone + email row */
    .form-row.grid-2 {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    .contact-form-card .form-group div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    .contact-form-card .form-group div {
        grid-template-columns: 1fr !important;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 25px;
    }

    .contact-form-card {
        min-height: auto;
    }

    .info-item {
        gap: 15px;
        margin-bottom: 22px;
    }

    .info-item i {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
        border-radius: 8px;
        flex-shrink: 0;
    }

    .info-item h4 {
        font-size: 1rem;
    }

    .info-item p {
        font-size: 0.92rem;
    }

    .contact-info-card h3,
    .contact-form-card h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .form-group label {
        font-size: 0.95rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 11px 14px;
        font-size: 0.95rem;
    }

    .btn-full {
        width: 100%;
        text-align: center;
    }

    .map-container {
        height: 300px;
        margin-top: 40px;
    }

    .page-header {
        padding: 120px 0 60px;
    }

    .header-contact {
        height: auto;
        min-height: 200px;
        padding: 100px 0 35px;
    }

    .header-contact h1 {
        font-size: 1.9rem;
    }

    .header-contact p {
        font-size: 0.95rem;
        padding: 0 10px;
    }
}

/* ===== Contact Page – Responsive (Large Phone) ===== */
@media (max-width: 576px) {
    .contact-grid {
        gap: 20px;
        margin-top: 15px;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 20px;
        border-radius: 12px;
    }

    .info-item {
        gap: 12px;
        margin-bottom: 18px;
    }

    .info-item i {
        width: 40px;
        height: 40px;
        font-size: 1.15rem;
    }

    .info-item h4 {
        font-size: 0.95rem;
        margin-bottom: 2px;
    }

    .info-item p {
        font-size: 0.88rem;
        line-height: 1.5;
    }

    .contact-info-card h3,
    .contact-form-card h3 {
        font-size: 1.2rem;
        margin-bottom: 18px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
        border-radius: 6px;
    }

    .form-group textarea {
        min-height: 100px;
    }

    .btn.btn-primary.btn-full {
        padding: 14px 20px;
        font-size: 0.95rem;
        width: 100%;
    }

    .map-container {
        height: 250px;
        margin-top: 30px;
        border-radius: 12px;
    }

    .header-contact {
        min-height: 180px;
        padding: 90px 0 30px;
    }

    .header-contact h1 {
        font-size: 1.65rem;
        line-height: 1.3;
    }

    .header-contact p {
        font-size: 0.9rem;
        padding: 0 15px;
        line-height: 1.5;
    }
}

/* ===== Contact Page – Responsive (Small Phone) ===== */
@media (max-width: 480px) {
    .contact-grid {
        gap: 16px;
        margin-top: 10px;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 16px;
        border-radius: 10px;
    }

    .info-item {
        gap: 10px;
        margin-bottom: 16px;
    }

    .info-item i {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        border-radius: 6px;
    }

    .info-item h4 {
        font-size: 0.9rem;
    }

    .info-item p {
        font-size: 0.82rem;
        word-break: break-word;
    }

    .contact-info-card h3,
    .contact-form-card h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 0.88rem;
    }

    .btn.btn-primary.btn-full {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .map-container {
        height: 200px;
        margin-top: 25px;
        border-radius: 10px;
    }

    .header-contact {
        min-height: 160px;
        padding: 85px 0 25px;
    }

    .header-contact h1 {
        font-size: 1.45rem;
    }

    .header-contact p {
        font-size: 0.85rem;
        padding: 0 10px;
    }

    .qr-section {
        padding: 25px 15px;
        margin-top: 30px;
    }

    .qr-code {
        width: 120px;
        height: 120px;
    }
}

/* --- Utility Classes (Replacing Inline Styles) --- */
.section-padding {
    padding: 60px 0;
}

.section-padding-sm {
    padding: 40px 0;
}

.section-padding-xs {
    padding: 20px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

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

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

.text-white {
    color: white;
}

.text-primary {
    color: var(--primary-color);
}

.text-accent {
    color: var(--accent-color);
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-column {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-20 {
    gap: 20px;
}

.gap-30 {
    gap: 30px;
}

.gap-40 {
    gap: 40px;
}

.gap-50 {
    gap: 50px;
}

.gap-60 {
    gap: 60px;
}

.gap-80 {
    gap: 80px;
}

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

.max-w-850 {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.max-w-900 {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.border-radius-20 {
    border-radius: 20px;
}

.border-radius-30 {
    border-radius: 30px;
}

.border-radius-40 {
    border-radius: 40px;
}

.shadow-hover {
    box-shadow: var(--shadow-hover);
}

/* --- Component Specific Overrides --- */

/* Hero Index Specific */
.hero-index {
    background: linear-gradient(rgba(26, 93, 59, 0.85), rgba(26, 93, 59, 0.85)), url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    height: 750px;
}

.hero-index .hero-content {
    max-width: 850px;
    padding: 80px 0;
    margin: 0 auto;
    text-align: center;
}

.hero-index h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
    -webkit-text-fill-color: white;
    /* Override the gradient text if needed */
    background: none;
    animation: fadeInUp 1s ease;
}

@media (max-width: 768px) {
    .hero-index h1 {
        font-size: 2.2rem;
    }
}

.hero-index p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-hero-white {
    background: white;
    color: var(--primary-color);
    padding: 15px 40px;
    font-weight: 700;
}

.btn-hero-outline {
    border: 2px solid white;
    color: white;
    padding: 15px 40px;
}

/* Card Image Utility */
.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
}

.btn-full {
    margin-top: 20px;
    width: 100%;
}

/* Why Choose Icons */
.icon-large {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.card-padding-large {
    padding: 40px;
}

/* Timeline Icons */
.timeline-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

/* Final CTA */
.cta-box {
    background: var(--gradient-primary);
    padding: 80px;
    border-radius: 30px;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-hover);
}

.cta-box h2 {
    font-size: 3rem;
    margin-bottom: 25px;
}

@media (max-width: 992px) {
    .cta-box {
        padding: 60px 40px;
    }

    .cta-box h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .cta-box {
        padding: 40px 20px;
    }

    .cta-box h2 {
        font-size: 1.8rem;
    }
}

.cta-box p {
    font-size: 1.25rem;
    margin-bottom: 45px;
    opacity: 0.9;
}

/* Developer Logo */
.dev-logo-img {
    width: 30px;
    height: 40px;
}

/* Intro Text */
.intro-p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* Philosophy Section */
.philosophy-card {
    background: white;
    padding: 60px;
    border-radius: 30px;
    box-shadow: var(--shadow-hover);
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.2;
    margin-bottom: 30px;
    display: block;
}

.philosophy-text {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.6;
}

/* Mission & Vision Index/About */
.mission-card {
    background: var(--gradient-primary);
    color: white;
    padding: 60px;
    border-radius: 40px;
    border-bottom-right-radius: 0;
}

.vision-card {
    background: white;
    padding: 60px;
    border-radius: 40px;
    border-top-left-radius: 0;
    box-shadow: var(--shadow-hover);
    border: 1px solid #eee;
}

/* Approach Cards */
.approach-card-alt {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
}

.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.icon-box.science {
    background: #e8f5e9;
    color: #2e7d32;
}

.icon-box.holistic {
    background: #f5f5f5;
    color: #616161;
}

/* Founder Message */
.founder-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 60px;
    border-radius: 30px;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
    align-items: center;
    backdrop-filter: blur(10px);
}

.director-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 800;
}

/* Feature List */
.feature-list-container {
    padding-left: 40px;
}

.feature-list-alt li {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature-list-alt i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 5px;
}

/* Dropdown Icon */
.dropdown-icon {
    font-size: 0.8rem;
}

/* Responsive Overrides for Founder Box */
@media (max-width: 992px) {
    .founder-box {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .founder-box img {
        margin: 0 auto;
        max-width: 300px;
    }

    .director-badge {
        right: 50%;
        transform: translateX(50%);
    }
}

/* Page Header Backgrounds */
.header-parental {
    background: linear-gradient(rgba(26, 93, 59, 0.8), rgba(26, 93, 59, 0.8)), url('https://images.unsplash.com/photo-1536640712247-c575393766a7?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
}

.header-faculty {
    background: linear-gradient(rgba(26, 93, 59, 0.8), rgba(26, 93, 59, 0.8)), url('https://images.unsplash.com/photo-1524178232363-1fb2b075b655?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
}

.header-student {
    background: linear-gradient(rgba(26, 93, 59, 0.8), rgba(26, 93, 59, 0.8)), url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
}

.header-soft-skills {
    background: linear-gradient(rgba(26, 93, 59, 0.8), rgba(26, 93, 59, 0.8)), url('https://images.unsplash.com/photo-1557804506-669a67965ba0?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
}

.header-outbound {
    background: linear-gradient(rgba(26, 93, 59, 0.8), rgba(26, 93, 59, 0.8)), url('https://images.unsplash.com/photo-1510074377623-8cf13fb86c08?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
}

.header-dmit {
    background: linear-gradient(rgba(26, 93, 59, 0.8), rgba(26, 93, 59, 0.8)), url('https://images.unsplash.com/photo-1558494949-ef010cbdcc4b?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
}

.header-contact {
    background: linear-gradient(rgba(26, 93, 59, 0.8), rgba(26, 93, 59, 0.8)), url('https://images.unsplash.com/photo-1423666639041-f56000c27a9a?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
}

.header-gallery {
    background: linear-gradient(rgba(26, 93, 59, 0.8), rgba(26, 93, 59, 0.8)), url('https://images.unsplash.com/photo-1492684223066-81342ee5ff30?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
}

/* Spacing & Layout Utilities */
.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-25 {
    margin-bottom: 25px;
}

.mt-20 {
    margin-top: 20px;
}

.my-15 {
    margin: 15px 0;
}

.my-20 {
    margin: 20px 0;
}

.m-0 {
    margin: 0;
}

.relative {
    position: relative;
}

.display-block {
    display: block;
}

.w-full {
    width: 100%;
}

.h-500 {
    height: 500px;
}

.w-600 {
    width: 600px;
}

.italic {
    font-style: italic;
}

.opacity-90 {
    opacity: 0.9;
}

.opacity-70 {
    opacity: 0.7;
}

.opacity-60 {
    opacity: 0.6;
}

.font-bold {
    font-weight: 700;
}

.line-height-1-7 {
    line-height: 1.7;
}

.shadow-large {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.border-radius-custom {
    border-radius: 100px 0 100px 0;
}

.border-radius-custom-alt {
    border-radius: 0 100px 0 100px;
}

.bg-white {
    background-color: white;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-25 {
    margin-top: 25px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-50 {
    margin-top: 50px;
}

.my-30 {
    margin: 30px 0;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.p-15 {
    padding: 15px;
}

.p-20 {
    padding: 20px;
}

.p-30 {
    padding: 30px;
}

.p-40 {
    padding: 40px;
}

.p-bottom-10 {
    padding-bottom: 10px;
}

.flex {
    display: flex;
}

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

.gap-15 {
    gap: 15px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.grid-auto-fit-200 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.h-full {
    height: 100%;
}

.object-cover {
    object-fit: cover;
}

.overflow-hidden {
    overflow: hidden;
}

.border-radius-10 {
    border-radius: 10px;
}

.border-radius-15 {
    border-radius: 15px;
}

.border-none {
    border: none;
}

.border-bottom {
    border-bottom: 1px solid #eee;
}

.border-left-primary {
    border-left: 5px solid var(--primary-color);
}

.text-xs {
    font-size: 0.8rem;
}

.text-sm {
    font-size: 0.9rem;
}

.text-lg {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-5xl {
    font-size: 3rem;
}

.text-gray {
    color: #666;
}

.text-secondary {
    color: var(--secondary-color);
}

.text-purple-dark {
    color: var(--primary-color);
}

.text-danger {
    color: #e53935;
}

.opacity-30 {
    opacity: 0.3;
}

.mr-15 {
    margin-right: 15px;
}

/* Responsive adjustments for utilities */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   Added purely as new rules — no existing code changed
   ========================================================== */

/* --- Tablet (max 992px) --- */
@media (max-width: 992px) {

    /* Container */
    .container {
        padding: 0 20px;
    }

    /* Hero index */
    .hero-index .hero-content {
        padding: 60px 0;
    }

    .hero-index h1 {
        font-size: 2.4rem;
    }

    /* CTA Box */
    .cta-box {
        padding: 50px 30px;
    }

    .cta-box h2 {
        font-size: 2.2rem;
    }

    /* Founder box */
    .founder-box {
        grid-template-columns: 1fr;
        padding: 40px 25px;
        gap: 30px;
        text-align: center;
    }

    /* Mission & Vision */
    .mission-card,
    .vision-card {
        padding: 40px 30px;
        border-radius: 20px;
    }

    /* Approach cards */
    .approach-card-alt {
        padding: 25px;
    }

    /* Philosophy */
    .philosophy-card {
        padding: 40px 25px;
    }

    /* Report grid */
    .report-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Mobile (max 768px) --- */
@media (max-width: 768px) {

    /* Base typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    /* Section title */
    .section-title {
        margin-bottom: 25px;
    }

    .section-title p {
        font-size: 1rem;
    }

    /* Page header */
    .page-header {
        height: auto;
        padding: 110px 20px 40px;
        margin-bottom: 30px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    /* Hero index */
    .hero-index .hero-content {
        padding: 50px 0 40px;
    }

    .hero-index h1 {
        font-size: 2rem;
    }

    .hero-index p {
        font-size: 1rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .btn-hero-white,
    .btn-hero-outline {
        width: 100%;
        max-width: 300px;
        text-align: center;
        padding: 14px 20px;
    }

    /* Navigation extras */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 5px 0;
        background: var(--light-bg);
        border-radius: 8px;
        margin-top: 8px;
    }

    /* Card grids → single column */
    .card-grid,
    .card-grid-3,
    .card-grid-4 {
        grid-template-columns: 1fr;
    }

    /* Card padding */
    .card {
        padding: 20px;
    }

    .card-padding-large {
        padding: 20px;
    }

    /* About intro grid gap */
    .grid-2 {
        gap: 25px;
    }

    /* About section images: full width */
    .about-grid img,
    .grid-2 img {
        width: 100%;
        height: auto;
    }

    /* Mission & Vision cards */
    .mission-card,
    .vision-card {
        padding: 30px 20px;
        border-radius: 15px;
        border-bottom-right-radius: 15px;
        border-top-left-radius: 15px;
    }

    /* Founder box */
    .founder-box {
        grid-template-columns: 1fr;
        padding: 25px 15px;
        gap: 20px;
        text-align: center;
    }

    /* Philosophy card */
    .philosophy-card {
        padding: 30px 20px;
    }

    .philosophy-text {
        font-size: 1.2rem;
    }

    /* CTA box */
    .cta-box {
        padding: 40px 20px;
        border-radius: 20px;
    }

    .cta-box h2 {
        font-size: 1.8rem;
    }

    .cta-box .flex-center {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .cta-box .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    /* Gallery grid */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .gallery-item {
        height: 180px;
    }

    /* Timeline stacked */
    .timeline {
        flex-direction: column;
        gap: 20px;
        padding-top: 20px;
    }

    /* Activity grid */
    .activity-grid {
        grid-template-columns: 1fr;
    }

    /* Contact grid */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 25px;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 20px;
    }

    /* Contact form height auto on mobile */
    .contact-form-card {
        height: auto;
    }

    /* Map */
    .map-container {
        height: 250px;
        margin-top: 30px;
    }

    /* Footer */
    .footer-grid {
        gap: 20px;
    }

    footer {
        padding: 40px 0 15px;
    }

    /* Utility: hide overflow on mobile for big images */
    .w-600 {
        width: 100%;
    }

    .h-500 {
        height: auto;
    }

    /* Approach cards */
    .approach-card-alt {
        padding: 20px;
    }

    /* Module items */
    .module-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    /* Process steps */
    .process-step {
        gap: 15px;
        margin-bottom: 30px;
    }

    .process-step::after {
        left: 20px;
    }

    /* Cert grid */
    .cert-grid {
        gap: 20px;
    }

    .cert-item {
        width: 120px;
        height: 65px;
    }

    /* Icon large */
    .icon-large {
        font-size: 2.5rem;
    }

    /* Flex center: wrap on mobile */
    .flex-center {
        flex-wrap: wrap;
    }

    /* Max widths: full on mobile */
    .max-w-850,
    .max-w-900 {
        max-width: 100%;
        padding: 0 10px;
    }

    /* Gaps reduce on mobile */
    .gap-80 {
        gap: 25px;
    }

    .gap-60 {
        gap: 20px;
    }

    .gap-50 {
        gap: 18px;
    }

    /* Section padding utilities */
    .section-padding {
        padding: 40px 0;
    }

    .section-padding-sm {
        padding: 25px 0;
    }

    .section-padding-xs {
        padding: 15px 0;
    }
}

/* --- Small phones (max 480px) --- */
@media (max-width: 480px) {

    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 1.7rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .hero-index h1 {
        font-size: 1.7rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 200px;
    }

    /* Buttons full width */
    .btn {
        display: block;
        width: 100%;
        text-align: center;
    }

    .btn-full {
        width: 100%;
    }

    .cta-box {
        padding: 30px 15px;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .filter-btns {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* ==========================================================
   MOBILE DROPDOWN — Programs menu tap-to-open
   ========================================================== */
@media (max-width: 768px) {

    /* Keep dropdown hidden by default inside mobile nav */
    .nav-links .dropdown .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        box-shadow: none;
        background: var(--light-bg);
        border-radius: 8px;
        padding: 0;
        margin-top: 0;
        transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
    }

    /* When .dropdown-open is toggled by JS, show the menu */
    .nav-links .dropdown.dropdown-open .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 400px;
        padding: 8px 0;
        margin-top: 6px;
    }

    /* Rotate chevron when open */
    .nav-links .dropdown.dropdown-open .dropdown-icon {
        transform: rotate(180deg);
        transition: transform 0.3s ease;
    }

    .nav-links .dropdown .dropdown-icon {
        transition: transform 0.3s ease;
    }

    /* Dropdown links: comfortable tap targets */
    .nav-links .dropdown .dropdown-menu li a {
        padding: 12px 20px;
        font-size: 1rem;
        font-weight: 500;
        display: block;
        width: 100%;
        color: var(--text-color);
        border-bottom: 1px solid #eee;
        text-align: left;
    }

    .nav-links .dropdown .dropdown-menu li:last-child a {
        border-bottom: none;
    }

    .nav-links .dropdown .dropdown-menu li a:hover {
        background: rgba(26, 93, 59, 0.06);
        color: var(--primary-color);
        padding-left: 26px;
    }

    /* "Programs" parent link cursor */
    .nav-links .dropdown>a {
        cursor: pointer;
        user-select: none;
        display: flex;
        align-items: center;
        gap: 6px;
    }
}

.leader-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
}

@media (max-width: 768px) {
    .hero-index .hero-content {
        padding: 5px 0 183px;
    }
}