/**
 * ChristosHub - Complete Optimized & Responsive CSS
 * Version: 2.0
 * Fully responsive, modern, and optimized for all templates
 */

/* ========================================
   CSS VARIABLES & DESIGN TOKENS
======================================== */
:root {
    /* Brand Colors */
    --gold: #D4AF37;
    --gold-light: #F4E4A6;
    --gold-dark: #B8941F;
    --navy: #0B2545;
    --navy-light: #1A365D;
    --navy-dark: #051829;
    --maroon: #7B1F2A;
    --maroon-light: #9D2B3A;
    --maroon-dark: #5A1620;
    
    /* Neutral Colors */
    --off-white: #FAF9F6;
    --warm-cream: #FEFAF0;
    --white: #FFFFFF;
    --text-dark: #2D3748;
    --text-light: #4A5568;
    --text-muted: #718096;
    --border-color: rgba(212, 175, 55, 0.2);
    
    /* Status Colors */
    --success: #38A169;
    --error: #E53E3E;
    --warning: #DD6B20;
    --info: #3182CE;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-full: 50px;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Merriweather', Georgia, serif;
    
    /* Z-index layers */
    --z-dropdown: 1000;
    --z-sticky: 1010;
    --z-fixed: 1020;
    --z-modal-backdrop: 1030;
    --z-modal: 1040;
    --z-popover: 1050;
    --z-tooltip: 1060;
}

/* ========================================
   RESET & BASE STYLES
======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background-color: var(--warm-cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 0px;
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ========================================
   HEADER STYLES
======================================== */
header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    box-shadow: var(--shadow-lg);
}

.header-top {
    background: var(--gold);
    color: var(--navy);
    padding: 8px 0;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    display: none;
}

.header-top-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.header-main {
    padding: 15px 5%;
    max-width: 1600px;
    margin: 0 auto;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Logo */
.logo, .footer-logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.logo:hover, .footer-logo:hover {
    transform: scale(1.05);
}

.logo span, .footer-logo span {
    color: var(--off-white);
}

.logo-icon {
    font-size: 26px;
}

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-bar form {
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 12px 50px 12px 18px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-full);
    font-size: 14px;
    background: rgba(255,255,255,0.1);
    color: white;
    transition: var(--transition);
}

.search-bar input::placeholder {
    color: rgba(255,255,255,0.7);
}

.search-bar input:focus {
    outline: none;
    background: rgba(255,255,255,0.15);
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gold);
    border: none;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    color: var(--navy);
    font-weight: 600;
    transition: var(--transition);
    font-size: 13px;
}

.search-btn:hover {
    background: var(--gold-light);
    transform: translateY(-50%) scale(1.05);
}

/* Header Actions */
/* ========================================
   MOBILE HEADER IMPROVEMENTS
======================================== */

/* Mobile Header Actions - Right Aligned */
.mobile-header-actions {
    display: none;
    gap: 10px;
    align-items: center;
    margin-left: auto;
}

/* Mobile User Name Display */
.mobile-user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gold);
    white-space: nowrap;
}




/* ========================================
   AUTH PAGES
======================================== */
.auth-page {
    background: linear-gradient(135deg, var(--navy) 0%, var(--maroon) 100%);
    padding-bottom: 0;
}

.auth-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.auth-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-xl);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.auth-logo span {
    color: var(--navy);
}

.auth-header h1 {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--navy);
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-light);
    font-size: 15px;
}

.auth-form {
    margin-bottom: 25px;
}

.auth-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    color: var(--text-muted);
    font-size: 13px;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--text-light);
    font-size: 14px;
}

.auth-footer a {
    color: var(--maroon);
    font-weight: 600;
}

.auth-footer a:hover {
    color: var(--maroon-light);
    text-decoration: underline;
}

.forgot-link {
    color: var(--maroon);
    font-size: 13px;
    font-weight: 600;
}

.forgot-link:hover {
    text-decoration: underline;
}

.auth-benefits {
    color: white;
}

.auth-benefits h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 30px;
}

.benefit-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.benefit-item i {
    font-size: 32px;
    color: var(--gold);
    flex-shrink: 0;
}

.benefit-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 700;
}

.benefit-item p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
}



/* Mobile Auth Buttons */
.btn-mobile {
    padding: 6px 14px;
    
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-mobile-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn-mobile-outline:hover {
    background: rgba(212, 175, 55, 0.1);
}

.btn-mobile-primary {
    background: var(--gold);
    color: var(--navy);
}

.btn-mobile-primary:hover {
    background: var(--gold-light);
}

/* Mobile Menu Button - Right Aligned */
.mobile-menu-btn {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 22px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

/* Desktop Search - Hidden on Mobile */
.desktop-search {
    display: block;
}

/* Mobile Search Container - Google Style */
.mobile-search-container {
    display: none;
    background: white;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-search-form {
    width: 100%;
}

.mobile-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f1f3f4;
    border-radius: 24px;
    padding: 10px 16px;
    transition: var(--transition);
}

.mobile-search-wrapper:focus-within {
    background: white;
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
}

.mobile-search-icon {
    color: #5f6368;
    font-size: 18px;
    margin-right: 12px;
    flex-shrink: 0;
}

.mobile-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    color: var(--text-dark);
    outline: none;
    padding: 0;
}

.mobile-search-input::placeholder {
    color: #5f6368;
}

.mobile-search-clear {
    background: none;
    border: none;
    color: #5f6368;
    font-size: 18px;
    padding: 4px;
    cursor: pointer;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-search-clear:hover {
    color: var(--text-dark);
}

/* ========================================
   MOBILE RESPONSIVE
======================================== */

@media (max-width: 992px) {
    /* Show mobile elements */
    .mobile-header-actions {
        display: flex;
    }
    
    .mobile-search-container {
        display: block;
    }
    
    /* Hide desktop elements */
    .desktop-search {
        display: none;
    }
    
    .header-actions {
        display: none;
    }
    
    /* Adjust header container */
    .header-container {
        flex-wrap: nowrap;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .logo-icon {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .mobile-user-name {
        font-size: 13px;
    }
    
    .btn-mobile {
        padding: 5px 12px;
        font-size: 12px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .logo-icon {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .mobile-header-actions {
        gap: 8px;
    }
    
    .mobile-user-name {
        display: none; /* Hide on very small screens */
    }
    
    .btn-mobile {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .mobile-search-container {
        padding: 10px 12px;
    }
    
    .mobile-search-wrapper {
        padding: 8px 14px;
    }
    
    .mobile-search-input {
        font-size: 15px;
    }
}

/* Desktop - Keep everything as is */
@media (min-width: 993px) {
    .mobile-header-actions,
    .mobile-search-container {
        display: none !important;
    }
    
    .desktop-search,
    .header-actions {
        display: flex !important;
    }
}



/* User Menu */
.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
}

.user-avatar-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: var(--z-dropdown);
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: var(--text-dark);
    transition: var(--transition);
    font-size: 14px;
}

.dropdown-item:hover {
    background: var(--gold-light);
    color: var(--navy);
}

.dropdown-item i {
    width: 18px;
    color: var(--gold);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

.text-danger {
    color: var(--error) !important;
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    border: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
}

.btn-primary:hover:not(:disabled) {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn-outline:hover:not(:disabled) {
    background: rgba(212, 175, 55, 0.1);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

.btn-social {
    background: white;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-google:hover {
    background: #f8f9fa;
}

.btn-facebook {
    background: #1877f2;
    color: white;
}

.btn-facebook:hover {
    background: #0d6efd;
}




/* ========================================
   LAYOUT & CONTAINER
======================================== */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 25px 20px;
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 25px;
    align-items: start;
}

/* ========================================
   SIDEBARS
======================================== */
.left-sidebar, .right-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) transparent;
}

.left-sidebar::-webkit-scrollbar, .right-sidebar::-webkit-scrollbar {
    width: 6px;
}

.left-sidebar::-webkit-scrollbar-thumb, .right-sidebar::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
}

.sidebar-section {
    background: var(--off-white);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.sidebar-section:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-title i {
    color: var(--gold);
    font-size: 16px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin: 6px 0;
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--text-dark);
    font-size: 14px;
    transition: var(--transition);
    cursor: pointer;
}

.menu-item:hover {
    background: var(--gold-light);
    color: var(--navy);
    transform: translateX(3px);
}

.menu-item.active {
    background: var(--gold);
    color: var(--navy);
}

.menu-item i {
    width: 20px;
    font-size: 16px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 12px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), transparent);
    border-radius: var(--radius-sm);
}

.stat-icon {
    font-size: 24px;
    color: var(--gold);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-light);
}

/* ========================================
   MAIN CONTENT
======================================== */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--maroon) 100%);
    border-radius: var(--radius);
    padding: 40px 30px;
    color: white;
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 15px;
    position: relative;
    line-height: 1.3;
}

.hero p {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 25px;
    position: relative;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    min-width: 100px;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--gold);
    line-height: 1.2;
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.2;
    margin-top: 4px;
}

/* Verse Card */
.verse-card {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--off-white) 100%);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
    border-left: 5px solid var(--gold);
    position: relative;
    box-shadow: var(--shadow);
}

.verse-card::before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 70px;
    opacity: 0.15;
    font-family: var(--font-heading);
    color: var(--navy);
    line-height: 1;
}

.verse-text {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 15px;
    line-height: 1.7;
    font-style: italic;
    position: relative;
    color: var(--navy);
    padding-left: 20px;
}

.verse-reference {
    font-size: 15px;
    font-weight: 700;
    color: var(--maroon);
    text-align: right;
    padding-right: 10px;
}

/* Quick Access */
.quick-access {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.access-card {
    background: var(--off-white);
    border-radius: var(--radius);
    padding: 25px 18px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.access-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
    background: linear-gradient(135deg, var(--gold-light), var(--off-white));
}

.access-icon {
    font-size: 36px;
    margin-bottom: 12px;
    color: var(--gold);
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.access-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 6px;
    color: var(--navy);
    line-height: 1.3;
}

.access-desc {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.4;
}

/* Content Sections */
.content-section {
    background: var(--off-white);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.2;
}

.section-title i {
    font-size: 20px;
    color: var(--gold);
}

.view-all {
    color: var(--maroon);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.view-all:hover {
    color: var(--maroon-light);
    transform: translateX(3px);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.article-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.article-image {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--maroon) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gold);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    color: var(--navy);
}

.article-content {
    padding: 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--navy);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-title a {
    color: inherit;
}

.article-title a:hover {
    color: var(--maroon);
}

.article-excerpt {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.article-meta i {
    margin-right: 4px;
}

/* AI Tools */
.ai-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.ai-tool-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.ai-tool-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
}

.tool-icon {
    width: 45px;
    height: 45px;
    background: var(--gold);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--navy);
    flex-shrink: 0;
}

.tool-title {
    font-weight: 700;
    font-size: 18px;
    color: var(--navy);
    line-height: 1.3;
}

.tool-desc {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 18px;
    line-height: 1.5;
}

.tool-input {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 15px;
    resize: vertical;
    font-family: var(--font-primary);
    transition: var(--transition);
    min-height: 90px;
}

.tool-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.tool-result {
    margin-top: 15px;
    padding: 15px;
    background: var(--warm-cream);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--gold);
}

.ai-response {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Prayer Wall */
.prayer-card {
    background: linear-gradient(145deg, var(--off-white), #f5f2e9);
    border-radius: var(--radius);
    padding: 20px;
    margin: 15px 0;
    border-left: 4px solid var(--gold);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.prayer-card:hover {
    box-shadow: var(--shadow);
    transform: translateX(3px);
}

.prayer-text {
    font-size: 14px;
    margin-bottom: 12px;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.6;
}

.prayer-author {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 12px;
}

.prayer-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pray-btn {
    background: var(--gold);
    color: var(--navy);
    border: none;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 12px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.pray-btn:hover {
    background: var(--gold-light);
    transform: scale(1.05);
}

.pray-btn.alt {
    background: var(--maroon);
    color: white;
}

.pray-btn.alt:hover {
    background: var(--maroon-light);
}

.pray-btn.reacted {
    opacity: 0.7;
    cursor: default;
}

/* Trending Topics */
.trending-item {
    padding: 14px;
    margin: 10px 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid var(--gold);
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.08) 0%, transparent 100%);
}

.trending-item:hover {
    background: var(--gold-light);
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.trending-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--navy);
    line-height: 1.3;
}

.trending-count {
    font-size: 12px;
    color: var(--text-light);
}

/* Ad Spaces */
.ad-space {
    background: linear-gradient(145deg, #f1f5f9, #ffffff);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #cbd5e1;
    box-shadow: var(--shadow-sm);
}

.ad-label {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* AI Powered Badge */
.ai-powered {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(212, 175, 55, 0.15);
    color: var(--navy);
    padding: 5px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    margin-top: 8px;
}

.ai-powered i {
    font-size: 12px;
}

/* Engagement Buttons */
.engagement-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.eng-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
}

.eng-btn:hover {
    background: var(--gold-light);
    border-color: var(--gold);
    color: var(--navy);
}

.eng-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
}

/* ========================================
   FORMS
======================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--navy);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
    font-family: var(--font-primary);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check label {
    margin: 0;
    font-weight: 400;
    cursor: pointer;
    font-size: 14px;
}

.form-text {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-light);
}

.password-input-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--gold);
}

.password-strength {
    margin-top: 8px;
}

/* Comment Section */
.comment-section {
    margin-top: 25px;
}

.comment-form {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.comment {
    background: white;
    padding: 15px;
    border-radius: var(--radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 8px;
}

.comment-author {
    font-weight: 600;
    color: var(--navy);
}

.comment-date {
    color: var(--text-muted);
}

.comment-content {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 14px;
    color: var(--text-dark);
}

.comment-actions {
    display: flex;
    gap: 10px;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: rgba(255,255,255,0.1);
    color: white;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.7);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255,255,255,0.15);
}

.newsletter-form .btn {
    flex-shrink: 0;
}





/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert i {
    font-size: 18px;
    flex-shrink: 0;
}

.alert ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.alert li {
    margin-bottom: 5px;
}

.alert-danger {
    background: rgba(229, 62, 62, 0.1);
    color: var(--error);
    border: 1px solid rgba(229, 62, 62, 0.3);
}

.alert-success {
    background: rgba(56, 161, 105, 0.1);
    color: var(--success);
    border: 1px solid rgba(56, 161, 105, 0.3);
}

.alert-warning {
    background: rgba(221, 107, 32, 0.1);
    color: var(--warning);
    border: 1px solid rgba(221, 107, 32, 0.3);
}

.alert-info {
    background: rgba(49, 130, 206, 0.1);
    color: var(--info);
    border: 1px solid rgba(49, 130, 206, 0.3);
}

/* Flash Messages */
.flash-message {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: var(--z-popover);
    max-width: 400px;
    animation: slideIn 0.3s ease;
    transition: opacity 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.flash-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid;
}

.flash-success .flash-content {
    border-color: var(--success);
}

.flash-error .flash-content {
    border-color: var(--error);
}

.flash-warning .flash-content {
    border-color: var(--warning);
}

.flash-info .flash-content {
    border-color: var(--info);
}

.flash-close {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 5px;
    margin-left: auto;
}

.flash-close:hover {
    color: var(--text-dark);
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
    background: var(--navy);
    color: white;
    padding: 50px 5% 30px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
}

.footer-brand {
}

.footer-tagline {
    margin: 15px 0 20px;
    opacity: 0.9;
    font-size: 14px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--gold);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
    transform: translateX(5px);
}

.footer-links i {
    width: 18px;
    font-size: 14px;
}

.footer-newsletter p {
    margin-bottom: 15px;
    opacity: 0.9;
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding-top: 25px;
}

.footer-bottom-content {
    max-width: 1600px;
    margin: 0 auto;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.footer-verse {
    font-style: italic;
    color: var(--gold-light);
}

/* ========================================
   MOBILE NAVIGATION
======================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 10px;
    z-index: var(--z-fixed);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.mobile-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255,255,255,0.7);
    font-size: 11px;
    transition: var(--transition);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    flex: 1;
    max-width: 70px;
}

.mobile-nav-item.active {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.15);
}

.mobile-nav-icon {
    font-size: 20px;
    margin-bottom: 4px;
    transition: var(--transition);
}

.mobile-nav-item.active .mobile-nav-icon {
    transform: scale(1.15);
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: var(--off-white);
    z-index: var(--z-modal);
    transition: var(--transition);
    overflow-y: auto;
    box-shadow: 2px 0 30px rgba(0,0,0,0.2);
    padding: 20px 15px;
}

.mobile-sidebar.active {
    left: 0;
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.mobile-sidebar-header h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-sidebar-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--navy);
    padding: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-sidebar-close:hover {
    color: var(--maroon);
    transform: scale(1.1);
}

.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: calc(var(--z-modal) - 1);
    display: none;
    backdrop-filter: blur(3px);
}

.mobile-sidebar-overlay.active {
    display: block;
}

.mobile-user-info {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, var(--gold-light), var(--off-white));
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.mobile-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-size: 24px;
}

.mobile-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-user-details {
    flex: 1;
}

.mobile-user-name {
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
    font-size: 16px;
}

.mobile-user-email {
    font-size: 13px;
    color: var(--text-light);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--gold);
    color: var(--navy);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: var(--z-fixed);
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--gold-light);
    transform: translateY(-5px);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    border-top-color: var(--gold);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Dynamic Content Loading */
.dynamic-content {
    position: relative;
}

.ai-loading {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.95);
    border-radius: var(--radius);
    z-index: 10;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
}

.ai-loading.active {
    display: flex;
}

/* No Data State */
.no-data {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    font-style: italic;
}

/* Utility Classes */
.mb-0 { margin-bottom: 0 !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }


/* ========================================
   HASHTAG DISPLAY FIX
   ======================================== */

/* Trending Hashtags Container */
.trending-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    max-height: 120px; /* Limit to approximately 2 lines */
    overflow: hidden;
    position: relative;
}

/* Individual Hashtag Badge */
.hashtag-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #754d01;
   color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    white-space: nowrap;
    border: 1px solid var(--border-color);
}

.hashtag-badge:hover {
    background: #9c025b;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.hashtag-badge i {
    font-size: 0.75rem;
}

.hashtag-count {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Trending Item Alternative Style (if using list format) */
.trending-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background var(--transition-base);
    margin-bottom: 8px;
    border-left: 3px solid transparent;
}

.trending-item:hover {
    background: var(--bg-secondary);
    border-left-color: var(--primary);
}

.trending-item .trending-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.trending-item .trending-title i {
    color: var(--primary);
    font-size: 0.75rem;
}

.trending-item .trending-count {
    font-size: 0.75rem;
    color: var(--text-light);
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

/* Compact Hashtag Grid - Shows only top trending */
.hashtag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.hashtag-grid .hashtag-badge {
    justify-content: center;
    font-size: 0.8125rem;
}

/* Limit visible hashtags */
.trending-hashtags .hashtag-badge:nth-child(n+9) {
    display: none; /* Hide after 8 hashtags */
}

/* Single line version */
.trending-hashtags.single-line {
    max-height: 40px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.trending-hashtags.single-line::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Two line version (default) */
.trending-hashtags.two-lines {
    max-height: 80px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .trending-hashtags {
        max-height: 70px;
        gap: 6px;
    }
    
    .hashtag-badge {
        padding: 5px 10px;
        font-size: 0.8125rem;
    }
    
    .trending-hashtags .hashtag-badge:nth-child(n+7) {
        display: none; /* Show fewer on mobile */
    }
    
    .trending-item {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .trending-hashtags {
        max-height: 60px;
        gap: 5px;
    }
    
    .hashtag-badge {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    
    .trending-hashtags .hashtag-badge:nth-child(n+6) {
        display: none; /* Show even fewer on small mobile */
    }
}

/* Right Sidebar Specific */
.right-sidebar .trending-hashtags {
    margin-bottom: 15px;
}

.right-sidebar .sidebar-section {
    max-height: none; /* Allow natural height */
}

/* View More Link for Hashtags */
.view-more-hashtags {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 8px;
    text-decoration: none;
    transition: gap var(--transition-base);
}

.view-more-hashtags:hover {
    gap: 6px;
}

.view-more-hashtags i {
    font-size: 0.75rem;
}


/* ========================================
   RESPONSIVE CARD IMPROVEMENTS
======================================== */

/* Articles Grid - Better Responsive */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

@media (max-width: 992px) {
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Prayer Wall Cards - Mobile Responsive */
#prayer-wall > div {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    #prayer-wall > div {
        margin-bottom: 18px;
        padding: 18px !important;
    }
    
    #prayer-wall > div > div[style*="font-size: 15px"] {
        font-size: 14px !important;
        padding-left: 18px !important;
    }
    
    /* Reactions on mobile */
    #prayer-wall > div > div[style*="display: flex; gap: 10px"] {
        gap: 8px !important;
    }
    
    #prayer-wall button[class="react-btn-inline"] {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
    
    #prayer-wall button[class="react-btn-inline"] small {
        display: none !important;
    }
    
    /* Share buttons on mobile */
    #prayer-wall > div > div[style*="padding-top: 12px"] {
        flex-wrap: wrap !important;
    }
    
    #prayer-wall button[class="share-btn-mini"] {
        font-size: 12px !important;
        padding: 0 8px !important;
        min-width: 70px !important;
    }
}

@media (max-width: 480px) {
    #prayer-wall button[class="react-btn-inline"] {
        flex: 1 1 auto !important;
        justify-content: center !important;
        padding: 6px 8px !important;
    }
    
    #prayer-wall button[class="share-btn-mini"] {
        flex: 1 1 calc(50% - 4px) !important;
    }
}

/* Devotional Cards - Mobile Responsive */
@media (max-width: 768px) {
    .articles-grid > div {
        max-width: 100%;
    }
    
    .articles-grid > div > div[style*="position: relative"] {
        height: 180px !important;
    }
    
    .articles-grid > div > div[style*="padding: 20px"] {
        padding: 18px !important;
    }
    
    .articles-grid h3 {
        font-size: 16px !important;
    }
    
    .articles-grid p[style*="font-size: 14px"] {
        font-size: 13px !important;
    }
    
    /* Share buttons in devotionals */
    .articles-grid > div > div > div[style*="display: flex; gap: 8px"] button {
        min-width: 36px !important;
        height: 34px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .articles-grid > div > div[style*="position: relative"] {
        height: 160px !important;
    }
    
    .articles-grid > div > div[style*="padding: 20px"],
    .articles-grid > div > div[style*="padding: 18px"] {
        padding: 15px !important;
    }
}

/* Hover effects on mobile - disable */
@media (hover: none) and (pointer: coarse) {
    .articles-grid > div,
    #prayer-wall > div {
        transition: none !important;
    }
}

/* Ensure share buttons maintain size */
.share-btn-mini {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* React button improvements */
.react-btn-inline {
    white-space: nowrap;
}

.react-btn-inline.reacted {
    opacity: 0.7 !important;
    cursor: default !important;
    pointer-events: none;
}

/* Loading state for buttons */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: button-spinner 0.6s linear infinite;
}

@keyframes button-spinner {
    to { transform: rotate(360deg); }
}

/* Improve touch targets on mobile */
@media (max-width: 768px) {
    button,
    a[role="button"],
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .share-btn-mini,
    .react-btn-inline {
        min-height: 40px;
    }
}

/* Print styles for cards */
@media print {
    .share-btn-mini,
    .react-btn-inline {
        display: none !important;
    }
    
    .articles-grid,
    #prayer-wall {
        break-inside: avoid;
    }
}


/* ========================================
   RESPONSIVE DESIGN
======================================== */

/* Large Desktops */
@media (min-width: 1400px) {
    .container {
        grid-template-columns: 300px 1fr 340px;
        gap: 30px;
        padding: 30px 25px;
    }
}

/* Laptops & Small Desktops */
@media (max-width: 1200px) {
    .container {
        grid-template-columns: 260px 1fr 300px;
        gap: 20px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* Tablets */
@media (max-width: 992px) {
    body {
        padding-bottom: 70px;
    }
    
    .container {
        grid-template-columns: 1fr;
        padding: 20px 15px;
    }
    
    .left-sidebar,
    .right-sidebar {
        display: none;
    }
    
    .mobile-bottom-nav {
        display: block;
    }
    
    .header-top {
        display: block;
    }
    
    .header-main {
        padding: 12px 4%;
    }
    
    .header-container {
        flex-wrap: wrap;
    }
    
    .search-bar {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 12px;
    }
    
    .mobile-header-actions {
        display: flex;
    }
    
    .header-actions {
        display: none;
    }
    
    .hero {
        padding: 35px 25px;
    }
    
    .hero h1 {
        font-size: 26px;
    }
    
    .hero p {
        font-size: 15px;
    }
    
    .hero-stats {
        gap: 25px;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }
    
    .ai-tools {
        grid-template-columns: 1fr;
    }
    


    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Mobile Landscape & Small Tablets */
@media (max-width: 768px) {
    .container {
        padding: 15px 12px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .logo-icon {
        font-size: 22px;
    }
    
    .hero {
        padding: 30px 20px;
        margin-bottom: 20px;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .quick-access {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .access-card {
        padding: 20px 15px;
    }
    
    .access-icon {
        font-size: 32px;
        height: 40px;
    }
    
    .access-title {
        font-size: 14px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .section-title {
        font-size: 19px;
    }
    
    .form-row-2 {
        grid-template-columns: 1fr;
    }
    

    
    .auth-header h1 {
        font-size: 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .flash-message {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .container {
        padding: 12px 10px;
    }
    
    .header-top {
        font-size: 11px;
        padding: 6px 0;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .hero {
        padding: 25px 15px;
        margin-bottom: 15px;
    }
    
    .hero h1 {
        font-size: 20px;
    }
    
    .hero p {
        font-size: 13px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat {
        min-width: 120px;
    }
    
    .verse-card {
        padding: 18px;
    }
    
    .verse-text {
        font-size: 15px;
    }
    
    .content-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .section-title {
        font-size: 17px;
    }
    
    .quick-access {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .ai-tool-card {
        padding: 20px 15px;
    }
    
    .tool-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .tool-title {
        font-size: 16px;
    }
    
    .mobile-bottom-nav {
        padding: 8px;
    }
    
    .mobile-nav-item {
        font-size: 10px;
        padding: 4px 6px;
    }
    
    .mobile-nav-icon {
        font-size: 18px;
    }
    

    
    .auth-logo {
        font-size: 26px;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .quick-access {
        grid-template-columns: 1fr;
    }
    
    .access-card {
        padding: 18px 12px;
    }
}

/* Desktop-only visibility */
@media (min-width: 993px) {
    .mobile-bottom-nav,
    .mobile-header-actions,
    .mobile-sidebar,
    .mobile-sidebar-overlay {
        display: none !important;
    }
    
    .header-actions {
        display: flex !important;
    }
    
    .header-top {
        display: block;
    }
}

/* Prevent zoom on iOS inputs */
@media (max-width: 768px) {
    input, select, textarea, button {
        font-size: 16px !important;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-icon,
    .access-icon,
    .tool-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape orientation */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding: 20px 25px;
    }
    
    .hero h1 {
        font-size: 22px;
    }
    
    .hero p {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .mobile-bottom-nav {
        padding: 6px 8px;
    }
    
    .left-sidebar,
    .right-sidebar {
        max-height: calc(100vh - 80px);
    }
}

/* Print styles */
@media print {
    header,
    .mobile-bottom-nav,
    .left-sidebar,
    .right-sidebar,
    .view-all,
    .btn,
    .ad-space,
    .social-links,
    .engagement-buttons,
    .prayer-actions,
    .back-to-top,
    .flash-message {
        display: none !important;
    }
    
    .container {
        grid-template-columns: 1fr;
        padding: 0;
        max-width: 100%;
    }
    
    body {
        background: white;
        color: black;
        font-size: 12pt;
        line-height: 1.5;
        padding-bottom: 0;
    }
    
    .content-section,
    .article-card,
    .prayer-card {
        box-shadow: none;
        border: 1px solid #ccc;
        margin-bottom: 15pt;
        page-break-inside: avoid;
    }
    
    .hero {
        background: #f0f0f0;
        color: black;
        page-break-after: avoid;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    .site-footer {
        background: none;
        color: black;
        border-top: 2px solid black;
        padding: 20pt 0;
    }
}

/* Reduced motion preference */
@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;
    }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here if needed */
}

/* ========================================
   ANIMATIONS & KEYFRAMES
======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Apply animations to elements */
.hero {
    animation: fadeIn 0.6s ease-out;
}

.article-card {
    animation: fadeIn 0.4s ease-out;
}

.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.2s; }
.article-card:nth-child(3) { animation-delay: 0.3s; }
.article-card:nth-child(4) { animation-delay: 0.4s; }
.article-card:nth-child(5) { animation-delay: 0.5s; }
.article-card:nth-child(6) { animation-delay: 0.6s; }

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--gold);
    color: var(--navy);
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    z-index: var(--z-tooltip);
}

.skip-to-main:focus {
    top: 0;
}

/* Improve touch targets for mobile */
@media (max-width: 768px) {
    button,
    a,
    .mobile-nav-item,
    .menu-item {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ========================================
   CUSTOM SCROLLBAR
======================================== */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--warm-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 6px;
    border: 3px solid var(--warm-cream);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--gold) var(--warm-cream);
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
======================================== */
.article-image,
.access-icon,
.tool-icon {
    will-change: transform;
}

.article-card:hover,
.access-card:hover,
.sidebar-section:hover {
    will-change: transform, box-shadow;
}

/* Smooth scroll for anchors */
html {
    scroll-padding-top: 100px;
}

/* ========================================
   ADDITIONAL UTILITY CLASSES
======================================== */
.text-gold { color: var(--gold) !important; }
.text-navy { color: var(--navy) !important; }
.text-maroon { color: var(--maroon) !important; }
.text-white { color: white !important; }
.text-muted { color: var(--text-muted) !important; }

.bg-gold { background-color: var(--gold) !important; }
.bg-navy { background-color: var(--navy) !important; }
.bg-white { background-color: white !important; }
.bg-cream { background-color: var(--warm-cream) !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: var(--spacing-sm) !important; }
.p-2 { padding: var(--spacing) !important; }
.p-3 { padding: var(--spacing-lg) !important; }

.m-0 { margin: 0 !important; }
.m-1 { margin: var(--spacing-sm) !important; }
.m-2 { margin: var(--spacing) !important; }
.m-3 { margin: var(--spacing-lg) !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--spacing-sm) !important; }
.mt-2 { margin-top: var(--spacing) !important; }
.mt-3 { margin-top: var(--spacing-lg) !important; }

.mb-1 { margin-bottom: var(--spacing-sm) !important; }
.mb-2 { margin-bottom: var(--spacing) !important; }
.mb-3 { margin-bottom: var(--spacing-lg) !important; }

.rounded { border-radius: var(--radius) !important; }
.rounded-sm { border-radius: var(--radius-sm) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-full { border-radius: var(--radius-full) !important; }

.shadow { box-shadow: var(--shadow) !important; }
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-none { box-shadow: none !important; }

.fw-normal { font-weight: 400 !important; }
.fw-medium { font-weight: 500 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-bold { font-weight: 700 !important; }

.fs-small { font-size: 12px !important; }
.fs-normal { font-size: 14px !important; }
.fs-large { font-size: 16px !important; }
.fs-xlarge { font-size: 20px !important; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-grid { display: grid !important; }

.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-end { justify-content: flex-end !important; }

.align-center { align-items: center !important; }
.align-start { align-items: flex-start !important; }
.align-end { align-items: flex-end !important; }

.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }

.gap-1 { gap: var(--spacing-sm) !important; }
.gap-2 { gap: var(--spacing) !important; }
.gap-3 { gap: var(--spacing-lg) !important; }

.cursor-pointer { cursor: pointer !important; }
.cursor-not-allowed { cursor: not-allowed !important; }

.overflow-hidden { overflow: hidden !important; }
.overflow-auto { overflow: auto !important; }

.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }
.position-sticky { position: sticky !important; }

/* ========================================
   BROWSER COMPATIBILITY FIXES
======================================== */
/* Fix for Safari */
@supports (-webkit-appearance: none) {
    .search-bar input,
    .form-control {
        -webkit-appearance: none;
    }
}

/* Fix for Firefox */
@-moz-document url-prefix() {
    .hero {
        background-attachment: scroll;
    }
}

/* Fix for Edge */
@supports (-ms-ime-align: auto) {
    .container {
        display: -ms-grid;
    }
}

/* ========================================
   THEME TOGGLE (Future Enhancement)
======================================== */
.theme-toggle {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--navy);
    color: var(--gold);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: var(--z-fixed);
    display: none; /* Hidden by default */
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: var(--navy-light);
}

/* ========================================
   SPECIAL EFFECTS
======================================== */
.gradient-text {
    background: linear-gradient(135deg, var(--gold) 0%, var(--maroon) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Skeleton Loading State */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-text {
    height: 12px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-title {
    height: 20px;
    margin-bottom: 12px;
    border-radius: 4px;
    width: 60%;
}

.skeleton-image {
    height: 160px;
    border-radius: var(--radius);
}




/* ========================================
   ADDITIONAL STYLES FOR HOMEPAGE FEATURES
======================================== */

/* Prayer Reactions Inline */
.prayer-reactions-inline {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.react-btn-inline {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-dark);
}

.react-btn-inline:hover:not(.reacted) {
    background: var(--gold);
    color: var(--navy);
    transform: scale(1.05);
}

.react-btn-inline.reacted {
    background: var(--gold);
    color: var(--navy);
    opacity: 0.8;
    cursor: default;
}

.react-btn-inline i {
    font-size: 14px;
}

.react-btn-inline span {
    font-weight: 700;
}

/* Share Buttons Inline */
.share-buttons-inline {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.share-btn-mini {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-dark);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn-mini:hover {
    transform: scale(1.1);
}

.share-btn-mini[data-share="facebook"]:hover {
    background: #1877f2;
    color: white;
}

.share-btn-mini[data-share="twitter"]:hover {
    background: #1da1f2;
    color: white;
}

.share-btn-mini[data-share="whatsapp"]:hover {
    background: #25d366;
    color: white;
}

.share-btn-mini[data-share="copy"]:hover {
    background: var(--gold);
    color: var(--navy);
}

/* Responsive for Mobile */
@media (max-width: 768px) {
    .prayer-reactions-inline {
        gap: 6px;
    }
    
    .react-btn-inline {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .react-btn-inline i {
        font-size: 12px;
    }
    
    .share-btn-mini {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .share-buttons-inline {
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .prayer-reactions-inline {
        justify-content: space-between;
    }
    
    .react-btn-inline {
        flex: 1;
        justify-content: center;
        min-width: 0;
    }
}




/* Responsive Design Styles */
@media (max-width: 768px) {
    .page-header {
        padding: 30px 20px !important;
    }
    
    .page-header h1 {
        font-size: 26px !important;
    }
    
    .page-header p {
        font-size: 14px !important;
    }
    
    .icon-circle {
        width: 60px !important;
        height: 60px !important;
    }
    
    .icon-circle i {
        font-size: 28px !important;
    }
    
    .filter-container {
        padding: 16px 15px !important;
    }
    
    .filter-header {
        border-right: none !important;
        padding-right: 0 !important;
        margin-bottom: 12px;
        width: 100%;
    }
    
    .filter-buttons-wrapper {
        width: 100%;
    }
    
    .filter-btn {
        padding: 9px 14px !important;
        font-size: 12px !important;
        flex: 1;
        min-width: calc(50% - 5px);
    }
    
    .filter-btn i {
        margin-right: 4px;
    }
    
    .devotional-card {
        padding: 18px !important;
        margin-bottom: 18px !important;
    }
    
    .devotional-header {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .card-category-badge {
        width: 100%;
        justify-content: center;
        margin-top: 12px;
    }
    
    .devotional-title {
        font-size: 18px !important;
    }
    
    .devotional-excerpt {
        font-size: 14px !important;
        padding-left: 18px !important;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
    
    .share-btn-mini {
        height: 38px !important;
        font-size: 0 !important;
        padding: 0 !important;
        width: 48px !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .share-btn-mini i {
        font-size: 18px !important;
        margin: 0 !important;
    }
    
    .section-header {
        font-size: 20px !important;
    }
    
    .section-header i {
        font-size: 22px !important;
    }
    
    .pagination-wrapper {
        gap: 6px !important;
    }
    
    .pagination-btn {
        padding: 10px 18px !important;
        font-size: 12px !important;
    }
    
    .pagination-number {
        width: 40px !important;
        height: 40px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 24px 16px !important;
    }
    
    .page-header h1 {
        font-size: 22px !important;
    }
    
    .page-header p {
        font-size: 12px !important;
    }
    
    .icon-circle {
        width: 50px !important;
        height: 50px !important;
    }
    
    .icon-circle i {
        font-size: 24px !important;
    }
    
    .filter-container {
        padding: 14px 12px !important;
    }
    
    .filter-header {
        font-size: 13px !important;
    }
    
    .filter-btn {
        padding: 8px 12px !important;
        font-size: 11px !important;
        min-width: calc(50% - 4px);
    }
    
    .devotional-card {
        padding: 16px !important;
        margin-bottom: 16px !important;
        border-radius: 12px !important;
    }
    
    .devotional-title {
        font-size: 16px !important;
    }
    
    .devotional-excerpt {
        font-size: 13px !important;
        padding-left: 16px !important;
    }
    
    .share-btn-mini {
        height: 36px !important;
        width: 44px !important;
        font-size: 0 !important;
    }
    
    .share-btn-mini i {
        font-size: 16px !important;
    }
    
    .section-header {
        font-size: 18px !important;
    }
    
    .section-header i {
        font-size: 20px !important;
    }
    
    .pagination-number {
        width: 36px !important;
        height: 36px !important;
        font-size: 12px !important;
    }
    
    .read-more-btn {
        padding: 10px 18px !important;
        font-size: 13px !important;
    }
    
    .read-more-btn i {
        font-size: 14px !important;
    }
}



/* Responsive Design Styles */
@media (max-width: 768px) {
    .page-header {
        padding: 30px 20px !important;
    }
    
    .page-header h1 {
        font-size: 26px !important;
    }
    
    .page-header p {
        font-size: 14px !important;
    }
    
    .icon-circle {
        width: 60px !important;
        height: 60px !important;
    }
    
    .icon-circle i {
        font-size: 28px !important;
    }
    
    .filter-container {
        padding: 16px 15px !important;
    }
    
    .filter-header {
        border-right: none !important;
        padding-right: 0 !important;
        margin-bottom: 12px;
        width: 100%;
    }
    
    .filter-buttons-wrapper {
        width: 100%;
    }
    
    .filter-btn {
        padding: 9px 14px !important;
        font-size: 12px !important;
        flex: 1;
        min-width: calc(50% - 5px);
    }
    
    .filter-btn i {
        margin-right: 4px;
    }
    
    .devotional-card {
        padding: 18px !important;
        margin-bottom: 18px !important;
    }
    
    .devotional-header {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .card-category-badge {
        width: 100%;
        justify-content: center;
        margin-top: 12px;
    }
    
    .devotional-title {
        font-size: 18px !important;
    }
    
    .devotional-excerpt {
        font-size: 14px !important;
        padding-left: 18px !important;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
    
    .share-btn-mini {
        height: 38px !important;
        font-size: 0 !important;
        padding: 0 !important;
        width: 48px !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .share-btn-mini i {
        font-size: 18px !important;
        margin: 0 !important;
    }
    
    .section-header {
        font-size: 20px !important;
    }
    
    .section-header i {
        font-size: 22px !important;
    }
    
    .pagination-wrapper {
        gap: 6px !important;
    }
    
    .pagination-btn {
        padding: 10px 18px !important;
        font-size: 12px !important;
    }
    
    .pagination-number {
        width: 40px !important;
        height: 40px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 24px 16px !important;
    }
    
    .page-header h1 {
        font-size: 22px !important;
    }
    
    .page-header p {
        font-size: 12px !important;
    }
    
    .icon-circle {
        width: 50px !important;
        height: 50px !important;
    }
    
    .icon-circle i {
        font-size: 24px !important;
    }
    
    .filter-container {
        padding: 14px 12px !important;
    }
    
    .filter-header {
        font-size: 13px !important;
    }
    
    .filter-btn {
        padding: 8px 12px !important;
        font-size: 11px !important;
        min-width: calc(50% - 4px);
    }
    
    .devotional-card {
        padding: 16px !important;
        margin-bottom: 16px !important;
        border-radius: 12px !important;
    }
    
    .devotional-title {
        font-size: 16px !important;
    }
    
    .devotional-excerpt {
        font-size: 13px !important;
        padding-left: 16px !important;
    }
    
    .share-btn-mini {
        height: 36px !important;
        width: 44px !important;
        font-size: 0 !important;
    }
    
    .share-btn-mini i {
        font-size: 16px !important;
    }
    
    .section-header {
        font-size: 18px !important;
    }
    
    .section-header i {
        font-size: 20px !important;
    }
    
    .pagination-number {
        width: 36px !important;
        height: 36px !important;
        font-size: 12px !important;
    }
    
    .read-more-btn {
        padding: 10px 18px !important;
        font-size: 13px !important;
    }
    
    .read-more-btn i {
        font-size: 14px !important;
    }
}



/* Mobile Responsive Styles for Prayer Wall */

/* Hide text in share and reaction buttons on mobile, keep only icons */
@media (max-width: 768px) {
    /* Hide share button text on mobile */
    .share-btn-mini .share-text,
    .share-text {
        display: none !important;
    }
    
    /* Hide reaction button text on mobile */
    .react-btn-inline .reaction-text,
    .reaction-text {
        display: none !important;
    }
    
    /* Adjust share buttons for mobile */
    .share-buttons {
        gap: 8px !important;
    }
    
    .share-btn-mini {
        min-width: 50px !important;
        padding: 10px 12px !important;
        font-size: 16px !important;
    }
    
    /* Adjust reaction buttons for mobile */
    .prayer-actions {
        gap: 8px !important;
    }
    
    .react-btn-inline {
        min-width: 60px !important;
        padding: 10px 12px !important;
        font-size: 16px !important;
        gap: 6px !important;
    }
    
    /* Make reaction button icons slightly larger on mobile */
    .react-btn-inline i {
        font-size: 16px !important;
    }
    
    /* Ensure count badges are visible and properly sized */
    .react-btn-inline span:last-child {
        padding: 4px 8px !important;
        font-size: 11px !important;
    }
    
    /* Filter buttons responsiveness */
    .filter-container {
        padding: 15px 20px !important;
    }
    
    .filter-header {
        width: 100%;
        border-right: none !important;
        border-bottom: 2px solid #E5E7EB !important;
        padding-bottom: 10px !important;
        padding-right: 0 !important;
        margin-bottom: 10px !important;
    }
    
    .filter-buttons-wrapper {
        width: 100%;
    }
    
    .filter-btn {
        font-size: 13px !important;
        padding: 8px 16px !important;
    }
    
    /* Prayer card adjustments */
    .prayer-card {
        padding: 20px !important;
        margin-bottom: 20px !important;
    }
    
    .prayer-header {
        flex-wrap: wrap !important;
    }
    
    /* Make answered badge stack on mobile if needed */
    .answered-badge {
        margin-top: 10px;
        width: 100%;
        justify-content: center !important;
    }
    
    /* Page header adjustments */
    .page-header h1 {
        font-size: 28px !important;
    }
    
    .page-header p {
        font-size: 14px !important;
    }
    
    /* Pagination adjustments */
    .pagination-wrapper {
        gap: 6px !important;
    }
    
    .pagination-btn {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }
    
    .pagination-number {
        width: 40px !important;
        height: 40px !important;
        font-size: 14px !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    /* Further reduce padding on very small screens */
    .prayer-card {
        padding: 15px !important;
    }
    
    /* Keep reaction buttons in one row, just more compact */
    .prayer-actions {
        gap: 6px !important;
    }
    
    .react-btn-inline {
        min-width: 50px !important;
        padding: 10px 8px !important;
        font-size: 14px !important;
        gap: 4px !important;
    }
    
    /* Make count badges smaller on very small screens */
    .react-btn-inline span:last-child {
        padding: 3px 6px !important;
        font-size: 10px !important;
    }
    
    /* Keep share buttons in single row too */
    .share-buttons {
        gap: 6px !important;
    }
    
    .share-btn-mini {
        min-width: 45px !important;
        padding: 10px 10px !important;
    }
    
    .filter-btn {
        font-size: 12px !important;
        padding: 8px 14px !important;
    }
    
    .page-header h1 {
        font-size: 24px !important;
    }
    
    .section-header h2 {
        font-size: 20px !important;
    }
    
    .prayer-title {
        font-size: 18px !important;
    }
}

/* Landscape mobile orientation */
@media (max-width: 896px) and (orientation: landscape) {
    .page-header {
        padding: 30px 20px !important;
    }
    
    .icon-circle {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 15px !important;
    }
    
    .icon-circle i {
        font-size: 25px !important;
    }
}



/* Mobile Responsive Styles for Dating Wall */

/* Tablet and below */
@media (max-width: 768px) {
    /* Hide text in buttons on mobile, keep only icons */
    .btn-text,
    .action-text,
    .link-text,
    .badge-text {
        display: none !important;
    }
    
    /* Page header adjustments */
    .page-header h1 {
        font-size: 28px !important;
    }
    
    .page-header p {
        font-size: 14px !important;
    }
    
    .icon-circle {
        width: 60px !important;
        height: 60px !important;
    }
    
    .icon-circle i {
        font-size: 30px !important;
    }
    
    /* Create profile button */
    .btn-primary {
        padding: 12px 24px !important;
        font-size: 14px !important;
        gap: 8px !important;
    }
    
    /* Filter container adjustments */
    .dating-filter {
        padding: 15px 20px !important;
    }
    
    .dating-filter > div {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .filter-select {
        padding: 10px 14px !important;
        font-size: 14px !important;
    }
    
    .apply-filter-btn {
        margin-top: 5px;
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
    
    /* Profiles grid - single column on mobile */
    .profiles-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* Profile card adjustments */
    .profile-card {
        max-width: 100%;
    }
    
    .profile-image {
        height: 200px !important;
    }
    
    .profile-image i {
        font-size: 60px !important;
    }
    
    .active-badge {
        padding: 5px 10px !important;
        font-size: 11px !important;
    }
    
    .profile-info {
        padding: 20px !important;
    }
    
    .profile-info h3 {
        font-size: 20px !important;
    }
    
    .profile-info p {
        font-size: 14px !important;
    }
    
    /* Action buttons - keep in one row with icons only */
    .profile-actions {
        gap: 8px !important;
    }
    
    .action-btn {
        min-width: 50px !important;
        padding: 12px 16px !important;
        font-size: 18px !important;
        gap: 6px !important;
    }
    
    /* Message link adjustments */
    .message-link a {
        font-size: 13px !important;
    }
    
    /* Safety tips adjustments */
    .safety-tips {
        padding: 20px !important;
    }
    
    .safety-tips h3 {
        font-size: 20px !important;
        margin-bottom: 15px !important;
    }
    
    .safety-tips ul {
        font-size: 14px !important;
        line-height: 1.8 !important;
    }
    
    .safety-tips li {
        margin-bottom: 8px !important;
    }
    
    /* Section header */
    .section-header h2 {
        font-size: 22px !important;
    }
    
    .section-header i {
        font-size: 24px !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    /* Further reduce padding on very small screens */
    .page-header {
        padding: 30px 20px !important;
    }
    
    .page-header h1 {
        font-size: 24px !important;
    }
    
    .page-header p {
        font-size: 13px !important;
    }
    
    .icon-circle {
        width: 50px !important;
        height: 50px !important;
    }
    
    .icon-circle i {
        font-size: 25px !important;
    }
    
    .btn-primary {
        padding: 10px 20px !important;
        font-size: 13px !important;
    }
    
    /* Filter adjustments */
    .dating-filter {
        padding: 15px !important;
    }
    
    .dating-filter label {
        font-size: 13px !important;
    }
    
    .filter-select {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }
    
    .apply-filter-btn {
        padding: 10px 14px !important;
        font-size: 13px !important;
    }
    
    /* Profile card further adjustments */
    .profile-info {
        padding: 15px !important;
    }
    
    .profile-info h3 {
        font-size: 18px !important;
    }
    
    .profile-info > p:first-of-type {
        font-size: 13px !important;
    }
    
    .profile-info > div span {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
    
    .profile-info > p:last-of-type {
        font-size: 14px !important;
    }
    
    /* Action buttons - more compact */
    .action-btn {
        min-width: 45px !important;
        padding: 10px 12px !important;
        font-size: 16px !important;
        gap: 4px !important;
    }
    
    .action-btn i {
        font-size: 16px !important;
    }
    
    /* Message link */
    .message-link {
        padding-top: 12px !important;
    }
    
    .message-link a {
        font-size: 12px !important;
        gap: 6px !important;
    }
    
    /* Safety tips */
    .safety-tips {
        padding: 15px !important;
    }
    
    .safety-tips h3 {
        font-size: 18px !important;
        margin-bottom: 12px !important;
    }
    
    .safety-tips ul {
        font-size: 13px !important;
    }
    
    .safety-tips li {
        gap: 10px !important;
    }
    
    .safety-tips i {
        font-size: 14px !important;
    }
    
    /* Section header */
    .section-header {
        flex-wrap: wrap;
    }
    
    .section-header h2 {
        font-size: 20px !important;
    }
    
    .section-header i {
        font-size: 22px !important;
    }
}

/* Landscape mobile orientation */
@media (max-width: 896px) and (orientation: landscape) {
    .page-header {
        padding: 25px 20px !important;
    }
    
    .profile-image {
        height: 180px !important;
    }
    
    .profiles-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Ensure profile cards don't get too wide on tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .profiles-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Animation adjustments for mobile */
@media (max-width: 768px) {
    .profile-card:hover {
        transform: translateY(-2px) !important;
    }
    
    .action-btn:hover {
        transform: scale(1.02) !important;
    }
}




/* ========================================
   END OF CSS
======================================== */

/* Version: 2.0 - Optimized & Complete */
/* Last Updated: 2025 */
/* ChristosHub - Growing Together in Faith */