/* ============================================
   BOOTSTRAP 5 CUSTOM STYLES
   Abune Endryas Church Website
   ============================================ */

/* Custom CSS Variables - Match original Tailwind colors */
:root {
    /* Primary Blue (Tailwind blue-600/700) */
    --bs-primary: #2563eb;
    --bs-primary-rgb: 37, 99, 235;
    --primary-hover: #1d4ed8;
    --primary-light: #dbeafe;
    
    /* Gray palette matching Tailwind */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Accent colors */
    --accent-gold: #f59e0b;
    --accent-yellow: #eab308;
    
    /* Blue palette */
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a8a;
}

/* Override Bootstrap primary color */
.btn-primary {
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: var(--primary-hover);
    --bs-btn-hover-border-color: var(--primary-hover);
    --bs-btn-active-bg: var(--primary-hover);
    --bs-btn-active-border-color: var(--primary-hover);
}

.btn-outline-primary {
    --bs-btn-color: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
    --bs-btn-active-bg: var(--bs-primary);
    --bs-btn-active-border-color: var(--bs-primary);
}

/* ============================================
   BASE STYLES
   ============================================ */

/* Smooth transitions for fade-in elements */
.fade-in,
.fade-in-delay-1,
.fade-in-delay-2 {
    transition: opacity 0.3s ease;
}

/* Make body flex to push footer to bottom */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    letter-spacing: 0.01em;
    background-color: var(--gray-50) !important;
}

main {
    flex: 1;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* ============================================
   CUSTOM UTILITY CLASSES
   (To match Tailwind utilities not in Bootstrap)
   ============================================ */

/* Background colors */
.bg-gray-50 { background-color: var(--gray-50) !important; }
.bg-gray-100 { background-color: var(--gray-100) !important; }
.bg-gray-800 { background-color: var(--gray-800) !important; }
.bg-blue-50 { background-color: var(--blue-50) !important; }
.bg-blue-100 { background-color: var(--blue-100) !important; }
.bg-blue-600 { background-color: var(--blue-600) !important; }

/* Text colors */
.text-gray-600 { color: var(--gray-600) !important; }
.text-gray-700 { color: var(--gray-700) !important; }
.text-gray-900 { color: var(--gray-900) !important; }
.text-blue-600 { color: var(--blue-600) !important; }
.text-blue-700 { color: var(--blue-700) !important; }

/* Border colors */
.border-blue-600 { border-color: var(--blue-600) !important; }
.border-gray-100 { border-color: var(--gray-100) !important; }
.border-gray-200 { border-color: var(--gray-200) !important; }
.border-gray-300 { border-color: var(--gray-300) !important; }

/* Hover states */
.hover-text-blue-700:hover { color: var(--blue-700) !important; }
.hover-bg-blue-100:hover { background-color: var(--blue-100) !important; }
.hover-bg-blue-700:hover { background-color: var(--blue-700) !important; }

/* Font weights (Bootstrap has these but for consistency) */
.fw-medium { font-weight: 500 !important; }

/* ============================================
   HERO SECTION
   ============================================ */

/* Slow zoom in and out animation - base animation for mobile */
@keyframes zoomInOut {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Slow zoom in and out animation - for desktop */
@keyframes zoomInOutDesktop {
    0%, 100% {
        transform: scale(1.02);
    }
    50% {
        transform: scale(1.12);
    }
}

/* Hero section */
.hero-section {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

@media (min-width: 768px) {
    .hero-section {
        min-height: 600px;
    }
}

/* Hero background image - different images for mobile and desktop */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
    /* Default: mobile image */
    background-image: url('../images/mobile-hero-image.jpg');
    filter: blur(0px);
    transform: scale(1);
    animation: zoomInOut 15s ease-in-out infinite;
}

/* On desktop/tablet (769px and up), use desktop image */
@media (min-width: 769px) {
    .hero-bg-image {
        background-image: url('../images/desktop-hero-image.jpg');
        filter: blur(0.5px);
        transform: scale(1.02);
        animation: zoomInOutDesktop 15s ease-in-out infinite;
    }
}

/* Hero gradient overlays */
.hero-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, 
        rgba(30, 58, 138, 0.85) 0%, 
        rgba(37, 99, 235, 0.55) 50%, 
        rgba(96, 165, 250, 0.05) 100%);
}

@media (min-width: 768px) {
    .hero-overlay-gradient {
        background: linear-gradient(to right, 
            rgba(30, 58, 138, 0.90) 0%, 
            rgba(37, 99, 235, 0.60) 50%, 
            rgba(96, 165, 250, 0.08) 100%);
    }
}

.hero-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, 
        rgba(0, 0, 0, 0.35) 0%, 
        rgba(0, 0, 0, 0.18) 50%, 
        transparent 100%);
}

@media (min-width: 768px) {
    .hero-overlay-dark {
        background: linear-gradient(to right, 
            rgba(0, 0, 0, 0.40) 0%, 
            rgba(0, 0, 0, 0.20) 50%, 
            transparent 100%);
    }
}

/* Enhanced text shadows for better readability over images */
.drop-shadow-lg {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
}

.drop-shadow-md {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4), 0 0 10px rgba(0, 0, 0, 0.2);
}

/* ============================================
   PAGE HEADER (for inner pages)
   ============================================ */

.page-header {
    background: linear-gradient(to right, var(--blue-600), var(--blue-800));
}

/* ============================================
   NAVIGATION - Improved & Responsive
   ============================================ */

/* Navbar styling */
.navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.98) !important;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-100);
    z-index: 1030;
}

/* Ensure offcanvas backdrop covers everything */
.offcanvas-backdrop {
    z-index: 1040 !important;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Prevent horizontal scrolling when offcanvas is open (mobile only) */
@media (max-width: 1399.98px) {
    body.offcanvas-open {
        overflow-x: hidden;
    }
}

/* Ensure hero section doesn't override offcanvas */
.hero-section {
    z-index: 1;
}

.page-header {
    z-index: 1;
}

/* Navbar brand */
.navbar-brand {
    font-size: 1.125rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Nav link base styles */
.navbar .nav-link {
    position: relative;
    color: var(--gray-700) !important;
    font-weight: 500;
    font-size: 0.8rem;
    padding: 0.375rem 0.5rem !important;
    transition: color 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
    border-radius: 0.375rem;
}

/* Nav link hover underline effect */
.navbar .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bs-primary);
    transition: width 0.25s ease;
    border-radius: 1px;
}

.navbar .nav-link:hover {
    color: var(--blue-600) !important;
    background-color: var(--blue-50);
}

.navbar .nav-link:hover::after {
    width: 60%;
}

/* Active nav link */
.navbar .nav-link.active,
.navbar .nav-link.nav-active {
    color: var(--bs-primary) !important;
    font-weight: 600;
    background-color: rgba(37, 99, 235, 0.1);
}

.navbar .nav-link.active::after,
.navbar .nav-link.nav-active::after {
    width: 60%;
    height: 2px;
    background-color: var(--bs-primary);
}

/* Navbar nav container */
.navbar-nav {
    gap: 0.25rem !important;
}

/* Language switcher buttons */
.lang-btn {
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
}

.lang-btn-inactive {
    background-color: var(--gray-100);
    color: var(--gray-600);
}

.lang-btn-inactive:hover {
    background-color: var(--blue-50);
    border-color: var(--blue-300);
    color: var(--blue-600);
}

.lang-btn-active {
    background-color: var(--blue-600);
    color: white;
    border-color: var(--blue-600);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.lang-btn-active:hover {
    background-color: var(--blue-700);
    border-color: var(--blue-700);
    color: white;
}

/* Language switcher container */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid var(--gray-200);
}

/* =============================================
   OFFCANVAS - Mobile/Tablet (below xxl)
   ============================================= */
@media (max-width: 1399.98px) {
    .offcanvas {
        max-width: 300px;
        border-left: 1px solid var(--gray-200);
        height: 100vh !important;
        height: 100dvh !important;
    }
    
    /* Force offcanvas-end to open from right - override Bootstrap completely */
    .offcanvas.offcanvas-end {
        right: 0 !important;
        left: auto !important;
        /* Remove any left offset Bootstrap might add */
        margin-left: 0 !important;
        padding-left: 0 !important;
        /* Ensure it starts off-screen to the right */
        transform: translateX(100%) !important;
    }
    
    /* When shown, ensure it stays on the right and slides in correctly */
    .offcanvas.offcanvas-end.show,
    .offcanvas.offcanvas-end.showing {
        right: 0 !important;
        left: auto !important;
        transform: translateX(0) !important;
        margin-left: 0 !important;
    }
    
    /* Ensure offcanvas has proper z-index */
    .offcanvas.show,
    .offcanvas.showing {
        z-index: 1045 !important;
    }
    
    /* Ensure offcanvas body is scrollable and fills available space */
    .offcanvas .offcanvas-body {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
    }
}

/* =============================================
   NAVBAR - Desktop (xxl and above)
   ============================================= */
@media (min-width: 1400px) {
    /* Make offcanvas display inline within navbar on desktop */
    .navbar-expand-xxl .offcanvas {
        position: static !important;
        z-index: auto !important;
        flex-grow: 1;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        visibility: visible !important;
        background-color: transparent !important;
        border: 0 !important;
        transform: none !important;
        transition: none !important;
        box-shadow: none !important;
    }
    
    /* Hide offcanvas header on desktop */
    .navbar-expand-xxl .offcanvas .offcanvas-header {
        display: none !important;
    }
    
    /* Make offcanvas body display inline */
    .navbar-expand-xxl .offcanvas .offcanvas-body {
        display: flex !important;
        flex-grow: 0;
        padding: 0 !important;
        overflow-y: visible !important;
        align-items: center;
    }
    
    /* Hide hamburger menu on desktop */
    .navbar-expand-xxl .navbar-toggler {
        display: none !important;
    }
    
    /* Hide mobile language switcher on desktop */
    .navbar-expand-xxl .lang-switcher-mobile {
        display: none !important;
    }
}

/* Offcanvas header styling (mobile only) */
@media (max-width: 1399.98px) {
    .offcanvas-header {
        background-color: var(--blue-600);
        color: white;
        padding: 1.25rem 1.5rem;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        flex-shrink: 0;
    }

    .offcanvas-title {
        color: white;
        font-weight: 600;
        margin: 0;
        padding-right: 1rem;
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .offcanvas .btn-close {
        filter: brightness(0) invert(1);
        opacity: 0.8;
        flex-shrink: 0;
        margin-left: auto;
    }

    .offcanvas .btn-close:hover {
        opacity: 1;
    }

    .offcanvas-body {
        padding: 1.5rem;
        overflow-x: hidden;
    }

    .offcanvas .nav-link {
        padding: 0.875rem 1.25rem !important;
        font-size: 1rem;
        border-radius: 0.5rem;
        margin-bottom: 0.25rem;
        color: var(--gray-700) !important;
        display: block !important;
        width: 100%;
        box-sizing: border-box;
    }

    .offcanvas .nav-link:hover {
        background-color: var(--gray-100);
        color: var(--blue-600) !important;
    }

    .offcanvas .nav-link.active,
    .offcanvas .nav-link.nav-active {
        background-color: var(--blue-50);
        color: var(--blue-600) !important;
    }

    /* Ensure nav menu is visible in offcanvas */
    .offcanvas .navbar-nav {
        display: flex !important;
        flex-direction: column !important;
        padding-left: 0 !important;
        margin-bottom: 1rem !important;
        list-style: none !important;
        width: 100%;
    }
}

/* Prevent body overflow when offcanvas is open */
body:has(.offcanvas.show) {
    overflow-x: hidden;
}

.offcanvas .nav-item {
    display: block !important;
}

/* Mobile language switcher in offcanvas */
.lang-switcher-mobile {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--gray-200);
    justify-content: center;
}

.lang-switcher-mobile .lang-btn {
    flex: 1;
    max-width: 100px;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
}

/* Navbar toggler improvements */
.navbar-toggler {
    padding: 0.5rem;
    border: none !important;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.navbar-toggler:hover {
    background-color: var(--gray-100);
}

.navbar-toggler:focus {
    box-shadow: none;
    background-color: var(--gray-100);
}

.navbar-toggler-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Desktop navigation - XXL breakpoint adjustments */
@media (min-width: 1400px) {
    .navbar .nav-link {
        font-size: 0.8rem;
        padding: 0.375rem 0.45rem !important;
    }
    
    .navbar-nav {
        gap: 0 !important;
    }
    
    .lang-switcher {
        margin-left: 0.75rem;
        padding-left: 0.75rem;
    }
    
    .lang-btn {
        padding: 0.25rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* Larger XXL screens - more spacing */
@media (min-width: 1600px) {
    .navbar .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 0.625rem !important;
    }
    
    .navbar-nav {
        gap: 0.125rem !important;
    }
    
    .lang-btn {
        padding: 0.35rem 0.85rem;
        font-size: 0.8rem;
    }
}

/* Extra large screens - full spacing */
@media (min-width: 1800px) {
    .navbar .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem !important;
    }
    
    .navbar-nav {
        gap: 0.25rem !important;
    }
}

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

/* Card hover effects */
.card-hover {
    border: 1px solid var(--gray-200);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-hover:hover {
    border-color: var(--bs-primary);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Staggered fade in for cards */
.fade-in-delay-1 {
    animation: fadeIn 0.6s ease-out 0.1s both;
}

.fade-in-delay-2 {
    animation: fadeIn 0.6s ease-out 0.2s both;
}

.fade-in-delay-3 {
    animation: fadeIn 0.6s ease-out 0.3s both;
}

/* Slide in from left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

/* Slide in from right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

/* Page transition */
.page-transition {
    animation: fadeIn 0.4s ease-out;
}

/* ============================================
   ICONS
   ============================================ */

/* SVG Icon styles */
.svg-icon {
    width: 3rem;
    height: 3rem;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.icon-hover {
    transition: transform 0.3s ease, color 0.3s ease;
}

.icon-hover:hover {
    transform: scale(1.2) rotate(5deg);
    color: var(--bs-primary);
}

/* ============================================
   LINKS
   ============================================ */

/* Link hover effects */
.link-hover {
    position: relative;
    transition: color 0.3s ease;
    text-decoration: none;
    color: var(--blue-600);
    font-weight: 600;
}

.link-hover::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--bs-primary);
    transition: width 0.3s ease;
}

.link-hover:hover::after {
    width: 100%;
}

.link-hover:hover {
    color: var(--blue-800);
}

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

/* Primary button custom styles */
.btn-custom-primary {
    background-color: var(--blue-600);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-custom-primary:hover {
    background-color: var(--blue-700);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

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

/* Form input focus effects */
.form-control:focus,
.form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

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

/* Table styling */
.table-custom thead {
    background: linear-gradient(to right, var(--blue-600), var(--blue-700));
    color: white;
}

.table-custom thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    padding: 1rem 1.5rem;
}

.table-custom tbody tr {
    transition: background-color 0.2s ease;
}

.table-custom tbody tr:hover {
    background-color: var(--blue-50);
}

/* ============================================
   ACCORDION (Yearbook)
   ============================================ */

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content.open {
    max-height: 2000px;
}

.accordion-btn {
    background: linear-gradient(to right, var(--blue-600), var(--blue-700));
    color: white;
    border: none;
    width: 100%;
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.accordion-btn:hover {
    background: linear-gradient(to right, var(--blue-700), var(--blue-800));
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-icon.rotate-180 {
    transform: rotate(180deg);
}

/* ============================================
   SECTION DIVIDERS
   ============================================ */

.section-divider {
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        var(--gray-200) 20%,
        var(--gray-200) 80%,
        transparent
    );
    margin: 3rem 0;
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */

.scroll-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background-color: var(--bs-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    z-index: 1000;
}

.scroll-to-top-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.scroll-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ============================================
   FOOTER
   ============================================ */

/* Social Media Icons */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.1);
    color: white;
}

.social-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

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

/* Loading spinner */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--bs-primary);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   TYPOGRAPHY (Tigrinya support)
   ============================================ */

[lang="ti"],
[data-lang="ti"] {
    font-family: 'Noto Sans Ethiopic', 'Abyssinica SIL', 'Nyala', sans-serif;
    line-height: 1.8;
    letter-spacing: 0.05em;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

/* Mobile optimizations */
@media (max-width: 767.98px) {
    /* Touch targets */
    .btn, button, a {
        min-height: 44px;
    }
    
    /* Hero section */
    .hero-section {
        min-height: 500px;
    }

    .hero-section .display-4 {
        font-size: 2rem;
    }

    .hero-section .fs-4 {
        font-size: 1.15rem !important;
    }

    .hero-section .fs-5 {
        font-size: 0.95rem !important;
    }
    
    /* Reduce padding on mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Ensure offcanvas shows hamburger until xxl breakpoint */
@media (max-width: 1399.98px) {
    /* Ensure Bootstrap offcanvas behaves correctly */
    .navbar-expand-xxl .navbar-toggler {
        display: flex;
    }
}

/* ============================================
   VISION PAGE - Border accent
   ============================================ */

.border-start-primary {
    border-left: 4px solid var(--blue-600) !important;
}

/* ============================================
   LEADER CARDS - Professional styling
   ============================================ */

.leader-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    background: white;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.leader-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15), 0 8px 16px rgba(0, 0, 0, 0.08);
}

.leader-avatar {
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
    border: 4px solid var(--blue-100);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.15);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    isolation: isolate;
}

.leader-card:hover .leader-avatar {
    border-color: var(--blue-400);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
    transform: scale(1.03);
}

.leader-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
}

.leader-card:hover .leader-avatar img {
    transform: scale(1.08);
}

.leader-name {
    color: var(--gray-900);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.leader-role {
    color: var(--blue-600);
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--blue-50);
    border-radius: 2rem;
}

.leader-divider {
    width: 3rem;
    height: 3px;
    background: linear-gradient(to right, var(--blue-400), var(--blue-600));
    border-radius: 2px;
    margin: 0 auto;
}

/* Sunday school smaller cards */
.leader-avatar-sm {
    width: 8rem;
    height: 8rem;
}

.leader-avatar-sm + .leader-name {
    font-size: 1rem;
}

@media (max-width: 767.98px) {
    .leader-avatar {
        width: 8rem;
        height: 8rem;
    }
}

/* ============================================
   NOTIFICATION TOASTS
   ============================================ */

.notification-toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-width: 400px;
    animation: fadeIn 0.3s ease-out;
}

.notification-toast.success { background-color: #22c55e; color: white; }
.notification-toast.error { background-color: #ef4444; color: white; }
.notification-toast.info { background-color: var(--blue-600); color: white; }
