/* ============================================
   REVEALING JESUS CHURCH - MAIN STYLESHEET
   Colors: Blue, Pink, Red, White/Black
   Fonts: Modern + Script
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
    --blue: #1a3a6b;
    --blue-light: #2d5aa0;
    --blue-dark: #0f2445;
    --pink: #e91e8c;
    --pink-light: #f06cb8;
    --pink-dark: #b8166e;
    --red: #d62828;
    --red-light: #e85454;
    --red-dark: #a31d1d;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #e9ecef;
    --gray: #6c757d;
    --dark-gray: #343a40;
    --black: #1a1a1a;

    --font-modern: 'Poppins', sans-serif;
    --font-script: 'Playfair Display', serif;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-modern);
    font-size: 16px;
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
    overflow-x: hidden;
}

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

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

ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-modern);
    font-weight: 700;
    line-height: 1.2;
}

.script-font {
    font-family: var(--font-script);
    font-style: italic;
}

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

.section-header .subtitle {
    font-family: var(--font-script);
    font-style: italic;
    color: var(--pink);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--blue-dark);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--pink), var(--red));
    border-radius: 2px;
}

.section-header p {
    color: var(--gray);
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-modern);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-transform: uppercase;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-primary:hover {
    background: var(--blue-light);
}

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

.btn-pink:hover {
    background: var(--pink-dark);
}

.btn-red {
    background: var(--red);
    color: var(--white);
}

.btn-red:hover {
    background: var(--red-dark);
}

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

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

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

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

/* ---------- Header / Navigation ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 15px 0;
}

.header.scrolled {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

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

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
    transition: var(--transition);
}

.logo-text {
    font-family: var(--font-modern);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--white);
    transition: var(--transition);
    line-height: 1.2;
}

.logo-text span {
    font-family: var(--font-script);
    font-style: italic;
    font-weight: 400;
    font-size: 0.8rem;
    display: block;
    color: var(--pink-light);
}

.header.scrolled .logo-text {
    color: var(--blue-dark);
}

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

.nav-menu a {
    padding: 8px 16px;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--pink);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 60%;
}

.nav-menu a:hover {
    color: var(--pink-light);
}

.header.scrolled .nav-menu a {
    color: var(--dark-gray);
}

.header.scrolled .nav-menu a:hover {
    color: var(--pink);
}

.nav-cart {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-cart .cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--red);
    color: var(--white);
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}

.header.scrolled .mobile-toggle span {
    background: var(--dark-gray);
}

/* ---------- Hero Slider ---------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26,58,107,0.85) 0%, rgba(15,36,69,0.7) 50%, rgba(233,30,140,0.4) 100%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 2;
    width: 90%;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s 0.3s forwards;
}

.hero-content .hero-subtitle {
    font-family: var(--font-script);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--pink-light);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s 0.5s forwards;
}

.hero-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s 0.7s forwards;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s 0.9s forwards;
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.hero-dots .dot.active {
    background: var(--pink);
    border-color: var(--pink);
}

/* ---------- Announcement Bar ---------- */
.announcement-bar {
    background: var(--red);
    color: var(--white);
    padding: 12px 0;
    overflow: hidden;
    position: relative;
}

.announcement-bar .ticker {
    display: flex;
    animation: ticker 20s linear infinite;
    white-space: nowrap;
}

.announcement-bar .ticker-item {
    padding: 0 40px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.announcement-bar .ticker-item::before {
    content: '✦';
    color: var(--pink-light);
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---------- Section Spacing ---------- */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--off-white);
}

.section-blue {
    background: var(--blue-dark);
    color: var(--white);
}

.section-blue .section-header h2 {
    color: var(--white);
}

.section-blue .section-header p {
    color: rgba(255,255,255,0.7);
}

.section-pink {
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
    color: var(--white);
}

/* ---------- Service Times ---------- */
.service-times {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 4px solid var(--blue);
}

.service-card:nth-child(2) {
    border-top-color: var(--pink);
}

.service-card:nth-child(3) {
    border-top-color: var(--red);
}

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

.service-card .icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--off-white);
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--blue-dark);
}

.service-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ---------- Events Grid ---------- */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.event-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

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

.event-card .event-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--red);
    color: var(--white);
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    text-align: center;
    line-height: 1.2;
}

.event-card .event-date-badge .day {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.event-card .event-date-badge .month {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.event-card .event-body h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--blue-dark);
}

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

.event-card .event-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--gray);
}

.event-card .event-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ---------- Sermons Grid ---------- */
.sermons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.sermon-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.sermon-card .sermon-thumb {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sermon-card .sermon-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26,58,107,0.4);
    transition: var(--transition);
}

.sermon-card:hover .sermon-thumb::before {
    background: rgba(26,58,107,0.6);
}

.sermon-card .play-btn {
    width: 60px;
    height: 60px;
    background: var(--pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    z-index: 1;
    transition: var(--transition);
}

.sermon-card:hover .play-btn {
    transform: scale(1.1);
    background: var(--red);
}

.sermon-card .sermon-body {
    padding: 25px;
}

.sermon-card .sermon-body h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--blue-dark);
}

.sermon-card .sermon-body .preacher {
    font-family: var(--font-script);
    font-style: italic;
    color: var(--pink);
    margin-bottom: 10px;
}

.sermon-card .sermon-body p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ---------- Books / Store Grid ---------- */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.book-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

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

.book-card .book-cover {
    height: 320px;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.book-card .book-cover img {
    max-height: 100%;
    width: auto;
    transition: var(--transition);
}

.book-card:hover .book-cover img {
    transform: scale(1.05);
}

.book-card .book-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--red);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.book-card .book-body {
    padding: 25px;
}

.book-card .book-body h3 {
    font-size: 1.05rem;
    color: var(--blue-dark);
    margin-bottom: 5px;
}

.book-card .book-body .author {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 10px;
}

.book-card .book-body .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--pink);
    margin-bottom: 15px;
}

.book-card .book-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 0 25px 25px;
}

.book-card .book-actions .btn {
    padding: 10px 20px;
    font-size: 0.8rem;
}

/* ---------- Devotional Section ---------- */
.devotional-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 50px;
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.devotional-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 10rem;
    font-family: var(--font-script);
    color: var(--pink);
    opacity: 0.1;
    line-height: 1;
}

.devotional-card .devo-date {
    font-size: 0.85rem;
    color: var(--pink);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.devotional-card h3 {
    font-size: 1.8rem;
    color: var(--blue-dark);
    margin-bottom: 15px;
}

.devotional-card .scripture {
    font-family: var(--font-script);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--blue-light);
    margin-bottom: 20px;
    padding: 15px 30px;
    background: var(--off-white);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--pink);
}

.devotional-card .devo-content {
    color: var(--dark-gray);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* ---------- Testimonies ---------- */
.testimonies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.testimony-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

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

.testimony-card::before {
    content: '"';
    font-family: var(--font-script);
    font-size: 4rem;
    color: var(--pink);
    opacity: 0.3;
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
}

.testimony-card .testimony-text {
    font-style: italic;
    color: var(--dark-gray);
    line-height: 1.7;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimony-card .testimony-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimony-card .testimony-author .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
}

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

/* ---------- Gallery ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

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

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

.gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,58,107,0.8), transparent);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

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

.gallery-item .gallery-overlay p {
    color: var(--white);
    font-weight: 500;
}

/* ---------- Giving Section ---------- */
.giving-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.giving-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.giving-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--pink);
}

.giving-card .giving-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--pink), var(--red));
    color: var(--white);
}

.giving-card h3 {
    font-size: 1.2rem;
    color: var(--blue-dark);
    margin-bottom: 10px;
}

.giving-card p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--blue-dark);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--pink);
}

.footer-about p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 10px;
}

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

.footer-social a:hover {
    background: var(--pink);
    transform: translateY(-3px);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--pink-light);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.footer-contact li .icon {
    color: var(--pink);
    min-width: 20px;
    margin-top: 3px;
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ---------- Forms ---------- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--dark-gray);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-sm);
    font-family: var(--font-modern);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--blue-light);
    box-shadow: 0 0 0 4px rgba(45,90,160,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius);
}

.lightbox .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox .close-btn:hover {
    background: var(--pink);
    color: var(--white);
}

/* ---------- Pastors Section ---------- */
.pastors-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

.pastor-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

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

.pastor-card .pastor-image {
    height: 350px;
    background: var(--light-gray);
    background-size: cover;
    background-position: top center;
}

.pastor-card .pastor-info {
    padding: 30px;
}

.pastor-card .pastor-info h3 {
    font-size: 1.3rem;
    color: var(--blue-dark);
    margin-bottom: 5px;
}

.pastor-card .pastor-info .title {
    font-family: var(--font-script);
    font-style: italic;
    color: var(--pink);
    margin-bottom: 15px;
}

.pastor-card .pastor-info p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ---------- Leadership Grid ---------- */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
}

.leader-card {
    text-align: center;
    transition: var(--transition);
}

.leader-card:hover {
    transform: translateY(-5px);
}

.leader-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background-size: cover;
    background-position: center;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.leader-card:hover .leader-photo {
    border-color: var(--pink);
    box-shadow: var(--shadow-lg);
}

.leader-card h4 {
    font-size: 1.05rem;
    color: var(--blue-dark);
    margin-bottom: 5px;
}

.leader-card .leader-title {
    font-family: var(--font-script);
    font-style: italic;
    color: var(--pink);
    font-size: 0.9rem;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: var(--pink);
    opacity: 0.1;
    border-radius: 50%;
}

.cta-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-banner p {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .pastors-section {
        gap: 20px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .admin-sidebar {
        width: 220px;
    }
    .admin-main {
        margin-left: 220px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 500px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content .hero-subtitle {
        font-size: 1.2rem;
    }
    .hero-content p {
        font-size: 0.95rem;
    }
    .section {
        padding: 60px 0;
    }
    .section-header {
        margin-bottom: 40px;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
    .service-times {
        grid-template-columns: 1fr;
    }
    .events-grid,
    .sermons-grid,
    .testimonies-grid {
        grid-template-columns: 1fr;
    }
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .leadership-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .leader-photo {
        width: 120px;
        height: 120px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .pastors-section {
        grid-template-columns: 1fr;
    }
    .pastor-card .pastor-image {
        height: 280px;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--blue-dark);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }
    .nav-menu.open {
        right: 0;
    }
    .nav-menu a {
        color: var(--white) !important;
        padding: 12px 0;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 1rem;
    }
    .mobile-toggle {
        display: flex;
        z-index: 1001;
    }
    .devotional-card {
        padding: 30px 20px;
    }
    .devotional-card h3 {
        font-size: 1.4rem;
    }
    .cta-banner {
        padding: 60px 0;
    }
    .cta-banner h2 {
        font-size: 2rem;
    }
    .page-header {
        padding: 130px 0 60px;
    }
    .page-header h1 {
        font-size: 2rem;
    }
    .giving-options {
        grid-template-columns: 1fr;
    }
    .cart-table {
        font-size: 0.85rem;
    }
    .cart-table th,
    .cart-table td {
        padding: 10px 8px;
    }
    /* Admin responsive */
    .admin-sidebar {
        transform: translateX(-100%);
        transition: var(--transition);
        width: 260px;
        z-index: 200;
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0;
        padding: 20px 15px;
    }
    .admin-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .stat-card {
        padding: 15px;
    }
    .stat-card .stat-number {
        font-size: 1.5rem;
    }
    .admin-table {
        font-size: 0.8rem;
    }
    .admin-table th,
    .admin-table td {
        padding: 8px 6px;
    }
    .admin-menu-btn {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 450px;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-content .hero-subtitle {
        font-size: 1rem;
    }
    .section {
        padding: 50px 0;
    }
    .section-header h2 {
        font-size: 1.5rem;
    }
    .books-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .leadership-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .leader-photo {
        width: 100px;
        height: 100px;
    }
    .leader-card h4 {
        font-size: 0.9rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
    .book-card .book-cover {
        height: 250px;
    }
    .service-card {
        padding: 25px 20px;
    }
    .testimony-card {
        padding: 25px;
    }
    .pastor-card .pastor-image {
        height: 220px;
    }
    .pastor-card .pastor-info {
        padding: 20px;
    }
    .container {
        padding: 0 15px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .footer {
        padding: 50px 0 0;
    }
    .announcement-bar .ticker-item {
        font-size: 0.8rem;
        padding: 0 25px;
    }
}

/* ---------- Page Header ---------- */
.page-header {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
    text-align: center;
    color: var(--white);
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--white);
    clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 100%);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.page-header .breadcrumb {
    font-size: 0.9rem;
    opacity: 0.7;
}

.page-header .breadcrumb a {
    color: var(--pink-light);
}

/* ---------- Audio Player ---------- */
.audio-player {
    background: var(--off-white);
    border-radius: var(--radius-sm);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.audio-player .play-pause {
    width: 40px;
    height: 40px;
    background: var(--blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    flex-shrink: 0;
    border: none;
    transition: var(--transition);
}

.audio-player .play-pause:hover {
    background: var(--pink);
}

.audio-player audio {
    flex: 1;
    height: 35px;
}

/* ---------- Cart / Checkout ---------- */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.cart-table th,
.cart-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.cart-table th {
    background: var(--off-white);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-total {
    text-align: right;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blue-dark);
    padding: 20px 0;
    border-top: 2px solid var(--blue);
}

/* ---------- Admin Styles ---------- */
.admin-sidebar {
    width: 260px;
    background: var(--blue-dark);
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 20px 0;
    color: var(--white);
    z-index: 100;
}

.admin-sidebar .admin-logo {
    padding: 10px 25px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.admin-sidebar .admin-logo h2 {
    font-size: 1.2rem;
    color: var(--white);
}

.admin-sidebar .admin-logo span {
    font-size: 0.8rem;
    color: var(--pink-light);
}

.admin-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
    background: rgba(255,255,255,0.05);
    color: var(--white);
    border-left-color: var(--pink);
}

.admin-main {
    margin-left: 260px;
    padding: 30px;
    background: var(--off-white);
    min-height: 100vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: var(--white);
    padding: 20px 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.admin-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
}

.admin-card h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--blue);
}

.stat-card:nth-child(2) { border-left-color: var(--pink); }
.stat-card:nth-child(3) { border-left-color: var(--red); }
.stat-card:nth-child(4) { border-left-color: #27ae60; }

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--blue-dark);
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 5px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.9rem;
}

.admin-table th {
    font-weight: 600;
    color: var(--dark-gray);
    background: var(--off-white);
}

.admin-table tr:hover {
    background: var(--off-white);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-info { background: #d1ecf1; color: #0c5460; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-pink { color: var(--pink); }
.text-blue { color: var(--blue); }
.text-red { color: var(--red); }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
