/**
 * Christ Embassy Abuja Zone 2 - Main Stylesheet
 * Theme: Blue & Gold
 */

/* ===== CSS Variables ===== */
:root {
    --primary-blue: #1a237e;
    --primary-blue-light: #3949ab;
    --primary-blue-dark: #0d1642;
    --gold: #FFD700;
    --gold-light: #FFE44D;
    --gold-dark: #C5A600;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #6c757d;
    --dark-gray: #333333;
    --gradient-blue: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-primary: 'Poppins', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

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

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark-gray);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

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

a:hover {
    color: var(--gold);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Buttons ===== */
.btn {
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 50px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.btn-gold {
    background: var(--gradient-gold);
    color: var(--primary-blue-dark);
    border: none;
}

.btn-gold:hover {
    background: var(--gold-light);
    color: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline-gold {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--primary-blue-dark);
}

.btn-blue {
    background: var(--gradient-blue);
    color: var(--white);
    border: none;
}

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

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

.btn-outline-blue:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* ===== Top Bar ===== */
.top-bar {
    background: var(--primary-blue-dark);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-info li {
    color: rgba(255, 255, 255, 0.8);
}

.top-bar-info li a {
    color: rgba(255, 255, 255, 0.8);
}

.top-bar-info li a:hover {
    color: var(--gold);
}

.top-bar-info li i {
    color: var(--gold);
    margin-right: 5px;
}

.top-bar .social-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin-left: 15px;
}

.top-bar .social-links a:hover {
    color: var(--gold);
}

/* ===== Main Navigation ===== */
.main-navbar {
    background: var(--gradient-blue);
    padding: 15px 0;
    box-shadow: var(--shadow);
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
}

.brand-subtext {
    font-size: 0.9rem;
    color: var(--white);
    margin-left: 10px;
    border-left: 2px solid var(--gold);
    padding-left: 10px;
}

.main-navbar .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 10px 18px;
    position: relative;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--gold);
}

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

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

.main-navbar .dropdown-menu {
    background: var(--white);
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 10px;
    padding: 10px 0;
}

.main-navbar .dropdown-item {
    padding: 10px 20px;
    color: var(--dark-gray);
}

.main-navbar .dropdown-item:hover {
    background: var(--light-gray);
    color: var(--primary-blue);
}

.user-dropdown {
    color: var(--gold) !important;
}

/* ===== Hero Slider ===== */
.hero-slider {
    position: relative;
    height: 85vh;
    min-height: 600px;
    background: var(--primary-blue);
}

.hero-slider .swiper {
    width: 100%;
    height: 100%;
}

.hero-slider .swiper-wrapper {
    height: 100%;
}

.hero-slider .swiper-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slider .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.85) 0%, rgba(13, 22, 66, 0.7) 100%);
}

.hero-content {
    position: absolute;
    top: 42%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    text-align: center;
    color: var(--white);
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 10;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content h1 span {
    color: var(--gold);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--white);
    opacity: 0.5;
}

.hero-slider .swiper-pagination-bullet-active {
    background: var(--gold);
    opacity: 1;
}

.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    color: var(--gold);
}

/* ===== Section Styles ===== */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-gold);
}

.section-title p {
    color: var(--gray);
    max-width: 600px;
    margin: 20px auto 0;
}

.section-bg {
    background: var(--light-gray);
}

/* ===== Welcome Section ===== */
.welcome-section .welcome-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.welcome-section .welcome-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: var(--gradient-gold);
    z-index: -1;
    border-radius: 10px;
}

.welcome-section .welcome-content h2 {
    margin-bottom: 20px;
}

.welcome-section .welcome-content .lead {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 20px;
}

.welcome-features {
    margin-top: 30px;
}

.welcome-feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.welcome-feature-item i {
    font-size: 2rem;
    color: var(--gold);
    margin-right: 15px;
}

.welcome-feature-item h5 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.welcome-feature-item p {
    color: var(--gray);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ===== Service Times Card ===== */
.service-card {
    background: var(--gradient-blue);
    border-radius: 15px;
    padding: 40px 30px;
    color: var(--white);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.service-card h4 {
    color: var(--gold);
    margin-bottom: 30px;
}

.service-item {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.service-item:last-child {
    border-bottom: none;
}

.service-item .day {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--gold);
}

.service-item .time {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 10px 0;
}

.service-item .venue {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== Events Section ===== */
.event-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

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

.event-card .event-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.event-card .event-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-gold);
    color: var(--primary-blue-dark);
    padding: 10px 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
}

.event-card .event-date .day {
    font-size: 1.5rem;
    line-height: 1;
}

.event-card .event-date .month {
    font-size: 0.85rem;
    text-transform: uppercase;
}

.event-card .event-content {
    padding: 25px;
}

.event-card .event-content h5 {
    margin-bottom: 10px;
}

.event-card .event-meta {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.event-card .event-meta i {
    color: var(--gold);
    margin-right: 5px;
}

/* ===== Gallery Section ===== */
.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(26, 35, 126, 0.9) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item .gallery-overlay h5 {
    color: var(--white);
    margin-bottom: 5px;
}

.gallery-item .gallery-overlay span {
    color: var(--gold);
    font-size: 0.9rem;
}

/* ===== Blog Section ===== */
.blog-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

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

.blog-card .blog-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.blog-card .blog-content {
    padding: 25px;
}

.blog-card .blog-category {
    display: inline-block;
    background: var(--light-gray);
    color: var(--primary-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.blog-card .blog-content h5 {
    margin-bottom: 10px;
}

.blog-card .blog-meta {
    color: var(--gray);
    font-size: 0.85rem;
}

.blog-card .blog-meta i {
    color: var(--gold);
}

/* ===== Testimonies Section ===== */
.testimony-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    height: 100%;
}

.testimony-card .testimony-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.testimony-card .testimony-icon i {
    font-size: 1.5rem;
    color: var(--primary-blue-dark);
}

.testimony-card p {
    font-style: italic;
    color: var(--gray);
    margin-bottom: 20px;
}

.testimony-card .testimony-author {
    font-weight: 600;
    color: var(--primary-blue);
}

/* ===== Give Section ===== */
.give-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    height: 100%;
    border-top: 4px solid var(--gold);
}

.give-card h5 {
    margin-bottom: 20px;
}

.give-card .account-details {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
}

.give-card .account-details p {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.give-card .account-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
}

/* ===== Announcement Banner ===== */
.announcement-banner {
    background: var(--gradient-gold);
    padding: 15px 0;
    position: relative;
    overflow: hidden;
}

.announcement-banner .announcement-text {
    color: var(--primary-blue-dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-banner .announcement-text i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* ===== Page Header ===== */
.page-header {
    background: var(--gradient-blue);
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.png') repeat;
    opacity: 0.1;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header .breadcrumb {
    background: transparent;
    justify-content: center;
    margin-bottom: 0;
}

.page-header .breadcrumb-item a {
    color: var(--gold);
}

.page-header .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ===== Forms ===== */
.form-control, .form-select {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.form-label {
    font-weight: 500;
    color: var(--dark-gray);
    margin-bottom: 8px;
}

/* ===== Cards ===== */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: var(--gradient-blue);
    color: var(--white);
    border-radius: 15px 15px 0 0 !important;
    padding: 20px 25px;
}

.card-header h5 {
    color: var(--white);
    margin-bottom: 0;
}

/* ===== Footer ===== */
.newsletter-section {
    background: var(--primary-blue-dark);
}

.newsletter-form .form-control {
    border-radius: 50px 0 0 50px;
    border: none;
    padding: 15px 25px;
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
}

.footer-main {
    background: var(--gradient-blue);
}

.footer .footer-brand {
    display: flex;
    align-items: center;
}

.footer .footer-brand .brand-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
}

.footer .footer-brand .brand-subtext {
    font-size: 0.9rem;
    color: var(--white);
    margin-left: 10px;
    border-left: 2px solid var(--gold);
    padding-left: 10px;
}

.footer-title {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-family: var(--font-heading);
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

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

.footer .social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-right: 10px;
    transition: var(--transition);
}

.footer .social-links a:hover {
    background: var(--gold);
    color: var(--primary-blue-dark);
}

.footer .service-times .day {
    color: var(--gold);
    font-weight: 600;
}

.footer .service-times .time {
    color: var(--white);
    font-size: 1.2rem;
}

.footer-bottom {
    background: var(--primary-blue-dark);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a:hover {
    color: var(--gold);
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-gold);
    color: var(--primary-blue-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

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

.back-to-top:hover {
    background: var(--gold-light);
    color: var(--primary-blue-dark);
    transform: translateY(-5px);
}

/* ===== Livestream ===== */
.livestream-player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.livestream-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    background: #dc3545;
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.live-badge i {
    margin-right: 8px;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* ===== Alerts ===== */
.alert {
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
}

/* ===== Pagination ===== */
.pagination .page-link {
    color: var(--primary-blue);
    border: none;
    padding: 10px 18px;
    margin: 0 3px;
    border-radius: 10px;
}

.pagination .page-item.active .page-link {
    background: var(--gradient-blue);
    color: var(--white);
}

.pagination .page-link:hover {
    background: var(--light-gray);
    color: var(--primary-blue);
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .hero-slider {
        height: 70vh;
        min-height: 500px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-slider {
        height: 60vh;
        min-height: 400px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    .section {
        padding: 50px 0;
    }

    /* Mobile navbar brand fix */
    .navbar-brand {
        max-width: 200px;
        overflow: visible;
    }

    .brand-text {
        font-size: 1.5rem;
        white-space: nowrap;
    }

    .brand-subtext {
        display: none;
    }

    .footer .row > div {
        text-align: center;
    }

    .footer .social-links {
        justify-content: center;
    }
}

/* ===== Utility Classes ===== */
.text-gold { color: var(--gold); }
.text-blue { color: var(--primary-blue); }
.bg-gold { background: var(--gradient-gold); }
.bg-blue { background: var(--gradient-blue); }

/* ===== Loading Animation ===== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
