/* Custom CSS for SUS Website */

/* Hero Section (inner pages) */
.hero-section {
    background: linear-gradient(135deg, #689F38 0%, #33691E 100%);
    min-height: 220px;
    padding: 2rem 0 !important;
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Buttons */
.btn {
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Footer */
footer {
    margin-top: auto;
}

.footer-bottom {
    width: 100%;
}

.footer-credit {
    font-size: 0.95rem;
    line-height: 1.7;
    word-break: break-word;
}

.footer-credit a {
    color: var(--c100) !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.footer-credit a:hover,
.footer-credit a:focus {
    color: var(--c50) !important;
    text-decoration: none !important;
}

.footer-credit a i {
    color: var(--c200) !important;
    margin-right: 0.2rem;
}

.footer-credit-sep {
    display: inline-block;
    margin: 0 0.35rem;
    color: rgba(241, 248, 233, 0.65);
}

@media (max-width: 575.98px) {
    .footer-credit-sep {
        display: none;
    }

    .footer-credit a {
        display: inline-block;
        margin: 0.15rem 0.35rem;
        white-space: normal;
    }
}

.social-links a {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #007bff !important;
}

/* Sections */
section:not(.hero-section):not(.hero-slider) {
    padding: 64px 0;
}

/* Team Cards */
.team-section .card {
    text-align: center;
}

.team-section .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Program Cards */
.programs-section .card-img-top {
    height: 180px;
    object-fit: cover;
}

/* News Cards */
.news-section .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
        text-align: center;
    }
    
    section {
        padding: 60px 0;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
}

/* Admin Dashboard */
.border-left-primary {
    border-left: 4px solid #007bff !important;
}

.border-left-success {
    border-left: 4px solid #28a745 !important;
}

.border-left-info {
    border-left: 4px solid #17a2b8 !important;
}

.border-left-warning {
    border-left: 4px solid #ffc107 !important;
}

/* Utility Classes */
.text-gray-800 {
    color: #5a5c69 !important;
}

.text-gray-300 {
    color: #dddfeb !important;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.text-xs {
    font-size: 0.7rem !important;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Top Bar */
.top-bar {
    font-size: 0.9rem;
}

.top-contact-info span {
    font-size: 0.85rem;
}

.top-social-links a {
    transition: opacity 0.3s ease;
}

.top-social-links a:hover {
    opacity: 0.8;
}

/* Main Header */
.main-header {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo-section:hover .logo-icon {
    transform: scale(1.05);
}

.header-stats .stat-item {
    padding: 0.5rem;
    border-radius: 4px;
    background: rgba(40, 167, 69, 0.05);
    transition: transform 0.3s ease;
}

.header-stats .stat-item:hover {
    transform: translateY(-2px);
}

.stat-number {
    font-size: 1.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    line-height: 1.2;
}

/* Main Navigation */
.main-navigation {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    margin-bottom: 0;
}

.main-navigation > .container {
    justify-content: center;
}

.main-navigation .navbar-nav {
    margin: 0;
}

.main-navigation .navbar-nav .nav-item {
    margin: 0 0.5rem;
}

.main-navigation .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 1rem 1.2rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.main-navigation .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.main-navigation .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.main-navigation .nav-link:hover::after {
    width: 80%;
}

/* Center Logo in Navigation */
.navbar-brand {
    padding: 0.5rem 1rem;
    margin: 0 auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.navbar-brand .logo-icon {
    transition: transform 0.3s ease;
}

.navbar-brand:hover .logo-icon {
    transform: scale(1.1);
}

.navbar-brand h2 {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Responsive Navigation */
@media (max-width: 991.98px) {
    .navbar-brand {
        position: static;
        transform: none;
        margin: 0;
    }
    
    .main-navigation .navbar-nav {
        margin: 1rem 0;
    }
    
    .main-navigation .nav-item {
        margin: 0;
    }
    
    .main-navigation .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-navigation .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        margin-top: 0;
        background-color: rgba(255, 255, 255, 0.1);
    }
}

/* Dropdown Menus */
.main-navigation .dropdown-menu {
    margin-top: 0;
    padding: 0.5rem 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
}

.main-navigation .dropdown:hover .dropdown-menu,
.main-navigation .dropdown.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .dropdown-item {
    padding: 0.75rem 1.5rem;
    color: #495057;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.main-navigation .dropdown-item:hover {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border-left-color: #28a745;
    transform: translateX(5px);
}

.main-navigation .dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Responsive Navigation */
@media (max-width: 991.98px) {
    .navbar-brand {
        position: static;
        transform: none;
        margin: 0;
    }
    
    .main-navigation .navbar-nav {
        margin: 1rem 0;
    }
    
    .main-navigation .nav-item {
        margin: 0;
    }
    
    .main-navigation .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
}

/* Hero Image Slider Styles - PKSF Style */
.hero-slider {
    position: relative;
    margin-top: 0;
    padding: 1rem 0 1.25rem;
}

.hero-slider-box {
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1.25rem rgba(51, 105, 30, 0.2);
    height: clamp(280px, 42vw, 520px);
}

.hero-slide {
    position: relative;
    height: clamp(280px, 42vw, 520px);
    display: flex;
    align-items: center;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image .placeholder-program {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    position: relative;
    overflow: hidden;
}

.hero-image .placeholder-program::before {
    content: '\f542';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.15);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-image .placeholder-program::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    width: 100%;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.95;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-buttons .btn {
    margin-bottom: 10px;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Carousel Controls */
.carousel-indicators {
    bottom: 20px;
    z-index: 3;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.5);
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: #ffffff;
    border-color: #ffffff;
    transform: scale(1.2);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    z-index: 3;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(0,0,0,0.4);
    border-radius: 50%;
    background-size: 50%;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(0,0,0,0.6);
    transform: scale(1.1);
}

/* Welcome Section Styles */
.mission-card .card, .vision-card .card, .program-card .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.mission-card .card:hover, .vision-card .card:hover, .program-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.stats-list .stat-item {
    padding: 0.5rem;
    border-radius: 4px;
    background: rgba(40, 167, 69, 0.05);
    transition: all 0.3s ease;
}

.stats-list .stat-item:hover {
    background: rgba(40, 167, 69, 0.1);
    transform: translateY(-2px);
}

.news-list .news-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.news-list .news-item:hover {
    padding-left: 10px;
    border-left: 3px solid #28a745;
}

.news-list .news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.impact-card {
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.section-title {
    color: #2c3e50;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #28a745;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-slider-box,
    .hero-slide {
        height: clamp(240px, 55vw, 380px);
    }

    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
    }
    
    .header-stats .stat-item {
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-slider-box,
    .hero-slide {
        height: clamp(220px, 58vw, 320px);
    }

    .top-contact-info span {
        display: block;
        margin-bottom: 0.5rem;
    }
}

/* Additional Utility Classes */
.text-success { color: #28a745 !important; }
.bg-success { background-color: #28a745 !important; }

/* Smooth transitions for all interactive elements */
.navbar-nav .nav-link,
.dropdown-menu,
.dropdown-item {
    transition: all 0.3s ease;
}

/* Enhanced dropdown positioning */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
}

/* Fix for dropdown positioning on larger screens */
@media (min-width: 992px) {
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
    }
    
    .main-navigation .dropdown:hover .dropdown-menu,
    .main-navigation .dropdown.show .dropdown-menu {
        transform: translateX(-50%) translateY(0);
    }
}

/* Hover delay for better user experience */
.dropdown-menu {
    transition-delay: 0.1s;
}

.dropdown:hover .dropdown-menu {
    transition-delay: 0s;
}

/* Active state styling */
.navbar-nav .nav-link.active {
    background-color: rgba(255,255,255,0.2);
    color: #ffffff !important;
}

/* Focus states for accessibility */
.navbar-nav .nav-link:focus,
.dropdown-item:focus {
    outline: 2px solid rgba(255,255,255,0.5);
    outline-offset: 2px;
}

/* ===== Global Palette Override (Final Layer) ===== */
:root {
    --c50: #F1F8E9;
    --c100: #DCEDC8;
    --c200: #C5E1A5;
    --c300: #AED581;
    --c400: #9CCC65;
    --c500: #8BC34A;
    --c600: #7CB342;
    --c700: #689F38;
    --c800: #558B2F;
    --c900: #33691E;
}

body { background: var(--c50); color: var(--c900); }
.bg-dark { background-color: var(--c900) !important; }
.bg-light { background-color: var(--c100) !important; }
.bg-success, .btn-success { background-color: var(--c700) !important; border-color: var(--c700) !important; }
.bg-primary, .btn-primary { background-color: var(--c800) !important; border-color: var(--c800) !important; }
.bg-info, .btn-info { background-color: var(--c600) !important; border-color: var(--c600) !important; }
.bg-warning, .btn-warning { background-color: var(--c500) !important; border-color: var(--c500) !important; color: var(--c900) !important; }
.text-primary { color: var(--c800) !important; }
.text-info { color: var(--c600) !important; }
.text-warning { color: var(--c500) !important; }
.text-danger { color: var(--c900) !important; }
.text-secondary { color: var(--c700) !important; }
.text-success { color: var(--c700) !important; }
.text-muted { color: var(--c800) !important; opacity: 0.72; }

/* Icons use palette colors (keep light icons on dark bars) */
main i.fas:not(.text-white):not(.text-light),
main i.far:not(.text-white):not(.text-light),
main i.fab:not(.text-white):not(.text-light):not(.social-links .fab) {
    color: var(--c700);
}
main .text-primary i,
main i.text-primary { color: var(--c800) !important; }
main .text-info i,
main i.text-info { color: var(--c600) !important; }
main .text-warning i,
main i.text-warning { color: var(--c500) !important; }
main .text-danger i,
main i.text-danger { color: var(--c900) !important; }
main .text-success i,
main i.text-success { color: var(--c700) !important; }
main .text-secondary i,
main i.text-secondary { color: var(--c700) !important; }
.btn-outline-success { color: var(--c800) !important; border-color: var(--c700) !important; }
.btn-outline-success:hover { background-color: var(--c700) !important; color: var(--c50) !important; }
.btn-outline-primary { color: var(--c800) !important; border-color: var(--c800) !important; }
.btn-outline-primary:hover { background-color: var(--c800) !important; color: var(--c50) !important; }

.main-navigation { background-color: var(--c800) !important; }
.main-navigation .dropdown-item:hover { background-color: var(--c100) !important; color: var(--c900) !important; border-left-color: var(--c700) !important; }
.main-navigation .nav-link { color: var(--c50) !important; }
.main-navigation .nav-link i { color: var(--c50) !important; }
.main-navigation .nav-link:hover { background-color: rgba(241, 248, 233, 0.18) !important; }

.main-navigation .nav-item-home {
    display: flex;
    align-items: center;
    align-self: center;
}

.main-navigation .nav-link-home {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0 !important;
    margin: 0 0.35rem 0 0;
    border: 2px solid #ffffff;
    border-radius: 50%;
    line-height: 1;
    align-self: center;
    vertical-align: middle;
}

.main-navigation .nav-link-home::after {
    display: none !important;
}

.main-navigation .nav-link-home i {
    font-size: 1.2rem;
    color: var(--c50) !important;
    line-height: 1;
    display: block;
    margin-top: 1px;
}

.main-navigation .nav-link-home:hover {
    background-color: rgba(255, 255, 255, 0.12) !important;
    border-color: var(--c50);
}
.section-title { color: var(--c900) !important; }
.section-title::after { background: var(--c700) !important; }
.header-stats .stat-item, .stats-list .stat-item { background: rgba(139, 195, 74, 0.14) !important; }
.bg-gradient-success, .bg-gradient-info, .bg-gradient-primary, .bg-gradient-warning {
    background: linear-gradient(135deg, var(--c700) 0%, var(--c900) 100%) !important;
}
.hero-image .placeholder-program {
    background: linear-gradient(135deg, var(--c700) 0%, var(--c900) 100%) !important;
}

/* Hero height reduced globally (except homepage slider) */
.hero-section {
    min-height: 220px !important;
    padding: 2rem 0 !important;
    background: linear-gradient(135deg, var(--c700) 0%, var(--c900) 100%) !important;
}
.hero-section .display-5,
.hero-section .lead {
    color: var(--c50) !important;
}
.bg-gradient-success,
.bg-gradient-info,
.bg-gradient-primary,
.bg-gradient-warning,
.bg-gradient-danger {
    background: linear-gradient(135deg, var(--c700) 0%, var(--c900) 100%) !important;
}

/* Homepage: no gap between notice marquee and hero slider */
.page-home .notice-marquee-bar {
    margin: 0;
    border-top: 0;
    border-bottom: 0;
}
.page-home main {
    padding-top: 0;
    margin-top: 0;
}
.page-home .hero-slider {
    margin-top: 0 !important;
    padding-top: 0.75rem;
}

/* Homepage slider images: fill boxed area */
.hero-slider .hero-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    background: linear-gradient(135deg, var(--c800) 0%, var(--c900) 100%);
}

@media (max-width: 768px) {
    .hero-slider-box,
    .hero-slide {
        height: clamp(240px, 55vw, 380px);
    }
}

@media (max-width: 576px) {
    .hero-slider-box,
    .hero-slide {
        height: clamp(220px, 58vw, 320px);
    }
}

/* Homepage video + gallery section */
.home-media-section {
    overflow: hidden;
}

.home-media-row {
    margin-bottom: 0;
}

.home-media-video-col,
.home-media-gallery-col {
    min-width: 0;
}

.home-media-gallery-col {
    display: flex;
    align-self: flex-start;
}

.home-youtube-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    line-height: 0;
}

.home-youtube-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    background: var(--c900);
}

.home-youtube-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-youtube-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: rgba(51, 105, 30, 0.92);
    color: var(--c50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.home-youtube-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.home-gallery-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    background: var(--c50);
    border: 1px solid var(--c200);
}

.home-gallery-panel h3 {
    flex-shrink: 0;
    font-size: 0.75rem;
    margin-bottom: 0.35rem !important;
    padding-top: 0.35rem !important;
}

.home-gallery-grid {
    flex: 1 1 0;
    display: grid;
    gap: 0.4rem;
    min-height: 160px;
    overflow: hidden;
}

.home-gallery-grid--count-1 {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.home-gallery-grid--count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 1fr;
}

.home-gallery-grid--count-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.home-gallery-grid--count-3 .home-album-cell:first-child {
    grid-column: 1 / -1;
}

.home-gallery-grid--count-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.home-album-cell {
    position: relative;
    display: block;
    min-height: 80px;
    height: 100%;
    width: 100%;
    background: var(--c800);
    border: 1px solid var(--c200);
    text-decoration: none !important;
}

.home-album-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.home-album-placeholder {
    width: 100%;
    height: 100%;
    min-height: 80px;
    background: linear-gradient(135deg, var(--c700) 0%, var(--c900) 100%);
    color: var(--c100);
}

.home-album-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0.45rem 0.5rem;
    background: linear-gradient(to top, rgba(51, 105, 30, 0.92) 0%, rgba(51, 105, 30, 0.25) 55%, transparent 100%);
    pointer-events: none;
}

.home-album-badge {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--c100);
    opacity: 0.9;
    line-height: 1.2;
}

.home-album-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--c50);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-album-cell:hover img {
    transform: scale(1.04);
}

.home-gallery-empty {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    min-height: 120px;
}

.home-gallery-actions {
    flex-shrink: 0;
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
}

.home-gallery-actions .btn {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

@media (max-width: 991.98px) {
    .home-media-gallery-col {
        align-self: stretch;
    }

    .home-gallery-panel {
        height: auto !important;
        margin-top: 0.25rem;
    }

    .home-gallery-grid {
        min-height: 260px;
    }
}

@media (max-width: 575.98px) {
    .home-gallery-grid {
        min-height: 220px;
        gap: 0.35rem;
    }
}

/* Centered header menu */
.main-navigation .navbar-collapse {
    flex-grow: 1;
    justify-content: center;
    align-items: center;
}
.main-navigation .navbar-nav.header-menu-nav {
    margin-left: auto !important;
    margin-right: auto !important;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.15rem;
}

@media (max-width: 768px) {
    .hero-section { min-height: 180px !important; }
}

/* ===== Mobile responsiveness ===== */
.header-logo-img {
    height: 64px;
    width: auto;
    max-width: 100%;
}

@media (max-width: 991.98px) {
    .top-bar {
        font-size: 0.82rem;
    }

    .top-bar .top-contact-info {
        text-align: center;
        margin-bottom: 0.35rem;
    }

    .top-bar .top-contact-info span {
        display: block;
        margin: 0 0 0.35rem 0 !important;
        white-space: normal;
    }

    .top-bar .top-social-links {
        text-align: center !important;
    }

    .main-header {
        padding-top: 0.85rem !important;
        padding-bottom: 0.85rem !important;
    }

    .header-logo-img {
        height: 54px;
    }

    .header-stats-row .stat-item {
        padding: 0.45rem 0.25rem;
        margin: 0 !important;
    }

    .stat-number {
        font-size: 1.05rem;
    }

    .stat-label {
        font-size: 0.65rem;
        line-height: 1.2;
        word-break: break-word;
    }

    .main-navigation > .container {
        justify-content: flex-end;
        align-items: center;
        flex-wrap: wrap;
    }

    .main-navigation .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.55);
        padding: 0.35rem 0.6rem;
    }

    .main-navigation .navbar-collapse {
        width: 100%;
        flex-basis: 100%;
        margin-top: 0.35rem;
    }

    .main-navigation .navbar-nav.header-menu-nav {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }

    .main-navigation .navbar-nav .nav-item,
    .main-navigation .nav-item {
        width: 100%;
        margin: 0 !important;
    }

    .main-navigation .nav-link {
        width: 100%;
        text-align: left;
        border-radius: 0 !important;
    }

    .main-navigation .nav-link::after {
        display: none !important;
    }

    .main-navigation .nav-link-home {
        margin: 0.35rem auto;
    }

    .main-navigation .dropdown-menu {
        position: static !important;
        display: none;
        float: none;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border-radius: 0;
        background-color: rgba(0, 0, 0, 0.14) !important;
        border: 0;
    }

    .main-navigation .dropdown-menu.show {
        display: block !important;
    }

    .main-navigation .dropdown-item {
        color: var(--c50) !important;
        border-left: 0;
        padding: 0.65rem 1rem 0.65rem 1.75rem;
        white-space: normal;
    }

    .main-navigation .dropdown-item:hover,
    .main-navigation .dropdown-item:focus {
        background-color: rgba(255, 255, 255, 0.12) !important;
        color: #fff !important;
        transform: none;
    }

    .notice-marquee-bar .container {
        flex-wrap: wrap;
    }

    .home-media-row > [class*="col-"] {
        width: 100%;
    }

    .home-gallery-panel {
        height: auto !important;
    }

    .home-gallery-grid {
        height: auto !important;
        min-height: 220px;
    }

    .home-youtube-player {
        max-width: 100%;
    }

    section:not(.hero-section):not(.hero-slider) {
        padding: 42px 0;
    }

    .stats-list .stat-item {
        padding: 0.65rem 0.75rem;
    }

    .impact-card {
        padding: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .stat-number {
        font-size: 0.95rem;
    }

    .stat-label {
        font-size: 0.6rem;
    }

    .hero-title {
        font-size: 1.55rem !important;
    }

    .hero-subtitle {
        font-size: 0.88rem !important;
    }

    .home-gallery-grid {
        min-height: 200px;
    }
}
