/**
 * Joseph's Ministry, LLC - Main Stylesheet
 * Enhanced and organized for better maintainability
 */

/* ============================================
   CSS Variables & Theme
   ============================================ */
:root {
    --green: #087a37;
    --green-light: #0a9544;
    --green-dark: #065a29;
    --blue: #016fac;
    --blue-light: #0284c7;
    --blue-dark: #015a8c;
    --gold: #c38428;
    --gold-light: #c88a30;
    --gold-glow: rgba(195, 132, 40, 0.3);
    --white: #FFFFFF;
    --off-white: #F5F5F5;
    --charcoal: #333333;
    --charcoal-light: #555555;
    --gradient-primary: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
    --gradient-gold: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-normal: 0.4s ease;
    --transition-slow: 0.6s ease;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: var(--white);
    color: var(--charcoal);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    line-height: 1.2;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

/* ============================================
   Navigation
   ============================================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 5%;
    transition: all var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 5%;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

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

.logo-icon {
    width: 55px;
    height: 55px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    box-shadow: 0 8px 25px rgba(8, 122, 55, 0.35);
    transition: transform var(--transition-fast);
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-fast);
    display: block;
}

.logo:hover .logo-icon {
    transform: scale(1.05) rotate(-3deg);
}

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

/* Logo image in navigation when scrolled */
nav.scrolled .logo-image {
    filter: none;
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .logo-image {
        height: 40px;
    }
}

.logo-text {
    font-family: 'Fraunces', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
    transition: color var(--transition-fast);
}

nav.scrolled .logo-text {
    color: var(--charcoal);
}

.logo-text span {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    transition: color var(--transition-fast);
    padding: 0.5rem 0;
}

nav.scrolled .nav-links a {
    color: var(--charcoal);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: width var(--transition-fast);
}

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

.nav-cta {
    background: var(--gradient-gold) !important;
    color: var(--white) !important;
    padding: 0.8rem 1.5rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 20px var(--gold-glow);
    transition: all var(--transition-fast) !important;
}

.nav-cta:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 30px var(--gold-glow) !important;
}

.nav-cta::after {
    display: none !important;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    background: none;
    border: none;
}

.mobile-toggle span {
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all var(--transition-fast);
}

nav.scrolled .mobile-toggle span {
    background: var(--charcoal);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-dark);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: particle-float 15s linear infinite;
}

@keyframes particle-float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.orb-1 {
    width: 800px;
    height: 800px;
    background: var(--green);
    top: -400px;
    left: -200px;
    animation: orb-float 25s ease-in-out infinite;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: var(--blue);
    bottom: -300px;
    right: -200px;
    animation: orb-float 20s ease-in-out infinite reverse;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--gold);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orb-pulse 10s ease-in-out infinite;
}

@keyframes orb-float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(100px, 50px); }
}

@keyframes orb-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.5; }
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    animation: fadeInUp 1s ease forwards;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge-icon {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero h1 .gradient-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    max-width: 520px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--white);
    box-shadow: 0 8px 30px var(--gold-glow);
}

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

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

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px var(--gold-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-4px);
}

.btn-green {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 8px 30px rgba(8, 122, 55, 0.3);
}

.btn-green:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(8, 122, 55, 0.4);
}

.btn-icon {
    transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
    transform: translateX(5px);
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-family: 'Fraunces', serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.stat-number span {
    color: var(--gold);
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.25rem;
}

/* Hero Video */
.hero-visual {
    position: relative;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.video-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.3);
    aspect-ratio: 16/9;
}

.video-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 26px;
    z-index: -1;
    opacity: 0.5;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-gold);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    white-space: nowrap;
    box-shadow: 0 10px 30px var(--gold-glow);
}

.video-decoration {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    top: -30px;
    right: -30px;
    animation: rotate-slow 20s linear infinite;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   Section Styling
   ============================================ */
section {
    padding: var(--spacing-xl) 5%;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(195, 132, 40, 0.1);
    border-radius: 50px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--charcoal);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--charcoal-light);
}

/* ============================================
   Why Section
   ============================================ */
.why-section {
    background: var(--off-white);
    position: relative;
    overflow: hidden;
}

.why-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1300px;
    margin: 0 auto;
}

.why-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

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

.why-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
}

.why-card:nth-child(1) .why-icon { background: linear-gradient(135deg, rgba(8, 122, 55, 0.1), rgba(8, 122, 55, 0.2)); }
.why-card:nth-child(2) .why-icon { background: linear-gradient(135deg, rgba(1, 111, 172, 0.1), rgba(1, 111, 172, 0.2)); }
.why-card:nth-child(3) .why-icon { background: linear-gradient(135deg, rgba(195, 132, 40, 0.1), rgba(195, 132, 40, 0.2)); }
.why-card:nth-child(4) .why-icon { background: linear-gradient(135deg, rgba(8, 122, 55, 0.1), rgba(1, 111, 172, 0.1)); }

.why-card h4 {
    font-size: 1.2rem;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}

.why-card p {
    font-size: 0.9rem;
    color: var(--charcoal-light);
}

/* ============================================
   Services Section
   ============================================ */
.services-section {
    background: var(--white);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1300px;
    margin: 0 auto;
}

.services-grid.row-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin-top: 1.5rem;
}

.service-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: all 0.5s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.12);
}

.service-image {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    transition: transform 0.5s ease;
}

.service-card:nth-child(1) .service-overlay { background: linear-gradient(135deg, var(--green), var(--green-light)); }
.service-card:nth-child(2) .service-overlay { background: linear-gradient(135deg, var(--blue), var(--blue-light)); }
.service-card:nth-child(3) .service-overlay { background: linear-gradient(135deg, var(--gold), var(--gold-light)); }
.services-grid.row-2 .service-card:nth-child(1) .service-overlay { background: linear-gradient(135deg, #2d5a87, #4a7db3); }
.services-grid.row-2 .service-card:nth-child(2) .service-overlay { background: linear-gradient(135deg, #6b5b7a, #8e7a9c); }

.service-card:hover .service-overlay {
    transform: scale(1.1);
}

.service-content {
    padding: 1.75rem;
}

.service-content h3 {
    font-size: 1.35rem;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}

.service-content p {
    font-size: 0.95rem;
    color: var(--charcoal-light);
    margin-bottom: 1.25rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--green);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.service-link:hover {
    gap: 1rem;
    color: var(--blue);
}

/* ============================================
   Book Store Section
   ============================================ */
.book-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: all 0.5s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.book-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.12);
}

.book-image-container {
    position: relative;
    overflow: visible;
    background: var(--white);
}

.book-cover-image {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover .book-cover-image {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.book-content {
    padding: 0 2rem 2rem;
}

/* ============================================
   Store Filters Section
   ============================================ */
.store-filters-container {
    max-width: 1300px;
    margin: 0 auto 3rem;
    padding: 0 5%;
}

.book-search-form {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: flex-end;
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.book-search-form:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    min-width: 250px;
}

.filter-group.filter-author {
    min-width: 220px;
    flex: 0 0 auto;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--charcoal);
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
}

.filter-label svg {
    color: var(--green);
    flex-shrink: 0;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
    color: var(--charcoal);
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(8, 122, 55, 0.1);
    transform: translateY(-1px);
}

.filter-input::placeholder {
    color: var(--charcoal-light);
    opacity: 0.6;
}

.filter-select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23087a37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 3rem;
    cursor: pointer;
}

.filter-select:hover {
    border-color: var(--green-light);
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    flex-shrink: 0;
}

.btn-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-filter svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.btn-filter-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(8, 122, 55, 0.3);
}

.btn-filter-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(8, 122, 55, 0.4);
}

.btn-filter-primary:hover svg {
    transform: scale(1.1);
}

.btn-filter-primary:active {
    transform: translateY(0);
}

.btn-filter-secondary {
    background: var(--charcoal-light);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(51, 51, 51, 0.2);
    display: none;
}

.btn-filter-secondary.active {
    display: inline-flex;
}

.btn-filter-secondary:hover {
    background: var(--charcoal);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(51, 51, 51, 0.3);
}

.btn-filter-secondary:hover svg {
    transform: rotate(90deg);
}

.btn-filter-secondary:active {
    transform: translateY(0);
}

/* Responsive adjustments for filters */
@media (max-width: 768px) {
    .book-search-form {
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem;
        gap: 1.25rem;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .filter-group.filter-author {
        min-width: 100%;
    }
    
    .filter-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-filter {
        width: 100%;
        justify-content: center;
    }
}

/* Pagination Styles */
.store-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    width: 100%;
    position: relative;
    clear: both;
}

#books-pagination {
    position: relative;
    clear: both;
    margin-top: 4rem;
    margin-bottom: 2rem;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 5%;
    width: 100%;
}

.pagination-info {
    text-align: center;
}

.pagination-info p {
    color: var(--charcoal-light);
    font-size: 0.9rem;
    margin: 0;
}

.pagination-info span {
    font-weight: 600;
    color: var(--charcoal);
}

.pagination {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-link {
    padding: 0.75rem 1.25rem;
    background: white;
    color: var(--charcoal);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    min-width: 44px;
    text-align: center;
    font-size: 1rem;
}

.pagination .page-link:hover {
    background: var(--green);
    color: white;
    border-color: var(--green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 122, 55, 0.2);
}

.pagination .page-item.active .page-link {
    background: var(--green);
    color: white;
    border-color: var(--green);
    font-weight: 600;
}

.pagination .page-item.disabled .page-link {
    background: rgba(0, 0, 0, 0.05);
    color: var(--charcoal-light);
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

.pagination .page-item.disabled .page-link:hover {
    transform: none;
    background: rgba(0, 0, 0, 0.05);
    color: var(--charcoal-light);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: none;
}

/* ============================================
   Team Section
   ============================================ */
.team-section {
    background: var(--off-white);
    position: relative;
    overflow: hidden;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.team-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    align-items: start;
    justify-items: center;
}

.team-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: all var(--transition-normal);
    text-align: center;
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

.team-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.12);
}

.team-card.featured {
    grid-column: 1 / -1;
    max-width: 100%;
    display: grid;
    grid-template-columns: 400px 1fr;
    text-align: left;
    margin-bottom: 1rem;
    align-self: stretch;
}

.team-image {
    height: 320px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gradient-primary);
}

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

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

.team-card.featured .team-image {
    height: 100%;
    min-height: 400px;
    max-height: 500px;
}

.team-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.9);
    background: var(--gradient-primary);
}

.team-card:nth-child(2) .team-image-placeholder { background: linear-gradient(135deg, var(--blue), var(--blue-light)); }
.team-card:nth-child(3) .team-image-placeholder { background: linear-gradient(135deg, var(--gold), var(--gold-light)); }
.team-card:nth-child(4) .team-image-placeholder { background: linear-gradient(135deg, #6b5b7a, #8e7a9c); }

.team-content {
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.team-card.featured .team-content {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.team-role {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: rgba(195, 132, 40, 0.1);
    border-radius: 50px;
}

.team-content h3 {
    font-size: 1.4rem;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
}

.team-card.featured .team-content h3 {
    font-size: 1.75rem;
    justify-content: flex-start;
    min-height: auto;
    margin-bottom: 1rem;
}

.team-content p {
    font-size: 0.9rem;
    color: var(--charcoal-light);
    line-height: 1.7;
    margin-top: 0.75rem;
    flex-grow: 1;
}

.team-card.featured .team-content p {
    font-size: 1rem;
    line-height: 1.8;
    margin-top: 1rem;
}

/* Ensure all team cards have equal height content */
.team-card .team-content h3 {
    margin: 0.5rem 0;
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-card.featured .team-content h3 {
    justify-content: flex-start;
    min-height: auto;
}

/* ============================================
   Grant Foundation Section
   ============================================ */
.grant-section {
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.grant-section .hero-gradient-orb {
    opacity: 0.2;
}

.grant-section .section-tag {
    background: rgba(195, 132, 40, 0.2);
    color: var(--gold-light);
}

.grant-section .section-header h2 {
    color: var(--white);
}

.grant-section .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.grant-intro {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.grant-intro p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.grant-highlight {
    display: inline-block;
    background: rgba(195, 132, 40, 0.2);
    border: 1px solid rgba(195, 132, 40, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
}

.grant-highlight p {
    font-size: 1rem;
    color: var(--gold-light);
    margin: 0;
}

.grant-highlight strong {
    color: var(--white);
    font-size: 1.25rem;
}

.grant-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.grant-card {
    background: var(--white);
    border: 1px solid rgba(8, 122, 55, 0.1);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.grant-card:hover {
    transform: translateY(-10px);
    background: var(--white);
    border-color: rgba(8, 122, 55, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.grant-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.grant-card:nth-child(1) .grant-icon { background: linear-gradient(135deg, rgba(8, 122, 55, 0.3), rgba(8, 122, 55, 0.5)); }
.grant-card:nth-child(2) .grant-icon { background: linear-gradient(135deg, rgba(1, 111, 172, 0.3), rgba(1, 111, 172, 0.5)); }
.grant-card:nth-child(3) .grant-icon { background: linear-gradient(135deg, rgba(195, 132, 40, 0.3), rgba(195, 132, 40, 0.5)); }

.grant-card h4 {
    font-size: 1.35rem;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.grant-card p {
    font-size: 0.95rem;
    color: var(--charcoal-light);
    line-height: 1.7;
}

.grant-cta {
    text-align: center;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

/* ============================================
   Grant Banner Section
   ============================================ */
.grant-banner-section {
    position: relative;
    padding: 5rem 5%;
    margin: 4rem 0;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grant-banner-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(195, 132, 40, 0.15) 0%, 
        rgba(8, 122, 55, 0.15) 50%, 
        rgba(1, 111, 172, 0.15) 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    z-index: 0;
}

.grant-banner-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(195, 132, 40, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(8, 122, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(1, 111, 172, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.grant-banner-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.03) 10px, rgba(255, 255, 255, 0.03) 20px);
    z-index: 2;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.grant-banner-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.grant-banner-tag {
    background: linear-gradient(135deg, rgba(195, 132, 40, 0.25), rgba(8, 122, 55, 0.25));
    color: var(--gold);
    border: 1px solid rgba(195, 132, 40, 0.3);
    backdrop-filter: blur(10px);
    display: inline-block;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(195, 132, 40, 0.2);
}

.grant-banner-content h2 {
    color: var(--charcoal);
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 3rem);
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
}

.grant-banner-content p {
    color: var(--charcoal-light);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

.grant-banner-content p strong {
    color: var(--green);
    font-weight: 700;
}

.grant-banner-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.grant-banner-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--green);
    border: 2px solid var(--green);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(8, 122, 55, 0.2);
}

.grant-banner-buttons .btn-secondary:hover {
    background: var(--white);
    border-color: var(--green-light);
    color: var(--green-light);
    box-shadow: 0 6px 30px rgba(8, 122, 55, 0.3);
    transform: translateY(-4px);
}

@media (max-width: 768px) {
    .grant-banner-section {
        padding: 3rem 2rem;
        min-height: 250px;
    }
    
    .grant-banner-content p {
        font-size: 1rem;
    }
    
    .grant-banner-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .grant-banner-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ============================================
   Resources Section
   ============================================ */
.resources-section {
    background: var(--white);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.resource-card {
    background: var(--off-white);
    border-radius: 24px;
    overflow: hidden;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
}

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

.resource-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    transition: transform 0.5s ease;
}

.resource-card:nth-child(1) .resource-overlay {
    background: linear-gradient(135deg, var(--green), var(--blue));
}

.resource-card:nth-child(2) .resource-overlay {
    background: linear-gradient(135deg, var(--gold), #e8a33a);
}

.resource-card:hover .resource-overlay {
    transform: scale(1.1);
}

.resource-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.resource-content h3 {
    font-size: 1.5rem;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
}

.resource-content p {
    font-size: 1rem;
    color: var(--charcoal-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials-section {
    background: var(--off-white);
}

.testimonials-carousel-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.testimonials-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
}

.testimonial-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 28px;
    padding: 3.5rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    position: relative;
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.testimonial-card.carousel-slide.active {
    display: block;
}

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

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 28px 28px 0 0;
}

.testimonial-quote {
    font-size: 5rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-family: 'Fraunces', serif;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--charcoal);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    box-shadow: 0 8px 25px rgba(8, 122, 55, 0.25);
}

.testimonial-info h5 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--charcoal);
}

.testimonial-info p {
    font-size: 0.9rem;
    color: var(--charcoal-light);
}

/* Testimonials Carousel Controls */
.testimonials-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--green);
    color: var(--green);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(8, 122, 55, 0.15);
}

.carousel-btn:hover {
    background: var(--green);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(8, 122, 55, 0.3);
}

.carousel-btn:active {
    transform: scale(0.95);
}

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

.carousel-dots {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(8, 122, 55, 0.3);
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(8, 122, 55, 0.5);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: var(--green);
    width: 14px;
    height: 14px;
    box-shadow: 0 0 0 3px rgba(8, 122, 55, 0.2);
}

@media (max-width: 768px) {
    .testimonials-carousel-controls {
        gap: 1rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .testimonial-card {
        padding: 2.5rem 1.5rem;
    }
}

/* ============================================
   Grant Carousel Section
   ============================================ */
.grant-carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

.grant-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
}

.grant-award-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.grant-award-slide.active {
    display: block;
}

.grant-award-card {
    background: var(--white);
    border-radius: 28px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
}

.grant-award-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
}

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

.grant-award-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.grant-award-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(195, 132, 40, 0.1), rgba(8, 122, 55, 0.1));
    color: var(--gold);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.grant-award-content h3 {
    font-size: 2rem;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}

.grant-org-name {
    font-size: 1.1rem;
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.grant-location {
    font-size: 0.95rem;
    color: var(--charcoal-light);
    margin-bottom: 1rem;
}

.grant-description {
    font-size: 1rem;
    color: var(--charcoal-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.grant-amount {
    font-size: 1.2rem;
    color: var(--green);
    margin-bottom: 0.5rem;
}

.grant-date {
    font-size: 0.9rem;
    color: var(--charcoal-light);
    margin-bottom: 1.5rem;
}

.grant-testimonial {
    background: var(--off-white);
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid var(--gold);
    margin-top: 1rem;
}

.grant-testimonial p {
    font-style: italic;
    color: var(--charcoal);
    line-height: 1.6;
    margin: 0;
}

.grant-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .grant-award-card {
        grid-template-columns: 1fr;
    }

    .grant-award-image {
        min-height: 250px;
    }

    .grant-award-content {
        padding: 2rem 1.5rem;
    }

    .grant-award-content h3 {
        font-size: 1.5rem;
    }

    .grant-carousel-controls {
        gap: 1rem;
    }
}

/* ============================================
   Process Section
   ============================================ */
.process-section {
    background: var(--white);
}

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

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--green), var(--blue), var(--gold));
    transform: translateX(-50%);
    border-radius: 4px;
}

.process-step {
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.process-step:nth-child(odd) .process-content { 
    text-align: right; 
    grid-column: 1;
}
.process-step:nth-child(odd) .process-number {
    grid-column: 2;
    justify-self: center;
}
.process-step:nth-child(odd) .process-empty {
    grid-column: 3;
}

.process-step:nth-child(even) .process-content { 
    grid-column: 3; 
    text-align: left;
}
.process-step:nth-child(even) .process-number {
    grid-column: 2;
    justify-self: center;
}
.process-step:nth-child(even) .process-empty { 
    grid-column: 1; 
}

.process-number {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-size: 1.75rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-normal);
}

.process-step:nth-child(1) .process-number { color: var(--green); border: 4px solid var(--green); }
.process-step:nth-child(2) .process-number { color: var(--blue); border: 4px solid var(--blue); }
.process-step:nth-child(3) .process-number { color: var(--gold); border: 4px solid var(--gold); }
.process-step:nth-child(4) .process-number { background: var(--gradient-primary); color: var(--white); border: none; }

.process-step:hover .process-number { transform: scale(1.1); }

.process-content h4 {
    font-size: 1.3rem;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}

.process-content p {
    color: var(--charcoal-light);
    font-size: 0.95rem;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-section {
    background: var(--off-white);
}

.faq-container {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.faq-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.faq-item.active {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 1.75rem;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--charcoal);
    text-align: left;
    transition: all var(--transition-fast);
}

.faq-question:hover { color: var(--green); }

.faq-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--gold);
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    background: var(--gradient-primary);
    color: var(--white);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq-item.active .faq-answer { max-height: 300px; }

.faq-answer-content {
    padding: 0 1.75rem 1.5rem;
    color: var(--charcoal-light);
    line-height: 1.8;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: var(--gradient-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

.cta-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--green);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--charcoal);
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--charcoal-light);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.contact-item:nth-child(1) .contact-icon { background: linear-gradient(135deg, rgba(8, 122, 55, 0.1), rgba(8, 122, 55, 0.2)); }
.contact-item:nth-child(2) .contact-icon { background: linear-gradient(135deg, rgba(1, 111, 172, 0.1), rgba(1, 111, 172, 0.2)); }
.contact-item:nth-child(3) .contact-icon { background: linear-gradient(135deg, rgba(195, 132, 40, 0.1), rgba(195, 132, 40, 0.2)); }

.contact-item h5 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.25rem;
}

.contact-item p, .contact-item a {
    color: var(--charcoal);
    text-decoration: none;
    font-size: 1rem;
    transition: color var(--transition-fast);
}

.contact-item a:hover { color: var(--green); }

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all var(--transition-normal);
    box-shadow: 0 6px 20px rgba(8, 122, 55, 0.25);
}

.social-link svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: transform var(--transition-normal);
}

.social-link:hover {
    transform: translateY(-5px) rotate(-5deg);
    box-shadow: 0 10px 30px rgba(8, 122, 55, 0.4);
}

.social-link:hover svg {
    transform: scale(1.1);
}

.contact-form {
    background: var(--off-white);
    padding: 2.5rem;
    border-radius: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group { 
    margin-bottom: 1rem; 
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid transparent;
    border-radius: 12px;
    background: var(--white);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: var(--charcoal);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(8, 122, 55, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #dc3545;
}

.form-group .error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

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

.form-note {
    font-size: 0.85rem;
    color: var(--charcoal-light);
    margin-bottom: 1.25rem;
}

.alert {
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    animation: slideDown 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: linear-gradient(135deg, rgba(8, 122, 55, 0.15) 0%, rgba(8, 122, 55, 0.1) 100%);
    color: #087a37;
    border: 2px solid rgba(8, 122, 55, 0.3);
    box-shadow: 0 4px 12px rgba(8, 122, 55, 0.2);
}

.alert-success::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #087a37;
    border-radius: 12px 0 0 12px;
}

.alert-error {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15) 0%, rgba(220, 53, 69, 0.1) 100%);
    color: #dc3545;
    border: 2px solid rgba(220, 53, 69, 0.3);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.alert-error::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #dc3545;
    border-radius: 12px 0 0 12px;
}

/* Ensure alert is visible in contact form */
.contact-form .alert {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* ============================================
   Footer
   ============================================ */
footer {
    background: var(--gradient-dark);
    color: var(--white);
    padding: 4rem 5% 2rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green), var(--blue), var(--gold));
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo { margin-bottom: 1.25rem; }
.footer-brand .logo-text { color: var(--white); }
.footer-brand .logo-image { filter: brightness(0) invert(1); }

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-column h5 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
}

.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 0.75rem; }

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
}

.footer-column a:hover {
    color: var(--gold-light);
    padding-left: 5px;
}

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

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

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover { color: var(--gold-light); }

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1200px) {
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { 
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 2rem;
    }
    .team-card.featured { 
        grid-column: 1 / -1;
        grid-template-columns: 350px 1fr;
    }
}

/* Tablet-specific styles (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Navigation - Optimize for tablets */
    nav {
        padding: 1rem 4%;
    }
    
    nav.scrolled {
        padding: 0.75rem 4%;
    }
    
    .nav-container {
        gap: 1.5rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .nav-links a {
        font-size: 0.85rem;
        padding: 0.4rem 0.5rem;
        white-space: nowrap;
    }
    
    .nav-cta {
        padding: 0.7rem 1.2rem !important;
        font-size: 0.85rem !important;
        white-space: nowrap;
    }
    
    .logo {
        gap: 0.6rem;
    }
    
    .logo-image {
        height: 45px;
    }
    
    .logo-text {
        font-size: 1.15rem;
    }
    
    .logo-text span {
        font-size: 0.65rem;
    }
    
    .mobile-toggle {
        display: none;
    }
    
    /* Footer - Better grid for tablets */
    footer {
        padding: 3.5rem 4% 2rem;
    }
    
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 2.5rem;
        margin-bottom: 2.5rem;
    }
    
    .footer-column:last-child {
        grid-column: 1 / -1;
        margin-top: 0.5rem;
    }
    
    .footer-column:last-child h5 {
        margin-bottom: 1rem;
    }
    
    .footer-column:last-child ul {
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem;
        justify-content: center;
    }
    
    .footer-column:last-child li {
        margin-bottom: 0;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-top: 1.5rem;
    }
    
    .footer-links {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .footer-links span {
        display: inline;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-visual { max-width: 600px; margin: 0 auto; }
    .hero-description { max-width: 100%; margin: 0 auto 2.5rem; }
    .hero-buttons, .hero-stats { justify-content: center; }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid.row-2 { grid-template-columns: 1fr; max-width: 450px; }

    .grant-grid { grid-template-columns: 1fr; max-width: 500px; }

    .contact-grid { grid-template-columns: 1fr; }
    
    .team-grid { 
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.5rem;
    }
    .team-card.featured { 
        grid-template-columns: 300px 1fr;
    }
    .team-card.featured .team-image {
        min-height: 350px;
    }
}

/* Mobile menu - Only for smaller screens (767px and below) */
@media (max-width: 767px) {
    /* Navigation - Mobile menu */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 6rem 2rem;
        gap: 1.5rem;
        transition: right var(--transition-normal);
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.15);
    }

    .nav-links.active { right: 0; }
    .nav-links a { color: var(--charcoal) !important; font-size: 1.05rem; }
    .mobile-toggle { display: flex !important; }
    
    /* Navigation container adjustments */
    nav {
        padding: 0.75rem 4%;
    }
    
    nav.scrolled {
        padding: 0.6rem 4%;
    }
    
    .nav-container {
        gap: 1rem;
    }
    
    .logo {
        gap: 0.5rem;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .logo-text span {
        font-size: 0.6rem;
    }
    
    /* Footer - Mobile */
    .footer-content { 
        grid-template-columns: 1fr; 
        gap: 2.5rem; 
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-brand .logo {
        justify-content: center;
    }
    
    .footer-bottom { 
        flex-direction: column; 
        text-align: center; 
        gap: 1.5rem;
    }
    
    .footer-links { 
        flex-direction: column; 
        gap: 1rem; 
        align-items: center;
    }
    
    .footer-links span {
        display: none;
    }

    .services-grid, .services-grid.row-2, .resources-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .team-grid { 
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 400px;
        margin: 0 auto;
    }

    .team-card {
        max-width: 100%;
    }

    .team-card.featured {
        grid-column: 1;
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .team-card.featured .team-image { 
        min-height: 300px;
        height: 300px;
    }
    
    .team-image {
        height: 280px;
    }

    /* Process timeline - Tablet */
    .process-timeline { 
        padding-left: 0;
        padding-right: 0;
    }
    
    .process-timeline::before { 
        left: 45px; 
        width: 3px;
    }

    .process-step { 
        grid-template-columns: 90px 1fr !important; 
        gap: 1.5rem !important;
        margin-bottom: 2.5rem !important;
        align-items: flex-start !important;
    }
    
    .process-step .process-number {
        grid-column: 1 !important;
        grid-row: 1 !important;
        justify-self: start !important;
        width: 90px !important;
        height: 90px !important;
    }
    
    .process-step .process-content,
    .process-step:nth-child(odd) .process-content,
    .process-step:nth-child(even) .process-content {
        grid-column: 2 !important;
        grid-row: 1 !important;
        text-align: left !important;
        padding-top: 0.5rem;
    }

    .process-step .process-empty { 
        display: none !important; 
    }
    .form-row { grid-template-columns: 1fr; }
    
    .hero-stats { flex-direction: column; gap: 1rem; align-items: center; }
    
    /* Section padding adjustments */
    section { padding: 3rem 5% !important; }
    .hero { padding: 6rem 5% 4rem !important; min-height: 70vh !important; }
    
    /* Typography adjustments */
    h1 { font-size: clamp(1.75rem, 8vw, 2.5rem) !important; }
    h2 { font-size: clamp(1.5rem, 6vw, 2rem) !important; }
    h3 { font-size: clamp(1.25rem, 5vw, 1.5rem) !important; }
    
    /* Buttons */
    .btn { padding: 0.75rem 1.5rem; font-size: 0.95rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; max-width: 300px; }
    
    /* Contact form */
    .contact-form { padding: 1.5rem !important; }
    .contact-info h3 { font-size: 1.5rem; }
    .social-links { flex-wrap: wrap; justify-content: center; }
    
    /* Grant banner */
    .grant-banner-content h2 { font-size: clamp(1.5rem, 6vw, 2.5rem); }
    .grant-banner-buttons { flex-direction: column; }
    .grant-banner-buttons .btn { width: 100%; max-width: 300px; }
    
    /* Testimonials */
    .testimonials-carousel-container { padding: 0; }
    .testimonial-card { padding: 2rem 1.5rem; }
    
    /* FAQ */
    .faq-item { margin-bottom: 1rem; }
    .faq-question { padding: 1rem; font-size: 0.95rem; }
    
    /* Process timeline */
    .process-number { width: 70px; height: 70px; font-size: 1.5rem; }
    .process-step { gap: 1rem; margin-bottom: 2rem; }
    
    /* Service cards */
    .service-card { margin-bottom: 1.5rem; }
    .service-image { min-height: 200px; }
    
    /* Resource cards */
    .resource-card { margin-bottom: 1.5rem; }
    
    /* Section headers */
    .section-header { padding: 0 0 2rem; }
    .section-tag { font-size: 0.8rem; padding: 0.4rem 0.8rem; }
}

/* Mobile devices (480px and below) */
@media (max-width: 480px) {
    /* Navigation - Small mobile */
    nav { 
        padding: 0.75rem 4% !important; 
    }
    
    nav.scrolled {
        padding: 0.6rem 4% !important;
    }
    
    .nav-container { 
        gap: 0.75rem; 
    }
    
    .logo {
        gap: 0.5rem;
    }
    
    .logo-image {
        height: 35px !important;
    }
    
    .logo-text { 
        font-size: 0.95rem !important; 
    }
    
    .logo-text span { 
        font-size: 0.6rem !important; 
    }
    
    /* Hero section */
    .hero { padding: 5rem 4% 3rem !important; min-height: 60vh !important; }
    .hero-content { gap: 2rem !important; }
    .hero-description { font-size: 0.95rem; }
    .hero-buttons .btn { width: 100%; padding: 0.875rem 1.25rem; }
    
    /* Stats */
    .hero-stats { gap: 1.5rem; }
    .stat-item { text-align: center; }
    .stat-number { font-size: 2rem; }
    
    /* Sections */
    section { padding: 2.5rem 4% !important; }
    
    /* Typography */
    h1 { font-size: 1.75rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.25rem !important; }
    
    /* Cards */
    .service-card, .resource-card, .team-card { padding: 1.5rem; }
    .service-content, .resource-content { padding: 1rem 0; }
    
    /* Contact */
    .contact-item { flex-direction: column; align-items: center; text-align: center; }
    .contact-icon { width: 50px; height: 50px; font-size: 1.2rem; }
    .contact-form { padding: 1.25rem !important; }
    
    /* Social links */
    .social-links { gap: 0.75rem; }
    .social-link { width: 45px; height: 45px; }
    .social-link svg { width: 20px; height: 20px; }
    
    /* Footer */
    .footer-content { gap: 1.5rem; }
    .footer-column { text-align: center; }
    
    /* Buttons */
    .btn { padding: 0.7rem 1.25rem; font-size: 0.9rem; }
    
    /* Process timeline - Mobile */
    .process-timeline { 
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
    }
    
    .process-timeline::before { 
        left: 30px; 
        width: 3px;
    }
    
    .process-step { 
        grid-template-columns: 60px 1fr !important; 
        gap: 1rem !important; 
        margin-bottom: 2rem !important;
        align-items: flex-start !important;
    }
    
    .process-step .process-number {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 60px !important;
        height: 60px !important;
        font-size: 1.25rem !important;
        justify-self: start !important;
    }
    
    .process-step .process-content {
        grid-column: 2 !important;
        grid-row: 1 !important;
        text-align: left !important;
        padding-top: 0.5rem;
    }
    
    .process-step .process-empty {
        display: none !important;
    }
    
    .process-step:nth-child(odd) .process-content,
    .process-step:nth-child(even) .process-content {
        grid-column: 2 !important;
        text-align: left !important;
    }
    
    .process-content h4 {
        font-size: 1.1rem !important;
        margin-bottom: 0.4rem;
    }
    
    .process-content p {
        font-size: 0.9rem !important;
        line-height: 1.5;
    }
    
    /* Grant banner */
    .grant-banner-section { padding: 3rem 4% !important; }
    .grant-banner-content p { font-size: 0.95rem; }
    
    /* Testimonials */
    .testimonial-card { padding: 1.5rem 1rem; }
    .testimonial-text { font-size: 0.95rem; }
    
    /* FAQ */
    .faq-question { padding: 0.875rem; font-size: 0.9rem; }
    .faq-answer-content { padding: 0.875rem; font-size: 0.9rem; }
    
    /* Form inputs */
    input[type="text"], input[type="email"], input[type="tel"], 
    textarea, select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
    }
}

/* Tablet portrait (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
    .resources-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
}

/* Large mobile / Small tablet (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    section { padding: 3rem 5% !important; }
    .hero { padding: 6rem 5% 4rem !important; }
    .services-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Page-Specific Responsive Styles
   ============================================ */

/* Blog Pages */
@media (max-width: 1024px) {
    .services-grid[style*="grid-template-columns: repeat(3"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .blog-post { padding: 1.5rem 4% !important; }
    .blog-header { margin-bottom: 2rem; }
    .blog-meta { flex-wrap: wrap; gap: 0.75rem; font-size: 0.85rem; }
    .blog-content { font-size: 1rem; }
    .blog-content h1 { font-size: 1.75rem !important; }
    .blog-content h2 { font-size: 1.5rem !important; }
    .blog-content h3 { font-size: 1.25rem !important; }
    .blog-content img { margin: 1.5rem 0; border-radius: 8px; }
    .related-posts .services-grid { grid-template-columns: 1fr !important; }
    
    /* Blog listing grid */
    .services-grid[style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Service detail pages */
    .services-grid[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }
}

/* Services Pages */
@media (max-width: 1024px) {
    .services-grid[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .service-detail-header { padding: 2rem 4% !important; }
    .service-detail-content { padding: 2rem 4% !important; }
    .packages-grid { grid-template-columns: 1fr !important; }
    .package-card { padding: 1.5rem; }
    
    /* Service detail hero */
    section.hero[style*="min-height: 50vh"] {
        min-height: 40vh !important;
        padding: 6rem 4% 3rem !important;
    }
    
    /* Service packages */
    .services-grid[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

/* Team Page */
@media (max-width: 768px) {
    .team-section {
        padding: 0 4%;
    }
    
    .team-grid { 
        grid-template-columns: 1fr !important;
        gap: 2rem;
        max-width: 100%;
    }
    
    .team-card {
        max-width: 100%;
    }
    
    .team-card.featured { 
        grid-template-columns: 1fr !important;
        max-width: 100%;
    }
    
    .team-card.featured .team-image { 
        min-height: 280px;
        height: 280px;
    }
    
    .team-card.featured .team-content {
        padding: 2rem 1.5rem;
    }
    
    .team-image {
        height: 280px;
    }
    
    .team-content h3 {
        min-height: auto !important;
    }
}

/* Grant Page */
@media (max-width: 768px) {
    .grant-hero { padding: 4rem 4% 2rem !important; min-height: 40vh !important; }
    .grant-award-card { grid-template-columns: 1fr !important; }
    .grant-award-image { min-height: 200px; }
    .grant-award-content { padding: 1.5rem; }
    
    /* Grant carousel */
    .grant-carousel-container { padding: 0; }
    .grant-award-slide { padding: 1rem; }
}

/* About Page */
@media (max-width: 768px) {
    .about-hero { padding: 4rem 4% 2rem !important; }
    .about-content { padding: 2rem 4% !important; }
    .about-content img { width: 100%; margin: 1.5rem 0; }
    
    /* About hero */
    section.hero[style*="min-height"] {
        min-height: 40vh !important;
        padding: 6rem 4% 3rem !important;
    }
}

/* Additional responsive utilities */
@media (max-width: 768px) {
    /* Hide decorative elements on mobile for performance */
    .hero-particles,
    .hero-gradient-orb {
        opacity: 0.5;
    }
    
    /* Improve touch targets */
    .btn, .service-link, a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    /* Improve table readability */
    table {
        font-size: 0.9rem;
    }
    
    /* Better spacing for mobile */
    .section-header {
        margin-bottom: 2rem;
    }
    
    /* Video containers */
    .video-container {
        margin: 1rem 0;
    }
    
    .video-container iframe {
        min-height: 200px;
    }
}

/* ============================================
   Loading Spinner Animation
   ============================================ */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   Book Coaching Community Banner
   ============================================ */
.coaching-banner-section {
    background: linear-gradient(135deg, rgba(8, 122, 55, 0.05), rgba(1, 111, 172, 0.05));
    position: relative;
    overflow: hidden;
}

.coaching-banner-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(8, 122, 55, 0.1), transparent);
    border-radius: 50%;
    filter: blur(80px);
}

.coaching-banner-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(1, 111, 172, 0.1), transparent);
    border-radius: 50%;
    filter: blur(80px);
}

.coaching-banner {
    max-width: 1300px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(8, 122, 55, 0.1);
    overflow: hidden;
}

.coaching-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.coaching-banner-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.coaching-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(8, 122, 55, 0.1);
    color: var(--green);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    width: fit-content;
}

.coaching-banner-badge svg {
    width: 18px;
    height: 18px;
}

.coaching-banner-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--charcoal);
    margin: 0;
    line-height: 1.2;
    font-family: 'Fraunces', serif;
}

.coaching-banner-subtitle {
    font-size: 1.25rem;
    color: var(--charcoal);
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.coaching-banner-description {
    font-size: 1.05rem;
    color: var(--charcoal-light);
    line-height: 1.7;
    margin: 0;
}

.coaching-banner-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 0.5rem 0;
}

.coaching-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--charcoal);
    font-weight: 500;
}

.coaching-feature-item svg {
    color: var(--green);
    flex-shrink: 0;
}

.coaching-banner-pricing {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin: 0.5rem 0;
}

.coaching-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--green);
    font-family: 'Fraunces', serif;
    line-height: 1;
}

.coaching-price-period {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--charcoal-light);
}

.coaching-price-note {
    font-size: 0.9rem;
    color: var(--charcoal-light);
    font-style: italic;
}

.coaching-banner-cta {
    margin-top: 0.5rem;
    width: fit-content;
}

.coaching-banner-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.coaching-banner-icon {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(8, 122, 55, 0.1), rgba(1, 111, 172, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.coaching-banner-icon::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(8, 122, 55, 0.2), rgba(1, 111, 172, 0.2));
    z-index: -1;
    animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-ring {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

/* Responsive adjustments for coaching banner */
@media (max-width: 968px) {
    .coaching-banner {
        grid-template-columns: 1fr;
        padding: 2.5rem;
        gap: 2rem;
    }
    
    .coaching-banner-visual {
        order: -1;
    }
    
    .coaching-banner-icon {
        width: 150px;
        height: 150px;
    }
    
    .coaching-banner-icon svg {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    .coaching-banner-section {
        padding: 3rem 4% !important;
    }
    
    .coaching-banner {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .coaching-banner-title {
        font-size: 1.75rem;
    }
    
    .coaching-banner-subtitle {
        font-size: 1.1rem;
    }
    
    .coaching-banner-description {
        font-size: 1rem;
    }
    
    .coaching-banner-features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .coaching-price {
        font-size: 2rem;
    }
    
    .coaching-banner-cta {
        width: 100%;
        justify-content: center;
    }
    
    .coaching-banner-icon {
        width: 120px;
        height: 120px;
    }
    
    .coaching-banner-icon svg {
        width: 60px;
        height: 60px;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    nav, footer, .hero-particles, .hero-gradient-orb, .video-decoration {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
}

