/* ===========================================
   BAMC - Baitul Aman Masjid Complex
   Merged CSS for App and Welcome Pages
   =========================================== */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8fafc;
    margin: 0;
    padding: 0;
}

/* Fix spacing for all pages */
main {
    margin-top: 0;
    padding-top: 0;
}

/* Home page specific spacing */
body.home-page main {
    margin-top: 0;
    padding-top: 0;
}

/* Non-home pages spacing */
body:not(.home-page) main {
    margin-top: 0;
    padding-top: 0;
}

/* Ensure proper spacing for page headers */
.bg-gradient-light {
    margin-top: 0;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* Fix any remaining spacing issues */
.content-section {
    margin-top: 0;
    padding-top: 2rem;
}

/* Ensure navigation doesn't interfere with content */
.main-navigation + main {
    margin-top: 0;
    padding-top: 0;
}

/* ===========================================
   HERO SECTION STYLES (Home Page Only)
   =========================================== */

/* Hero section only for home page */
body.home-page .hero-section {
    background: url('/img/bg_1.jpeg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Hide hero section on non-home pages */
body:not(.home-page) .hero-section {
    display: none;
}

body.home-page .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.6) 0%, 
        rgba(0, 0, 0, 0.3) 30%, 
        rgba(0, 0, 0, 0.4) 70%, 
        rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

body.home-page .hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

body.home-page .mosque-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
    color: #fbbf24;
    text-shadow: 
        0 0 20px rgba(251, 191, 36, 0.8),
        0 0 40px rgba(251, 191, 36, 0.4),
        0 4px 8px rgba(0,0,0,0.8);
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(251, 191, 36, 0.5));
}

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

body.home-page .hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 
        0 0 30px rgba(255, 255, 255, 0.6),
        0 0 60px rgba(255, 255, 255, 0.3),
        0 8px 16px rgba(0,0,0,0.9),
        0 0 0 4px rgba(0,0,0,0.3);
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.4));
}

body.home-page .hero-subtitle {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.5),
        0 0 40px rgba(255, 255, 255, 0.2),
        0 6px 12px rgba(0,0,0,0.8),
        0 0 0 2px rgba(0,0,0,0.2);
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.3));
}

body.home-page .hero-description {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.4),
        0 0 30px rgba(255, 255, 255, 0.2),
        0 4px 8px rgba(0,0,0,0.8),
        0 0 0 1px rgba(0,0,0,0.1);
    line-height: 1.8;
    letter-spacing: 0.005em;
    font-weight: 300;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
}

body.home-page .cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* ===========================================
   NAVIGATION STYLES (Both Pages)
   =========================================== */

/* Main Navigation (All Pages) */
.main-navigation {
    background: linear-gradient(135deg, 
        #064e3b 0%, 
        #065f46 20%, 
        #047857 40%, 
        #059669 60%, 
        #10b981 80%, 
        #34d399 100%);
    box-shadow: 0 8px 32px rgba(6, 78, 59, 0.3);
    position: relative;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.nav-brand a:hover {
    color: #fbbf24;
    transform: scale(1.05);
}

.nav-brand i {
    font-size: 1.8rem;
    color: #fbbf24;
}

.nav-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.nav-brand a:hover .nav-logo {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: #fbbf24;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.2);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.user-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-dropdown:hover .user-dropdown-menu,
.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #1e3a8a;
    transform: translateX(4px);
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid rgba(251, 191, 36, 0.3);
}

.login-btn:hover {
    background: #fbbf24;
    color: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Sticky Header Styles */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, 
        #064e3b 0%, 
        #065f46 20%, 
        #047857 40%, 
        #059669 60%, 
        #10b981 80%, 
        #34d399 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(6, 78, 59, 0.4);
    z-index: 1001;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    opacity: 0.95;
}

.sticky-header.show {
    transform: translateY(0);
}

.sticky-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.sticky-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sticky-brand a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.sticky-brand a:hover {
    color: #fbbf24;
    transform: scale(1.05);
}

.sticky-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px;
    border-radius: 5px;
}

.sticky-brand a:hover .sticky-logo {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

.sticky-menu {
    display: flex;
    align-items: center;
}

.sticky-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
}

.sticky-links .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.sticky-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sticky-brand a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.sticky-brand a:hover {
    color: #fbbf24;
    transform: scale(1.05);
}

.sticky-brand i {
    font-size: 1.5rem;
    color: #fbbf24;
}

.sticky-menu {
    display: flex;
    align-items: center;
}

.sticky-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
}

.sticky-links .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.sticky-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sticky-actions .user-btn,
.sticky-actions .login-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

/* Remove old Bootstrap navbar styles - using custom navigation */
.navbar {
    display: none !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.navbar-brand:hover {
    color: #fbbf24 !important;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
}

.navbar .nav-link:hover {
    color: #fbbf24 !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.navbar .nav-link.active {
    color: #fbbf24 !important;
    background: rgba(251, 191, 36, 0.2);
}

.navbar .dropdown-menu {
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.navbar .dropdown-item {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.navbar .dropdown-item:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #1e3a8a;
    transform: translateX(4px);
}

/* ===========================================
   CONTENT SECTIONS
   =========================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 3;
}

.content-section {
    padding: 60px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.0rem;
    font-weight: 600;
    background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===========================================
   NEWS AND EVENTS GRID
   =========================================== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-image-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 2.5rem;
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 600;
    background: linear-gradient(135deg, #064e3b 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.news-title a {
    color: inherit;
    text-decoration: none;
}

.news-title a:hover {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-excerpt {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.news-read-more {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.news-read-more:hover {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateX(4px);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.event-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

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

.event-content {
    padding: 1.5rem;
}

.event-date {
    font-size: 0.85rem;
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.event-title {
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #064e3b 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.event-title a {
    color: inherit;
    text-decoration: none;
}

.event-title a:hover {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.event-location {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.event-description {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.event-link {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.event-link:hover {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateX(4px);
}

/* ===========================================
   BUTTONS
   =========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 180px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e3a8a;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
    text-shadow: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Bootstrap Button Overrides */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid #3b82f6;
    color: #3b82f6;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

.btn-outline-secondary {
    border: 2px solid #64748b;
    color: #64748b;
    background: transparent;
}

.btn-outline-secondary:hover {
    background: #64748b;
    color: white;
    transform: translateY(-2px);
}

/* ===========================================
   CARDS
   =========================================== */

.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem;
}

.card-body {
    padding: 2rem;
}

/* ===========================================
   FORMS
   =========================================== */

.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-select {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ===========================================
   TABLES
   =========================================== */

.table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.table thead th {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: none;
    font-weight: 600;
    color: #1e3a8a;
    padding: 1rem;
}

.table tbody td {
    border: none;
    padding: 1rem;
    vertical-align: middle;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    transform: scale(1.01);
}

/* ===========================================
   BADGES
   =========================================== */

.badge {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
}

.badge.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #059669 100%) !important;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.badge.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #064e3b 0%, #10b981 50%, #34d399 100%) !important;
    box-shadow: 0 4px 15px rgba(6, 78, 59, 0.3);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* ===========================================
   ALERTS
   =========================================== */

.alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

/* ===========================================
   PAGINATION
   =========================================== */

.pagination {
    justify-content: center;
    margin-top: 2rem;
}

.page-link {
    border: none;
    color: #3b82f6;
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

/* ===========================================
   SECTION HEADERS
   =========================================== */



/* ===========================================
   LOADING STATES
   =========================================== */

.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ===========================================
   UTILITY CLASSES
   =========================================== */

.text-gradient {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-soft {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.shadow-medium {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.shadow-strong {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) 1;
}

.bg-gradient-light {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* ===========================================
   INPUT GROUPS
   =========================================== */

.input-group .form-control {
    border-radius: 8px 0 0 8px;
}

.input-group .btn {
    border-radius: 0 8px 8px 0;
}

/* ===========================================
   LIST GROUPS
   =========================================== */

.list-group-item {
    border: none;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    transform: translateX(4px);
}

/* ===========================================
   MODALS
   =========================================== */

.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid #e2e8f0;
    border-radius: 16px 16px 0 0;
}

/* ===========================================
   PROGRESS BARS
   =========================================== */

.progress {
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
}

.progress-bar {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 4px;
}

/* ===========================================
   SPINNERS
   =========================================== */

.spinner-border {
    color: #3b82f6;
}

/* ===========================================
   EMPTY STATES
   =========================================== */

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: #475569;
}

/* ===========================================
   PAGE HEADERS (Non-Home Pages)
   =========================================== */

.bg-gradient-light {
    background: linear-gradient(135deg, 
        #f8fafc 0%, 
        #e2e8f0 25%, 
        #f1f5f9 50%, 
        #e2e8f0 75%, 
        #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.bg-gradient-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.05) 0%, 
        rgba(6, 78, 59, 0.08) 50%, 
        rgba(16, 185, 129, 0.05) 100%);
    z-index: 1;
}

.text-gradient {
    background: linear-gradient(135deg, 
        #064e3b 0%, 
        #065f46 25%, 
        #047857 50%, 
        #059669 75%, 
        #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

/* Override Bootstrap display-4 for page titles */
.bg-gradient-light .display-4 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
}

/* Responsive page title sizes */
@media (max-width: 768px) {
    .bg-gradient-light .display-4 {
        font-size: 2rem !important;
    }
}

@media (max-width: 576px) {
    .bg-gradient-light .display-4 {
        font-size: 1.75rem !important;
    }
}

/* Reduce spacing for page header content */
.bg-gradient-light .lead {
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem !important;
}

.bg-gradient-light .mb-4 {
    margin-bottom: 1rem !important;
}

/* Custom page title class for better control */
.page-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, 
        #064e3b 0%, 
        #065f46 25%, 
        #047857 50%, 
        #059669 75%, 
        #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Responsive page title */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.875rem;
    }
    .page-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.625rem;
    }
    .page-subtitle {
        font-size: 0.95rem;
    }
}

/* ===========================================
   SERVICES SECTION
   =========================================== */

.services-section {
    padding: 80px 0;
    background: linear-gradient(135deg, 
        #f8fafc 0%, 
        #e2e8f0 25%, 
        #f1f5f9 50%, 
        #e2e8f0 75%, 
        #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.03) 0%, 
        rgba(6, 78, 59, 0.05) 50%, 
        rgba(16, 185, 129, 0.03) 100%);
    z-index: 1;
}

.services-section .container {
    position: relative;
    z-index: 2;
}

.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(6, 78, 59, 0.1);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(6, 78, 59, 0.15);
}

.service-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(6, 78, 59, 0.8) 0%, 
        rgba(16, 185, 129, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #064e3b;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: auto;
}

.service-schedule,
.service-time,
.service-language,
.service-feature {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, 
        #f0fdf4 0%, 
        #dcfce7 100%);
    color: #064e3b;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.service-schedule i,
.service-time i,
.service-language i,
.service-feature i {
    color: #10b981;
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-section {
        padding: 60px 0;
    }
    
    .service-image {
        height: 200px;
    }
    
    .service-content {
        padding: 1.5rem;
    }
    
    .service-title {
        font-size: 1.25rem;
    }
    
    .service-meta {
        gap: 0.5rem;
    }
    
    .service-schedule,
    .service-time,
    .service-language,
    .service-feature {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .service-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .service-schedule,
    .service-time,
    .service-language,
    .service-feature {
        width: 100%;
        justify-content: center;
    }
}

/* ===========================================
   FOOTER (Consistent Green Theme)
   =========================================== */

.footer {
    background: linear-gradient(135deg, 
        #064e3b 0%, 
        #065f46 25%, 
        #047857 50%, 
        #059669 75%, 
        #10b981 100%);
    color: white;
    padding: 40px 0 20px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.02) 50%, 
        rgba(255, 255, 255, 0.08) 100%);
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.footer-section h6 {
    margin-bottom: 1rem;
    color: #fbbf24;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
    border-radius: 6px;
}

.footer-brand:hover .footer-logo {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fbbf24;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 2;
}

/* ===========================================
   EVENT SPECIFIC STYLES
   =========================================== */

.event-title-link {
    transition: color 0.3s ease;
}

.event-title-link:hover {
    color: #3b82f6 !important;
}

.event-card-link {
    display: block;
    transition: all 0.3s ease;
}

.event-card-link:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.event-card-link:hover .event-card {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.event-card-link:hover .event-title {
    color: #3b82f6 !important;
}

.event-card-link:hover .fas.fa-arrow-right {
    transform: translateX(3px);
}

.event-detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.event-description {
    line-height: 1.6;
}

.event-item {
    transition: all 0.3s ease;
}

.event-item:hover {
    transform: translateY(-2px);
}

/* Date Range Styling */
.date-range-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 8px;
    padding: 12px 16px;
    border-left: 4px solid #3b82f6;
}

.date-range {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.start-date, .end-date {
    color: #1e3a8a;
    font-size: 0.95rem;
}

.date-separator {
    font-size: 0.9rem;
    font-weight: 500;
}

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

@media (max-width: 768px) {
    /* Logo responsive styles */
    .nav-logo {
        height: 38px;
    }
    
    .footer-logo {
        height: 35px;
    }
    
    .footer-brand {
        gap: 0.5rem;
    }
    
    .sticky-logo {
        height: 32px;
    }
}

@media (max-width: 576px) {
    .nav-logo {
        height: 35px;
    }
    
    .footer-logo {
        height: 32px;
    }
    
    .sticky-logo {
        height: 30px;
    }
    
    .footer-brand {
        gap: 0.4rem;
    }
}

@media (max-width: 768px) {
    body.home-page .hero-section {
        background-attachment: scroll;
        padding: 60px 0;
        min-height: 80vh;
    }
    
    body.home-page .hero-content {
        padding: 2rem 1rem;
    }
    
    body.home-page .hero-title {
        font-size: 3.5rem;
    }
    
    body.home-page .hero-subtitle {
        font-size: 1.5rem;
    }
    
    body.home-page .hero-description {
        font-size: 1.2rem;
    }
    
    body.home-page .mosque-icon {
        font-size: 4rem;
    }
    
    body.home-page .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    body.home-page .btn {
        width: 100%;
        max-width: 300px;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Mobile Navigation */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, 
            #064e3b 0%, 
            #065f46 20%, 
            #047857 40%, 
            #059669 60%, 
            #10b981 80%, 
            #34d399 100%);
        box-shadow: 0 8px 32px rgba(6, 78, 59, 0.3);
        padding: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 1rem;
        justify-content: flex-start;
    }
    
    .nav-actions {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    /* Hide sticky header on mobile */
    .sticky-header {
        display: none;
    }
    
    /* Mobile sticky navigation - show main nav as sticky */
    .main-navigation {
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Sticky Header Mobile */
    .sticky-menu {
        display: none;
    }
    
    .sticky-actions {
        gap: 0.5rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    /* Bootstrap Navbar Mobile */
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .navbar .nav-link {
        padding: 0.5rem 0.75rem !important;
        margin: 0.125rem 0;
    }
}

    @media (max-width: 480px) {
        body.home-page .hero-content {
            padding: 1.5rem 0.5rem;
        }
        
        body.home-page .hero-title {
            font-size: 2.8rem;
        }
        
        body.home-page .hero-subtitle {
            font-size: 1.2rem;
        }
        
        body.home-page .hero-description {
            font-size: 1.1rem;
        }
        
        body.home-page .mosque-icon {
            font-size: 3.5rem;
        }
    
    .container {
        padding: 0 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .date-range {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .date-separator {
        margin: 0.25rem 0;
    }
}

/* ===========================================
   MAIN CONTENT LAYOUT
   =========================================== */

main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* ===========================================
   HERO SECTION OVERRIDES (App Page)
   =========================================== */

.hero-section i {
    color: #b28101 !important;
}

.hero-section h1 {
    color: #464e64 !important;
    font-size: 2.2rem !important;
}

.hero-section p {
    color: #1e3a8a !important;
}
