/* ============================================
   CSS Reset & Base Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-color: #2c5f41;
    --primary-dark: #1e4230;
    --primary-light: #3d7a57;
    --secondary-color: #4a90a4;
    --accent-color: #f39c12;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* ============================================
   Accessibility
   ============================================ */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   Container & Layout
   ============================================ */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    box-sizing: border-box;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

/* ============================================
   Header & Navigation
   ============================================ */

.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: var(--spacing-sm) 0;
}

.navbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-text {
    display: none;
}

@media (min-width: 768px) {
    .logo-text {
        display: inline;
    }
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: var(--spacing-xs) 0;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Styles */
@media (max-width: 767px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--spacing-xl) var(--spacing-md);
        gap: var(--spacing-md);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.125rem;
        width: 100%;
    }

    /* Mobile Container Padding */
    .container {
        padding: 0 var(--spacing-sm);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Prevent horizontal overflow */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
        position: relative;
    }

    /* Ensure all sections respect viewport */
    section, .section, main {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    /* Ensure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    /* Fix text overflow */
    p, span, a, h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Ensure buttons don't overflow */
    .btn {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Fix table and other elements */
    table {
        width: 100%;
        max-width: 100%;
        table-layout: fixed;
    }

    /* Mobile Logo */
    .logo-img {
        height: 40px;
    }

    /* Mobile Hero */
    .hero {
        min-height: 500px;
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .hero-content {
        text-align: center;
        padding: var(--spacing-md) 0;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: var(--spacing-sm);
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Mobile Section Headers */
    .section-header {
        text-align: center;
        padding: 0 var(--spacing-xs);
    }

    .section-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 var(--spacing-xs);
    }

    /* Mobile About Section */
    .about-content {
        text-align: center;
    }

    .about-text {
        text-align: left;
    }

    .about-text p {
        font-size: 0.9375rem;
        line-height: 1.7;
    }

    /* Mobile Services */
    .service-card {
        padding: var(--spacing-sm);
        text-align: center;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        margin-bottom: var(--spacing-sm);
    }

    .service-title {
        font-size: 1.125rem;
    }

    .service-description {
        font-size: 0.875rem;
    }

    /* Mobile Impact Section */
    .impact-grid {
        gap: var(--spacing-sm);
    }

    .impact-item {
        padding: var(--spacing-sm);
    }

    .impact-number {
        font-size: 1.75rem;
    }

    .impact-label {
        font-size: 0.75rem;
    }

    /* Mobile Team Section */
    .team-member-content {
        text-align: center;
    }

    .team-member-details {
        text-align: left;
        order: 2;
    }

    .team-member-image {
        order: 1;
        margin-bottom: var(--spacing-md);
    }

    .team-member-reverse .team-member-details {
        order: 2;
    }

    .team-member-reverse .team-member-image {
        order: 1;
    }

    .team-member-name {
        font-size: 1.25rem;
        text-align: center;
    }

    .team-member-position {
        font-size: 0.9375rem;
        text-align: center;
    }

    .team-member-description {
        font-size: 0.875rem;
        text-align: left;
        margin-top: var(--spacing-sm);
    }

    .team-img {
        max-height: 300px;
    }

    /* Mobile Contact Info */
    .contact-info {
        padding: var(--spacing-md);
    }

    .contact-info h3 {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: var(--spacing-md);
    }

    .contact-info p {
        text-align: center;
        font-size: 0.9375rem;
    }

    .contact-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
        padding: var(--spacing-sm) 0;
        width: 100%;
        box-sizing: border-box;
    }

    .contact-info-item strong {
        min-width: auto;
        width: 100%;
        font-size: 0.9375rem;
        flex-shrink: 0;
    }

    .contact-info-item span {
        width: 100%;
        font-size: 0.9375rem;
        word-break: break-word;
    }

    .contact-social-section {
        text-align: center;
    }

    .contact-social-section h4 {
        text-align: center;
    }

    .contact-social-section .social-links {
        justify-content: center;
    }

    /* Mobile Footer */
    .footer {
        padding: var(--spacing-lg) 0 var(--spacing-md);
    }

    .footer-content {
        text-align: center;
        gap: var(--spacing-lg);
    }

    .footer-section {
        margin-bottom: var(--spacing-md);
    }

    .footer-title {
        font-size: 1.25rem;
    }

    .footer-section p {
        font-size: 0.875rem;
    }

    .footer-heading {
        font-size: 1rem;
        margin-bottom: var(--spacing-sm);
    }

    .footer-links {
        align-items: center;
        justify-content: center;
    }

    .footer-contact {
        align-items: center;
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        font-size: 0.875rem;
        padding-top: var(--spacing-sm);
    }

    /* Mobile Buttons */
    .btn {
        padding: 10px 24px;
        font-size: 0.9375rem;
        width: 100%;
        max-width: 300px;
    }

    .btn-large {
        padding: 14px 32px;
        font-size: 1rem;
    }

    /* Mobile Map */
    .contact-map {
        padding: var(--spacing-md);
    }

    .contact-map h3 {
        font-size: 1.25rem;
        text-align: center;
    }

    .contact-map p {
        text-align: center;
        font-size: 0.9375rem;
    }

    .map-container {
        height: 300px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .map-container iframe {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .map-note {
        font-size: 0.8125rem;
        word-wrap: break-word;
    }

    /* Mobile Mission & Vision */
    .mission-vision-grid {
        gap: var(--spacing-sm);
    }

    .mission-card,
    .vision-card {
        padding: var(--spacing-md);
    }

    .mission-card h3,
    .vision-card h3 {
        font-size: 1.25rem;
    }

    .mission-card p,
    .vision-card p {
        font-size: 0.9375rem;
    }

    /* Mobile Problem & Solution */
    .problem-solution-item {
        padding: var(--spacing-md);
    }

    .problem-solution-item h3 {
        font-size: 1.25rem;
    }

    .problem-solution-item p {
        font-size: 0.9375rem;
    }

    /* Mobile Scroll to Top */
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }

    /* Mobile Service Details */
    .service-detail {
        padding: var(--spacing-sm);
    }

    .service-detail-icon {
        width: 40px;
        height: 40px;
    }

    .service-detail-title {
        font-size: 1.125rem;
    }

    .service-detail-description {
        font-size: 0.875rem;
    }
}

/* Extra Small Screens (below 480px) */
@media (max-width: 479px) {
    .container {
        padding: 0 var(--spacing-xs);
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 0.9375rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9375rem;
    }

    .logo-img {
        height: 35px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }

    .impact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .impact-number {
        font-size: 2rem;
    }

    .impact-label {
        font-size: 0.8125rem;
    }

    .contact-info-item strong {
        font-size: 0.875rem;
        flex-direction: column;
        gap: 4px;
    }

    .contact-icon {
        width: 18px;
        height: 18px;
    }

    .team-member-name {
        font-size: 1.125rem;
    }

    .team-member-position {
        font-size: 0.875rem;
    }

    .team-member-description {
        font-size: 0.8125rem;
    }

    .footer-title {
        font-size: 1.125rem;
    }

    .footer-section p {
        font-size: 0.8125rem;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }

    .map-container {
        height: 250px;
    }
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-image: url('../images/hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: var(--spacing-xl) 0;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

@media (min-width: 768px) {
    .hero {
        min-height: 700px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-description {
        font-size: 1.25rem;
    }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: #e67e22;
    border-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.125rem;
}

/* ============================================
   Section Styles
   ============================================ */

.section-padding {
    padding: var(--spacing-xl) 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

/* ============================================
   About Section
   ============================================ */

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-text p {
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
    line-height: 1.8;
}

.about-image {
    order: -1;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.image-placeholder {
    width: 100%;
    height: 300px;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.125rem;
    border: 2px dashed var(--border-color);
}

@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
    }

    .about-image {
        order: 0;
    }

    .about-img {
        max-height: 500px;
    }

    .image-placeholder {
        height: 400px;
    }
}

/* ============================================
   Services Section
   ============================================ */

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-card {
    background: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-sm);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.service-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--primary-dark);
}

/* ============================================
   Impact Section
   ============================================ */

.impact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

@media (min-width: 480px) {
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.impact-item {
    text-align: center;
    padding: var(--spacing-md);
}

.impact-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.impact-label {
    font-size: 1rem;
    color: var(--text-light);
}

@media (min-width: 768px) {
    .impact-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .impact-number {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .impact-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   Partners Section
   ============================================ */

.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    align-items: center;
}

.logo-placeholder {
    width: 100%;
    height: 120px;
    background: var(--bg-white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.logo-placeholder:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

@media (min-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .partners-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.cta-description {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 2.5rem;
    }
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background-color: var(--text-dark);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact li {
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact-icon {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
    width: 40px;
    height: 40px;
}

.social-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* ============================================
   Scroll to Top Button
   ============================================ */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   Page-Specific Styles
   ============================================ */

/* About Page */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.team-card {
    background: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--bg-light);
    margin: 0 auto var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    border: 3px solid var(--border-color);
}

.team-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.team-role {
    color: var(--text-light);
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Team Section - Alternating Layout */
.team-section {
    padding: var(--spacing-xl) 0;
}

.team-member {
    margin-bottom: var(--spacing-xl);
}

.team-member:last-child {
    margin-bottom: 0;
}

.team-member-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.team-member-image {
    width: 100%;
    order: -1;
    background: transparent;
}

.team-img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    display: block;
}

.team-img-placeholder {
    width: 100%;
    height: 400px;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1rem;
    border: 2px dashed var(--border-color);
    box-shadow: var(--shadow);
}

.team-member-details {
    text-align: left;
}

.team-member-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.team-member-position {
    font-size: 1.125rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.team-member-description {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
}

/* Reverse layout for alternating members */
.team-member-reverse .team-member-image {
    order: 0;
}

.team-member-reverse .team-member-details {
    order: -1;
}

@media (min-width: 768px) {
    .team-member-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
    }

    .team-member-image {
        order: 0;
    }

    .team-member-reverse .team-member-image {
        order: -1;
    }

    .team-member-reverse .team-member-details {
        order: 0;
    }

    .team-img {
        max-height: 400px;
    }
    
    .team-img-placeholder {
        height: 400px;
    }
}

@media (min-width: 1024px) {
    .team-img {
        max-height: 450px;
    }
    
    .team-img-placeholder {
        height: 450px;
    }
}

/* Services Page */
.service-detail {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: var(--spacing-md);
    transition: var(--transition);
}

.service-detail:hover {
    box-shadow: var(--shadow-hover);
}

.service-detail-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.service-detail-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-detail-icon svg {
    width: 100%;
    height: 100%;
}

.service-detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.service-detail-description {
    color: var(--text-light);
    line-height: 1.8;
}

/* Contact Page */
.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

.contact-info {
    background: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: 8px;
}

.contact-info p {
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
}

.contact-social-section {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.contact-social-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.contact-social-section .social-links {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.contact-social-section .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: var(--primary-color);
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
    width: 45px;
    height: 45px;
}

.contact-social-section .social-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.contact-social-section .social-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.contact-map {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-map h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.contact-map p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.map-container {
    width: 100%;
    max-width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    box-sizing: border-box;
    position: relative;
}

.map-container iframe {
    width: 100%;
    max-width: 100%;
    height: 100%;
    border: 0;
    display: block;
    box-sizing: border-box;
}

.map-container iframe {
    width: 100%;
    max-width: 100%;
    height: 100%;
    border: 0;
    display: block;
    box-sizing: border-box;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-note {
    margin-top: var(--spacing-sm);
    color: var(--text-light);
    font-size: 0.875rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.map-note-icon {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.contact-info-item {
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.contact-info-item:first-of-type {
    margin-top: var(--spacing-lg);
}

.contact-info-item strong {
    color: var(--text-dark);
    min-width: 100px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.contact-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-info-item span {
    color: var(--text-light);
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contact-form {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-dark);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 95, 65, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-error {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
    display: none;
}

.form-error.show {
    display: block;
}

.form-input.error,
.form-textarea.error {
    border-color: #e74c3c;
}

.form-success {
    background: #27ae60;
    color: white;
    padding: var(--spacing-md);
    border-radius: 6px;
    margin-bottom: var(--spacing-md);
    display: none;
}

.form-success.show {
    display: block;
}

@media (min-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
    }

    .map-container {
        height: 450px;
    }
}

@media (min-width: 1024px) {
    .map-container {
        height: 500px;
    }
}

/* Mission & Vision Cards */
.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.mission-card,
.vision-card {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.mission-card h3,
.vision-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.mission-card p,
.vision-card p {
    color: var(--text-light);
    line-height: 1.8;
}

@media (min-width: 768px) {
    .mission-vision-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Problem & Solution Section */
.problem-solution {
    margin-top: var(--spacing-lg);
}

.problem-solution-item {
    background: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: 8px;
    margin-bottom: var(--spacing-md);
}

.problem-solution-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.problem-solution-item p {
    color: var(--text-light);
    line-height: 1.8;
}

