:root {
    --primary-color: #D32F2F;
    --primary-dark: #B71C1C;
    --theme-blue: #D32F2F;
    --theme-dark-blue: #B71C1C;
    --secondary-color: #ffffff;
    --bg-light: #F0F8FF;
    --bg-white: #FFFFFF;
    --text-dark: #2C3E50;
    --text-body: #4A5568;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --bs-primary: #D32F2F;
    --bs-body-bg: #FFFFFF;
    --bs-body-color: #4A5568;
}

body {
    font-family: var(--font-body);
    color: var(--text-body);
    line-height: 1.7;
    background-color: var(--bg-light);
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.text-primary { color: var(--primary-color) !important; }
.text-theme-blue { color: var(--theme-blue) !important; }
.bg-theme-blue { background-color: var(--theme-blue) !important; color: white; }
.bg-hopeful { background-color: #FBC02D !important; color: #333333; }
.border-theme-blue { border-color: var(--theme-blue) !important; }

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 4px 6px rgba(211, 47, 47, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(183, 28, 28, 0.4);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: white;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.2);
}

/* Shadows */
.shadow-lg { box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1) !important; }
.shadow-sm { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important; }
.shadow { box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08) !important; }

.rounded, .card, .btn-lg, .form-control { border-radius: 0.75rem !important; }

/* Hero */
.hero-section {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('../AIC CHURCH BG.webp') no-repeat center center/cover;
    height: 85vh;
    min-height: 600px;
    margin-top: -86px;
    padding-top: 86px;
    display: flex;
    align-items: center;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(15px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0.8rem;
    position: relative;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link.active::after, .nav-link:hover::after { width: 100%; }
.nav-link.active, .nav-link:hover { color: var(--primary-color); }

/* Components */
.card {
    border: none;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    background-color: white;
    overflow: hidden;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(211, 47, 47, 0.15) !important;
}

.divider {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--primary-color), var(--bg-light));
    border-radius: 2px;
    margin-bottom: 2rem;
}

/* Dynamic Content Styling */
.leadership-img {
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--bg-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Framing Styles */
.leadership-img.rounded-circle { border-radius: 50%; }
.leadership-img.rounded-0 { border-radius: 0 !important; }
.leadership-img.rounded { border-radius: 1rem !important; }

/* Department Images */
.department-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-color);
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    object-fit: cover;
}

#backToTop {
    z-index: 1000;
    transition: all 0.3s ease;
    background-color: var(--primary-color);
    border: none;
    color: white;
}

#backToTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.4);
}

@media (max-width: 991.98px) {
    .hero-section {
        height: auto;
        padding-top: 120px;
        padding-bottom: 80px;
        min-height: auto;
    }
    .hero-section h1 { font-size: 2.5rem; }
    .navbar-collapse {
        background-color: white;
        padding: 1.5rem;
        border-radius: 1rem;
        margin-top: 1rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }
}