:root {
    --primary-color: #0056b3; /* Classic Trust Blue */
    --secondary-color: #fca311; /* Accent/Gold for "Future" or energy */
    --dark-color: #14213d;
    --light-color: #f8f9fa;
    --text-color: #333;
    --gray-color: #6c757d;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    scroll-behavior: smooth;
}

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

ul {
    list-style: none;
}

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

/* Utility Classes */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

.btn-primary:hover {
    background-color: #e0910b;
    transform: translateY(-2px);
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-color);
    margin-bottom: 40px;
}

.text-white { color: #fff; }
.bg-light { background-color: var(--light-color); }
.bg-dark { background-color: var(--dark-color); color: #fff; }

/* Navbar */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

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

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

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

.nav-link {
    font-weight: 600;
    color: var(--dark-color);
    transition: var(--transition);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    height: 3px;
    width: 25px;
    background-color: var(--dark-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 90vh; /* Almost full screen */
    background: url('assets/hgf_gallery_01.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Darkens the image for readability */
}

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

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.tagline {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 20px;
}

.sub-text {
    margin-bottom: 30px;
    opacity: 0.9;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    margin-top: 20px;
}

.about-text h3:first-child { margin-top: 0; }

.mission-vision {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.mv-item {
    background: var(--light-color);
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
}

.mv-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Programs Section */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.program-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-5px);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.icon-box i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.program-card h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.extra-programs {
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.extra-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.extra-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.extra-list i {
    color: var(--secondary-color);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

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

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

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch; /* Ensure children match in height */
}

.contact-map {
    width: 100%;
    height: 100%;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px; /* Base height for mobile */
}

/* Contact Info Bottom Grid */
.contact-bottom {
    padding-bottom: 30px;
}

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

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 0; /* Reset */
    align-items: flex-start;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.info-item h4 {
    margin-bottom: 5px;
    color: var(--secondary-color);
}

/* Contact Form Styles */
.contact-form-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--secondary-color);
}

.form-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-status.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
}

.form-status.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
}

/* Footer */
footer {
    background: #0b1323; /* Darker than dark */
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px; /* Below navbar */
        left: -100%;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        padding: 20px;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .about-grid, .contact-wrapper, .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .contact-map iframe {
        height: 350px;
    }

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