html, body {
    height: auto;
}

body {
    min-height: 0;
    display: block;
    flex-direction: unset;
}

.footer {
    margin-top: 0;
}
/* Custom team layout rows */
.team-row-center {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.team-row-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.team-card {
    text-align: center;
    width: 100%;
    max-width: 270px;
    height: auto;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    box-sizing: border-box;
    background: #fff;
    overflow: hidden;
}
.contact-map-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: flex-start;
}
.contact-map-embed iframe {
    width: 100%;
    min-height: 300px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.partner-logo-large {
    max-height: 200px !important;
    max-width: 480px !important;
}
.partner-logo-large {
    max-height: 200px !important;
    max-width: 480px !important;
}
/* WHAT WE DO FLEX LAYOUT */
.what-we-do-flex {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 120px;
    justify-content: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.what-we-do-content {
    flex: 1 1 480px;
    max-width: 520px;
    padding-right: 32px;
}

.what-we-do-content h2,
.what-we-do-content p {
    text-align: left;
}

.what-we-do-content .btn {
    margin-top: 12px;
}

.what-we-do-images {
    flex: 1 1 400px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.what-we-do-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    width: 480px;
    max-width: 100%;
}

.what-we-do-image {
    aspect-ratio: 4/3;
    width: 100%;
    height: auto;
    min-width: 160px;
    min-height: 120px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.what-we-do-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}


/* ===================================
   JCI TBS - EL Mourouj
   Minimalistic & Clean Design
   =================================== */

/* Google Fonts - Montserrat matches logo style */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables - Based on Logo Colors */
:root {
    --primary-blue: #00A3E0;
    --primary-dark: #0088C2;
    --secondary-teal: #5BC0BE;
    --teal-dark: #4AA8A6;
    --navy-dark: #0D1B2A;
    --text-dark: #0D1B2A;
    --text-medium: #2C3E50;
    --text-light: #5A6C7D;
    --bg-light: #F5F7FA;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
    --success-green: #28A745;
    --shadow-sm: 0 2px 4px rgba(13, 27, 42, 0.08);
    --shadow-md: 0 4px 12px rgba(13, 27, 42, 0.1);
    --shadow-lg: 0 8px 24px rgba(13, 27, 42, 0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: 0.3s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.7;
}

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

ul, ol {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.8;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Spacing */
section {
    padding: 40px 0 60px 0;
}

.stats-section {
    margin-top: 0 !important;
    padding-top: 60px;
    padding-bottom: 60px;
    min-height: 120px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2,
.section-header h3 {
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 100px;
    width: auto;
}

.nav-list {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    justify-content: flex-start;
    max-width: 1100px;
    margin: 0 auto;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    padding: 8px 0;
    position: relative;
}

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

.nav-link::after {
    content: '';
    display: block;
    position: relative;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width var(--transition);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-social {
    display: flex;
    gap: 10px;
}

.header-social a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-medium);
    transition: var(--transition);
}

.header-social a:hover {
    color: var(--primary-blue);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

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

.btn-teal {
    background: var(--secondary-teal);
    color: white;
}

.btn-teal:hover {
    background: var(--teal-dark);
}

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

.btn-white:hover {
    background: var(--bg-light);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

/* ===================================
   HERO SECTION - Simple Banner Style
   =================================== */

.hero {
    background: linear-gradient(rgba(13, 27, 42, 0.7), rgba(13, 27, 42, 0.75)), 
                url('../images/WhatsApp Image 2025-12-22 at 9.42.37 PM.jpeg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 160px 0 120px;
    min-height: calc(100vh - 140px);
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero + .stats-section,
.hero + section {
    margin-top: 0;
}

.hero h1 {
    color: white;
    margin-bottom: 15px;
    font-size: 2.5rem;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page Header - Simple */
.page-header {
    background: linear-gradient(rgba(13, 27, 42, 0.7), rgba(13, 27, 42, 0.75)), 
                url('../images/WhatsApp Image 2025-12-22 at 9.42.37 PM.jpeg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 160px 0 100px;
    min-height: 350px;
}

.page-header h1 {
    color: white;
    margin-bottom: 10px;
    font-size: 2.2rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

/* ===================================
   INTRO / WHAT WE DO - Simple
   =================================== */

.intro-section {
    background: var(--bg-white);
}

.intro-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.intro-content h2 {
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.intro-content {
    text-align: left;
    max-width: 100%;
    margin: 0;
}

.intro-content h2 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.intro-content p {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.what-we-do-dark {
    background: var(--navy-dark) !important;
    color: white;
    padding: 80px 0 !important;
}

.what-we-do-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.what-we-do-images {
    order: -1;
}

.what-we-do-dark .intro-content h2 {
    color: white;
    margin-bottom: 10px;
}

.what-we-do-dark .intro-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.what-we-do-content h2 {
    color: white;
    margin-bottom: 10px;
}

.what-we-do-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.what-we-do-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.what-we-do-image {
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.what-we-do-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.what-we-do-image:hover img {
    transform: scale(1.05);
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.two-column.reverse {
    direction: rtl;
}

.two-column.reverse > * {
    direction: ltr;
}

.two-column-content h2 {
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.two-column-content p {
    margin-bottom: 20px;
}

.two-column-image img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* ===================================
   STATS SECTION
   =================================== */

.stats-section {
    background: var(--primary-blue);
    color: white;
    padding: 50px 0;
    margin-bottom: 40px;
}

.stats-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 60px;
    text-align: center;
    flex-wrap: wrap;
    width: 100%;
}

.stat-item {
    min-width: 120px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 5px;
    font-variant-numeric: tabular-nums;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    text-align: center;
}

/* ===================================
   CARDS
   =================================== */

.card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

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

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    background: var(--primary-blue);
    color: white;
}

.card-content {
    padding: 25px;
}

.card-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-title a:hover {
    color: var(--primary-blue);
}

.card-excerpt {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.6;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
    font-weight: 500;
    color: var(--primary-blue);
    font-size: 0.9rem;
}

.card-link:hover {
    gap: 10px;
}

/* Team Cards */

.team-card {
    text-align: center;
    width: 100%;
    max-width: 270px;
    height: auto;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
}

.team-card .card-image {
    height: 200px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.team-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.team-card .card-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px;
    height: 220px;
    box-sizing: border-box;
}

.team-social {
    margin-top: auto;
}

.team-name {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.team-role {
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.team-bio {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.team-social a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-medium);
    transition: var(--transition);
}

.team-social a:hover {
    background: var(--primary-blue);
    color: white;
}

/* Feature Cards - Simple */
.feature-card {
    padding: 30px;
    text-align: center;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--primary-blue);
    font-size: 1.5rem;
}

/* ===================================
   GRID LAYOUTS
   =================================== */

.grid {
    display: grid;
    gap: 30px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
}

/* ===================================
   VALUES SECTION
   =================================== */

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    justify-content: center;
}

.value-item {
    padding: 25px 20px;
    text-align: center;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.value-item:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.value-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-light);
    font-size: 1.25rem;
    color: var(--primary-blue);
}

.value-item h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.value-item p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ===================================
   NEWS SECTION
   =================================== */

.news-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    color: var(--text-medium);
    transition: var(--transition);
    font-size: 0.9rem;
}

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

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Featured News */
.news-featured {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.news-featured-main .card-image {
    height: 280px;
}

.news-featured-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-featured-sidebar .card-image {
    height: 120px;
}

.news-featured-sidebar .card-content {
    padding: 15px;
}

.news-featured-sidebar .card-title {
    font-size: 0.95rem;
}

/* ===================================
   PARTNERS SECTION
   =================================== */

.partners-logos-clean.partners-logos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 48px 32px;
    justify-items: center;
    align-items: center;
    margin: 40px 0 0 0;
}
.partners-logos-clean.partners-logos-grid img {
    max-height: 110px;
    max-width: 220px;
    object-fit: contain;
    background: none;
    border: none;
    box-shadow: none;
    filter: none;
    opacity: 1;
    transition: none;
}
.minimal-partners-header h2 {
    color: #111;
    font-weight: bold;
    font-size: 2.3rem;
    margin-bottom: 0.5em;
}
.minimal-partners-header p {
    color: #222;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.benefit-card {
    padding: 30px;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    border-color: var(--primary-blue);
}

.benefit-number {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--secondary-teal);
    color: white;
    font-weight: 600;
}

/* ===================================
   MAP SECTION
   =================================== */

.map-section {
    padding: 0;
}

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

.map-info {
    padding: 60px 40px;
    background: var(--text-dark);
    color: white;
}

.map-info h3 {
    color: white;
    margin-bottom: 20px;
}

.map-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

.map-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.map-detail {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.map-detail i {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-blue);
    color: white;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.map-detail-content h5 {
    color: white;
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.map-detail-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.map-embed {
    min-height: 400px;
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===================================
   CONTACT SECTION
   =================================== */

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

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

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-info-item {
    display: flex;
    gap: 15px;
}

.contact-info-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--primary-blue);
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-info-content h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-info-content p {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin: 0;
}

.contact-info-content a {
    color: var(--primary-blue);
}

.contact-info-content a:hover {
    text-decoration: underline;
}

.contact-social {
    margin-top: 20px;
}

.contact-social h4 {
    margin-bottom: 15px;
}

.contact-social-links {
    display: flex;
    gap: 10px;
}

.contact-social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    color: var(--text-medium);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-social-links a:hover {
    background: var(--primary-blue);
    color: white;
}

/* ===================================
   ACCORDION
   =================================== */

.accordion {
    max-width: 700px;
    margin: 0 auto;
}

.accordion-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    font-size: 1rem;
    text-align: left;
    transition: var(--transition);
}

.accordion-header:hover {
    background: var(--bg-light);
}

.accordion-header i {
    transition: var(--transition);
    color: var(--text-light);
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-body {
    display: none;
    padding: 0 20px 20px;
}

.accordion-item.active .accordion-body {
    display: block;
}

/* ===================================
   CTA SECTION
   =================================== */

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

.cta-section h2 {
    color: white;
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
    margin: 0 auto 25px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* ===================================
   SOCIAL BAR
   =================================== */

.social-bar {
    background: var(--bg-light);
    padding: 30px 0;
}

.social-bar-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.social-bar-content span {
    font-weight: 500;
    color: var(--text-dark);
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    color: var(--text-medium);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.social-icons a:hover {
    color: white;
}

.social-icons a.facebook:hover { background: #1877F2; }
.social-icons a.instagram:hover { background: #E4405F; }
.social-icons a.linkedin:hover { background: #0A66C2; }
.social-icons a.twitter:hover { background: #1DA1F2; }
.social-icons a.youtube:hover { background: #FF0000; }

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.footer-brand .logo {
    margin-bottom: 15px;
}

.footer-brand .logo img {
    height: 90px;
    max-width: 220px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-blue);
}

.footer-column h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.newsletter-form button {
    padding: 10px 20px;
    background: var(--secondary-teal);
    color: white;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--teal-dark);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
}

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

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-bottom-links a:hover {
    color: white;
}

/* ===================================
   TIMELINE
   =================================== */

.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--border-color);
}

.timeline-item {
    display: flex;
    margin-bottom: 30px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: calc(50% - 30px);
    padding: 20px;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-blue);
    border: 3px solid white;
    box-shadow: var(--shadow-sm);
}

.timeline-date {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 5px;
    font-size: 0.9rem;
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.text-center { text-align: center; }
.text-primary { color: var(--primary-blue); }
.text-teal { color: var(--secondary-teal); }
.text-muted { color: var(--text-light); }

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

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

.w-100 { width: 100%; }

/* Reveal Animation - Subtle */
.reveal {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 992px) {
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: var(--shadow-md);
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .nav-link {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .header-social {
        display: none;
    }
    
    .grid-3, .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-4, .values-grid, .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .two-column, .contact-grid, .map-container {
        grid-template-columns: 1fr;
    }
    
    .news-featured {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Mobile Header & Nav Adjustments */
    .logo img {
        height: 60px; /* Scale logo to fit nicely within 70px header-inner */
    }
    
    .nav-list {
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .page-header {
        padding: 110px 0 50px;
    }
    
    .grid-2, .grid-3, .grid-4, .news-grid, .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid, .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }
    
    .map-info {
        padding: 40px 25px;
    }
    
    .contact-form-wrapper {
        padding: 25px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .cta-buttons, .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn, .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: row;
    }
    
    .timeline-content {
        width: calc(100% - 45px);
        margin-left: 40px;
    }
    
    .timeline-dot {
        left: 15px;
    }

    /* Fixed Dimension & Layout Overrides for Mobile */
    .what-we-do-flex {
        flex-direction: column;
        gap: 40px;
    }
    .what-we-do-content {
        padding-right: 0;
        max-width: 100%;
        text-align: center;
    }
    .what-we-do-content h2,
    .what-we-do-content p {
        text-align: center;
    }
    .team-card {
        width: 100%;
        height: auto;
        min-height: 420px;
    }
    .what-we-do-grid {
        width: 100%;
        max-width: 100%;
    }
    .partner-logo-large {
        max-width: 100% !important;
        height: auto;
    }
    
    /* Ensure grids cascade down gracefully to single columns */
    .events-grid {
        grid-template-columns: 1fr;
    }
    .team-row-flex {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    .contact-map-grid {
        grid-template-columns: 1fr;
    }

    /* Partner Logos Desktop Overrides */
    .partners-logos-clean.partners-logos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .partners-logos-clean.partners-logos-grid a {
        grid-column: auto !important; /* Discard inline inline grid-column adjustments */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .values-grid, .stats-grid {
        grid-template-columns: 1fr;
    }

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

    .social-bar-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }

    /* Decrease overly large paddings to maximize real estate on mobile phones */
    .hero {
        padding: 100px 0 60px;
        min-height: 50vh;
    }
    .page-header {
        padding: 100px 0 60px;
        min-height: 250px;
    }
    .contact-form-wrapper {
        padding: 20px;
    }
    
    /* Ensure grids cascade down gracefully to single column on small phones */
    .team-row-flex {
        grid-template-columns: 1fr;
    }
    .partners-logos-clean.partners-logos-grid {
        grid-template-columns: 1fr;
    }
}

/* Mission Section Styles */
.mission-section {
    background: var(--navy-dark) !important;
    color: white;
    padding: 80px 0 !important;
}

.mission-section h2 {
    color: var(--primary-blue);
}

.mission-section p {
    color: rgba(255,255,255,0.9);
}

/* ===== EVENTS PAGE STYLES ===== */

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.event-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.event-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.event-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-blue);
    color: white;
    border-radius: 6px;
    padding: 8px 12px;
    text-align: center;
    min-width: 60px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.event-date-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-date-month {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.event-date-year {
    display: block;
    font-size: 0.7rem;
}

.event-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-content h3 {
    margin: 0 0 12px 0;
    font-size: 1.2rem;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.event-card-link:hover .event-content h3 {
    color: var(--primary-blue);
}

.event-excerpt {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
    flex: 1;
}

.event-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-type i {
    background: var(--primary-blue);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.event-count i {
    color: var(--primary-blue);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
    align-self: flex-start;
}

/* ===== EVENT DETAIL PAGE ===== */

.event-detail-featured {
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.event-detail-featured img {
    width: 100%;
    height: auto;
    display: block;
}

.event-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.event-info-box {
    background: rgba(5, 107, 175, 0.05);
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.event-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(5, 107, 175, 0.2);
}

.event-info-item:last-child {
    border-bottom: none;
}

.event-info-item i {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-top: 2px;
    min-width: 20px;
}

.event-info-item .label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
}

.event-info-item .value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.event-description h2 {
    margin-top: 0;
}

.event-description h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.event-description p {
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 15px;
}

.event-highlights,
.event-outcomes {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.event-highlights li,
.event-outcomes li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    color: var(--text-medium);
}

.event-highlights i,
.event-outcomes i {
    color: var(--primary-blue);
    margin-top: 3px;
    min-width: 16px;
}

.testimonials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.testimonial {
    background: rgba(5, 107, 175, 0.05);
    border-left: 4px solid var(--primary-blue);
    padding: 20px;
    border-radius: 4px;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 12px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* Sidebar */
.event-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.sidebar-widget h4 {
    margin-top: 0;
    color: var(--text-dark);
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 12px;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.share-btn.facebook {
    background-color: #1877f2;
}

.share-btn.twitter {
    background-color: #1da1f2;
}

.share-btn.linkedin {
    background-color: #0a66c2;
}

.share-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.share-btn:hover {
    transform: scale(1.1);
}

.related-events {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-event-item {
    display: block;
    padding: 12px;
    border-left: 3px solid var(--primary-blue);
    padding-left: 15px;
    color: inherit;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border-radius: 4px;
}

.related-event-item:hover {
    background-color: rgba(5, 107, 175, 0.05);
}

.related-event-date {
    font-size: 0.8rem;
    color: var(--primary-blue);
    font-weight: 600;
}

.related-event-title {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-top: 4px;
}

/* Event Gallery */
.event-gallery h2 {
    margin-top: 0;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .event-detail-grid {
        grid-template-columns: 1fr;
    }

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

    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}


/* Creed Content Styles */
.creed-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.creed-item {
    padding: 10px 0;
    border-left: 3px solid var(--primary-blue);
    padding-left: 15px;
}

.creed-item p {
    margin: 3px 0;
    line-height: 1.5;
    font-size: 0.9rem;
}

.creed-item p:first-child {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 4px;
}

.creed-item p:nth-child(2) {
    color: var(--text-medium);
    font-style: italic;
    font-size: 0.85rem;
}

.creed-item p:nth-child(3) {
    color: var(--text-dark);
    font-size: 0.85rem;
}
