/*
Theme Name: Journey to Discovery
Description: A complete Bible study management theme with categories, subcategories, studies, videos, and admin functionality. Optimized for the Journey 2 Discovery brand.
Version: 1.2.0
Author: Abdulsalam Toyin
Author URI: https://j2d.org.au
Text Domain: journey
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: church, bible-study, education, ministry, religious, community
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* ===== RESET AND BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f8fafc;
    color: #1f2937;
    line-height: 1.6;
}

/* ===== CSS VARIABLES - JOOMUNITED COLOR SCHEME ===== */
:root {
    --primary-green: #8BC34A;     /* Lime Green - Primary actions */
    --primary-orange: #FF9800;    /* Orange - Secondary actions */
    --primary-blue: #03A9F4;      /* Cyan Blue - Info elements */
    --primary-pink: #E91E63;      /* Magenta Pink - Accents */
    --primary-grey: #757575;      /* Grey - Text and neutral elements */
    
    /* Semantic color mapping */
    --color-primary: var(--primary-green);
    --color-secondary: var(--primary-blue);
    --color-accent: var(--primary-pink);
    --color-warning: var(--primary-orange);
    --color-info: var(--primary-blue);
    
    /* Text colors */
    --text-dark: #1f2937;
    --text-medium: var(--primary-grey);
    --text-light: #9ca3af;
    
    /* Background colors */
    --background-light: #f8fafc;
    --background-white: #ffffff;
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    
    /* Gradient combinations */
    --gradient-primary: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
    --gradient-secondary: linear-gradient(135deg, var(--primary-orange), var(--primary-pink));
    --gradient-accent: linear-gradient(135deg, var(--primary-blue), var(--primary-pink));
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ENHANCED HEADER STYLES ===== */
.site-header {
    background: var(--background-white);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 10px 0;
    gap: 30px;
}

/* ===== LOGO STYLING FOR WIDE FORMAT ===== */
.site-branding {
    display: flex;
    align-items: center;
}

.custom-logo-container {
    display: flex;
    align-items: center;
}

.custom-logo,
.custom-logo-container img {
    height: 50px;
    width: auto;
    max-width: 350px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Fallback Logo Styling - JoomUnited Color Scheme */
.logo-fallback {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    gap: 15px;
}

.logo-geometric {
    display: flex;
    align-items: center;
    gap: 2px;
    width: 60px;
    height: 40px;
    position: relative;
}

.logo-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.9;
}

.shape-1 {
    width: 25px;
    height: 25px;
    background: var(--primary-green);
    left: 0;
    top: 0;
}

.shape-2 {
    width: 25px;
    height: 25px;
    background: var(--primary-orange);
    left: 20px;
    top: 0;
}

.shape-3 {
    width: 25px;
    height: 25px;
    background: var(--primary-blue);
    left: 0;
    top: 15px;
}

.shape-4 {
    width: 25px;
    height: 25px;
    background: var(--primary-pink);
    left: 20px;
    top: 15px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-number {
    color: var(--primary-pink);
    font-style: italic;
    font-size: 28px;
    margin: 0 2px;
}

/* ===== NAVIGATION STYLES ===== */
.main-nav {
    justify-self: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.3s;
    font-size: 16px;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-green);
}

.main-nav a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { width: 0; }
    to { width: 100%; }
}

/* ===== HEADER ACTIONS ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-self: end;
}

.search-toggle,
.user-menu-toggle,
.login-link {
    background: #f3f4f6;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.search-toggle:hover,
.user-menu-toggle:hover,
.login-link:hover {
    background: var(--primary-green);
    color: white;
    transform: scale(1.05);
}

/* ===== USER MENU ===== */
.user-menu {
    position: relative;
}

.user-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.user-menu-dropdown.show {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.user-menu-dropdown a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-dark);
    transition: background-color 0.3s;
    font-size: 14px;
}

.user-menu-dropdown a:hover {
    background: var(--primary-yellow);
    color: white;
}

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

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-yellow));
    color: white;
    text-align: center;
    padding: 80px 20px;
    margin: 20px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="white" opacity="0.1"/><circle cx="40" cy="80" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== CATEGORIES SECTION ===== */
.categories-section {
    padding: 80px 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    text-align: center;
    flex-wrap: wrap;
    gap: 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-count {
    color: var(--text-medium);
    font-size: 1.1rem;
    background: var(--background-light);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
}

/* ===== CATEGORIES GRID ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.category-card {
    background: var(--background-white);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-yellow), var(--primary-blue));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

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

.category-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.category-card:hover .category-title {
    color: var(--primary-yellow);
}

.category-count {
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: 0;
    font-weight: 500;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    padding: 60px 20px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.content-card {
    background: var(--background-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    border: 1px solid var(--border-light);
    position: relative;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.content-thumbnail,
.video-thumbnail {
    width: 100%;
    height: 220px;
    background: var(--text-medium);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    overflow: hidden;
}

.content-thumbnail img,
.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.content-card:hover .content-thumbnail img,
.content-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.duration-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.content-info {
    padding: 25px;
}

.content-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.content-meta span {
    color: var(--text-medium);
    font-weight: 500;
}

.content-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.4;
}

.content-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.content-title a:hover {
    color: var(--primary-yellow);
}

.content-description {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.content-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
    min-height: 44px;
}

.btn-primary {
    background: var(--primary-yellow);
    color: white;
    border-color: var(--primary-yellow);
}

.btn-primary:hover {
    background: #E5A521;
    border-color: #E5A521;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 185, 44, 0.3);
}

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

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(125, 184, 216, 0.3);
}

.favorite-btn {
    padding: 8px 12px;
    min-width: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
}

.favorite-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.favorite-btn.is-favorite {
    background: #fef2f2;
    color: #ef4444;
    border-color: #ef4444;
}

/* ===== SEARCH AND FILTERS ===== */
.search-form-container {
    background: var(--background-white);
    border-top: 1px solid var(--border-light);
    padding: 25px 0;
    display: none;
}

.search-form-container.show {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.search-form {
    display: flex;
    gap: 12px;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.search-field {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--border-medium);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-field:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.1);
}

.search-submit,
.search-close {
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-submit {
    background: var(--primary-green);
    color: white;
}

.search-submit:hover {
    background: #7CB342;
    transform: translateY(-2px);
}

.search-close {
    background: #f3f4f6;
    color: var(--text-medium);
}

.search-close:hover {
    background: var(--border-medium);
}

/* ===== FILTER CHIPS ===== */
.filter-chips {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.filter-chip {
    padding: 8px 16px;
    background: var(--background-light);
    border: 1px solid var(--border-light);
    border-radius: 25px;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--text-medium);
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-chip:hover,
.filter-chip.active {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

/* Special styling for different filter types */
.filter-chip[data-type="video"]:hover,
.filter-chip[data-type="video"].active {
    background: var(--primary-pink);
    border-color: var(--primary-pink);
}

.filter-chip[data-type="category"]:hover,
.filter-chip[data-type="category"].active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.filter-chip[data-type="study"]:hover,
.filter-chip[data-type="study"].active {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
}

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 300px;
    height: 100vh;
    background: var(--background-white);
    z-index: 9999;
    transition: left 0.4s ease;
    overflow-y: auto;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu.show {
    left: 0;
}

.mobile-menu-content {
    padding: 80px 20px 20px;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-list li {
    margin-bottom: 5px;
}

.mobile-menu-list a,
.mobile-menu-link {
    display: block;
    padding: 15px 0;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-light);
    transition: color 0.3s ease;
    font-weight: 500;
}

.mobile-menu-list a:hover,
.mobile-menu-link:hover {
    color: var(--primary-yellow);
}

.mobile-menu-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--border-light);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--text-dark);
    color: white;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 60px 0 40px;
}

.footer-info .logo {
    margin-bottom: 20px;
}

.footer-description {
    color: #d1d5db;
    line-height: 1.8;
    max-width: 300px;
}

.footer-nav h4,
.footer-categories h4,
.footer-admin h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-nav ul,
.footer-categories ul,
.footer-admin ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li,
.footer-categories li,
.footer-admin li {
    margin-bottom: 12px;
}

.footer-nav a,
.footer-categories a,
.footer-admin a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover,
.footer-categories a:hover,
.footer-admin a:hover {
    color: var(--primary-yellow);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding: 25px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: #9ca3af;
    margin: 0;
}

.footer-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-stats span {
    color: #d1d5db;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(139, 195, 74, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #7CB342;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 195, 74, 0.4);
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.hidden { display: none; }
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.gap-10 { gap: 10px; }
.gap-15 { gap: 15px; }
.gap-20 { gap: 20px; }

/* ===== ANIMATION CLASSES ===== */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet Styles */
@media (max-width: 968px) {
    .header-content {
        grid-template-columns: auto 1fr auto;
        gap: 15px;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .custom-logo,
    .custom-logo-container img {
        height: 42px;
        max-width: 280px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* Mobile Styles */
@media (max-width: 640px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        gap: 10px;
        padding: 8px 0;
    }
    
    .custom-logo,
    .custom-logo-container img {
        height: 35px;
        max-width: 220px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .logo-geometric {
        width: 45px;
        height: 32px;
    }
    
    .header-actions .search-toggle {
        display: none;
    }
    
    .hero-section {
        padding: 60px 15px;
        margin: 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-card {
        padding: 30px 20px;
    }
    
    .category-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-field {
        width: 100%;
    }
    
    .filter-chips {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 40px 0 30px;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-stats {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .custom-logo,
    .custom-logo-container img {
        height: 30px;
        max-width: 180px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .categories-section,
    .content-section {
        padding: 40px 15px;
    }
    
    .category-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .footer-stats {
        flex-direction: column;
        gap: 8px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .site-header,
    .site-footer,
    .back-to-top,
    .mobile-menu,
    .search-form-container {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .content-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* ===== ENHANCED COLOR VARIATIONS ===== */

/* Color-coded category cards based on content type */
.category-card[data-category="discipleship"] .category-icon { background-color: rgba(139, 195, 74, 0.1); color: var(--primary-green); }
.category-card[data-category="fellowship"] .category-icon { background-color: rgba(255, 152, 0, 0.1); color: var(--primary-orange); }
.category-card[data-category="leadership"] .category-icon { background-color: rgba(3, 169, 244, 0.1); color: var(--primary-blue); }
.category-card[data-category="marriage"] .category-icon { background-color: rgba(233, 30, 99, 0.1); color: var(--primary-pink); }
.category-card[data-category="prayer"] .category-icon { background-color: rgba(117, 117, 117, 0.1); color: var(--primary-grey); }

/* Alternative button styles using different colors */
.btn-success {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.btn-info {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.btn-warning {
    background: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
}

.btn-danger {
    background: var(--primary-pink);
    color: white;
    border-color: var(--primary-pink);
}

/* Notification/Alert styles using the 5 colors */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background-color: rgba(139, 195, 74, 0.1);
    border-left-color: var(--primary-green);
    color: #2E7D32;
}

.alert-info {
    background-color: rgba(3, 169, 244, 0.1);
    border-left-color: var(--primary-blue);
    color: #0277BD;
}

.alert-warning {
    background-color: rgba(255, 152, 0, 0.1);
    border-left-color: var(--primary-orange);
    color: #F57C00;
}

.alert-danger {
    background-color: rgba(233, 30, 99, 0.1);
    border-left-color: var(--primary-pink);
    color: #C2185B;
}

/* Progress indicators using the color scheme */
.progress-bar {
    height: 6px;
    background: var(--border-light);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

/* Badge/Chip variations */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success { background: var(--primary-green); color: white; }
.badge-info { background: var(--primary-blue); color: white; }
.badge-warning { background: var(--primary-orange); color: white; }
.badge-danger { background: var(--primary-pink); color: white; }
.badge-neutral { background: var(--primary-grey); color: white; }
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid currentColor;
    }
    
    .category-card,
    .content-card {
        border: 2px solid currentColor;
    }
}

/* ===== FOCUS STYLES FOR ACCESSIBILITY ===== */
*:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

.btn:focus,
.search-field:focus,
.filter-chip:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Enhanced Landing Page Styles - Add to your style.css */

/* ===== HERO SECTION ENHANCEMENTS ===== */
.hero-landing {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image-container img,
.hero-video-container video,
.hero-video-container iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: 0 20px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    opacity: 0.95;
}

.btn-journey-primary {
    background: linear-gradient(135deg, #F59E0B, #F97316);
    color: white;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    transition: all 0.3s ease;
    border: none;
    margin-bottom: 3rem;
    text-transform: none;
}

.btn-journey-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, #F97316, #EA580C);
    color: white;
    text-decoration: none;
}

.btn-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

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

/* Scroll indicator styling */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

.scroll-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.scroll-arrow {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.scroll-arrow span {
    display: block;
    width: 2px;
    height: 8px;
    background: white;
    animation: scrollAnimation 2s infinite;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

.scroll-arrow span:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-arrow span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scrollAnimation {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(5px); }
}

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

/* ===== STATISTICS SECTION ===== */
.stats-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 80px 0;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F59E0B, #F97316);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 10px;
    line-height: 1;
    background: linear-gradient(135deg, #F59E0B, #F97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #6b7280;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== CATEGORIES SECTION ===== */
.featured-categories {
    background: white;
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 3rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #F59E0B, #F97316);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.3rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.categories-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.category-preview-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.category-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4F46E5, #7C3AED);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-preview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    color: inherit;
}

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

.category-preview-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    transition: all 0.4s ease;
}

.category-preview-card:hover .category-preview-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-preview-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.category-preview-card:hover .category-preview-title {
    color: #4F46E5;
}

.category-preview-count {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.category-preview-arrow {
    font-size: 1.2rem;
    color: #F59E0B;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-10px);
}

.category-preview-card:hover .category-preview-arrow {
    opacity: 1;
    transform: translateX(0);
}

.categories-action {
    text-align: center;
}

.btn-secondary {
    background: transparent;
    color: #4F46E5;
    border: 2px solid #4F46E5;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: #4F46E5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
    text-decoration: none;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="white" opacity="0.1"/><circle cx="40" cy="80" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: white;
    color: #4F46E5;
    transform: translateY(-2px);
    text-decoration: none;
}

/* ===== FLOATING ELEMENTS ===== */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    animation: floatAnimation 8s infinite ease-in-out;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    bottom: 30%;
    left: 25%;
    animation-delay: 4s;
}

.floating-element:nth-child(4) {
    top: 35%;
    right: 15%;
    animation-delay: 6s;
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(5deg); }
    66% { transform: translateY(10px) rotate(-5deg); }
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .btn-journey-primary {
        padding: 15px 30px;
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .categories-preview {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .floating-elements {
        display: none; /* Hide floating elements on mobile for performance */
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-item {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .featured-categories,
    .stats-section {
        padding: 60px 0;
    }
}
