/* ================================
   CSS Reset & Variables
   ================================ */

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

:root {
    --primary-blue: #0A4F9E;
    --dark-blue: #083A75;
    --light-blue: #1565C0;
    --accent-blue: #a8c8e8;
    --bg-light-blue: #c5d8ec;
    --text-dark: #1a1a1a;
    --text-gray: #4a4a4a;
    --text-light: #6b6b6b;
    --white: #ffffff;
    --light-gray: #f7f8fa;
    --border-gray: #e0e0e0;
    
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

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

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

/* ================================
   Header & Navigation
   ================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

/* Dark header state (used on pages with dark/blue hero backgrounds) */
.header.hero-dark .nav-link,
.header.hero-dark .social-links a {
    color: var(--white);
}

.header.hero-dark.scrolled .nav-link,
.header.hero-dark.scrolled .social-links a {
    color: var(--text-dark);
}

.header.hero-dark.scrolled .nav-link:hover,
.header.hero-dark.scrolled .social-links a:hover {
    color: var(--primary-blue);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo img {
    height: 55px;
    width: auto;
    transition: var(--transition);
}

/* On dark hero pages, give the logo a white circular background so it stays visible */
.header.hero-dark .logo img {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 4px;
}

.header.hero-dark.scrolled .logo img {
    background: none;
    border-radius: 0;
    padding: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

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

.social-links a {
    color: var(--text-dark);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    background: rgba(10, 79, 158, 0.05);
}

.social-links a svg {
    width: 16px;
    height: 16px;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border: 2px solid currentColor;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
}

.header.hero-dark .btn-contact {
    color: var(--white);
    border-color: var(--white);
}

.header.hero-dark.scrolled .btn-contact {
    color: var(--text-dark);
    border-color: var(--text-dark);
}

.btn-contact:hover {
    background: var(--primary-blue);
    color: var(--white) !important;
    border-color: var(--primary-blue) !important;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: currentColor;
    transition: var(--transition);
}

/* ================================
   Hero Section
   ================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.35;
    margin-bottom: 24px;
}

.hero-title .highlight {
    background: var(--primary-blue);
    padding: 6px 16px 10px;
    display: inline;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ================================
   Section Styles
   ================================ */

.section {
    padding: 100px 0;
}

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

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

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

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.section-dark .section-title {
    color: var(--white);
}

.section-subtitle {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-gray);
}

.section-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

/* ================================
   Buttons
   ================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: var(--dark-blue);
    border-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 79, 158, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

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

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

.btn-white:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-2px);
}

.btn-dark {
    background: var(--text-dark);
    color: var(--white);
    border-color: var(--text-dark);
}

.btn-dark:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

/* ================================
   Purpose / About Preview
   ================================ */

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

.purpose-text h2 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 24px;
    line-height: 1.3;
}

.purpose-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 16px;
}

.purpose-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 32px;
}

.purpose-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.7;
}

.purpose-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-blue);
}

.purpose-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

/* ================================
   Stats Section
   ================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 32px 16px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ================================
   Projects Section (Home)
   ================================ */

.projects-home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.project-home-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.project-home-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--light-gray);
}

.project-home-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-home-content {
    padding: 28px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-home-content h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.project-home-content p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
    flex-grow: 1;
}

.project-home-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-home-link::after {
    content: '\2192';
    transition: transform 0.3s ease;
}

.project-home-link:hover::after {
    transform: translateX(4px);
}

/* ================================
   Projects Page - Categories
   ================================ */

.project-category {
    margin-bottom: 80px;
}

.project-category:last-child {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--primary-blue);
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-icon svg {
    width: 24px;
    height: 24px;
}

.category-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    color: var(--primary-blue);
}

/* ---- Carousel wrapper ---- */
.category-carousel-wrap {
    position: relative;
}

.category-carousel-wrap .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--primary-blue);
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, opacity 0.2s;
    opacity: 0.9;
}

.category-carousel-wrap .carousel-btn:hover {
    background: var(--dark-blue);
    opacity: 1;
}

.category-carousel-wrap .carousel-btn.prev { left: -22px; }
.category-carousel-wrap .carousel-btn.next { right: -22px; }

.category-carousel-wrap .carousel-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.category-grid {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 8px 4px 20px;
    scrollbar-width: none;
}

.category-grid::-webkit-scrollbar {
    display: none;
}

/* ---- Project Cards (redesigned) ---- */
.project-detail-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.project-detail-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(10, 79, 158, 0.18);
}

.project-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #0a4f9e 0%, #1a6dd4 50%, #3498db 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.project-card-image .card-icon-placeholder {
    color: rgba(255,255,255,0.3);
}

.project-card-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-detail-card h3 {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.project-detail-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.65;
    flex: 1;
}

.project-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #eef1f5;
}

.project-detail-card .project-impact {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(10, 79, 158, 0.08);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-blue);
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-detail-card .project-date {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

.project-detail-card .project-view-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-blue);
    transition: color 0.2s;
    white-space: nowrap;
}

.project-detail-card:hover .project-view-link {
    color: var(--dark-blue);
}

/* Responsive carousel cards */
@media (max-width: 768px) {
    .project-detail-card {
        flex: 0 0 280px;
    }
    .category-carousel-wrap .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .category-carousel-wrap .carousel-btn.prev { left: -8px; }
    .category-carousel-wrap .carousel-btn.next { right: -8px; }
}

@media (max-width: 480px) {
    .project-detail-card {
        flex: 0 0 260px;
    }
}

/* Featured project cards (full width) */
.project-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
    border-left: 4px solid var(--primary-blue);
}

.project-featured-text h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 16px;
}

.project-featured-text p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
}

.project-featured-meta {
    margin-top: 20px;
}

.project-featured-meta h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.level-list {
    list-style: none;
    padding: 0;
}

.level-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-gray);
    font-size: 15px;
    color: var(--text-gray);
}

.level-list li:last-child {
    border-bottom: none;
}

.level-list li strong {
    color: var(--text-dark);
}

/* ================================
   Events / Cards Section
   ================================ */

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

.event-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.event-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--light-gray);
}

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

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

.event-card-content {
    padding: 24px;
}

.event-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 8px;
    line-height: 1.4;
}

.event-date {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-description {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 15px;
}

/* ================================
   Contact Section
   ================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-detail {
    margin-bottom: 20px;
}

.contact-detail strong {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-detail a {
    font-size: 16px;
    color: var(--white);
}

.contact-detail a:hover {
    opacity: 0.8;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--white);
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.2);
}

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

.form-group select option {
    background: var(--primary-blue);
    color: var(--white);
}

#form-message {
    display: none;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* ================================
   Footer
   ================================ */

.footer {
    background: var(--white);
    padding: 60px 0 40px;
    border-top: 1px solid var(--border-gray);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo img {
    height: 50px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--border-gray);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-light);
}

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

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

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

.footer-social a svg {
    width: 16px;
    height: 16px;
}

/* ================================
   Page Hero (Inner Pages)
   ================================ */

.page-hero {
    padding: 140px 0 80px;
    background: var(--primary-blue);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 600;
    margin-bottom: 16px;
}

.page-subtitle {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

/* ================================
   About Page
   ================================ */

.about-who-we-are {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-main-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.about-text-column p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 16px;
}

/* Timeline */
.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 0 40px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-blue);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    align-items: flex-start;
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 40px);
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
    padding-left: calc(50% + 40px);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-blue);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--primary-blue);
    z-index: 2;
}

.timeline-year {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.timeline-description {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 15px;
}

/* Values Network */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.value-item {
    text-align: center;
    padding: 40px 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 3px solid var(--primary-blue);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(10, 79, 158, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-blue);
}

.value-item h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.value-item p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Impact Stats */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.impact-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.impact-number {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.impact-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.impact-desc {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ================================
   Team Page
   ================================ */

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

.team-member-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.team-member-image {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-blue);
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member-name {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 6px;
}

.team-member-role {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.team-member-message {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-gray);
    font-style: italic;
}

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

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

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

.team-social-links a svg {
    width: 14px;
    height: 14px;
}

/* Active Shapers List */
.active-shapers-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.shapers-column {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shapers-column li {
    padding: 12px 0;
    font-size: 16px;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-gray);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.shapers-column li:last-child {
    border-bottom: none;
}

.shapers-column li:hover {
    color: var(--primary-blue);
}

.shaper-role-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    background: var(--primary-blue);
    color: #fff;
    letter-spacing: 0.3px;
    white-space: nowrap;
    line-height: 1.6;
}

.shapers-column li .linkedin-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #0077B5;
    color: white;
    transition: var(--transition);
    flex-shrink: 0;
}

.shapers-column li .linkedin-link:hover {
    background: #005885;
    transform: scale(1.1);
}

.shapers-column li .linkedin-link svg {
    width: 14px;
    height: 14px;
}

/* ================================
   Leadership Image
   ================================ */

.leadership-image-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.leadership-image {
    width: 50%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* ================================
   Alumni Page
   ================================ */

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

/* Filter Buttons */
.filter-btn {
    cursor: pointer;
}

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

.filter-btn:not(.active) {
    background: transparent;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

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

/* ================================
   Animations
   ================================ */

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   Mobile Menu Animation
   ================================ */

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ================================
   Responsive Design
   ================================ */

@media (max-width: 1024px) {
    .purpose-grid {
        gap: 50px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .projects-home-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .project-featured {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        color: var(--text-dark);
    }
    
    .header.hero-dark .mobile-menu-btn {
        color: var(--white);
    }
    
    .header.hero-dark.scrolled .mobile-menu-btn {
        color: var(--text-dark);
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        display: none;
        z-index: 999;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu .nav-link {
        font-size: 18px;
        color: var(--text-dark) !important;
    }
    
    .nav-right {
        display: none;
    }
    
    .nav-menu.active + .nav-right {
        display: none;
    }
    
    .hero-title {
        font-size: clamp(30px, 6vw, 48px);
    }
    
    .section {
        padding: 60px 0;
    }
    
    .purpose-grid,
    .about-who-we-are,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .projects-home-grid {
        grid-template-columns: 1fr;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .page-hero {
        padding: 120px 0 60px;
    }
    
    .team-leadership {
        grid-template-columns: 1fr;
    }
    
    .active-shapers-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .impact-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .active-shapers-list {
        grid-template-columns: 1fr;
    }
    
    .logo img {
        height: 40px;
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }

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

/* ==================== MEMBERS GRID (Team Page) ==================== */

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.member-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px 20px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.member-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.member-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 16px;
    border: 3px solid var(--primary-blue);
    flex-shrink: 0;
}

.member-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-avatar-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.member-card-name {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.3;
}

.member-card-role {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 20px;
    background: var(--primary-blue);
    color: #fff;
    letter-spacing: 0.3px;
    white-space: nowrap;
    line-height: 1.5;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.member-card-socials {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}

.member-social-link {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4f8;
    color: var(--text-gray);
    transition: all 0.2s ease;
}

.member-social-link svg {
    width: 15px;
    height: 15px;
}

.member-social-link.linkedin:hover {
    background: #0077B5;
    color: white;
}

.member-social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

.member-social-link.facebook:hover {
    background: #1877F2;
    color: white;
}

/* Event upcoming badge */
.event-upcoming-badge {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 14px;
    border-radius: 50px;
    background: #fff3e0;
    color: #e65100;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.alumni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.alumni-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border: 1px solid #f0f0f0;
}

.alumni-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.alumni-card-avatar {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alumni-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.alumni-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #b0bec5;
}

.alumni-card-info {
    flex: 1;
    min-width: 0;
}

.alumni-card-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.alumni-card-role {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 6px;
}

.alumni-card-bio {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 12px;
}

.alumni-card-socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.alumni-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f0f4f8;
    color: var(--text-gray);
    transition: all 0.2s ease;
}

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

.alumni-social-link svg {
    width: 16px;
    height: 16px;
}

/* ==================== PROJECT DETAIL LINK CARDS ==================== */
/* (carousel card styles are in the project cards section above) */

/* Project Placeholder (for cards with no image) */
.project-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f4f8 100%);
    color: #90a4ae;
}

/* ==================== PROJECT HERO CATEGORY BADGE ==================== */

.project-hero-category {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(10, 79, 158, 0.15);
    color: var(--primary-blue);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

/* Project Full Description Styling */
.project-full-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
}

.project-full-description p {
    margin-bottom: 16px;
}

.project-full-description h4 {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--primary-blue);
    margin: 24px 0 12px;
}

.project-full-description ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.project-full-description ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Loading spinner for dynamic pages */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== RESPONSIVE: ALUMNI ==================== */

@media (max-width: 768px) {
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .member-card {
        padding: 24px 16px 20px;
    }

    .member-card-avatar {
        width: 64px;
        height: 64px;
    }

    .member-avatar-initials {
        font-size: 20px;
    }

    .member-card-name {
        font-size: 15px;
    }

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

    .alumni-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .alumni-card-socials {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .member-card {
        padding: 20px 12px 16px;
    }

    .member-card-avatar {
        width: 56px;
        height: 56px;
    }

    .member-card-name {
        font-size: 14px;
    }
}

/* ==================== PROJECT DETAIL PAGE ==================== */
/* The .project-detail-card class is shared with the small listing cards
   (fixed 320px width). On the detail page it must be a full-width content
   container with comfortable inner padding. Scoped to #project-detail-content
   so listing cards are unaffected. */
#project-detail-content .project-detail-card {
    flex: none;
    width: 100%;
    overflow: visible;
    padding: 40px 48px;
}

#project-detail-content .project-detail-card:hover {
    transform: none;
}

@media (max-width: 600px) {
    #project-detail-content .project-detail-card {
        padding: 28px 22px;
    }
}

/* ==================== PROJECT GALLERY (detail page) ==================== */
.project-gallery {
    margin-bottom: 32px;
}

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

.project-gallery-item {
    display: block;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    background: #f0f2f5;
}

.project-gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

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

@media (max-width: 480px) {
    .project-gallery-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}
