/* 
 * Ghartal Kalan - Modern Elegant Light Theme
 * Redesigned for simplicity and elegance
 */

/* Google Fonts - Elegant Typography */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

/* Modern CSS Variables */
:root {
    /* Elegant Color Palette */
    --primary: #1a5f7a;
    --primary-light: #2d8cb8;
    --primary-dark: #134b61;
    --accent: #c9a227;
    --accent-light: #e6c455;
    --success: #2d8a5f;
    --danger: #c9443e;
    --warning: #d9a21b;
    
    /* Light Theme Colors */
    --bg-primary: #fafbfc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f5f7f9;
    --bg-card: #ffffff;
    
    /* Text Colors */
    --text-primary: #1a2332;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-light: #a0aec0;
    
    /* Borders & Shadows */
    --border-light: #e8ecf1;
    --border-medium: #d1d9e6;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 0 !important; /* Override styles.css padding */
    margin-top: 0 !important;
}

/* Remove extra container padding on index */
.modern-header .container,
.modern-header .container-fluid {
    padding-top: 0;
}

/* ================================
   HEADER SECTION
================================ */
.modern-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    padding: 10px 0;
    position: relative;
    z-index: 100;
    margin-top: 0;
}

.modern-header::before {
    display: none;
}

.header-gradient {
    display: none;
}

/* Logo Section */
.logo-section {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
    transition: var(--transition-normal);
}

.logo-link:hover {
    transform: translateY(-2px);
}

.logo-container {
    position: relative;
}

.main-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-light);
    transition: var(--transition-normal);
}

.logo-link:hover .main-logo {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.logo-glow {
    display: none;
}

.village-info {
    color: var(--text-primary);
}

.village-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: 0.5px;
    }

.village-code {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Date Section */
.date-section {
    text-align: center;
    color: var(--text-primary);
}

.current-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.current-date i {
    color: var(--primary);
}

.live-time {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

/* Prayer Times - Compact */
.prayer-times-modern {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    color: white;
}

.prayer-header {
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
    opacity: 0.9;
}

.prayer-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}

.prayer-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    padding: 6px 4px;
    text-align: center;
    transition: var(--transition-fast);
}

.prayer-item:hover {
    background: rgba(255, 255, 255, 0.25);
}

.prayer-item.active {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.prayer-name {
    font-size: 0.65rem;
    display: block;
    opacity: 0.85;
    margin-bottom: 2px;
}

.prayer-time {
    font-size: 0.75rem;
    font-weight: 700;
    display: block;
}

.prayer-countdown {
    font-size: 0.55rem;
    color: var(--accent-light);
    min-height: 12px;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-modern {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-modern:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-modern.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

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

.btn-modern.btn-outline-danger:hover {
    background: var(--danger);
    color: white;
}

/* Mobile Menu Button */
.mobile-menu-btn .btn-modern {
    padding: 10px 16px;
}

/* ================================
   HERO SECTION - Slider + Action Buttons
================================ */
.hero-modern {
    padding: 32px 0;
    background: var(--bg-tertiary);
}

.hero-background {
    display: none;
}

.hero-row {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

/* Slider Container */
.slider-modern {
    flex: 1;
    max-width: none;
    height: 380px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.main-slider-modern {
    height: 100%;
    width: 100%;
}

.slide-modern {
    height: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.slide-image-modern {
    width: 100%;
    height: 100%;
}

.slide-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content-modern {
    display: none;
}

/* Slider Controls */
.swiper-pagination-modern {
    bottom: 16px !important;
}

.swiper-pagination-modern .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: var(--transition-fast);
}

.swiper-pagination-modern .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 4px;
    background: white;
}

.swiper-button-next-modern,
.swiper-button-prev-modern {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-normal);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.swiper-button-next-modern { right: 16px; }
.swiper-button-prev-modern { left: 16px; }

.swiper-button-next-modern:hover,
.swiper-button-prev-modern:hover {
    background: white;
    box-shadow: var(--shadow-lg);
}

/* Hero Action Buttons */
.hero-actions {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: var(--transition-normal);
    min-height: 160px;
    text-align: center;
}

.hero-action-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.hero-action-btn .icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.hero-action-btn h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.hero-action-btn p {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.85;
}

/* Blood Bank Button */
.blood-bank-btn {
    background: linear-gradient(135deg, #c9443e 0%, #a33832 100%);
    color: white;
}

.blood-bank-btn .icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Yellow Page Button */
.yellow-page-btn {
    background: linear-gradient(135deg, #d9a21b 0%, #b8890f 100%);
    color: white;
}

.yellow-page-btn .icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ================================
   APP DOWNLOAD BANNER
================================ */
.playstore-apps-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 14px 0;
}

.playstore-apps-banner .btn-light {
    background: white;
    color: var(--primary);
    font-weight: 600;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    transition: var(--transition-normal);
    }
    
.playstore-apps-banner .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    }

.app-buttons-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    }

.app-button-group {
    display: flex;
    gap: 6px;
}

/* ================================
   SOCIAL MEDIA SECTION
================================ */
.social-media-section {
    padding: 48px 0;
    background: var(--bg-secondary);
}

.section-heading {
    margin-bottom: 32px;
    }
    
.section-heading h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 16px 12px;
    border-radius: var(--radius-lg);
    background: var(--bg-tertiary);
    transition: var(--transition-normal);
    border: 1px solid transparent;
    height: 100%;
    min-height: 110px;
}

.social-card:hover {
    transform: translateY(-4px);
    background: var(--bg-secondary);
    border-color: var(--border-light);
    box-shadow: var(--shadow-lg);
}

.social-icon-wrapper {
    margin-bottom: 10px;
}

.social-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: var(--primary);
    color: white;
}

.social-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
}

/* ================================
   QUICK LINKS / VILLAGE SERVICES
================================ */
.quick-links-section {
    padding: 48px 0;
    background: var(--bg-tertiary);
}

.quick-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 8px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    text-decoration: none;
    transition: var(--transition-normal);
    border: 1px solid var(--border-light);
    min-height: 100px;
    height: 100%;
}

.quick-link-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.quick-link-item .icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    margin-bottom: 8px;
    transition: var(--transition-normal);
}

.quick-link-item:hover .icon {
    transform: scale(1.1);
}

.quick-link-item h5 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    text-align: center;
    line-height: 1.2;
}

/* Events Link - Special Style */
.quick-link-item.events-link .icon {
    background: linear-gradient(135deg, var(--success) 0%, #3da87a 100%);
}

/* Yellow Page Link */
.quick-link-item.yellow-page-link .icon {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
}

/* Service Logos Row */
.service-logos-row {
    max-width: 100%;
}

.service-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    text-decoration: none;
    transition: var(--transition-normal);
    border: 1px solid var(--border-light);
    min-height: 100px;
    height: 100%;
}

.service-logo-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-logo {
    max-height: 50px;
    width: auto;
    max-width: 90%;
    object-fit: contain;
    transition: var(--transition-normal);
}

.service-logo-item:hover .service-logo {
    transform: scale(1.05);
}

.coming-soon-item {
    opacity: 0.6;
    cursor: not-allowed;
}

.coming-soon-item:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

/* ================================
   HIGHLIGHTS SECTION - Gallery, Blood, Personality
================================ */
.highlights-section {
    background: var(--bg-tertiary);
}

.highlight-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    border: 1px solid var(--border-light);
    transition: var(--transition-normal);
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Gallery Card */
.gallery-card .highlight-image {
    height: 180px;
    overflow: hidden;
}

.gallery-card .highlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-card:hover .highlight-image img {
    transform: scale(1.05);
}

.gallery-card .placeholder-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    color: var(--text-light);
    font-size: 3rem;
}

.highlight-content {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.highlight-content h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.highlight-btn {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.highlight-btn:hover {
    color: var(--primary-dark);
}

/* Blood Bank Card */
.blood-card {
    background: linear-gradient(135deg, #c9443e 0%, #a33832 100%);
    color: white;
    padding: 16px;
}

.blood-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 1rem;
}

.blood-header i {
    font-size: 1.25rem;
}

.blood-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}

.blood-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    text-decoration: none;
    color: white;
    transition: var(--transition-fast);
}

.blood-item:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.blood-type {
    font-size: 0.9rem;
    font-weight: 700;
}

.blood-count {
    font-size: 0.75rem;
    opacity: 0.9;
}

.blood-actions {
    display: flex;
    gap: 8px;
}

.blood-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: var(--transition-fast);
}

.blood-btn.primary {
    background: white;
    color: #c9443e;
}

.blood-btn.primary:hover {
    background: #f8f8f8;
}

.blood-btn.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.blood-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Personality Card */
.personality-card {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.personality-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
    margin-bottom: 12px;
}

.personality-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.personality-card:hover .personality-avatar img {
    transform: scale(1.1);
}

.personality-details {
    flex: 1;
}

.personality-details h5 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px;
}

.personality-year {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.personality-details p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.all-personalities-link {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.all-personalities-link:hover {
    color: var(--primary-dark);
}

/* Legacy card styles */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ================================
   NEWS & STORIES SECTION
================================ */
.news-stories-section {
    padding: 48px 0;
    background: var(--bg-tertiary);
}

.news-card-featured,
.story-card-featured {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    border: 1px solid var(--border-light);
}

.news-card-featured:hover,
.story-card-featured:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

/* ================================
   SERVICES SECTION
================================ */
.services-section {
    padding: 48px 0;
    background: var(--bg-secondary);
}

.service-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-circle i {
    font-size: 1.5rem;
}

.bg-primary-light {
    background: rgba(26, 95, 122, 0.1);
}

.bg-danger-light {
    background: rgba(201, 68, 62, 0.1);
}

/* ================================
   PROJECTS SECTION
================================ */
.projects-section {
    padding: 48px 0;
    background: var(--bg-tertiary);
}

.project-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.project-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
}

.project-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.project-image-container {
    height: 180px;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

/* ================================
   SUBSCRIPTION SECTION
================================ */
.subscription-section {
    padding: 48px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.subscription-section .card {
    background: white;
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.subscription-section .icon-circle {
    background: rgba(26, 95, 122, 0.1);
}

.subscription-section h3 {
    font-family: var(--font-display);
    color: var(--text-primary);
}

/* ================================
   RESPONSIVE STYLES
================================ */
@media (max-width: 991px) {
    .hero-row {
        flex-direction: column;
}

    .hero-actions {
        width: 100%;
        flex-direction: row;
    }
    
    .hero-action-btn {
        min-height: 140px;
    }
    
    .slider-modern {
        height: 300px;
    }
    
    .prayer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .modern-header {
        padding: 12px 0;
}

    .main-logo {
        width: 48px;
        height: 48px;
    }
    
    .village-name {
        font-size: 1rem;
}

    .prayer-times-modern {
        margin-top: 12px;
}

    .prayer-grid {
        grid-template-columns: repeat(3, 1fr);
}

    .hero-modern {
        padding: 20px 0;
    }
    
    .slider-modern {
        height: 220px;
}

    .hero-actions {
    flex-direction: column;
        gap: 12px;
    }
    
    .hero-action-btn {
        min-height: 100px;
        padding: 16px;
    }
    
    .hero-action-btn .icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .hero-action-btn h4 {
        font-size: 1.1rem;
    }
    
    .section-heading h3 {
        font-size: 1.5rem;
    }
    
    .quick-link-item {
        padding: 12px 6px;
        min-height: 90px;
    }
    
    .quick-link-item .icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .quick-link-item h5 {
        font-size: 0.7rem;
    }
    
    .service-logo-item {
        padding: 10px 6px;
        min-height: 90px;
    }
    
    .service-logo {
        max-height: 40px;
    }
    
    .social-logo, .social-icon {
        width: 40px;
        height: 40px;
    }
    
    .social-card {
        min-height: 90px;
        padding: 12px 8px;
    }
    
    .social-name {
        font-size: 0.7rem;
    }
    
    .playstore-apps-banner {
        padding: 12px 0;
    }
    
    .app-buttons-group {
        flex-direction: column;
    }
    
    .app-button-group {
    flex-direction: column;
        width: 100%;
    }
    
    .app-button-group .btn {
    width: 100%;
        max-width: 260px;
        margin: 0 auto;
    }
    
    /* Highlights Section Mobile */
    .gallery-card .highlight-image {
        height: 140px;
    }
    
    .blood-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .blood-item {
        padding: 6px 2px;
    }
    
    .blood-type {
        font-size: 0.8rem;
    }
    
    .blood-count {
        font-size: 0.7rem;
    }
    
    .personality-avatar {
        width: 80px;
        height: 80px;
    }
    
    .personality-details h5 {
        font-size: 1rem;
    }
    
    .personality-details p {
        font-size: 0.8rem;
    }
}

@media (max-width: 575px) {
    .hero-action-btn {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        gap: 16px;
    }
    
    .hero-action-btn .icon {
        margin-bottom: 0;
    }
}

/* ================================
   OFFCANVAS MOBILE MENU
================================ */
.offcanvas {
    background: var(--bg-secondary);
}

.offcanvas-header {
    border-bottom: 1px solid var(--border-light);
}

.offcanvas-title {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-primary);
}

.list-group-item {
    border: none;
    border-bottom: 1px solid var(--border-light);
    padding: 14px 16px;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.list-group-item:hover {
    background: var(--bg-tertiary);
    color: var(--primary);
}

.list-group-item i {
    color: var(--primary);
    width: 24px;
}

/* Mobile Prayer Times */
.mobile-ramadan {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.mobile-ramadan h6 {
    font-family: var(--font-display);
    color: var(--text-primary);
}

/* ================================
   UTILITIES
================================ */
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.bg-primary { background: var(--primary) !important; }
.btn-primary { 
    background: var(--primary) !important; 
    border-color: var(--primary) !important;
}
.btn-primary:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}
.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}
.btn-outline-primary:hover {
    background: var(--primary) !important;
    color: white !important;
}

/* ================================
   EVENTS TIMELINE SECTION
================================ */
.events-timeline-section {
    background: transparent;
    padding: 0;
    overflow: visible;
    position: relative;
    z-index: 1000;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.timeline-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
}

.timeline-title i {
    color: var(--primary);
    font-size: 1.2rem;
}

.timeline-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--primary);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.timeline-view-all:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateX(3px);
}

.timeline-wrapper {
    position: relative;
    padding: 20px 0 0px;
    overflow: visible;
    z-index: 1001;
}

.timeline-track {
    position: relative;
    height: 100px;
    margin: 0 20px;
    overflow: visible;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 50%, #ddd 100%);
    border-radius: 4px;
    transform: translateY(-50%);
}

.timeline-progress {
    position: absolute;
    top: 50%;
    left: 0;
    width: 5%;
    height: 4px;
    background: var(--accent);
    border-radius: 4px;
    transform: translateY(-50%);
    box-shadow: 0 0 10px rgba(201, 162, 39, 0.5);
}

/* Timeline Event Marker */
.timeline-event {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    cursor: pointer;
}

.event-marker {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    border: 3px solid white;
}

.timeline-event:hover .event-marker {
    transform: scale(1.2);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.timeline-event.is-live .event-marker {
    animation: pulse-marker 2s infinite;
}

.timeline-event.is-today .event-marker {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.3);
}

@keyframes pulse-marker {
    0%, 100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
}

.live-pulse {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 12px;
    height: 12px;
    background: #e74c3c;
    border-radius: 50%;
    border: 2px solid white;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Date Label */
.event-date-label {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.event-day {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.event-month {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hover Card */
.event-hover-card {
    position: absolute;
    bottom: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    z-index: 10000;
}

.timeline-event:hover .event-hover-card {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.hover-card-inner {
    width: 280px;
    background: white;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-light);
    position: relative;
    z-index: 10001;
}

.hover-card-inner::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 16px;
    height: 16px;
    background: white;
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.event-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #e74c3c;
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: blink 1s infinite;
}

.event-today-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--accent);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.event-countdown-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-tertiary);
    color: var(--primary);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.hover-card-category {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hover-card-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.hover-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.hover-card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.hover-card-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.hover-card-meta .meta-item i {
    color: var(--primary);
    font-size: 0.75rem;
}

.hover-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-details {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.timeline-event:hover .view-details {
    gap: 8px;
}

.free-badge {
    padding: 3px 10px;
    background: var(--success);
    color: white;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Timeline Labels */
.timeline-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    margin-top: 10px;
}

.timeline-labels span {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.label-today {
    color: var(--primary) !important;
    font-weight: 600;
}

/* Timeline Empty State */
.timeline-empty {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 16px;
    border: 2px dashed var(--border-medium);
}

.timeline-empty i {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.4;
    margin-bottom: 15px;
}

.timeline-empty p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

/* Responsive - Hide on mobile only */
@media (max-width: 767px) {
    .events-timeline-section {
        display: none !important;
    }
}
