/**
 * Holyspirit Embassy International - Main Stylesheet
 * A distinctive, elegant design for a modern church ministry
 * Complete CSS with optimized dark background button styling
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Color Palette - Rich Gold & Deep Navy */
    --primary-color: #1a1a2e;
    --primary-dark: #0f0f1e;
    --secondary-color: #c9a961;
    --secondary-light: #e4d4a8;
    --accent-color: #8b6f47;
    --white: #ffffff;
    --light-bg: #f8f6f3;
    --dark-bg: #16213e;
    
    /* Text Colors */
    --text-dark: #2d2d2d;
    --text-light: #6c6c6c;
    --text-white: #ffffff;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --gradient-gold: linear-gradient(135deg, #c9a961 0%, #8b6f47 100%);
    --gradient-overlay: linear-gradient(to bottom, rgba(26, 26, 46, 0.8), rgba(22, 33, 62, 0.9));
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Spacing */
    --section-padding: 60px 0;
    --container-max-width: 1200px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
    --shadow-gold: 0 4px 20px rgba(201, 169, 97, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    transition: all var(--transition-normal);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: clamp(0.95rem, 2vw, 1rem);
}

.text-gold {
    color: var(--secondary-color);
}

.text-gradient {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   CONTAINERS & LAYOUT
   ============================================ */
.container, 
.container-fluid {
    padding-right: max(15px, 4vw);
    padding-left: max(15px, 4vw);
    width: 100%;
    max-width: 100%;
}

@media (min-width: 1400px) {
    .container {
        max-width: var(--container-max-width);
        padding-right: 15px;
        padding-left: 15px;
    }
}

/* ============================================
   NAVIGATION - IMPROVED RESPONSIVE LAYOUT
   ============================================ */
.navbar {
    background: var(--gradient-primary);
    padding: 0.75rem 0;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-lg);
}

/* Navbar Container - Better responsive padding */
.navbar > .container-fluid {
    padding-right: clamp(10px, 3vw, 20px);
    padding-left: clamp(10px, 3vw, 20px);
}

/* Navbar Brand - Optimized for space */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    color: var(--white) !important;
    max-width: 65%;
    padding-right: 0.5rem;
}

@media (max-width: 991px) {
    .navbar-brand {
        max-width: 70%;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        max-width: 65%;
        gap: 0.4rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        max-width: 60%;
        gap: 0.35rem;
    }
}

/* Logo Image - Responsive sizing */
.logo-img {
    height: clamp(30px, 5vw, 50px);
    width: auto;
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .logo-img {
        height: clamp(28px, 4.5vw, 40px);
    }
}

@media (max-width: 576px) {
    .logo-img {
        height: clamp(25px, 4vw, 35px);
    }
}

/* Brand Text - Better overflow handling */
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.brand-name {
    font-size: clamp(0.85rem, 2.5vw, 1.4rem);
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-tagline {
    font-size: clamp(0.55rem, 1.3vw, 0.75rem);
    font-weight: 400;
    color: var(--secondary-light);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .brand-name {
        font-size: clamp(0.75rem, 2.2vw, 1.1rem);
    }
    
    .brand-tagline {
        font-size: clamp(0.5rem, 1.2vw, 0.65rem);
        letter-spacing: 0.5px;
    }
}

@media (max-width: 576px) {
    .brand-name {
        font-size: 0.8rem;
    }
    
    .brand-tagline {
        font-size: 0.5rem;
        letter-spacing: 0.3px;
    }
}

/* Navbar Toggler - Better positioning */
.navbar-toggler {
    border: 1px solid var(--secondary-color);
    padding: 0.25rem 0.4rem;
    font-size: 1.1rem;
    background: transparent;
    flex-shrink: 0;
    margin-left: auto;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(201, 169, 97, 0.25);
    outline: none;
}

.navbar-toggler-icon {
    width: 1.2em;
    height: 1.2em;
}

/* Navbar Collapse */
.navbar-collapse {
    transition: all var(--transition-normal);
}

/* Desktop horizontal scrolling when needed */
@media (min-width: 992px) {
    .navbar-collapse {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(201, 169, 97, 0.3) transparent;
    }
    
    .navbar-nav {
        flex-wrap: nowrap;
    }
}

/* Nav Links - Desktop */
.nav-link {
    color: var(--white) !important;
    font-weight: 500;
    padding: 0.5rem 0.8rem !important;
    margin: 0 0.1rem;
    border-radius: var(--radius-sm);
    position: relative;
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-link i {
    margin-right: 0.25rem;
    opacity: 0.8;
    font-size: 0.9em;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transform: translateX(-50%);
    transition: width var(--transition-normal);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-light) !important;
}

/* Donate Button Styling - Desktop */
.nav-link.donate-btn {
    background: var(--gradient-gold);
    color: var(--primary-dark) !important;
    border-radius: var(--radius-md);
    margin-left: 0.5rem;
    padding: 0.5rem 1rem !important;
    font-weight: 600;
}

.nav-link.donate-btn:hover {
    color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.nav-link.donate-btn::before {
    display: none;
}

/* Large Desktop Navigation */
@media (min-width: 1200px) {
    .nav-link {
        padding: 0.5rem 1rem !important;
        margin: 0 0.15rem;
        font-size: 0.95rem;
    }
    
    .navbar-brand {
        max-width: none;
    }
    
    /* Enable horizontal scrolling if content exceeds viewport */
    .navbar-collapse {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    .navbar-nav {
        flex-wrap: nowrap;
        min-width: max-content;
    }
    
    /* Hide scrollbar but keep functionality */
    .navbar-collapse::-webkit-scrollbar {
        height: 4px;
    }
    
    .navbar-collapse::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .navbar-collapse::-webkit-scrollbar-thumb {
        background: rgba(201, 169, 97, 0.3);
        border-radius: 2px;
    }
    
    .navbar-collapse::-webkit-scrollbar-thumb:hover {
        background: rgba(201, 169, 97, 0.5);
    }
}

/* Tablet Navigation */
@media (min-width: 992px) and (max-width: 1199px) {
    .nav-link {
        padding: 0.5rem 0.7rem !important;
        font-size: 0.85rem;
    }
    
    .nav-link.donate-btn {
        padding: 0.5rem 0.9rem !important;
    }
    
    /* Enable horizontal scrolling if content exceeds viewport */
    .navbar-collapse {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    .navbar-nav {
        flex-wrap: nowrap;
        min-width: max-content;
    }
    
    /* Subtle scrollbar */
    .navbar-collapse::-webkit-scrollbar {
        height: 3px;
    }
    
    .navbar-collapse::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .navbar-collapse::-webkit-scrollbar-thumb {
        background: rgba(201, 169, 97, 0.3);
        border-radius: 2px;
    }
    
    .navbar-collapse::-webkit-scrollbar-thumb:hover {
        background: rgba(201, 169, 97, 0.5);
    }
}

/* Mobile Navigation */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--primary-dark);
        padding: 1rem;
        border-radius: var(--radius-md);
        margin-top: 0.75rem;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
        text-align: left;
        width: 100%;
        white-space: normal;
    }
    
    .nav-link.donate-btn {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .navbar-nav {
        width: 100%;
    }
}

/* Small Mobile Navigation */
@media (max-width: 576px) {
    .nav-link {
        font-size: 0.85rem;
        padding: 0.625rem 1rem !important;
    }
    
    .nav-link i {
        margin-right: 0.2rem;
    }
}

/* ============================================
   HERO SECTION - RESPONSIVE ENHANCEMENTS
   ============================================ */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    overflow: hidden;
    margin-top: 70px;
    padding: 1rem;
    width: 100%;
}

@media (max-width: 991px) {
    .hero {
        margin-top: 60px;
        min-height: 70vh;
        padding: 0.75rem;
    }
}

@media (max-width: 768px) {
    .hero {
        margin-top: 56px;
        min-height: 60vh;
        padding: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero {
        margin-top: 50px;
        min-height: 55vh;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/papa.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    animation: slidePattern 20s linear infinite;
}

@keyframes slidePattern {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: clamp(1rem, 3vw, 2rem);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-subtitle {
    color: var(--secondary-light);
    font-size: clamp(0.875rem, 2.5vw, 1.2rem);
    font-weight: 500;
    letter-spacing: clamp(1px, 1vw, 3px);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title {
    color: var(--white);
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out 0.4s both;
    padding: 0 0.5rem;
}

.hero-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    max-width: min(700px, 90vw);
    margin: 0 auto 1.5rem;
    animation: fadeInUp 1s ease-out 0.6s both;
    padding: 0 0.5rem;
}

.hero-buttons {
    display: flex;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.8s both;
    padding: 0 0.5rem;
    width: 100%;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   BUTTONS - COMPLETE COMPREHENSIVE STYLING
   ============================================ */

/* ========== PRIMARY BUTTON (GOLD GRADIENT) ========== */
.btn-primary-custom {
    /* Layout */
    display: inline-block;
    padding: clamp(0.75rem, 2.5vw, 1rem) clamp(1.5rem, 4vw, 2.5rem);
    min-width: min-content;
    width: auto;
    
    /* Typography */
    font-family: var(--font-body);
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
    
    /* Colors */
    background: var(--gradient-gold);
    color: var(--primary-dark);
    border: 2px solid var(--secondary-color);
    
    /* Effects */
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.4);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    
    /* Transitions */
    transition: all 0.3s ease;
}

/* Shimmer effect on primary button */
.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(201, 169, 97, 0.6);
    color: var(--primary-dark);
    text-decoration: none;
    border-color: var(--accent-color);
}

.btn-primary-custom:hover::before {
    left: 100%;
}

.btn-primary-custom:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 15px rgba(201, 169, 97, 0.5);
}

.btn-primary-custom:focus {
    outline: 3px solid rgba(201, 169, 97, 0.5);
    outline-offset: 3px;
}

/* Icon spacing in primary button */
.btn-primary-custom i {
    margin-right: 0.5rem;
    font-size: 0.9em;
}

.btn-primary-custom i:last-child {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* ========== SECONDARY BUTTON (OUTLINED) ========== */
.btn-secondary-custom {
    /* Layout */
    display: inline-block;
    padding: clamp(0.75rem, 2.5vw, 1rem) clamp(1.5rem, 4vw, 2.5rem);
    min-width: min-content;
    width: auto;
    
    /* Typography */
    font-family: var(--font-body);
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
    
    /* Colors - Default (for light backgrounds) */
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary-dark);
    
    /* Effects */
    border-radius: var(--radius-md);
    cursor: pointer;
    position: relative;
    
    /* Transitions */
    transition: all 0.3s ease;
}

.btn-secondary-custom:hover {
    background: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(26, 26, 46, 0.3);
    text-decoration: none;
}

.btn-secondary-custom:active {
    transform: translateY(-1px);
}

.btn-secondary-custom:focus {
    outline: 3px solid rgba(26, 26, 46, 0.3);
    outline-offset: 3px;
}

/* Icon spacing in secondary button */
.btn-secondary-custom i {
    margin-right: 0.5rem;
    font-size: 0.9em;
}

.btn-secondary-custom i:last-child {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* ============================================
   CRITICAL: DARK BACKGROUND BUTTON STYLING
   For: Contact Us & Become a Monthly Partner
   ============================================ */

/* SECONDARY BUTTONS ON DARK BACKGROUNDS - MAXIMUM CONTRAST */
.section-dark .btn-secondary-custom,
.footer .btn-secondary-custom,
.hero .btn-secondary-custom,
.bg-dark .btn-secondary-custom,
.dark-section .btn-secondary-custom,
[class*="dark"] .btn-secondary-custom {
    /* CRITICAL: White text and border for maximum visibility */
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    
    /* Enhanced visibility */
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.section-dark .btn-secondary-custom:hover,
.footer .btn-secondary-custom:hover,
.hero .btn-secondary-custom:hover,
.bg-dark .btn-secondary-custom:hover,
.dark-section .btn-secondary-custom:hover,
[class*="dark"] .btn-secondary-custom:hover {
    background: #ffffff !important;
    color: var(--primary-dark) !important;
    border-color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.4);
    text-shadow: none;
}

.section-dark .btn-secondary-custom:focus,
.footer .btn-secondary-custom:focus,
.hero .btn-secondary-custom:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 3px;
}

/* PRIMARY BUTTONS ON DARK BACKGROUNDS - maintain gold visibility */
.section-dark .btn-primary-custom,
.footer .btn-primary-custom,
.hero .btn-primary-custom {
    background: var(--gradient-gold);
    color: var(--primary-dark) !important;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.5);
    font-weight: 700;
}

.section-dark .btn-primary-custom:hover,
.footer .btn-primary-custom:hover,
.hero .btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(201, 169, 97, 0.7);
    color: var(--primary-dark) !important;
}

/* ============================================
   FULL-WIDTH BUTTON VARIANTS (Inside Cards)
   CRITICAL: Monthly Partner & One-Time Gift
   ============================================ */

/* Full-width primary button */
.btn-primary-custom.w-100 {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 700;
}

/* Full-width secondary button */
.btn-secondary-custom.w-100 {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 700;
}

/* CRITICAL: Buttons inside dark section cards */
.section-dark .card .btn-primary-custom.w-100,
.section-dark .card .btn-secondary-custom.w-100 {
    padding: 1.1rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* "GIVE ONE-TIME GIFT" button - Gold gradient */
.section-dark .card .btn-primary-custom.w-100 {
    background: var(--gradient-gold);
    color: var(--primary-dark) !important;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.5);
}

.section-dark .card .btn-primary-custom.w-100:hover {
    background: linear-gradient(135deg, #e4d4a8 0%, #c9a961 100%);
    color: var(--primary-dark) !important;
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(201, 169, 97, 0.7);
}

/* "BECOME A MONTHLY PARTNER" button - MAXIMUM CONTRAST WHITE */
.section-dark .card .btn-secondary-custom.w-100 {
    background: transparent !important;
    color: #ffffff !important;
    border: 3px solid #ffffff !important; /* THICKER BORDER for emphasis */
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
    font-weight: 700;
}

.section-dark .card .btn-secondary-custom.w-100:hover {
    background: #ffffff !important;
    color: var(--primary-dark) !important;
    border-color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.5);
}

/* Cards with gradient backgrounds */
[style*="background: var(--gradient-primary)"] .btn-secondary-custom,
[style*="background:var(--gradient-primary)"] .btn-secondary-custom {
    background: transparent !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

[style*="background: var(--gradient-primary)"] .btn-secondary-custom:hover,
[style*="background:var(--gradient-primary)"] .btn-secondary-custom:hover {
    background: #ffffff !important;
    color: var(--primary-dark) !important;
}

[style*="background: var(--gradient-primary)"] .btn-secondary-custom.w-100 {
    border-width: 3px !important;
}

/* ========== BUTTON GROUPS & CONTAINERS ========== */
.d-flex.gap-3 {
    gap: clamp(0.75rem, 2vw, 1.5rem);
    flex-wrap: wrap;
}

.d-grid.gap-3 {
    gap: clamp(0.75rem, 2vw, 1.5rem);
}

.d-flex .btn-primary-custom,
.d-flex .btn-secondary-custom {
    flex-shrink: 0;
}

/* ========== BUTTON STATES ========== */
.btn-primary-custom:disabled,
.btn-secondary-custom:disabled,
.btn-primary-custom.disabled,
.btn-secondary-custom.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Loading state */
.btn-primary-custom.loading,
.btn-secondary-custom.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-primary-custom.loading::after,
.btn-secondary-custom.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-top-color: transparent;
    animation: button-spin 0.6s linear infinite;
}

@keyframes button-spin {
    to { transform: rotate(360deg); }
}

/* ========== BUTTON RESPONSIVE STYLES ========== */

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .btn-primary-custom,
    .btn-secondary-custom {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }
    
    .btn-primary-custom.w-100,
    .btn-secondary-custom.w-100 {
        padding: 1.1rem 2rem;
        font-size: 1.05rem;
    }
}

/* Tablet (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .btn-primary-custom,
    .btn-secondary-custom {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }
    
    .btn-primary-custom.w-100,
    .btn-secondary-custom.w-100 {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .btn-primary-custom,
    .btn-secondary-custom {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 100%;
    }
    
    .btn-primary-custom.w-100,
    .btn-secondary-custom.w-100 {
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
    }
    
    /* Stack buttons vertically on mobile */
    .d-flex.gap-3 {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .hero-buttons .btn-primary-custom,
    .hero-buttons .btn-secondary-custom {
        width: 100%;
        max-width: 320px;
    }
}

/* Small Mobile (< 576px) */
@media (max-width: 576px) {
    .btn-primary-custom,
    .btn-secondary-custom {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
        letter-spacing: 0.5px;
    }
    
    .btn-primary-custom.w-100,
    .btn-secondary-custom.w-100 {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Slightly thinner border on very small screens */
    .section-dark .card .btn-secondary-custom.w-100 {
        border-width: 2px !important;
    }
}

/* ============================================
   SECTIONS - RESPONSIVE ENHANCEMENTS
   ============================================ */
.section {
    padding: clamp(30px, 6vw, 60px) 0;
    position: relative;
    width: 100%;
}

.section-light {
    background: var(--light-bg);
}

.section-dark {
    background: var(--dark-bg);
    color: var(--white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark p {
    color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    animation: fadeInUp 0.8s ease-out;
    padding: 0 0.5rem;
}

.section-subtitle {
    color: var(--secondary-color);
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.section-description {
    font-size: clamp(1rem, 2vw, 1.1rem);
    max-width: min(700px, 90vw);
    margin: 0 auto;
    color: var(--text-light);
    padding: 0 0.5rem;
}

/* Dark section text improvements */
.section-dark .section-description {
    color: rgba(255, 255, 255, 0.9);
}

.section-dark .section-subtitle {
    color: #f4d78c; /* Brighter gold for visibility */
}

.section-dark .lead {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 400;
}

/* List styling for dark backgrounds */
.section-dark ul li,
.section-dark .list-unstyled li {
    color: rgba(255, 255, 255, 0.95) !important;
}

.section-dark ul li strong,
.section-dark .list-unstyled li strong {
    color: var(--white) !important;
    font-weight: 700;
}

/* Icon styling in dark sections */
.section-dark .fa-check-circle {
    color: #f4d78c !important; /* Brighter gold */
    filter: drop-shadow(0 0 2px rgba(244, 215, 140, 0.5));
}

.section-dark .text-gold {
    color: #f4d78c !important;
}

/* ============================================
   MINISTRY HISTORY - RESPONSIVE ENHANCEMENTS
   ============================================ */
.history-content {
    max-width: min(900px, 95vw);
    margin: 0 auto;
    padding: 0 0.5rem;
}

.history-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
    border-left: 4px solid var(--secondary-color);
    width: 100%;
}

.history-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.history-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.history-card p {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.history-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: clamp(1rem, 3vw, 2rem);
    box-shadow: var(--shadow-md);
    width: 100%;
}

.history-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.history-image:hover img {
    transform: scale(1.05);
}

/* Large History Layout for About Page */
.history-content-large {
    max-width: min(1200px, 95vw);
    margin: 0 auto;
    padding: 0 0.5rem;
}

.history-card-large {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: clamp(2rem, 4vw, 3rem);
    transition: all var(--transition-normal);
    overflow: hidden;
    border-top: 5px solid var(--secondary-color);
}

.history-card-large:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.history-image-large {
    width: 100%;
    height: auto;
    max-height: 600px;
    overflow: hidden;
    position: relative;
}

.history-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.history-card-large:hover .history-image-large img {
    transform: scale(1.05);
}

.history-content-text {
    padding: clamp(2rem, 4vw, 3.5rem);
}

.history-content-text h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 1rem;
}

.history-content-text p {
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.history-content-text p:first-of-type {
    font-size: clamp(1.05rem, 2.3vw, 1.2rem);
    color: var(--text-dark);
    font-weight: 500;
}

/* Responsive adjustments for history */
@media (max-width: 768px) {
    .history-content-text {
        padding: clamp(1.5rem, 3vw, 2rem);
    }
    
    .history-image-large {
        max-height: 400px;
    }
}

@media (max-width: 576px) {
    .history-content-text {
        padding: 1.25rem;
    }
    
    .history-image-large {
        max-height: 300px;
    }
    
    .history-content-text p {
        text-align: left;
    }
}

/* ============================================
   CARDS - RESPONSIVE ENHANCEMENTS
   ============================================ */
.card-custom {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    height: 100%;
    border: none;
    width: 100%;
}

.card-custom:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    position: relative;
    overflow: hidden;
    height: clamp(200px, 30vw, 250px);
    width: 100%;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card-custom:hover .card-image img {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--gradient-gold);
    color: var(--primary-dark);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-body-custom {
    padding: clamp(1rem, 2vw, 1.5rem);
}

.card-title-custom {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.card-text-custom {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: clamp(0.875rem, 2vw, 0.95rem);
    line-height: 1.6;
}

.card-meta {
    display: flex;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    color: var(--text-light);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.card-meta i {
    color: var(--secondary-color);
    margin-right: 0.25rem;
}

/* Dark section card improvements */
.section-dark .card,
.section-dark .card-custom {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.section-dark .card h3,
.section-dark .card h4 {
    color: var(--white) !important;
}

.section-dark .card p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ============================================
   GALLERY - RESPONSIVE ENHANCEMENTS
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

@media (min-width: 1400px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 992px) and (max-width: 1399px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        gap: 0.75rem;
    }
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    width: 100%;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--white);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.gallery-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: clamp(1rem, 2vw, 1.5rem);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    transform: translateY(100%);
    transition: transform var(--transition-normal);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.gallery-item:hover .gallery-title {
    transform: translateY(0);
}

/* ============================================
   VIDEO PLAYER - RESPONSIVE ENHANCEMENTS
   ============================================ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: clamp(1rem, 2.5vw, 2rem);
    padding: 0 0.5rem;
}

@media (max-width: 576px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.video-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    width: 100%;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    cursor: pointer;
    width: 100%;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(50px, 10vw, 70px);
    height: clamp(50px, 10vw, 70px);
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-gold);
}

.video-play-btn i {
    color: var(--primary-dark);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    margin-left: 3px;
}

.video-card:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: clamp(1rem, 2vw, 1.5rem);
}

.video-title {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.video-description {
    color: var(--text-light);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    line-height: 1.5;
}

/* ============================================
   CONTACT - RESPONSIVE ENHANCEMENTS
   ============================================ */
.contact-info-card {
    background: var(--white);
    padding: clamp(1.25rem, 3vw, 1.5rem);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--transition-normal);
    height: 100%;
    border-top: 4px solid var(--secondary-color);
    width: 100%;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: clamp(50px, 10vw, 70px);
    height: clamp(50px, 10vw, 70px);
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: var(--primary-dark);
    box-shadow: var(--shadow-gold);
}

.contact-info-card h4 {
    margin-bottom: 0.75rem;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
}

.contact-info-card p,
.contact-info-card a {
    color: var(--text-light);
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.5;
}

.contact-info-card a:hover {
    color: var(--secondary-color);
}

/* ============================================
   FOOTER - RESPONSIVE ENHANCEMENTS
   ============================================ */
.footer {
    background: var(--gradient-primary);
    color: var(--white);
    width: 100%;
}

.footer-top {
    padding: clamp(2rem, 5vw, 3rem) 0 clamp(1rem, 3vw, 1.5rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget {
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    padding: 0 0.5rem;
}

.footer-title {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 1rem;
    color: var(--white);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: clamp(30px, 6vw, 50px);
    height: 3px;
    background: var(--gradient-gold);
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: clamp(0.5rem, 1.5vw, 1rem);
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-link {
    width: clamp(35px, 7vw, 40px);
    height: clamp(35px, 7vw, 40px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all var(--transition-normal);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.social-link:hover {
    background: var(--gradient-gold);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: clamp(0.5rem, 1.5vw, 0.8rem);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    transition: all var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary-light);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    line-height: 1.5;
}

.footer-contact i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
    width: 20px;
    font-size: 0.9em;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact a:hover {
    color: var(--secondary-light);
}

.footer-bottom {
    padding: clamp(1rem, 3vw, 1.5rem) 0;
    text-align: center;
}

.copyright {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    margin-bottom: 0.5rem;
}

.footer-bottom-links {
    text-align: center;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    margin: 0 0.5rem;
    display: inline-block;
}

.footer-bottom-links a:hover {
    color: var(--secondary-light);
}

.footer-bottom-links .separator {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0.5rem;
}

@media (max-width: 768px) {
    .footer-widget {
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-bottom-links {
        margin-top: 0.5rem;
    }
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: clamp(20px, 5vw, 30px);
    right: clamp(20px, 5vw, 30px);
    width: clamp(40px, 8vw, 50px);
    height: clamp(40px, 8vw, 50px);
    background: var(--gradient-gold);
    border: none;
    border-radius: 50%;
    color: var(--primary-dark);
    font-size: clamp(1rem, 2vw, 1.2rem);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-gold);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(201, 169, 97, 0.5);
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.loading-spinner {
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: clamp(40px, 8vw, 50px);
    height: clamp(40px, 8vw, 50px);
    border: 4px solid rgba(201, 169, 97, 0.2);
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   VALUE CARDS (About Page)
   ============================================ */
.value-card {
    background: var(--white);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--transition-normal);
    height: 100%;
    border-top: 4px solid var(--secondary-color);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--accent-color);
}

.value-icon {
    width: clamp(70px, 12vw, 90px);
    height: clamp(70px, 12vw, 90px);
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--primary-dark);
    box-shadow: var(--shadow-gold);
    transition: all var(--transition-normal);
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
}

.value-card h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.value-card p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
}

/* ============================================
   STAT CARDS (About Page)
   ============================================ */
.stat-card {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(201, 169, 97, 0.3);
    transition: all var(--transition-normal);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-color);
    transform: translateY(-5px);
}

.stat-number {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .stat-card {
        padding: 1.5rem 1rem;
    }
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
.row {
    margin-right: -0.5rem;
    margin-left: -0.5rem;
}

.row > * {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

.section .row.g-4 {
    --bs-gutter-x: clamp(1rem, 2vw, 1.5rem);
    --bs-gutter-y: clamp(1rem, 2vw, 1.5rem);
}

.fs-sm { font-size: clamp(0.875rem, 2vw, 1rem); }
.fs-md { font-size: clamp(1rem, 2.5vw, 1.2rem); }
.fs-lg { font-size: clamp(1.2rem, 3vw, 1.5rem); }

.py-responsive { 
    padding-top: clamp(1rem, 3vw, 2rem); 
    padding-bottom: clamp(1rem, 3vw, 2rem); 
}

.px-responsive { 
    padding-left: clamp(0.5rem, 2vw, 1rem); 
    padding-right: clamp(0.5rem, 2vw, 1rem); 
}

.mb-responsive { 
    margin-bottom: clamp(0.5rem, 2vw, 1rem); 
}

.mt-responsive { 
    margin-top: clamp(0.5rem, 2vw, 1rem); 
}

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hide-on-desktop {
        display: none !important;
    }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #ffcc00;
        --text-light: #333333;
    }
    
    .btn-secondary-custom {
        border-width: 3px;
    }
    
    .section-dark .btn-secondary-custom {
        border-width: 3px !important;
        font-weight: 800;
    }
    
    .section-dark .card .btn-secondary-custom.w-100 {
        border-width: 4px !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .section-light {
        background: #1a1a1a;
    }
    
    .card-custom,
    .history-card,
    .contact-info-card {
        background: #2a2a2a;
    }
    
    .section-light h1,
    .section-light h2,
    .section-light h3,
    .section-light h4,
    .section-light .card-title-custom,
    .section-light .video-title {
        color: #ffffff;
    }
    
    .section-light p,
    .section-light .card-text-custom,
    .section-light .video-description {
        color: #cccccc;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar,
    .hero-buttons,
    .scroll-top,
    .video-play-btn,
    .social-links,
    .btn-primary-custom,
    .btn-secondary-custom {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        margin-top: 0;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}