/* GCCC Website Main Styles */
/* Unified Natural Color Palette inspired by outdoor gathering */

/* Google Fonts - Traditional Chinese compatible */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Noto+Sans+TC:wght@300;400;500;600;700&family=Noto+Serif+TC:wght@400;500;600;700&family=Source+Sans+Pro:wght@300;400;500;600;700&display=swap');

/* Custom CSS Variables - Natural Harmony Palette */
:root {
    /* Primary - Lighter Forest Greens */
    --primary-color: #3d7a52;
    --primary-light: #5a9c6e;
    --primary-dark: #2d5a3d;
    
    /* Secondary - Sky Blues */
    --secondary-color: #5ba4d9;
    --secondary-light: #a8d4f0;
    --secondary-dark: #3d7ba8;
    
    /* Accent - Warm Gold */
    --accent-color: #c9a961;
    --accent-light: #e8d9a8;
    --accent-dark: #9a7d3a;
    
    /* Neutral - Earth Tones */
    --earth-brown: #6b5344;
    --earth-light: #8b7355;
    --cream: #faf8f5;
    --soft-white: #ffffff;
    
    /* Status Colors */
    --success-color: #4a7c59;
    --info-color: #5ba4d9;
    --warning-color: #c9a961;
    --danger-color: #c25b56;
    
    /* Text Colors */
    --text-dark: #2c3e2d;
    --text-muted: #6b7c6b;
    --text-light: #ffffff;
    
    /* Typography - Traditional Chinese font support */
    --font-display: 'Noto Serif TC', 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Noto Sans TC', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display-en: 'Cormorant Garamond', Georgia, serif;
    --font-body-en: 'Source Sans Pro', -apple-system, sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(45, 90, 61, 0.08);
    --shadow-md: 0 4px 16px rgba(45, 90, 61, 0.12);
    --shadow-lg: 0 8px 32px rgba(45, 90, 61, 0.16);
}

/* Base Styles */
body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--cream);
    padding-top: 80px; /* Account for fixed navbar */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
}

/* ============================================
   NAVIGATION - Elegant Light Forest Green
   ============================================ */
.navbar,
.navbar.navbar-dark,
.navbar.navbar-expand-lg,
nav.navbar {
    background: linear-gradient(135deg, #4a8c5f 0%, #5fa876 50%, #4a8c5f 100%) !important;
    background-color: #4a8c5f !important;
    box-shadow: 
        0 4px 20px rgba(74, 140, 95, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
    padding: 0.75rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    background: linear-gradient(135deg, #3d7a52 0%, #4a8c5f 100%) !important;
    background-color: #3d7a52 !important;
    box-shadow: 
        0 4px 25px rgba(61, 122, 82, 0.35),
        0 1px 0 rgba(255, 255, 255, 0.05) inset;
    padding: 0.5rem 0;
}

.navbar-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-light) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--accent-light) !important;
    transform: scale(1.02);
}

.navbar-brand i {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.navbar-nav .nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    color: rgba(255, 255, 255, 0.9) !important;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 0.15rem;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.3rem;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.navbar-nav .nav-link:hover {
    color: var(--text-light) !important;
    background: rgba(255, 255, 255, 0.1);
}

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

.navbar-nav .nav-link.active {
    color: var(--text-light) !important;
    background: rgba(255, 255, 255, 0.15);
}

.navbar-nav .nav-link.active::after {
    width: 60%;
    background: var(--accent-color);
}

/* Navigation Pills - Dropdown toggles and standalone items */
.navbar .nav-link.dropdown-toggle,
.navbar .nav-link.nav-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50px !important;
    padding: 0.5rem 1rem !important;
    height: auto !important;
    line-height: 1.5 !important;
}

.navbar .nav-link.dropdown-toggle:hover,
.navbar .nav-link.nav-pill:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* 点击后不保留焦点环，与其他项一致（仅鼠标点击时去掉 outline/shadow，键盘仍保留） */
.navbar .nav-link.dropdown-toggle:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
}

/* Remove extra right padding for nav-pill (no dropdown arrow) */
.navbar .nav-link.nav-pill {
    padding-right: 1rem !important;
}

/* ============================================
   NAVIGATION DROPDOWNS - Hover to Open
   ============================================ */

/* Desktop hover dropdown - Override Bootstrap's click behavior */
@media (min-width: 992px) {
    /* Make dropdown menu always "display: block" but visually hidden */
    .navbar .nav-item.dropdown .dropdown-menu {
        display: block !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(10px);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
        pointer-events: none;
        margin-top: 0 !important;
        top: 100%;
    }
    
    /* Show dropdown on hover */
    .navbar .nav-item.dropdown:hover > .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    /* Also show when dropdown-toggle is focused (for accessibility) */
    .navbar .nav-item.dropdown .dropdown-toggle:focus + .dropdown-menu,
    .navbar .nav-item.dropdown .dropdown-menu:hover {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    /* Dropdown toggle arrow animation */
    .navbar .nav-link.dropdown-toggle::after {
        transition: transform 0.3s ease;
    }
    
    .navbar .nav-item.dropdown:hover .nav-link.dropdown-toggle::after {
        transform: rotate(180deg);
    }
}

/* Refined dropdown menu styling */
.navbar .dropdown-menu {
    background: var(--soft-white);
    border: none;
    border-radius: 12px;
    box-shadow: 
        0 10px 40px rgba(45, 90, 61, 0.15),
        0 2px 10px rgba(45, 90, 61, 0.08);
    padding: 0.75rem 0.5rem;
    min-width: 200px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(93, 156, 110, 0.1);
}

/* Dropdown items with elegant hover */
.navbar .dropdown-item {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    color: var(--text-dark);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

/* Hover state with subtle gold accent */
.navbar .dropdown-item:hover {
    background: linear-gradient(135deg, var(--cream) 0%, rgba(201, 169, 97, 0.1) 100%);
    color: var(--primary-dark);
    transform: translateX(4px);
}

/* Active dropdown item */
.navbar .dropdown-item.active,
.navbar .dropdown-item:active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--text-light);
    transform: translateX(0);
}

/* Active state for dropdown parent when child is active */
.navbar .nav-item.dropdown.active > .nav-link,
.navbar .nav-item.dropdown:has(.dropdown-item.active) > .nav-link {
    color: var(--accent-light) !important;
}

/* Icon styling for dropdown items */
.navbar .dropdown-item i {
    width: 20px;
    margin-right: 8px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.navbar .dropdown-item:hover i {
    opacity: 1;
}

/* Mobile dropdown enhancements */
@media (max-width: 991.98px) {
    .navbar .dropdown-menu {
        background: rgba(255, 255, 255, 0.95);
        border-radius: 8px;
        margin: 0.5rem 0;
        padding: 0.5rem;
        box-shadow: inset 0 2px 8px rgba(45, 90, 61, 0.08);
    }
    
    .navbar .dropdown-item {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .navbar .dropdown-item:hover {
        transform: none;
    }
}

/* Dropdown divider styling */
.navbar .dropdown-divider {
    border-color: rgba(93, 156, 110, 0.15);
    margin: 0.5rem 0.75rem;
}

/* Mobile Navigation Toggle */
.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Language Switcher */
.language-switcher .btn-group .btn {
    border-radius: 0;
}

.language-switcher .btn-group .btn:first-child {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.language-switcher .btn-group .btn:last-child {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-image img {
    border-radius: 0;
    box-shadow: none;
    max-width: 500px;
    max-height: 500px;
    width: auto;
    height: auto;
}

/* ============================================
   CARDS - Elegant with Natural Colors
   ============================================ */
.card {
    border: none;
    border-radius: 16px;
    background: var(--soft-white);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

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

.card-img-top {
    object-fit: cover;
}

.card-title {
    font-family: var(--font-display);
    color: var(--primary-color);
    font-weight: 600;
}

.card-footer {
    background: var(--cream);
    border-top: 1px solid rgba(45, 90, 61, 0.08);
}

/* Service Time Cards */
.service-time-card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
}

.service-time-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    color: var(--primary-color);
}

/* YouTube Embed */
.youtube-embed .ratio {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Announcement Cards */
.announcement-card {
    border: none;
    border-radius: 12px;
    border-left: 4px solid;
}

.announcement-card.alert-danger {
    border-left-color: var(--danger-color);
    background: rgba(194, 91, 86, 0.1);
}

.announcement-card.alert-info {
    border-left-color: var(--info-color);
    background: rgba(91, 164, 217, 0.1);
}

.announcement-card.alert-secondary {
    border-left-color: var(--earth-brown);
    background: rgba(107, 83, 68, 0.1);
}

/* ============================================
   BUTTONS - Natural Gradient Style
   ============================================ */
.btn {
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(45, 90, 61, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 90, 61, 0.4);
    color: var(--text-light);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(91, 164, 217, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 164, 217, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #5a9c6a);
    color: var(--text-light);
}

.btn-success:hover {
    background: linear-gradient(135deg, #5a9c6a, var(--success-color));
    transform: translateY(-2px);
}

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

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1.1rem;
}

/* ============================================
   FOOTER - Elegant Dark Theme
   ============================================ */
footer {
    background: linear-gradient(180deg, var(--primary-dark) 0%, #152118 100%) !important;
    color: rgba(255, 255, 255, 0.85);
}

footer h6 {
    color: var(--accent-color);
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.5px;
}

footer a {
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.3s ease;
    text-decoration: none;
}

footer a:hover {
    color: var(--accent-color) !important;
    padding-left: 5px;
}

footer .text-white {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-shadow {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
}

.bg-light {
    background-color: var(--cream) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Section Styling */
section {
    position: relative;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-light));
    margin: 1.5rem auto;
    border-radius: 2px;
}

/* Badge Styling */
.badge {
    font-family: var(--font-body);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.badge.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark)) !important;
    color: var(--text-dark);
}

/* Border Colors */
.border-primary {
    border-color: var(--primary-color) !important;
}

.border-success {
    border-color: var(--success-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
        text-align: center;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .display-6 {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 70px;
    }
    
    .hero-section {
        min-height: 40vh;
        padding: 2rem 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

/* Accessibility */
.visually-hidden-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 0.5rem;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 0.25rem;
}

/* ============================================
   ABOUT PAGE - Tab Navigation Styles
   ============================================ */

/* About page nav pills - Use green theme instead of Bootstrap blue */
.nav-pills.about-nav-pills .nav-link,
.about-nav-pills.nav-pills .nav-link,
.about-nav-pills .nav-link {
    color: var(--text-dark) !important;
    background-color: transparent !important;
    border: 1px solid rgba(61, 122, 82, 0.2) !important;
    border-radius: 8px !important;
    padding: 0.75rem 1.25rem !important;
    margin-bottom: 0.5rem !important;
    font-family: var(--font-body);
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: left;
}

.nav-pills.about-nav-pills .nav-link:hover,
.about-nav-pills.nav-pills .nav-link:hover,
.about-nav-pills .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(61, 122, 82, 0.08) !important;
    border-color: rgba(61, 122, 82, 0.3) !important;
}

/* Active state - Override Bootstrap's blue with green */
.nav-pills.about-nav-pills .nav-link.active,
.about-nav-pills.nav-pills .nav-link.active,
.about-nav-pills .nav-link.active,
.nav-pills.about-nav-pills > .nav-link.active,
.nav-pills.about-nav-pills .show > .nav-link {
    color: #ffffff !important;
    background-color: #3d7a52 !important;
    border-color: #3d7a52 !important;
}

.about-nav-pills .nav-link i {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.about-nav-pills .nav-link.active i {
    color: #ffffff !important;
}

/* About page content cards */
.about-content-card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

/* Pastor cards */
.pastor-card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.pastor-photo {
    border: 3px solid var(--primary-light);
    box-shadow: 0 4px 12px rgba(61, 122, 82, 0.15);
}

.pastor-photo-placeholder {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
}

/* ============================================
   FELLOWSHIP PAGE STYLES
   ============================================ */

/* Fellowship Icon - Circular icon at top of page */
.fellowship-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--text-light);
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(61, 122, 82, 0.3);
}

/* Fellowship Introduction Section */
.fellowship-intro p {
    line-height: 1.8;
}

.fellowship-intro p.lead {
    font-size: 1.15rem;
}

.fellowship-intro-richtext {
    margin-top: 1rem;
}

.fellowship-intro-richtext p {
    color: var(--text-muted);
}

/* Primary Green Color Utility Class */
.text-primary-green {
    color: var(--primary-color) !important;
}

/* Section Divider for Fellowship Page */
.all-fellowships .section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    margin: 0.5rem 0 0 0;
    border-radius: 2px;
}

/* Fellowship Type Section */
.fellowship-type-section {
    margin-bottom: 2rem;
}

.fellowship-type-section h3 {
    color: var(--text-muted);
    font-size: 1.25rem;
}

/* Fellowship Cards */
.fellowships-page .card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 12px;
}

.fellowships-page .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(61, 122, 82, 0.15);
}

.fellowships-page .card-title {
    color: var(--primary-color);
    font-weight: 600;
}

.fellowships-page .card-footer {
    background: var(--cream);
    border-top: 1px solid rgba(61, 122, 82, 0.1);
    padding: 1rem;
}

/* Fellowship Status Badges */
.fellowships-page .badge.bg-success {
    background: linear-gradient(135deg, var(--success-color), #5a9c6a) !important;
}

.fellowships-page .badge.bg-secondary {
    background: var(--text-muted) !important;
}

/* ============================================
   RESOURCE INDEX PAGE – P3-1 四类资源
   ============================================ */
.resource-index-page .resource-category-section {
    animation: resource-section-enter 0.5s ease forwards;
    opacity: 0;
}
.resource-index-page .resource-category-section:nth-of-type(1) { animation-delay: 0.05s; }
.resource-index-page .resource-category-section:nth-of-type(2) { animation-delay: 0.15s; }
.resource-index-page .resource-category-section:nth-of-type(3) { animation-delay: 0.25s; }
.resource-index-page .resource-category-section:nth-of-type(4) { animation-delay: 0.35s; }
@keyframes resource-section-enter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.resource-index-page .resource-category-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary-color);
}

.resource-index-page .resource-category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 1rem;
}

.resource-index-page .resource-category-sermon {
    background: rgba(61, 122, 82, 0.15);
    color: var(--primary-color);
}

.resource-index-page .resource-category-worship {
    background: rgba(201, 169, 97, 0.2);
    color: var(--accent-dark);
}

.resource-index-page .resource-category-discipleship {
    background: rgba(91, 164, 217, 0.15);
    color: var(--secondary-dark);
}

.resource-index-page .resource-category-bible_study {
    background: rgba(107, 83, 68, 0.12);
    color: var(--earth-brown);
}

.resource-index-page .resource-category-list {
    margin-bottom: 0;
}

.resource-index-page .resource-category-item {
    border-left: 3px solid transparent;
    transition: border-left-color 0.2s ease, background 0.2s ease;
}

.resource-index-page .resource-category-link {
    text-decoration: none;
    color: var(--text-dark);
    transition: background 0.2s, color 0.2s, border-left-color 0.2s;
}

.resource-index-page .resource-category-link:hover {
    color: var(--primary-color);
    background: rgba(61, 122, 82, 0.06);
}

.resource-index-page .resource-category-item:hover {
    border-left-color: var(--primary-color);
}

.resource-index-page .resource-category-link-title {
    font-weight: 500;
}

.resource-index-page .resource-category-meta {
    flex-shrink: 0;
}

.resource-index-page .resource-more-link {
    font-size: 0.95rem;
    color: var(--primary-color);
    text-decoration: none;
}

.resource-index-page .resource-more-link:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

/* ============================================
   SCROLL TO TOP BUTTON (global)
   ============================================ */
#scroll-to-top {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
}
#scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    display: flex !important;
    align-items: center;
    justify-content: center;
}
#scroll-to-top:hover {
    transform: translateY(-2px);
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    footer {
        display: none !important;
    }
    
    body {
        padding-top: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
}
