﻿/* =============================================
   COLOR VARIABLES & BASE
   ============================================= */
:root {
    --church-navy: #1B2A47;
    --church-gold: #D4AF37;
    --church-bg: #F9F7F3; /* Warm Linen */
    --church-text: #4A4A4A;
}

.fellowship-directory-wrapper {
    background-color: var(--church-bg);
    min-height: 100vh;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--church-text);
}

/* Typography Utilities */
.text-navy {
    color: #1B2A47 !important;
}

.text-gold {
    color: #D4AF37 !important;
}

.tracking-widest {
    letter-spacing: 0.15em;
}

/* Traditional serif fonts for reverent headings */
.hero-title, .section-heading {
    font-family: "Lora", "Playfair Display", "Merriweather", Georgia, serif;
    color: #1B2A47;
}

/* Limit text to exactly 3 lines with an ellipsis */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

/* Staggered delays for the waterfall effect */
.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.25s;
}

/* =============================================
   HERO BANNER
   ============================================= */
.fellowship-hero {
    background-color: #1B2A47;
    background-image: linear-gradient(135deg, rgba(27, 42, 71, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%), url('/images/church-pattern-bg.jpg');
    background-size: cover;
    background-position: center;
    padding-bottom: 8rem !important; /* Extra padding to pull the cards up */
    border-bottom: 4px solid #D4AF37;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-style: italic;
    font-family: "Lora", Georgia, serif;
}

.badge-gold {
    background-color: rgba(212, 175, 55, 0.15);
    color: #D4AF37;
    border: 1px solid rgba(212, 175, 55, 0.5);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

/* Pull the layout up over the hero banner */
.mt-n5 {
    margin-top: -5rem !important;
}

/* =============================================
   FELLOWSHIP CARDS
   ============================================= */
.fellowship-card {
    background-color: #FFFFFF;
    border-radius: 16px;
    border: none;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid transparent;
}

    .fellowship-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(27, 42, 71, 0.1) !important;
        border-bottom-color: #D4AF37;
    }

/* Card Cover Image */
.card-cover-wrapper {
    height: 120px;
    width: 100%;
    overflow: hidden;
    background-color: #1B2A47;
}

.card-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform 0.5s ease;
}

.fellowship-card:hover .card-cover-image {
    transform: scale(1.05); /* Gentle zoom effect on hover */
}

/* =============================================
   OVERLAPPING PATRON SAINT LOGO
   ============================================= */
.card-logo-container {
    position: relative;
    height: 0;
    display: flex;
    justify-content: center;
}

.patron-saint-frame-small {
    position: absolute;
    top: -55px; /* Pulled exactly halfway up to account for the 110px size */
    width: 110px;
    height: 110px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #D4AF37, #F3E5AB);
    z-index: 2;
}

    .patron-saint-frame-small img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        border: 4px solid #FFFFFF;
    }

/* Custom padding to ensure the text clears the bottom of the larger logo */
.card-content-padding {
    padding-top: 4.5rem !important;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-outline-navy {
    color: #1B2A47;
    background-color: transparent;
    border: 2px solid #1B2A47;
}

    .btn-outline-navy:hover {
        color: #FFFFFF;
        background-color: #1B2A47;
        border-color: #1B2A47;
    }
