/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
    --primary-color: #D7195C; /* Rotaract Cranberry */
    --secondary-color: #002e5d; /* Deep Navy */
    --text-color: #333333;
    --light-bg: #f4f6f8;
    --white: #ffffff;
    --grey: #666666;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ==========================================================================
   2. TYPOGRAPHY & UTILITIES
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.text-center { text-align: center; }
.bg-light { background-color: var(--light-bg); }
.section-padding { padding: 80px 0; }

.section-title {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.section-line {
    width: 200px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 20px auto 20px;
    border-radius: 2px;
}

.section-desc {
    max-width: 700px;
    margin: 0 auto 50px;
    color: var(--grey);
}

/* ==========================================================================
   3. BUTTONS
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover { background-color: #b0154a; }

.btn-secondary {
    background-color: transparent;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

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

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

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

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.center-btn {
    text-align: center;
}
/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(215, 25, 92, 0.1);
}

/* Header scroll and sub-page styling */
.header.scrolled, 
.team-page .header, 
.projects-page .header,
.project-detail-page .header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.12);
    padding: 0;
    height: 70px;
    border-bottom: 1px solid rgba(215, 25, 92, 0.15);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    transition: var(--transition);
    position: relative;
}

.logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -20px;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(215, 25, 92, 0.1), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.logo:hover::before {
    width: 100px;
    height: 100px;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-logo-img {
    height: 55px;
    width: auto;
    display: block;
    transition: var(--transition);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

.header.scrolled .nav-logo-img,
.team-page .nav-logo-img,
.projects-page .nav-logo-img,
.project-detail-page .nav-logo-img {
    height: 45px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.nav-menu { 
    display: flex; 
    align-items: center; 
    position: relative;
}

.nav-list { 
    display: flex; 
    gap: 35px; 
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--secondary-color);
    transition: var(--transition-smooth);
    text-decoration: none;
    position: relative;
    padding: 8px 0;
    display: flex;
    align-items: center;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

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

.nav-link:hover, 
.nav-link.active,
.header.scrolled .nav-link, 
.team-page .nav-link.active { 
    transform: translateY(-2px);
}

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

.nav-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #b0154a);
    padding: 12px 32px;
    font-size: 1rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(215, 25, 92, 0.3);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.nav-actions .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(215, 25, 92, 0.4);
}

.nav-actions .btn-primary:hover::before {
    left: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.mobile-toggle:hover {
    color: var(--primary-color);
    background: rgba(215, 25, 92, 0.1);
    transform: scale(1.1);
}

.mobile-toggle:active {
    transform: scale(0.95);
}

/* Mobile Menu Styles */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Navigation Active States */
.nav-link.active {
    font-weight: 700;
}

/* Dropdown Menu (for future use) */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 12px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    padding: 10px 20px;
    color: var(--secondary-color);
    text-decoration: none;
    display: block;
    transition: var(--transition);
}

.nav-dropdown-item:hover {
    background: rgba(215, 25, 92, 0.1);
    color: var(--primary-color);
}

/* ==========================================================================
   5. HOME PAGE SECTIONS (Hero, Stats, About)
   ========================================================================== */
.hero {
    height: 90vh;
    min-height: 600px;
    background: linear-gradient(rgba(0, 46, 93, 0.7), rgba(0, 46, 93, 0.7)), url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    margin-top: 80px;
}

.hero-content {
    max-width: 800px;
    animation: fadeIn 1s ease-out;
}

.hero-tag {
    background-color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-block;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
}

.hero-buttons { display: flex; gap: 15px; }

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

.stats {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

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

.about-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.about-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary-color);
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: rgba(215, 25, 92, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}

/* ==========================================================================
   6. PROJECTS GRID & DETAILS
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.project-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: var(--transition-smooth);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image::after {
    opacity: 1;
}

.project-content { 
    padding: 25px; 
    position: relative;
    z-index: 2;
}

.project-meta { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 15px; 
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.project-cat { 
    font-size: 0.75rem; 
    font-weight: 600; 
    color: var(--primary-color); 
    text-transform: uppercase; 
    letter-spacing: 1px;
    padding: 4px 8px;
    background: rgba(215, 25, 92, 0.1);
    border-radius: 12px;
    transition: var(--transition);
}

.project-card:hover .project-cat {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

.project-date { 
    font-size: 0.8rem; 
    color: var(--grey);
    font-weight: 500;
}

.project-card h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.project-card:hover h3 {
    color: var(--primary-color);
}

.project-card p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.read-more {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    text-decoration: none;
    border: 2px solid transparent;
    padding: 8px 16px;
    border-radius: 25px;
    background: transparent;
}

.read-more:hover { 
    color: var(--primary-color); 
    gap: 12px;
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
    transform: translateX(5px);
}

/* Projects Page Hero */
.projects-hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.projects-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1469224704007-6d0a3a8c6199?auto=format&fit=crop&w=1950&q=80') center/cover;
    opacity: 0.1;
    z-index: 1;
    animation: subtleMove 20s ease-in-out infinite;
}

@keyframes subtleMove {
    0%, 100% { transform: scale(1) translateX(0); }
    50% { transform: scale(1.05) translateX(-10px); }
}

.projects-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.projects-hero .hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

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

.projects-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.projects-hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1.2s ease-out 0.4s both;
}

.projects-hero .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.projects-hero .hero-stats .stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.projects-hero .hero-stats .stat-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: var(--transition);
    opacity: 0;
}

.projects-hero .hero-stats .stat-item:hover::before {
    opacity: 1;
}

.projects-hero .hero-stats .stat-item:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.projects-hero .hero-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--white);
    position: relative;
    z-index: 2;
}

.projects-hero .hero-stats .stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    position: relative;
    z-index: 2;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background: #fcfcfc;
    position: relative;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    padding: 30px 0;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
    background: linear-gradient(90deg, transparent 0%, rgba(215, 25, 92, 0.03) 50%, transparent 100%);
}

.filter-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.filter-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 10px rgba(215, 25, 92, 0.3);
}

.filter-wrapper label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1rem;
    position: relative;
}

.filter-wrapper label i {
    color: var(--primary-color);
    font-size: 1.1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.custom-select {
    padding: 15px 25px;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    background: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    min-width: 220px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
}

.custom-select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(215, 25, 92, 0.1);
    transform: translateY(-2px);
}

.custom-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(215, 25, 92, 0.1);
}

.view-options {
    display: flex;
    gap: 12px;
    align-items: center;
}

.view-btn {
    width: 45px;
    height: 45px;
    border: 2px solid #e1e1e1;
    background: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--grey);
    position: relative;
    overflow: hidden;
}

.view-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.view-btn:hover,
.view-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.view-btn:hover::before,
.view-btn.active::before {
    width: 30px;
    height: 30px;
}

/* Loading States */
.projects-grid.loading .project-card {
    animation: skeletonLoading 1.5s ease-in-out infinite;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
}

@keyframes skeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.projects-grid.loading .project-card * {
    opacity: 0.3;
}

/* Empty State */
.projects-grid.empty {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projects-grid.empty::after {
    content: 'No projects found matching your criteria.';
    font-size: 1.1rem;
    color: var(--grey);
    text-align: center;
    padding: 40px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 2px dashed #e1e1e1;
}

/* Projects Call to Action */
.projects-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 80px 40px;
    text-align: center;
    margin-top: 80px;
}

.projects-cta .cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.projects-cta h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.projects-cta p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

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

.projects-cta .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

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

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
    padding: 40px 0;
    position: relative;
}

.pagination-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: paginationShimmer 3s ease-in-out infinite;
}

@keyframes paginationShimmer {
    0% { transform: translateX(-100%) scaleX(0); }
    50% { transform: translateX(0%) scaleX(1); }
    100% { transform: translateX(100%) scaleX(0); }
}

.pagination-container .btn {
    min-width: 140px;
    padding: 12px 24px;
    border: 2px solid var(--secondary-color);
    background: var(--white);
    color: var(--secondary-color);
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.pagination-container .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 100%;
    background: var(--primary-color);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease;
    border-radius: 25px;
}

.pagination-container .btn:hover {
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(215, 25, 92, 0.2);
}

.pagination-container .btn:hover::before {
    width: 100%;
}

.pagination-container .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    border-color: #e1e1e1;
    color: var(--grey);
}

.pagination-container .btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.pagination-container .btn:disabled::before {
    width: 0;
}

#page-indicator {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1rem;
    padding: 12px 24px;
    background: var(--white);
    border-radius: 20px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

#page-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(215, 25, 92, 0.1), transparent);
    animation: pageIndicatorShimmer 2s ease-in-out infinite;
}

@keyframes pageIndicatorShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Fallback for old hero banner */
.projects-hero-banner {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    padding: 100px 0 60px;
    text-align: center;
}

.projects-hero-banner h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.projects-hero-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Detail Pages */
.detail-banner, .detail-hero {
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    position: relative;
}

.detail-banner h1 { font-size: 3.5rem; }

/* Project Detail Page Specific Styles */
.project-detail-page .header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.project-detail-page .nav-link {
    color: var(--secondary-color);
}

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

.detail-hero {
    min-height: 500px;
    position: relative;
    margin-top: 80px;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 46, 93, 0.8) 0%, rgba(215, 25, 92, 0.6) 100%);
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content-wrapper .badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.detail-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-meta i {
    color: var(--primary-color);
}

.detail-main-content {
    padding: 80px 0;
    background: #fcfcfc;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-body h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.content-body h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 40px;
}

.description-text p {
    margin-bottom: 20px;
}

.info-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.sidebar-card h4 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.info-row strong {
    color: var(--grey);
    font-weight: 500;
}

.info-row span {
    color: var(--text-color);
    font-weight: 600;
}

.social-mini {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.social-mini a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-mini a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    padding: 12px 24px;
    border: 2px solid var(--secondary-color);
    border-radius: 50px;
    transition: var(--transition);
}

.back-link:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateX(-5px);
}

/* Project Impact Section */
.project-impact {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    margin-top: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.impact-stat {
    text-align: center;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 10px;
    transition: var(--transition);
}

.impact-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.impact-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.impact-label {
    font-size: 0.9rem;
    color: var(--grey);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Project Gallery */
.project-gallery {
    margin-top: 40px;
}

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

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Call to Action Section */
.project-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 60px 40px;
    border-radius: 15px;
    text-align: center;
    margin-top: 60px;
}

.project-cta h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.project-cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ==========================================================================
   7. TEAM SECTIONS (Merged & Consolidate)
   ========================================================================== */
.team {
    background: #fcfcfc;
    position: relative;
    overflow: hidden;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

#home-leadership-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
    margin: 0 auto;
}

.team-card {
    background: #fff;
    padding: 12px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.team-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #eee;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.team-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.team-card:hover .team-image-wrapper img {
    transform: scale(1.08);
}

.team-info h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.team-card:hover h3 { color: var(--primary-color); }

.team-info p {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Team Page Hero Section */
.team-hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.team-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1529390079861-591de354faf5?auto=format&fit=crop&w=1950&q=80') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.team-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.team-hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 500px;
    margin: 0 auto;
}

.hero-stats .stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.hero-stats .stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.hero-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--white);
}

.hero-stats .stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Team Section Styling */
.team-section {
    padding: 80px 0;
    background: #fcfcfc;
}

.group-container {
    margin-bottom: 60px;
}

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

.accent-dot {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 0 0 4px rgba(215, 25, 92, 0.2);
}

.group-header h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.group-header p {
    font-size: 1.1rem;
    color: var(--grey);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Team Call to Action */
.team-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 80px 40px;
    border-radius: 20px;
    text-align: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.team-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?auto=format&fit=crop&w=1950&q=80') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.team-cta h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.team-cta p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

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

.cta-buttons .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

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

/* Page Header Simple (fallback) */
.page-header-simple {
    padding: 100px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
}

.sub-title {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-header-simple h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-header-simple p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   8. CTA, CONTACT & FOOTER
   ========================================================================== */
.cta-section {
    background: linear-gradient(rgba(0, 46, 93, 0.85), rgba(0, 46, 93, 0.95)), url('https://images.unsplash.com/photo-1529390079861-591de354faf5?auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-attachment: fixed;
    padding: 100px 0;
    color: var(--white);
}

.join-content {
    max-width: 1000px;
    margin: 0 auto;
}

.join-header {
    text-align: center;
    margin-bottom: 60px;
}

.join-header h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white);
}

.join-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.benefit-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.benefit-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--white);
}

.benefit-card p {
    opacity: 0.9;
    line-height: 1.5;
}

.membership-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.requirements h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.requirements ul {
    list-style: none;
}

.requirements li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.requirements li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.testimonial {
    border-left: 3px solid var(--primary-color);
    padding-left: 30px;
}

.testimonial blockquote {
    font-style: italic;
    margin-bottom: 15px;
    opacity: 0.9;
    line-height: 1.6;
}

.testimonial cite {
    color: var(--primary-color);
    font-weight: 600;
}

.join-form-container {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 50px;
    border-radius: 15px;
    color: var(--text-color);
}

.join-form-container h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 2rem;
}

.join-form-container p {
    margin-bottom: 30px;
    opacity: 0.8;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--white);
    border-radius: 10px;
}

.footer { 
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%); 
    color: #ffffff; 
    padding: 60px 0 20px; 
    font-size: 0.9rem; 
}

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

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-logo img {
    max-width: 150px;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

.footer-logo p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 300px;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(215, 25, 92, 0.3);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cccccc;
    transition: var(--transition);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info .info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #cccccc;
}

.contact-info .info-item i {
    color: var(--primary-color);
    margin-right: 12px;
    margin-top: 3px;
    font-size: 0.9rem;
    width: 16px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form input {
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition);
}

.newsletter-form input::placeholder {
    color: #aaaaaa;
}

.newsletter-form input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form button {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-heading);
}

.newsletter-form button:hover {
    background: #b0154a;
    transform: translateY(-2px);
}

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

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

.footer-bottom-links a {
    color: #aaaaaa;
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   9. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
    .grid-layout { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .membership-info { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 30px; }
    
    /* Project Detail Responsive */
    .detail-hero h1 { font-size: 2.8rem; }
    .hero-meta { flex-direction: column; gap: 15px; align-items: center; }
    .info-sidebar { position: static; margin-top: 40px; }
    .impact-stats { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* Team Page Responsive */
    .team-hero h1 { font-size: 2.8rem; }
    .hero-stats { grid-template-columns: 1fr; gap: 20px; max-width: 300px; }
    .team-cta { padding: 60px 30px; }
    .team-cta h3 { font-size: 2.2rem; }
    .cta-buttons { flex-direction: column; align-items: center; }
    
    /* Projects Page Responsive */
    .projects-hero h1 { font-size: 2.8rem; }
    .projects-hero .hero-stats { grid-template-columns: 1fr; gap: 20px; max-width: 300px; }
    .filter-section { flex-direction: column; gap: 20px; align-items: stretch; }
    .filter-wrapper { justify-content: center; }
    .view-options { justify-content: center; }
}

@media (max-width: 768px) {
    .nav-list {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 20px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    
    .nav-list.active { 
        left: 0; 
        animation: slideIn 0.4s ease-out;
    }
    
    @keyframes slideIn {
        from {
            transform: translateX(-100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }
    
    .nav-list li {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.3s ease-out forwards;
    }
    
    .nav-list.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-list.active li:nth-child(2) { animation-delay: 0.15s; }
    .nav-list.active li:nth-child(3) { animation-delay: 0.2s; }
    .nav-list.active li:nth-child(4) { animation-delay: 0.25s; }
    .nav-list.active li:nth-child(5) { animation-delay: 0.3s; }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-list li {
        margin-bottom: 20px;
        text-align: center;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 15px 25px;
        border-radius: 12px;
        background: rgba(215, 25, 92, 0.05);
        border: 2px solid transparent;
        transition: var(--transition-smooth);
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .nav-link:hover {
        background: var(--primary-color);
        color: var(--white);
        border-color: var(--primary-color);
        transform: translateX(10px);
    }
    
    .nav-link.active {
        background: var(--primary-color);
        color: var(--white);
        border-color: var(--primary-color);
        font-weight: 700;
    }
    
    .mobile-toggle { 
        display: block; 
        z-index: 1001;
    }
    
    .mobile-toggle.active {
        color: var(--primary-color);
        background: rgba(215, 25, 92, 0.1);
    }
    
    .mobile-toggle.active::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 40px;
        height: 40px;
        background: rgba(215, 25, 92, 0.2);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        animation: pulse 1.5s ease-in-out infinite;
    }
    
    @keyframes pulse {
        0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
        50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
    }
    
    .nav-actions .btn { 
        display: none; 
    }
    
    /* Add mobile CTA button in menu */
    .mobile-nav-cta {
        margin-top: 30px;
        padding-top: 30px;
        border-top: 1px solid rgba(215, 25, 92, 0.2);
        text-align: center;
    }
    
    .mobile-nav-cta .btn-primary {
        background: linear-gradient(135deg, var(--primary-color), #b0154a);
        padding: 15px 40px;
        font-size: 1.1rem;
        border-radius: 50px;
        box-shadow: 0 4px 20px rgba(215, 25, 92, 0.3);
        display: inline-block;
        text-decoration: none;
        color: var(--white);
        font-weight: 600;
        transition: var(--transition-smooth);
    }
    
    .mobile-nav-cta .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 30px rgba(215, 25, 92, 0.4);
    }
    
    .hero-title { font-size: 2.5rem; }
    #home-leadership-grid, .team-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
    
    .join-header h2 { font-size: 2.2rem; }
    .join-form-container { padding: 30px 20px; }
    .benefits-grid { grid-template-columns: 1fr; gap: 20px; }
    .membership-info { padding: 30px 20px; }
    .footer-content { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .social-links { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    
    /* Project Detail Mobile */
    .detail-hero { 
        min-height: 400px; 
        margin-top: 80px;
    }
    .detail-hero h1 { font-size: 2.2rem; }
    .hero-content-wrapper .badge { font-size: 0.8rem; padding: 6px 15px; }
    .hero-meta { font-size: 1rem; }
    .hero-meta span { gap: 6px; }
    
    .detail-main-content { padding: 60px 0; }
    .content-body h3 { font-size: 1.6rem; }
    .description-text { font-size: 1rem; }
    
    .project-impact { padding: 30px 20px; }
    .impact-stats { grid-template-columns: 1fr; gap: 20px; }
    .impact-number { font-size: 2rem; }
    
    .gallery-grid { grid-template-columns: 1fr; gap: 15px; }
    .project-cta { padding: 40px 20px; }
    .project-cta h3 { font-size: 1.6rem; }
    .project-cta div { flex-direction: column; align-items: center; }
    
    .sidebar-card { padding: 25px 20px; }
    .sidebar-card h4 { font-size: 1.1rem; }
    .info-row { flex-direction: column; align-items: flex-start; gap: 5px; padding: 15px 0; }
    .info-row strong { font-size: 0.9rem; }
    .info-row span { font-size: 0.95rem; }
    
    .back-link { 
        width: 100%; 
        justify-content: center; 
        margin-top: 20px;
    }
    
    /* Team Page Mobile */
    .team-hero { padding: 100px 0 60px; }
    .team-hero h1 { font-size: 2.2rem; }
    .team-hero p { font-size: 1rem; margin-bottom: 30px; }
    .hero-stats { max-width: 250px; gap: 15px; }
    .hero-stats .stat-item { padding: 15px; }
    .hero-stats .stat-number { font-size: 2rem; }
    .hero-stats .stat-label { font-size: 0.8rem; }
    
    .team-section { padding: 60px 0; }
    .group-header h2 { font-size: 2rem; }
    .group-header p { font-size: 1rem; }
    
    .team-cta { padding: 50px 25px; margin-top: 60px; }
    .team-cta h3 { font-size: 1.8rem; }
    .team-cta p { font-size: 1rem; }
    .cta-buttons { gap: 15px; }
    .btn-large { padding: 12px 30px; font-size: 1rem; }
    
    /* Projects Page Mobile */
    .projects-hero { padding: 100px 0 60px; }
    .projects-hero h1 { font-size: 2.2rem; }
    .projects-hero p { font-size: 1rem; margin-bottom: 30px; }
    .projects-hero .hero-stats { max-width: 250px; gap: 15px; }
    .projects-hero .hero-stats .stat-item { padding: 15px; }
    .projects-hero .hero-stats .stat-number { font-size: 2rem; }
    .projects-hero .hero-stats .stat-label { font-size: 0.8rem; }
    
    .gallery-section { padding: 60px 0; }
    .filter-section { padding: 15px 0; margin-bottom: 30px; }
    .filter-wrapper label { font-size: 0.9rem; }
    .custom-select { min-width: 180px; font-size: 0.9rem; }
    
    .projects-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
    .pagination-container { padding: 20px 0; gap: 15px; }
    .pagination-container .btn { min-width: 100px; font-size: 0.9rem; }
    
    .projects-cta { padding: 60px 30px; margin-top: 60px; }
    .projects-cta h3 { font-size: 2rem; }
    .projects-cta p { font-size: 1rem; }
    .projects-cta .cta-buttons { flex-direction: column; gap: 15px; }
}

@media (max-width: 600px) {
    .team-grid { grid-template-columns: 1fr; padding: 0 20px; }
    .join-header h2 { font-size: 2rem; }
    .join-subtitle { font-size: 1.1rem; }
    .benefit-card { padding: 20px; }
    .footer { padding: 40px 0 20px; }
    
    /* Project Detail Small Mobile */
    .detail-hero { min-height: 350px; }
    .detail-hero h1 { font-size: 1.8rem; line-height: 1.2; }
    .hero-content-wrapper { padding: 0 15px; }
    .hero-meta { font-size: 0.9rem; }
    
    .detail-main-content { padding: 40px 0; }
    .grid-layout { gap: 40px; }
    .content-body h3 { font-size: 1.4rem; }
    .description-text { font-size: 0.95rem; line-height: 1.6; }
    
    .project-impact { padding: 25px 15px; margin-top: 30px; }
    .project-impact h3 { font-size: 1.3rem; }
    .project-impact p { font-size: 0.9rem; }
    .impact-stat { padding: 15px; }
    .impact-number { font-size: 1.8rem; }
    .impact-label { font-size: 0.8rem; }
    
    .project-gallery h3 { font-size: 1.3rem; }
    .project-gallery p { font-size: 0.9rem; }
    .gallery-item img { height: 180px; }
    
    .project-cta { padding: 30px 15px; margin-top: 40px; }
    .project-cta h3 { font-size: 1.3rem; }
    .project-cta p { font-size: 0.9rem; }
    .btn-large { padding: 12px 30px; font-size: 1rem; }
    
    .sidebar-card { padding: 20px 15px; margin-bottom: 20px; }
    .sidebar-card h4 { font-size: 1rem; margin-bottom: 15px; }
    .info-row { padding: 10px 0; }
    .social-mini a { width: 35px; height: 35px; font-size: 0.9rem; }
    
    .sidebar-card:nth-child(2) ul li { 
        padding: 8px 0; 
        font-size: 0.9rem;
    }
    .sidebar-card:nth-child(2) ul li i { 
        font-size: 0.8rem; 
        margin-right: 8px;
    }
    
    /* Team Page Small Mobile */
    .team-hero { padding: 80px 0 50px; }
    .team-hero h1 { font-size: 1.8rem; }
    .team-hero p { font-size: 0.95rem; margin-bottom: 25px; }
    .hero-badge { font-size: 0.8rem; padding: 6px 15px; }
    .hero-stats { max-width: 200px; gap: 12px; }
    .hero-stats .stat-item { padding: 12px; }
    .hero-stats .stat-number { font-size: 1.8rem; }
    .hero-stats .stat-label { font-size: 0.75rem; }
    
    .team-section { padding: 50px 0; }
    .group-container { margin-bottom: 40px; }
    .group-header { margin-bottom: 35px; }
    .group-header h2 { font-size: 1.8rem; }
    .group-header p { font-size: 0.95rem; }
    .accent-dot { width: 10px; height: 10px; margin-bottom: 15px; }
    
    .team-cta { padding: 40px 20px; margin-top: 50px; }
    .team-cta h3 { font-size: 1.6rem; }
    .team-cta p { font-size: 0.95rem; margin-bottom: 30px; }
    .cta-buttons { flex-direction: column; gap: 12px; }
    .btn-large { padding: 10px 25px; font-size: 0.95rem; }
    
    /* Projects Page Small Mobile */
    .projects-hero { padding: 80px 0 50px; }
    .projects-hero h1 { font-size: 1.8rem; }
    .projects-hero p { font-size: 0.95rem; margin-bottom: 25px; }
    .projects-hero .hero-badge { font-size: 0.8rem; padding: 6px 15px; }
    .projects-hero .hero-stats { max-width: 200px; gap: 12px; }
    .projects-hero .hero-stats .stat-item { padding: 12px; }
    .projects-hero .hero-stats .stat-number { font-size: 1.8rem; }
    .projects-hero .hero-stats .stat-label { font-size: 0.75rem; }
    
    .gallery-section { padding: 50px 0; }
    .filter-section { padding: 10px 0; margin-bottom: 25px; }
    .filter-wrapper { flex-direction: column; gap: 10px; }
    .filter-wrapper label { font-size: 0.85rem; }
    .custom-select { min-width: 100%; width: 100%; font-size: 0.85rem; }
    
    .projects-grid { grid-template-columns: 1fr; gap: 15px; }
    .pagination-container { padding: 15px 0; gap: 10px; }
    .pagination-container .btn { min-width: 80px; font-size: 0.85rem; padding: 8px 15px; }
    #page-indicator { font-size: 0.85rem; padding: 8px 15px; }
    
    .projects-cta { padding: 50px 25px; margin-top: 50px; }
    .projects-cta h3 { font-size: 1.6rem; }
    .projects-cta p { font-size: 0.95rem; margin-bottom: 25px; }
    .projects-cta .cta-buttons { gap: 12px; }
    .projects-cta .btn-large { padding: 10px 25px; font-size: 0.95rem; }
}

/* Error Section Styling */
.error-section {
    padding: 120px 0 80px;
    text-align: center;
    background: #fcfcfc;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.error-content h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.error-content p {
    font-size: 1.1rem;
    color: var(--grey);
    margin-bottom: 40px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .error-section { padding: 100px 0 60px; }
    .error-content h1 { font-size: 2rem; }
    .error-content p { font-size: 1rem; }
}

@media (max-width: 600px) {
    .error-section { padding: 80px 0 50px; }
    .error-content h1 { font-size: 1.8rem; }
    .error-content p { font-size: 0.95rem; }
}

/* --- Join Options Styles --- */
.join-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.join-option {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    text-align: center;
}

.join-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.join-option-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.join-option-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.join-option h4 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin: 0;
    font-weight: 700;
}

.join-option p {
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 1rem;
}

.join-option .btn {
    width: 100%;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.join-info {
    background: rgba(215, 25, 92, 0.05);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    border-left: 4px solid var(--primary-color);
}

.join-info p {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.join-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.join-info li {
    color: var(--text-color);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    line-height: 1.5;
}

.join-info li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Responsive Join Options */
@media (max-width: 768px) {
    .join-options {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }
    
    .join-option {
        padding: 25px 20px;
    }
    
    .join-option-header {
        gap: 12px;
        margin-bottom: 15px;
    }
    
    .join-option-header i {
        font-size: 1.5rem;
    }
    
    .join-option h4 {
        font-size: 1.2rem;
    }
    
    .join-info {
        padding: 20px;
        margin: 25px 0;
    }
    
    .join-info p {
        font-size: 1rem;
    }
}

.contact-form-wrapper {
    padding: 40px;
    background: #fff;
}

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

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e1e1;
    border-radius: 8px; /* Softer corners */
    background: #fdfdfd;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(215, 25, 92, 0.1);
    outline: none;
}

/* Red Button Styling for Forms */
.btn-send {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}


/* ==========================================================================
   SPONSORS SLIDER (Greyscale & 2 Rows)
   ========================================================================== */
/* --- SINGLE ROW SPONSORS MARQUEE --- */
.sponsors-section {
    background: #ffffff;
    overflow: hidden;
    padding: 80px 0;
}

.marquee-container {
    display: flex;
    margin-top: 50px;
    /* This creates the fade-out effect on the left and right sides */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-row {
    display: flex;
    overflow: hidden;
    width: 100%;
}

.marquee-track {
    display: flex;
    gap: 100px; /* Space between logos */
    padding: 20px 0;
    align-items: center;
}

.sponsor-item {
    flex-shrink: 0;
}

.sponsor-item img {
    height: 70px; /* Adjust based on your logo sizes */
    width: auto;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.sponsor-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Infinite Scroll Animation */
.track-left {
    animation: scroll-left 25s linear infinite;
}

@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Pause on hover for better UX */
.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

/* --- PREMIUM SECTION TITLES --- */
.section-header {
    margin-bottom: 60px;
    position: relative;
}

.section-tag {
    display: block;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 4px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.section-title-premium {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive sizing */
    color: var(--secondary-color);
    font-weight: 800;
    line-height: 1.1;
    max-width: 700px;
}

/* Centered version for sections like Sponsors/Projects */
.text-center .section-title-premium {
    margin: 0 auto;
}

.section-title-premium .highlight {
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

/* The "Smart" Accent: A small offset block instead of a long line */
.section-accent {
    width: 60px;
    height: 6px;
    background: var(--primary-color);
    margin-top: 25px;
    border-radius: 2px;
}

.text-center .section-accent {
    margin: 25px auto 0;
}

/* Optional: Background Watermark for that "High-End" look */
.section-header::before {
    content: attr(data-watermark);
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 6rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03); /* Extremely faint */
    z-index: -1;
    pointer-events: none;
    text-transform: uppercase;
}

/* --- ANIMATION CORE --- */

/* Title Animation: Reveal & Slide Up */
.section-title-premium {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), 
                transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.section-title-premium.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Section Line/Accent Animation: Grow from 0 width */
.section-accent {
    width: 0; /* Initial state */
    transition: width 1s cubic-bezier(0.65, 0, 0.35, 1);
    transition-delay: 0.3s; /* Starts after the title begins revealing */
}

.section-accent.reveal {
    width: 60px; /* Final state matches your design */
}

/* Description Animation: Fade in slightly later */
.section-desc {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.8s ease;
    transition-delay: 0.5s;
}

.section-desc.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Tag/Watermark Animation */
.section-tag {
    opacity: 0;
    letter-spacing: 10px; /* Start wide */
    transition: all 1s ease;
}

.section-tag.reveal {
    opacity: 1;
    letter-spacing: 4px;
}

/* --- HERO LOGO ISLAND --- */
.hero-logos-wrapper {
    position: absolute;
    bottom: 80px; /* Distance from the very bottom edge */
    left: 0;
    width: 100%;
    z-index: 10;
}

.logo-island {
    background: rgba(255, 255, 255, 0.08); /* Frosted glass effect */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px; /* Soft rounded corners */
    padding: 20px 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    max-width: fit-content; /* Row only as wide as the logos */
    margin: 0 auto; /* Centers the island */
}

.logo-row-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-logo-grid {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    gap: 40px; /* Increased gap for better breathing room */
}

.hero-logo-item {
    height: 55px; /* Size of logos in the hero */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-logo-item img {
    height: 100%;
    width: auto;
    filter: brightness(0) invert(1); 
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.hero-logo-item img[src*="square"] { 
    height: 110%; /* Subtle boost for square-named files */
}

.hero-logo-item img:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Mobile Fix */
@media (max-width: 768px) {
    .logo-island {
        padding: 15px 20px;
        margin: 0 15px;
        border-radius: 15px;
    }
    .hero-logo-grid {
        gap: 20px;
    }
    .hero-logo-item {
        height: 25px;
    }
}

.join-quote-wrapper {
    text-align: center;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.motivational-quote {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    color: #fff; /* Assuming it's on a dark Join section */
    font-style: italic;
    margin-bottom: 20px;
}

.quote-divider {
    height: 4px;
    width: 80px; /* Slightly wider for better balance */
    background: #D11252; /* Hardcoded Rotaract Pink just in case */
    margin: 25px auto 0; /* 25px top margin to push it away from the text */
    border-radius: 2px;
}

/* Optional: Make the quote-icon pop too */
.quote-icon {
    display: block;
    font-size: 2rem;
    color: #D11252;
    margin-bottom: 15px;
    opacity: 0.6;
}