/* Google Fonts Import - Moved to HTML Head */


/* CSS Variables */
:root {
    --primary-color: #D32F2F;
    /* Blood Red */
    --primary-dark: #C62828;
    /* Darker Red for Hover */
    --secondary-color: #FFFFFF;
    /* White */
    --accent-color: #2E2E2E;
    /* Dark Grey / Charcoal */
    --text-color: #333333;
    /* Standard Text */
    --text-light: #666666;
    /* Lighter Text */
    --light-bg: #F9F9F9;
    /* Very Light Grey for backgrounds */
    --border-color: #EEEEEE;

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

    --transition: all 0.3s ease;
    --container-width: 1200px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
    overflow-x: hidden;
    padding-top: 70px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--accent-color);
    font-weight: 600;
}

h1 {
    line-height: 1.25;
    letter-spacing: 0.6px;
    margin-bottom: 24px;
}

h2 {
    line-height: 1.3;
    letter-spacing: 0.6px;
    margin-bottom: 20px;
}

h3 {
    line-height: 1.35;
    letter-spacing: 0.4px;
    margin-bottom: 16px;
}

h4,
h5,
h6 {
    line-height: 1.4;
    letter-spacing: 0.3px;
    margin-bottom: 1rem;
}

/* Form Elements & Buttons Global Font Override */
input,
textarea,
select,
label,
button,
.btn,
.nav-link {
    font-family: 'Poppins', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Utilities */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.text-white {
    color: var(--secondary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    height: 44px;
    /* Fixed refined height */
    border-radius: 24px;
    /* Reduced radius */
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-transform: capitalize;
    /* Changed from uppercase for balance */
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(211, 47, 47, 0.35);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--light-bg);
    transform: translateY(-2px);
}

/* Navbar */
.header {
    background-color: var(--secondary-color);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    /* Increased padding */
    transition: var(--transition);
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Global Brand / Logo Styling */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    height: 52px;
    /* Desktop height */
    width: auto;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.brand-name {
    color: #D32F2F !important;
    /* Global Override */
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.5px;
}

.brand-tagline {
    color: #333;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.2;
}

.brand-reg {
    color: #555;
    font-size: 0.7rem;
    font-weight: 400;
}

/* Mobile Responsiveness for Logo - Global */
@media (max-width: 768px) {
    .logo-icon {
        height: 40px;
    }

    .brand-name {
        font-size: 0.95rem;
    }

    .brand-tagline {
        font-size: 0.75rem;
    }

    .brand-reg {
        font-size: 0.6rem;
    }
}



.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    /* Bolder */
    font-size: 1.4rem;
    color: #222222;
    /* Darker black */
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    letter-spacing: 0.4px;
}

.logo-text span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .logo img {
        height: 48px;
        /* Mobile size */
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo-text span {
        display: none;
        /* Hide tagline on mobile if tight */
    }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.mobile-buttons {
    display: none;
    /* Hidden on desktop */
}

.nav-link {
    font-weight: 500;
    font-size: 1rem;
    color: var(--accent-color);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-buttons {
    display: flex;
    gap: 15px;
    margin-left: 56px;
    /* Added separation from nav menu */
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--accent-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: url('../assets/images/hero-bg.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--secondary-color);
    margin-top: 0;
    /* Sticky header handles spacing, but we might need padding-top if not overlay */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    opacity: 0;
    /* For animation */
    animation: fadeIn 1s ease-out forwards;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Impact Section */
.impact {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.impact-card {
    background: var(--secondary-color);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.impact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.impact-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.impact-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.impact-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

/* Founder Section (Seamless) */
.founder-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.founder-layout {
    display: grid;
    grid-template-columns: 1fr 380px 1fr;
    /* Left - Image - Right */
    gap: 40px;
    align-items: center;
    /* Vertically center content with image */
}

.founder-col-left {
    text-align: right;
    /* Points "towards" the image */
}

.founder-col-right {
    text-align: left;
    /* Points "towards" the image */
}

.founder-center {
    text-align: center;
    position: relative;
    z-index: 2;
}

.founder-center img {
    width: 100%;
    max-width: 380px;
    height: auto;
    display: block;
    margin: 0 auto;
    /* Clean look: No border, No shadow box */
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
    /* Soft natural shadow on the PNG itself */
}

.founder-caption {
    margin-top: 20px;
    font-size: 0.95rem;
    color: var(--accent-color);
    font-weight: 600;
    font-family: var(--font-heading);
}

.founder-col-left h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.2;
}

.founder-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-color);
}

/* Story Section */
.story-section {
    padding: 60px 0;
    background-color: var(--secondary-color);
    /* Kept seamless with same bg */
}

.story-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
}

.impact-highlight {
    background: var(--light-bg);
    padding: 40px;
    border-left: 4px solid var(--primary-color);
    margin: 40px 0;
    border-radius: 0 12px 12px 0;
}

@media (max-width: 992px) {
    .founder-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .founder-col-left,
    .founder-col-right {
        text-align: center;
    }

    .founder-center {
        order: -1;
        /* Image first on mobile/tablet */
        margin-bottom: 20px;
    }

    .founder-center img {
        max-width: 280px;
    }
}

.section-title {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 28px;
    /* Updated */
    position: relative;
    display: inline-block;
}

.section-subtitle {
    margin-top: 8px;
    margin-bottom: 24px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Page Header (Inner Pages) */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/images/hero-bg.png') center/cover;
    color: var(--secondary-color);
    padding: 100px 0 60px;
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.breadcrumb {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Forms */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--secondary-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-top: 5px solid var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--accent-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 5px;
}

/* Accordion (FAQ) */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--secondary-color);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.accordion-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fcfcfc;
    transition: var(--transition);
}

.accordion-header:hover {
    background: #fff;
}

.accordion-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--accent-color);
    margin: 0;
}

.accordion-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border-top: 1px solid transparent;
}

.accordion-item.active .accordion-content {
    padding: 20px;
    border-top-color: var(--border-color);
    max-height: 500px;
    /* Arbitrary large height */
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

/* Services Section */
.services {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--secondary-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.service-img-container {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    border-radius: 50%;
    padding: 20px;
}

/* Activity Page Layout */
.activity-list {
    padding: 80px 0 20px;
}

.activity-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 100px;
}

.activity-row:nth-child(even) {
    flex-direction: row-reverse;
}

.activity-img {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.activity-img img {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.activity-row:hover .activity-img img {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.activity-content {
    flex: 1;
    min-width: 300px;
}

.activity-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.activity-title {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    position: relative;
    font-weight: 700;
}

.activity-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

@media (max-width: 900px) {
    .activity-row {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 80px;
        text-align: center;
    }

    .activity-row:nth-child(even) {
        flex-direction: column;
    }

    .activity-img {
        width: 100%;
        max-width: 500px;
    }
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--secondary-color);
    text-align: center;
}

.cta-content h2 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 40px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
    background-color: #ddd;
    /* placeholder */
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #cecece;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

.footer-bottom p a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-bottom p a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 {
        line-height: 1.3;
    }

    h2 {
        line-height: 1.35;
    }

    .header {
        padding: 10px 0;
    }

    .hamburger {
        display: block;
        z-index: 1100;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        gap: 0;
        flex-direction: column;
        background-color: var(--secondary-color);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        justify-content: center;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 16px 0;
    }

    .nav-buttons {
        display: none;
    }

    .mobile-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
        width: 100%;
        padding: 0 20px;
    }

    .mobile-buttons .btn {
        width: 100%;
    }

    /* Add mobile buttons inside menu logic via JS or just hide/show */

    .hero-title {
        font-size: 2.2rem;
    }

    .about-content {
        flex-direction: column;
    }

    .about-image {
        order: -1;
        /* Image first on mobile? Or text first. Let's keep text first usually, or image. */
        width: 100%;
    }
}