/* ============================================================
   PCGT GOSHENI MAHALI SALAMA - Complete Stylesheet
   Mobile-first, fully responsive
   ============================================================ */

/* ============================================================
   1. ROOT VARIABLES
   ============================================================ */
:root {
    /* Primary Colors */
    --primary: #023047;
    --primary-dark: #022b3a;
    --primary-light: #034c6e;
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;

    /* Secondary Colors */
    --secondary: #8ecae6;
    --secondary-dark: #6ba8c9;
    --secondary-light: #a8d4f0;
    --secondary-50: #f0fdff;

    /* Accent Colors */
    --accent: #5d6366;
    --accent-dark: #cfc9b8;
    --accent-light: #807d76;
    --accent-50: #fff9e6;

    /* Neutral Colors */
    --dark: #1b263b;
    --light: #ffffff;
    --gray-50: #fafbfc;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #6c757d;
    --gray-600: #495057;
    --gray-700: #343a40;
    --gray-800: #212529;
    --gray-900: #1a1d23;

    /* Semantic Colors */
    --success: #28a745;
    --success-light: #d4edda;
    --danger: #dc3545;
    --danger-light: #f8d7da;
    --warning: #ffc107;
    --warning-light: #fff3cd;
    --info: #17a2b8;
    --info-light: #d1ecf1;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --fw-light: 300;
    --fw-normal: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;

    /* Spacing */
    --sp-xs: 0.25rem;
    --sp-sm: 0.5rem;
    --sp-md: 1rem;
    --sp-lg: 1.5rem;
    --sp-xl: 2rem;
    --sp-xxl: 3rem;
    --sp-xxxl: 4rem;

    /* Border Radius */
    --br-sm: 0.375rem;
    --br: 0.5rem;
    --br-md: 0.625rem;
    --br-lg: 0.75rem;
    --br-xl: 1rem;
    --br-2xl: 1.5rem;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 6px 10px -1px rgba(0, 0, 0, 0.1), 0 2px 6px -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);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #023047 0%, #034c6e 100%);
    --gradient-secondary: linear-gradient(135deg, #8ecae6 0%, #a8d4f0 100%);
    --gradient-nav: linear-gradient(135deg, #023047, #022b3a);
    --gradient-hero: linear-gradient(135deg, #023047 0%, #022b3a 100%);

    /* Transitions */
    --t-fast: 0.15s ease-in-out;
    --t-normal: 0.3s ease-in-out;
    --t-slow: 0.5s ease-in-out;

    /* Layout */
    --container-max: 1200px;
    --navbar-height: 70px;
    --sidebar-width: 260px;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--t-fast);
}

a:hover {
    color: var(--primary-light);
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--fw-bold);
    line-height: 1.25;
    margin-bottom: var(--sp-sm);
    color: var(--dark);
}

p {
    margin-bottom: var(--sp-md);
}

.container {
    max-width: var(--container-max);
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

[class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
}

/* ============================================================
   3. NAVBAR
   ============================================================ */
.navbar {
    background: var(--gradient-nav);
    padding: var(--sp-md) 0;
    box-shadow: var(--shadow-md);
    transition: padding var(--t-normal);
    z-index: 1030;
}

.navbar.sticky {
    padding: var(--sp-sm) 0;
}

.navbar .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    position: relative;
    z-index: 10;
    padding: 0;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--br);
    flex-shrink: 0;
}

.brand-text {
    font-size: 1.4rem;
    font-weight: var(--fw-bold);
    color: var(--light);
    white-space: nowrap;
    line-height: 1.2;
}

.brand-highlight {
    color: var(--secondary);
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 6px 10px;
    border-radius: var(--br);
    background: transparent;
    cursor: pointer;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
    display: inline-block;
    width: 26px;
    height: 26px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

.navbar-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
}

.navbar-nav .nav-item {
    width: 100%;
    margin: 4px 0;
}

.navbar-nav .nav-link {
    display: block;
    color: var(--light);
    font-weight: var(--fw-medium);
    padding: 10px 12px;
    border-radius: var(--br);
    transition: all var(--t-fast);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary);
    background: rgba(255, 255, 255, 0.08);
}

.navbar-collapse {
    width: 100%;
}

.btn-wa-nav {
    background: #25D366;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: var(--br);
    text-decoration: none;
    font-weight: var(--fw-semibold);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--t-fast);
    margin-top: 8px;
}

.btn-wa-nav:hover {
    background: #128C7E;
    color: #fff;
    transform: translateY(-2px);
}

/* ============================================================
   4. HERO & PAGE HEADER
   ============================================================ */
.hero-section {
    position: relative;
    background: url('../images/1000315092.jpg') center/cover no-repeat;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 40px 15px;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(2, 48, 71, 0.92) 0%, rgba(2, 43, 58, 0.85) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-badge {
    background: rgba(142, 202, 230, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: var(--fw-semibold);
    letter-spacing: 1px;
    color: var(--secondary);
    margin-bottom: var(--sp-md);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.hero-verse {
    color: var(--secondary);
    font-style: italic;
}

.page-header {
    background: var(--gradient-primary);
    padding: var(--sp-xxl) 0;
    color: var(--light);
    text-align: center;
    position: relative;
}

.page-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
}

.page-header h1 {
    color: var(--light);
    font-size: 2rem;
    font-weight: var(--fw-extrabold);
    margin-bottom: var(--sp-sm);
}

.page-header .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 0;
}

/* ============================================================
   5. TYPOGRAPHY & SECTION STYLES
   ============================================================ */
.section-subtitle {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: var(--fw-semibold);
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--sp-sm);
}

.section-title {
    font-size: 1.75rem;
    font-weight: var(--fw-extrabold);
    color: var(--dark);
    margin-bottom: var(--sp-md);
    line-height: 1.2;
}

.title-divider {
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: var(--sp-md) auto 0;
    border-radius: var(--br);
}

.main-txt h1 {
    font-size: 1.5rem;
    font-weight: var(--fw-bold);
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    padding-bottom: var(--sp-md);
    text-align: center;
}

.main-txt h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--br);
}

.main-txt {
    text-align: center;
    margin-bottom: var(--sp-lg);
}

/* ============================================================
   6. PASTOR CARDS
   ============================================================ */
.pastor-card {
    background: var(--light);
    border-radius: var(--br-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--t-normal);
    height: 100%;
}

.pastor-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
}

.pastor-img-wrapper {
    overflow: hidden;
    height: 300px;
    background: var(--gray-100);
}

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

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

.pastor-info {
    padding: var(--sp-lg);
}

.pastor-info h3 {
    font-size: 1.15rem;
    font-weight: var(--fw-bold);
    margin-bottom: var(--sp-sm);
}

.pastor-title {
    color: var(--primary);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--sp-md);
    font-size: 0.9rem;
}

/* ============================================================
   7. CONTENT CARDS
   ============================================================ */
.content-card {
    background: var(--light);
    border-radius: var(--br-2xl);
    padding: var(--sp-lg);
    margin-bottom: var(--sp-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--t-normal);
    height: 100%;
}

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

.content-card h3 {
    font-size: 1.15rem;
    margin-bottom: var(--sp-md);
}

/* ============================================================
   8. PACKAGES / GALLERY CARDS
   ============================================================ */
.packages {
    padding: var(--sp-xl) 0;
    background: var(--gray-50);
}

.packages .card {
    border: none;
    border-radius: var(--br-2xl);
    overflow: hidden;
    background: var(--light);
    box-shadow: var(--shadow-md);
    transition: all var(--t-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.packages .card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.packages .card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform var(--t-normal);
    flex-shrink: 0;
}

.packages .card:hover img {
    transform: scale(1.05);
}

.packages .card-body {
    padding: var(--sp-lg);
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.packages .card-body h3 {
    font-size: 1.15rem;
    font-weight: var(--fw-bold);
    color: var(--dark);
    margin-bottom: var(--sp-sm);
    line-height: 1.3;
}

.packages .card-body p {
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ============================================================
   9. SCHEDULE LIST (Ibada zetu)
   ============================================================ */
.schedule-list {
    margin-top: var(--sp-lg);
}

.schedule-item {
    gap: 12px;
    padding: 16px 0 !important;
}

.day-icon {
    flex-shrink: 0;
    width: 50px;
    text-align: center;
}

.day-info {
    min-width: 0;
}

.day-info h4 {
    font-size: 1rem;
    font-weight: var(--fw-bold);
    margin-bottom: 4px;
}

.day-info p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0;
}

.time-badge .badge {
    font-size: 0.8rem;
    padding: 6px 12px !important;
    border-radius: var(--br);
}

/* ============================================================
   10. BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--br);
    font-weight: var(--fw-semibold);
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--t-fast);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
}

.btn-primary {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

.btn-outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--primary);
}

.btn-success {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
}

.btn-call,
.btn-wa {
    display: inline-block;
    padding: 8px 18px;
    border-radius: var(--br);
    margin-right: 8px;
    margin-bottom: 8px;
    color: #fff;
    font-weight: var(--fw-semibold);
}

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

.btn-call:hover {
    background: var(--primary-dark);
    color: #fff;
}

.btn-wa {
    background: #25D366;
}

.btn-wa:hover {
    background: #128C7E;
    color: #fff;
}

/* ============================================================
   11. FORMS
   ============================================================ */
.form-label {
    font-weight: var(--fw-medium);
    color: var(--gray-700);
    margin-bottom: 6px;
    display: block;
    font-size: 0.9rem;
}

.form-control,
.form-select {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--gray-800);
    background-color: #fff;
    border: 1px solid var(--gray-300);
    border-radius: var(--br);
    transition: all var(--t-fast);
    -webkit-appearance: none;
    appearance: none;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(2, 48, 71, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--sp-md);
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary);
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--gray-700);
    cursor: pointer;
}

/* ============================================================
   12. ALERTS
   ============================================================ */
.alert {
    padding: 12px 16px;
    border-radius: var(--br);
    margin-bottom: var(--sp-md);
    border-left: 4px solid;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: var(--success-light);
    color: #155724;
    border-color: var(--success);
}

.alert-danger {
    background: var(--danger-light);
    color: #721c24;
    border-color: var(--danger);
}

.alert-warning {
    background: var(--warning-light);
    color: #856404;
    border-color: var(--warning);
}

.alert-info {
    background: var(--info-light);
    color: #0c5460;
    border-color: var(--info);
}

.alert .btn-close {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    padding: 0;
    line-height: 1;
}

.alert .btn-close::after {
    content: "×";
}

/* ============================================================
   13. TABLES
   ============================================================ */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--br);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 600px;
}

.table th {
    background: var(--primary);
    color: #fff;
    font-weight: var(--fw-semibold);
    text-align: left;
    padding: 10px 12px;
    white-space: nowrap;
    font-size: 0.85rem;
}

.table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: var(--gray-50);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: var(--fw-semibold);
    color: #fff;
    white-space: nowrap;
}

.badge.bg-primary { background: var(--primary) !important; }
.badge.bg-success { background: var(--success) !important; }
.badge.bg-danger { background: var(--danger) !important; }
.badge.bg-warning { background: var(--warning) !important; color: #212529 !important; }
.badge.bg-info { background: var(--info) !important; }

/* ============================================================
   14. DASHBOARD (Admin & User)
   ============================================================ */
.dashboard-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.sidebar {
    width: 100%;
    background: var(--gradient-nav);
    color: #fff;
    padding: 20px 0;
    position: relative;
    z-index: 100;
}

.sidebar .nav {
    display: flex;
    flex-direction: column;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 20px;
    margin: 4px 10px;
    border-radius: var(--br);
    transition: all var(--t-normal);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.main-content {
    flex: 1;
    padding: 20px 15px;
    background: var(--gray-50);
    min-height: 100vh;
}

.stat-card {
    background: #fff;
    border-radius: var(--br-xl);
    padding: 20px;
    box-shadow: var(--shadow-md);
    transition: all var(--t-normal);
    height: 100%;
}

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

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--br-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: var(--fw-extrabold);
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-label {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.table-container {
    background: #fff;
    border-radius: var(--br-xl);
    padding: 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
}

.table-container h4 {
    font-size: 1.1rem;
    margin-bottom: var(--sp-md);
}

/* ============================================================
   15. FOOTER — Same gradient as navbar, all white
   ============================================================ */
.footer {
    background: var(--gradient-nav);       /* Same as navbar */
    color: #ffffff;                        /* Full white base */
    padding-top: var(--sp-xxl);
    margin-top: var(--sp-xxl);
    border-top: 2px solid var(--secondary); /* Cyan accent top */
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    margin-bottom: var(--sp-md);
}

.footer-logo {
    width: 45px;
    height: 45px;
    border-radius: var(--br);
    object-fit: cover;
    flex-shrink: 0;
    background: #fff;
    padding: 2px;
}

.footer h4,
.footer h5 {
    color: #ffffff;
    margin-bottom: var(--sp-md);
    font-size: 1.05rem;
    font-weight: var(--fw-bold);
}

.footer p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.92);
}

/* ── Links ───────────────────────────────────── */
.footer-links a {
    color: rgba(255, 255, 255, 0.92);
    transition: all var(--t-fast);
    display: inline-block;
}

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

/* ── Contact list: phone + email MUST be white ── */
.footer-contact li,
.footer-contact li a,
.footer-contact a,
.footer .footer-contact a,
.footer-contact a:link,
.footer-contact a:visited {
    color: #ffffff !important;             /* ← FORCE WHITE */
    text-decoration: none;
    transition: color var(--t-fast);
    font-weight: var(--fw-medium);
}

.footer-contact a:hover,
.footer-contact a:focus {
    color: var(--secondary) !important;    /* Cyan on hover */
    text-decoration: underline;
}

/* Icons in contact area — cyan for pop */
.footer-contact i {
    width: 20px;
    margin-right: 8px;
    color: var(--secondary);
    font-size: 0.95rem;
    text-align: center;
}

/* Social icons */
.social-icons {
    display: flex;
    gap: 8px;
    margin-top: var(--sp-md);
    flex-wrap: wrap;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--br);
    color: #ffffff;
    transition: all var(--t-fast);
}

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

.footer-hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: var(--sp-lg) 0;
}

/* Copyright line */
.footer .text-center p,
.footer .text-center {
    color: #ffffff !important;
}

/* ============================================================
   16. WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    z-index: 1050;
    transition: all var(--t-normal);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #128C7E;
}

.whatsapp-icon {
    font-size: 1.6rem;
    color: #fff;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: var(--dark);
    color: #fff;
    padding: 6px 12px;
    border-radius: var(--br);
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all var(--t-fast);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    right: 75px;
}

/* ============================================================
   17. MARQUEE
   ============================================================ */
.marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: var(--gradient-nav);
    border-top: 2px solid var(--secondary);
    border-bottom: 2px solid var(--secondary);
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: churchMarquee 28s linear infinite;
}

.marquee-content span {
    white-space: nowrap;
    color: #fff;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 40px;
    font-size: 0.9rem;
}

.marquee:hover .marquee-content {
    animation-play-state: paused;
}

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

/* ============================================================
   18. UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-primary { color: var(--primary) !important; }
.text-muted { color: var(--gray-500) !important; }
.text-white { color: #fff !important; }

.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 16px !important; }
.mb-4 { margin-bottom: 24px !important; }
.mb-5 { margin-bottom: 32px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 16px !important; }
.mt-4 { margin-top: 24px !important; }
.mt-5 { margin-top: 32px !important; }
.my-5 { margin-top: 32px !important; margin-bottom: 32px !important; }
.ms-2 { margin-left: 8px !important; }
.ms-3 { margin-left: 16px !important; }
.me-2 { margin-right: 8px !important; }
.me-3 { margin-right: 16px !important; }
.py-3 { padding-top: 16px !important; padding-bottom: 16px !important; }
.py-5 { padding-top: 32px !important; padding-bottom: 32px !important; }
.p-2 { padding: 8px !important; }
.p-4 { padding: 24px !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.flex-wrap { flex-wrap: wrap !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }
.gap-2 { gap: 8px !important; }
.gap-3 { gap: 16px !important; }
.gap-4 { gap: 24px !important; }
.list-unstyled { list-style: none !important; padding-left: 0 !important; }
.rounded-4 { border-radius: var(--br-xl) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.fs-1 { font-size: 2rem !important; }
.fs-4 { font-size: 1.25rem !important; }
.fw-bold { font-weight: var(--fw-bold) !important; }
.display-3 { font-size: 2.5rem; font-weight: var(--fw-bold); }
.lead { font-size: 1rem; font-weight: var(--fw-normal); }
.bg-light { background: var(--gray-100) !important; }

/* ============================================================
   19. GRID SYSTEM (Mobile-first)
   ============================================================ */
.col-md-4,
.col-md-5,
.col-md-6,
.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-8,
.col-lg-10,
.col-md-3,
.col-md-8,
.col-md-10,
.col-sm-6 {
    width: 100%;
}

@media (min-width: 576px) {
    .col-sm-6 { width: 50%; }
}

@media (min-width: 768px) {
    .col-md-3 { width: 25%; }
    .col-md-4 { width: 33.3333%; }
    .col-md-5 { width: 41.6667%; }
    .col-md-6 { width: 50%; }
    .col-md-8 { width: 66.6667%; }
    .col-md-10 { width: 83.3333%; }
}

@media (min-width: 992px) {
    .col-lg-4 { width: 33.3333%; }
    .col-lg-5 { width: 41.6667%; }
    .col-lg-6 { width: 50%; }
    .col-lg-7 { width: 58.3333%; }
    .col-lg-8 { width: 66.6667%; }
    .col-lg-10 { width: 83.3333%; }

    .navbar-toggler { display: none; }

    .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        flex-grow: 1;
        align-items: center;
        width: auto;
    }

    .navbar-nav {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end;
        width: auto;
        margin-left: auto;
    }

    .navbar-nav .nav-item { width: auto; margin: 0 4px; }
    .navbar-nav .nav-link { padding: 8px 14px; }

    .navbar-nav .nav-link::after {
        content: '';
        position: absolute;
        bottom: 2px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background: var(--secondary);
        transition: width var(--t-fast);
    }

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

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active { background: transparent; }

    .btn-wa-nav { margin-top: 0; margin-left: 12px; }

    .dashboard-container { flex-direction: row; }

    .sidebar {
        width: var(--sidebar-width);
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        overflow-y: auto;
        padding-top: 90px;
    }

    .main-content {
        margin-left: var(--sidebar-width);
        padding: 30px;
    }

    .section-title { font-size: 2.25rem; }
    .page-header h1 { font-size: 3rem; }
    .page-header { padding: var(--sp-xxxl) 0; }
    .main-txt h1 { font-size: 2rem; }
    .display-3 { font-size: 4rem; }
    .lead { font-size: 1.15rem; }

    .hero-section { min-height: 85vh; }
    .pastor-img-wrapper { height: 380px; }
    .packages .card img { height: 260px; }
    .content-card { padding: var(--sp-xl); }
}

/* ============================================================
   20. MOBILE OPTIMIZATIONS (max-width: 991px)
   ============================================================ */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--gradient-nav);
        padding: 16px;
        border-radius: 0 0 var(--br-lg) var(--br-lg);
        box-shadow: var(--shadow-lg);
        z-index: 1000;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        display: none;
    }

    .navbar-collapse.show { display: block; }
    .navbar { position: sticky; top: 0; }
    .navbar-brand { max-width: calc(100% - 60px); }
    .brand-text { font-size: 1.1rem; }
    .logo-img { width: 40px; height: 40px; }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 16px 0;
    }

    .sidebar .nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }

    .sidebar .nav-link {
        margin: 0;
        padding: 8px 12px;
        font-size: 0.85rem;
        border-radius: var(--br);
    }

    .sidebar .nav-link i { display: none; }

    .main-content { margin-left: 0; padding: 20px 15px; }

    .day-icon { width: 40px; }
    .day-icon .fa-2x { font-size: 1.5rem; }

    .marquee-content { animation-duration: 18s; }
    .marquee-content span {
        font-size: 0.75rem;
        padding: 12px 30px;
        letter-spacing: 0.5px;
    }

    .table { font-size: 0.82rem; min-width: 500px; }
    .table th, .table td { padding: 8px 10px; }
}

/* ============================================================
   21. SMALL MOBILE (max-width: 576px)
   ============================================================ */
@media (max-width: 576px) {
    .hero-section { min-height: 70vh; padding: 30px 15px; }
    .hero-badge { font-size: 0.7rem; padding: 6px 14px; }
    .display-3 { font-size: 1.9rem; }
    .lead { font-size: 0.95rem; }
    .hero-verse { font-size: 0.85rem; }

    .btn-lg { padding: 10px 20px; font-size: 0.9rem; }
    .btn { padding: 8px 16px; font-size: 0.85rem; }

    .section-title { font-size: 1.4rem; }
    .main-txt h1 { font-size: 1.2rem; padding-bottom: 12px; }
    .page-header h1 { font-size: 1.6rem; }
    .page-header { padding: var(--sp-xl) 0; }

    .pastor-img-wrapper { height: 250px; }
    .pastor-info { padding: 16px; }
    .pastor-info h3 { font-size: 1rem; }

    .packages .card img { height: 180px; }
    .packages .card-body { padding: 16px; }
    .packages .card-body h3 { font-size: 1rem; }
    .packages .card-body p { font-size: 0.85rem; }

    .schedule-item {
        flex-direction: column;
        align-items: flex-start !important;
        padding: 14px 0 !important;
    }

    .day-info {
        margin-left: 0 !important;
        margin-top: 8px;
        width: 100%;
    }

    .time-badge { margin-top: 8px; }

    .stat-value { font-size: 1.25rem; }
    .stat-icon {
        width: 42px; height: 42px;
        font-size: 1.2rem; margin-bottom: 10px;
    }

    .main-content { padding: 16px 12px; }
    .content-card { padding: 16px; border-radius: var(--br-lg); }
    .table-container { padding: 14px; border-radius: var(--br-lg); }
    .table-container h4 { font-size: 1rem; }

    .form-control, .form-select { padding: 8px 12px; font-size: 0.9rem; }

    .footer { padding-top: var(--sp-xl); }
    .footer h4, .footer h5 { font-size: 1rem; }
    .footer p, .footer-links li, .footer-contact li { font-size: 0.85rem; }

    .whatsapp-float {
        width: 50px; height: 50px;
        bottom: 16px; right: 16px;
    }
    .whatsapp-icon { font-size: 1.4rem; }
    .whatsapp-tooltip { display: none; }

    .brand-text { font-size: 1rem; }
    .logo-img { width: 36px; height: 36px; }
    .social-icons a { width: 34px; height: 34px; }

    .marquee-content { animation-duration: 15s; }
    .marquee-content span {
        font-size: 0.7rem;
        padding: 10px 24px;
    }
}

/* ============================================================
   22. EXTRA SMALL (max-width: 380px)
   ============================================================ */
@media (max-width: 380px) {
    .brand-text { font-size: 0.9rem; }
    .logo-img { width: 32px; height: 32px; }
    .navbar-brand { gap: 4px; }
    .display-3 { font-size: 1.6rem; }
    .section-title { font-size: 1.2rem; }
    .main-txt h1 { font-size: 1rem; }
    .stat-value { font-size: 1.1rem; }
    .table { font-size: 0.75rem; min-width: 420px; }
}

/* ============================================================
   23. IMAGE QUALITY FIXES
   ============================================================ */
img {
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
}

.packages .card img,
.pastor-img,
.gallery-thumb,
.hero-section {
    image-rendering: crisp-edges;
    image-rendering: high-quality;
    transform: translateZ(0);
    backface-visibility: hidden;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .packages .card img,
    .pastor-img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ============================================================
   24. ACCESSIBILITY & MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .marquee-content { animation: none; }
}

a:focus-visible,
button:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

@media print {
    .navbar,
    .whatsapp-float,
    .footer,
    .sidebar {
        display: none !important;
    }
    .main-content {
        margin-left: 0 !important;
    }
}