/* =====================================================
   MCA - Movilización Cristiana
   Custom Styles with Bootstrap 5
   ===================================================== */

/* CSS Variables */
:root {
    --primary-color: #4599FE;
    --primary-dark: #2f7CE6;
    --primary-light: #74B9FF;
    --secondary-color: #f59e0b;
    --secondary-dark: #d97706;
    --accent-color: #10b981;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --gradient-primary: linear-gradient(135deg, #4599FE 0%, #6FB8FF 50%, #8BD0FF 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-accent: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --gradient-dark: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    --font-primary: 'Poppins', sans-serif;
    --font-display: 'Playfair Display', serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark-color);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Prevent any horizontal overflow globally (helps mobile edge cases) */
html {
    overflow-x: hidden;
}



h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.display-heading {
    font-family: var(--font-display);
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* =====================================================
   NAVBAR
   ===================================================== */
#mainNav {
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.28rem 0;
    transition: var(--transition);
}

#mainNav.scrolled {
    background: rgba(31, 41, 55, 1);
    padding: 0.18rem 0;
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    padding: 0;
}

.site-logo {
    display: block;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(69, 153, 254, 0.2));
}

.navbar-logo {
    width: 40px;
    height: 40px;
}

#mainNav.scrolled .navbar-logo {
    width: 34px;
    height: 34px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
    color: rgba(255,255,255,0.85) !important;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff !important;
}

/* Override bootstrap text-primary to use site's primary color */
.text-primary {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--secondary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.dropdown-menu {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--light-color);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--gradient-primary);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
}

.hero-section .floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.hero-section .shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 15s infinite ease-in-out;
}

.hero-section .shape:nth-child(1) {
    width: clamp(180px, 22vw, 400px);
    height: clamp(180px, 22vw, 400px);
    top: calc(-1 * clamp(30px, 4vw, 100px));
    right: calc(-1 * clamp(30px, 4vw, 100px));
    animation-delay: 0s;
}

.hero-section .shape:nth-child(2) {
    width: clamp(140px, 18vw, 300px);
    height: clamp(140px, 18vw, 300px);
    bottom: calc(-1 * clamp(15px, 2.5vw, 50px));
    left: calc(-1 * clamp(15px, 2.5vw, 50px));
    animation-delay: 2s;
}

.hero-section .shape:nth-child(3) {
    width: clamp(120px, 14vw, 200px);
    height: clamp(120px, 14vw, 200px);
    top: 50%;
    left: clamp(4%, 6vw, 10%);
    transform: translateY(-50%);
    animation-delay: 4s;
}

/* Reduce decorative shapes at intermediate breakpoints to prevent horizontal overflow.
   Use clamp-based sizes and clamp-based negative offsets so shapes never push the
   layout outside the viewport. Fixed pixel negative offsets can produce narrow
   viewport overflow at certain widths; these clamped values are safer. */
@media (max-width: 1600px) {
    .hero-section .shape:nth-child(1) {
        width: clamp(200px, 22vw, 320px);
        height: clamp(200px, 22vw, 320px);
        top: calc(-1 * clamp(20px, 3vw, 60px));
        right: calc(-1 * clamp(20px, 3vw, 60px));
    }
    .hero-section .shape:nth-child(2) {
        width: clamp(160px, 18vw, 240px);
        height: clamp(160px, 18vw, 240px);
        bottom: calc(-1 * clamp(10px, 2vw, 30px));
        left: calc(-1 * clamp(10px, 2vw, 30px));
    }
    .hero-section .shape:nth-child(3) {
        width: clamp(120px, 14vw, 160px);
        height: clamp(120px, 14vw, 160px);
        left: clamp(4%, 6vw, 8%);
    }
}

@media (max-width: 1200px) {
    .hero-section .shape:nth-child(1) {
        width: clamp(160px, 20vw, 260px);
        height: clamp(160px, 20vw, 260px);
        top: calc(-1 * clamp(12px, 2.5vw, 40px));
        right: calc(-1 * clamp(12px, 2.5vw, 40px));
    }
    .hero-section .shape:nth-child(2) {
        width: clamp(140px, 16vw, 200px);
        height: clamp(140px, 16vw, 200px);
        bottom: calc(-1 * clamp(8px, 2vw, 24px));
        left: calc(-1 * clamp(8px, 2vw, 24px));
    }
    .hero-section .shape:nth-child(3) {
        width: clamp(100px, 12vw, 120px);
        height: clamp(100px, 12vw, 120px);
        left: clamp(3%, 5vw, 6%);
    }
}

/* Float animation: avoid horizontal expansion by removing rotate and
   reducing vertical travel. Rotation can increase bounding-box width. */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-content {
    position: relative;
    z-index: 10;
}

/* Prevent the large icon on the right column from causing horizontal overflow */
.hero-section .col-lg-5 {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Permitir que el icono (corazón) pueda sobresalir y no sea recortado */
    overflow: visible;
    position: relative;
    z-index: 10;
}

.hero-section .col-lg-5 .display-1 {
    font-size: clamp(2.5rem, 8vw, 5.5rem) !important;
    line-height: 1 !important;
    max-width: 100%;
    display: block;
}

.hero-logo-shell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.75rem;
    border-radius: 32px;
    background: linear-gradient(145deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(10px);
}

.hero-logo {
    width: min(100%, 240px);
    max-height: 240px;
    filter: drop-shadow(0 18px 35px rgba(15, 23, 42, 0.35));
}

.section-hero-logo {
    width: min(150px, 32vw);
    margin: 0 auto 1.5rem;
    padding: 0.9rem 1rem;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.24);
    backdrop-filter: blur(10px);
}

.section-logo-image {
    width: 100%;
    max-height: 92px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* Mobile navbar fixes: ensure collapse overlays content and menu stacks vertically */
@media (max-width: 991px) {
    #mainNav {
        padding: 0.2rem 0;
    }

    /* Make the collapsed menu overlay the page and be easy to tap */
    .navbar {
        position: relative;
    }

    /* Collapsed menu positioned relative to navbar (no fixed positioning) to avoid layout overflow */
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    box-sizing: border-box;
    background: rgba(31, 41, 55, 0.98);
    padding: 0.75rem 1rem;
    border-radius: 0 0 10px 10px;
    box-shadow: var(--shadow-lg);
    z-index: 1090;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

    /* Ensure the navbar's container doesn't force extra width on mobile */
    .navbar .container,
    .navbar .container-fluid {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .navbar-nav {
        flex-direction: column !important;
        gap: 0.25rem;
        margin-top: 0.5rem;
    }

    .navbar-nav .nav-item {
        width: 100%;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 8px;
        color: rgba(255,255,255,0.95) !important;
    }

    /* Make dropdowns behave as part of the vertical list on mobile */
    .dropdown-menu {
        position: static;
        float: none;
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 0;
    }

    .dropdown-item {
        background: rgba(255,255,255,0.03);
        margin-bottom: 0.25rem;
        border-radius: 6px;
    }

    .navbar-toggler {
        border: none;
        z-index: 1100;
    }
    
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* =====================================================
   SECTIONS
   ===================================================== */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-header p {
    color: #6b7280;
    font-size: 1.1rem;
}

.bg-light-gradient {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.bg-dark-section {
    background: var(--gradient-dark);
    color: white;
}

/* =====================================================
   CARDS
   ===================================================== */
.card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    background: white;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card-text {
    color: #6b7280;
    font-size: 0.95rem;
}

/* Ministry Cards */
.ministry-card {
    position: relative;
    height: 350px;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
}

.ministry-card .card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.ministry-card:hover .card-bg {
    transform: scale(1.1);
}

.ministry-card .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: white;
}

.ministry-card .card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
}

.ministry-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
    filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.18));
}

/* Small arrow inside card's 'Ver Más' */
.ministry-card .btn-sm i {
    transition: transform 0.25s ease;
}
.ministry-card .btn-sm:hover i {
    transform: translateX(4px);
}

.ministry-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.ministry-card p {
    opacity: 0.8;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Blog Cards */
.blog-card {
    height: 100%;
}

.blog-card .card-img-top {
    height: 200px;
}

.blog-card .badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.blog-card .card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

/* =====================================================
   FEATURES
   ===================================================== */
.feature-box {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    background: white;
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: var(--gradient-primary);
    color: white;
}

.feature-box h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-box p {
    color: #6b7280;
    font-size: 0.95rem;
}

/* =====================================================
   STATS
   ===================================================== */
.stats-section {
    background: var(--gradient-primary);
    padding: 4rem 0;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =====================================================
   PRAYER REQUESTS (INTERCESION)
   ===================================================== */
.prayer-card {
    border-left: 4px solid var(--primary-color);
    background: white;
    padding: 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.prayer-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.prayer-card.urgent {
    border-left-color: #ef4444;
    background: linear-gradient(to right, rgba(239, 68, 68, 0.05), white);
}

.prayer-card .badge-urgent {
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.prayer-card h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.prayer-card p {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.prayer-card .meta {
    font-size: 0.85rem;
    color: #9ca3af;
}

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.testimonial-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-family: var(--font-display);
    font-size: 6rem;
    position: absolute;
    top: -20px;
    left: 20px;
    color: var(--primary-light);
    opacity: 0.3;
    line-height: 1;
}

.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    color: #4b5563;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h6 {
    margin-bottom: 0;
    font-weight: 600;
}

.testimonial-author span {
    font-size: 0.85rem;
    color: #9ca3af;
}

/* =====================================================
   FORMS
   ===================================================== */
.form-control,
.form-select {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* =====================================================
   LOGIN PAGE
   ===================================================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-dark);
    padding: 2rem;
}

.login-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    max-width: 450px;
    width: 100%;
    padding: 3rem;
}

.login-card .logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-card .logo i {
    font-size: 3rem;
    color: var(--primary-color);
}

.login-card h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

/* =====================================================
   ADMIN/DASHBOARD STYLES
   ===================================================== */
.admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: var(--dark-color);
    color: white;
    padding: 1.5rem;
    z-index: 1000;
    overflow-y: auto;
}

.admin-sidebar .brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1.5rem;
}

.admin-sidebar .brand i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.admin-sidebar .brand span {
    font-weight: 700;
    font-size: 1.25rem;
}

.admin-sidebar .nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-sidebar .nav-menu li {
    margin-bottom: 0.5rem;
}

.admin-sidebar .nav-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: rgba(255,255,255,0.7);
    border-radius: 8px;
    transition: var(--transition);
}

.admin-sidebar .nav-menu a:hover,
.admin-sidebar .nav-menu a.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.admin-sidebar .nav-menu a i {
    font-size: 1.25rem;
}

.admin-sidebar .nav-section {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
    margin: 1.5rem 0 0.75rem;
    padding-left: 1rem;
}

.admin-content {
    margin-left: 280px;
    padding: 2rem;
    min-height: 100vh;
    background: #f8fafc;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.admin-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0;
}

/* Dashboard Stats Cards */
.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-card .icon.primary { background: var(--gradient-primary); }
.stat-card .icon.success { background: var(--gradient-accent); }
.stat-card .icon.warning { background: var(--gradient-secondary); }
.stat-card .icon.info { background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%); }

.stat-card .info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0;
}

.stat-card .info span {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Data Tables */
.data-table {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.data-table .table {
    margin-bottom: 0;
}

.data-table .table th {
    background: #f8fafc;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: #6b7280;
    border-bottom: 2px solid #e5e7eb;
    padding: 1rem;
}

.data-table .table td {
    padding: 1rem;
    vertical-align: middle;
}

.data-table .table tbody tr:hover {
    background: #f8fafc;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.active { background: #d1fae5; color: #059669; }
.status-badge.inactive { background: #fee2e2; color: #dc2626; }
.status-badge.pending { background: #fef3c7; color: #d97706; }

/* =====================================================
   WEEKLY REPORT FORM
   ===================================================== */
.report-form {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.report-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.report-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.report-section h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.attendance-table {
    width: 100%;
    border-collapse: collapse;
}

.attendance-table th,
.attendance-table td {
    padding: 0.75rem;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.attendance-table th {
    background: #f8fafc;
    font-weight: 600;
    font-size: 0.85rem;
}

.attendance-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.attendance-toggle {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
}

.attendance-toggle .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
}

.attendance-toggle .btn.active {
    background: var(--primary-color);
    color: white;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 991px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: var(--transition);
    }
    
    .admin-sidebar.show {
        transform: translateX(0);
    }
    
    .admin-content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .ministry-card {
        height: 280px;
    }

    /* Hide large decorative floating shapes on small screens to avoid overflow */
    .hero-section .floating-shapes {
        display: none;
    }

    /* Prevent prayer cards from shifting horizontally on hover, which can cause overflow */
    .prayer-card:hover {
        transform: none;
    }

    /* Make ministry titles and text white on small screens (responsive slider) */
    .ministry-card .card-overlay h3,
    .ministry-card .card-overlay p {
        color: #ffffff;
    }

    .navbar-logo {
        width: 28px;
        height: 28px;
    }

    .footer-brand {
        align-items: flex-start;
        gap: 0.75rem;
    }

    .footer-logo {
        width: 48px;
    }

    .section-hero-logo {
        width: min(120px, 42vw);
        margin-bottom: 1.1rem;
        padding: 0.75rem 0.85rem;
    }

    .section-logo-image {
        max-height: 72px;
    }
}



/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: var(--dark-color);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.footer-logo {
    width: 58px;
    flex-shrink: 0;
    padding: 0.35rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-links a:hover {
    color: var(--secondary-color) !important;
}

/* =====================================================
   UTILITIES
   ===================================================== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

.overlay-dark {
    position: relative;
}

.overlay-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.z-1 { z-index: 1; }
.z-10 { z-index: 10; }

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* =====================================================
   DEFENSIVE OVERFLOW FIXES
   These rules are intentionally defensive: they avoid rare
   horizontal overflow caused by transforms/rotations and
   oversized elements at narrow viewport ranges.
   ===================================================== */

/* Keep global overflow guard on html; body already has overflow-x:hidden above */
html {
    overflow-x: hidden;
}

/* Ensure containers and rows don't accidentally expand beyond viewport */
.container, .container-fluid, .row {
    box-sizing: border-box;
}

/* Cap floating shapes so they can't increase layout width due to rotate */
.hero-section, .hero-section .floating-shapes {
    overflow: hidden;
}

.hero-section .shape {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-origin: center;
    will-change: transform;
    max-width: 100vw;
}

/* Make collapsed navbar always clamp to viewport width on mobile */
.navbar-collapse {
    box-sizing: border-box;
}
