/* ============================================
   Staff Council Intranet - Custom Styles
   Color palette inspired by the logo:
   - Primary Brown: #6B4423
   - Secondary Brown: #8B5A2B
   - Accent Tan: #C4A35A
   - Light Cream: #F5F1E8
   ============================================ */

:root {
    --primary: #6B4423;
    --primary-dark: #4A2E17;
    --primary-light: #8B5A2B;
    --secondary: #C4A35A;
    --secondary-light: #D4BC7D;
    --accent: #A67C52;
    --cream: #F5F1E8;
    --cream-dark: #EDE5D4;
    --text-dark: #2C2C2C;
    --text-muted: #6C757D;
    --white: #FFFFFF;
    --success: #28A745;
    --warning: #FFC107;
    --info: #17A2B8;
}

/* Override Bootstrap Primary */
.bg-primary {
    background-color: var(--primary) !important;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

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

/* General Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #F8F9FA;
    color: var(--text-dark);
}

/* Navbar Search */
.navbar-search .input-group {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.navbar-search .form-control {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    width: 160px;
    transition: width 0.35s ease, background 0.25s ease,
                border-color 0.25s ease, box-shadow 0.25s ease;
}

.navbar-search .form-control::placeholder {
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.25s ease;
}

.navbar-search .form-control:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.5);
    width: 200px;
}

.navbar-search .form-control:focus {
    background: rgba(255, 255, 255, 0.22);
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(196, 163, 90, 0.35);
    color: #fff;
    width: 220px;
}

.navbar-search .form-control:focus::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.navbar-search .btn-light {
    border-color: rgba(255, 255, 255, 0.25);
    transition: background 0.25s ease, transform 0.25s ease;
}

.navbar-search .btn-light:hover {
    transform: scale(1.08);
}

.navbar-search .btn-light .bi-search {
    display: inline-block;
    transition: transform 0.25s ease;
}

.navbar-search .btn-light:hover .bi-search {
    transform: scale(1.2) rotate(-10deg);
}

/* Language Switcher */
.lang-switcher .btn {
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
    border-color: rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.85);
    transition: background 0.25s ease, border-color 0.25s ease,
                color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.lang-switcher .btn:hover,
.lang-switcher .btn:focus,
.lang-switcher .btn.show {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.65);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Globe icon spins on button hover */
.lang-switcher .bi-globe2 {
    display: inline-block;
    transition: transform 0.5s ease;
}

.lang-switcher .btn:hover .bi-globe2 {
    transform: rotate(180deg);
}

.lang-menu {
    min-width: 150px;
    padding: 0.4rem 0;
    border: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    border-left: 3px solid transparent;
    transition: background 0.2s ease, color 0.2s ease,
                padding-left 0.2s ease, border-color 0.2s ease;
}

.lang-flag {
    font-size: 1rem;
    line-height: 1;
    display: inline-block;
    transition: transform 0.25s ease;
}

.lang-check {
    display: none;
    margin-left: auto;
    color: var(--primary);
    font-weight: 700;
}

.lang-option.active {
    background-color: var(--cream);
    color: var(--primary);
    font-weight: 600;
    border-left-color: var(--primary);
}

.lang-option.active .lang-check {
    display: inline;
}

.lang-option:hover:not(.active) {
    background-color: var(--cream);
    color: var(--primary);
    padding-left: 1.35rem;
    border-left-color: var(--secondary);
}

.lang-option:hover .lang-flag {
    transform: scale(1.25);
}

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

.navbar-brand {
    transition: opacity 0.25s ease;
}

.navbar-brand:hover {
    opacity: 0.92;
}

.navbar-brand img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.12) rotate(-6deg);
    filter: drop-shadow(0 4px 10px rgba(196, 163, 90, 0.6));
}

.navbar-brand .brand-text {
    line-height: 1.2;
}

.navbar-brand .brand-text small {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Top-level nav links */
.navbar .nav-link {
    position: relative;
    transition: color 0.2s ease;
}

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

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: #fff !important;
}

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

/* Dropdown menu */
.navbar .dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

.navbar .dropdown-item {
    position: relative;
    padding-left: 1rem;
    transition: color 0.2s ease, padding-left 0.2s ease, background 0.2s ease;
}

.navbar .dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 0;
    border-radius: 0 2px 2px 0;
    background: var(--primary);
    transition: width 0.2s ease;
}

.navbar .dropdown-item:hover {
    background-color: var(--cream);
    color: var(--primary);
    padding-left: 1.4rem;
}

.navbar .dropdown-item:hover::before {
    width: 3px;
}

/* Nested Dropdown (Submenu) */
.navbar .dropdown-submenu {
    position: relative;
}

.navbar .dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    display: none;
}

.navbar .dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.navbar .dropdown-submenu > .dropdown-item::after {
    content: "\F285";
    font-family: "bootstrap-icons";
    float: right;
    margin-left: 0.5rem;
}

@media (max-width: 991.98px) {
    .navbar .dropdown-submenu > .dropdown-menu {
        position: static;
        left: 0;
        margin-left: 1rem;
        box-shadow: none;
        border-left: 2px solid var(--cream-dark);
    }

    .navbar .dropdown-submenu > .dropdown-item::after {
        transform: rotate(90deg);
    }
}

.navbar .btn-outline-light .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.65rem;
}

.navbar .btn-outline-light {
    position: relative;
}

/* Hero Section */
.hero-section {
    background: var(--white);
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--cream-dark);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236B4423' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: var(--primary-dark);
    text-shadow: none;
}

.hero-section .lead {
    color: var(--text-muted);
}

.hero-section .btn-light {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.hero-section .btn-light:hover,
.hero-section .btn-light:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}

.hero-section .btn-outline-light {
    border-color: var(--primary);
    color: var(--primary);
    background-color: transparent;
}

.hero-section .btn-outline-light:hover,
.hero-section .btn-outline-light:focus {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.hero-logo {
    max-width: 280px;
    filter: drop-shadow(0 8px 20px rgba(107, 68, 35, 0.15));
    animation: float 6s ease-in-out infinite;
}

/* Hero Carousel */
.hero-section .carousel-item {
    padding: 4rem 0 5rem;
}

/* Pause badge */
.hero-pause-badge {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: rgba(107, 68, 35, 0.08);
    color: var(--primary);
    border-radius: 20px;
    padding: 0.3rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

.hero-section:hover .hero-pause-badge {
    opacity: 1;
}

/* Progress bar */
.hero-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--cream-dark);
    z-index: 10;
}

@keyframes heroProgress {
    from { width: 0; }
    to   { width: 100%; }
}

.hero-progress-bar {
    height: 100%;
    width: 0;
    background: var(--primary);
}

.hero-progress-bar.running {
    animation: heroProgress 6s linear forwards;
}

.hero-section:hover .hero-progress-bar {
    animation-play-state: paused;
}

/* Crossfade timing */
.hero-carousel .carousel-item {
    transition: opacity 0.7s ease-in-out !important;
}

/* Staggered content entry */
@keyframes heroContentIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-carousel .carousel-item.slide-in span.badge {
    animation: heroContentIn 0.45s ease 0.1s both;
}

.hero-carousel .carousel-item.slide-in h1 {
    animation: heroContentIn 0.55s ease 0.2s both;
}

.hero-carousel .carousel-item.slide-in .lead {
    animation: heroContentIn 0.55s ease 0.38s both;
}

.hero-carousel .carousel-item.slide-in .d-flex.gap-3 {
    animation: heroContentIn 0.45s ease 0.55s both;
}

.hero-carousel .carousel-item.slide-in .hero-logo,
.hero-carousel .carousel-item.slide-in .hero-slide-icon {
    animation: heroContentIn 0.6s ease 0.28s both;
}

/* Slide icon (slides 2 & 3) */
.hero-slide-icon {
    width: 220px;
    height: 220px;
    background: var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 5.5rem;
    color: var(--primary);
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 8px 30px rgba(107, 68, 35, 0.12);
}

/* Indicators */
.hero-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: var(--primary);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.hero-indicators .active {
    width: 28px;
    border-radius: 5px;
    opacity: 1;
}

/* Controls (prev/next arrows) */
.hero-carousel-control {
    width: 5%;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.hero-carousel-control:hover {
    opacity: 1;
}

.hero-carousel-control .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236B4423'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.hero-carousel-control .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236B4423'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Quick Links Section */
.quick-links-section {
    background-color: var(--cream);
    border-bottom: 1px solid var(--cream-dark);
}

/* Per-card color tokens */
.quick-links-section .row > *:nth-child(1) { --card-color: #E67E22; --card-rgb: 230, 126, 34; }
.quick-links-section .row > *:nth-child(2) { --card-color: #27AE60; --card-rgb: 39,  174, 96; }
.quick-links-section .row > *:nth-child(3) { --card-color: #2980B9; --card-rgb: 41,  128, 185; }
.quick-links-section .row > *:nth-child(4) { --card-color: #E74C3C; --card-rgb: 231, 76,  60; }
.quick-links-section .row > *:nth-child(5) { --card-color: #8E44AD; --card-rgb: 142, 68,  173; }
.quick-links-section .row > *:nth-child(6) { --card-color: #16A085; --card-rgb: 22,  160, 133; }

.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid transparent;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.quick-link-card:hover {
    transform: translateY(-5px);
    color: var(--card-color, var(--primary));
    background: rgba(var(--card-rgb, 107, 68, 35), 0.05);
    border-color: rgba(var(--card-rgb, 107, 68, 35), 0.25);
    box-shadow: 0 8px 28px rgba(var(--card-rgb, 107, 68, 35), 0.2);
}

.quick-link-card i {
    font-size: 1.5rem;
    margin-bottom: 0.65rem;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--card-color, var(--primary));
    background: rgba(var(--card-rgb, 107, 68, 35), 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

.quick-link-card:hover i {
    transform: scale(1.12);
    background: rgba(var(--card-rgb, 107, 68, 35), 0.18);
}

.quick-link-card span {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    position: relative;
    transition: font-weight 0.2s ease;
}

.quick-link-card span::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--card-color, var(--primary));
    transition: width 0.3s ease;
}

.quick-link-card:hover span::after {
    width: 80%;
}

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

.news-card {
    overflow: hidden;
    border-top: 3px solid transparent !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(107, 68, 35, 0.14) !important;
    border-top-color: var(--primary) !important;
}

.news-card .card-img-top {
    height: 160px;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.4s ease;
}

.news-card:hover .card-img-top {
    transform: scale(1.06);
}

.news-card .card-title {
    transition: color 0.25s ease;
}

.news-card:hover .card-title {
    color: var(--primary);
}

.announcement-featured {
    border-left: 4px solid var(--secondary) !important;
    background: linear-gradient(to right, var(--cream), var(--white));
    transition: transform 0.3s ease, box-shadow 0.3s ease,
                border-left-width 0.3s ease, border-left-color 0.3s ease,
                background 0.3s ease;
}

.announcement-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(107, 68, 35, 0.14) !important;
    border-left-width: 6px !important;
    border-left-color: var(--primary) !important;
    background: linear-gradient(to right, var(--cream-dark), var(--cream));
}

.announcement-featured .card-title {
    transition: color 0.25s ease;
}

.announcement-featured:hover .card-title {
    color: var(--primary);
}

.announcement-featured .bi-arrow-right {
    display: inline-block;
    transition: transform 0.25s ease;
}

.announcement-featured:hover .bi-arrow-right {
    transform: translateX(5px);
}

/* Contact Card */
.contact-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    overflow: hidden;
}

.contact-card:hover {
    transform: translateY(-5px);
    background-color: var(--primary-dark) !important;
    box-shadow: 0 14px 36px rgba(74, 46, 23, 0.4) !important;
}

.contact-card .bi-chat-heart {
    display: inline-block;
    transition: transform 0.35s ease;
}

.contact-card:hover .bi-chat-heart {
    transform: scale(1.2) rotate(-8deg);
}

.contact-card .btn-light {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover .btn-light {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Event Date Badge */
.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 55px;
    background: var(--cream);
    border-radius: 8px;
    flex-shrink: 0;
    transition: background 0.25s ease, transform 0.25s ease;
}

.event-date .month {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    transition: color 0.25s ease;
}

.event-date .day {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    transition: color 0.25s ease;
}

/* Upcoming Events row hover */
.list-group-item:has(.event-date) {
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: background 0.25s ease, border-color 0.25s ease, padding-left 0.25s ease;
}

.list-group-item:has(.event-date):hover {
    background: var(--cream);
    border-left-color: var(--primary);
    padding-left: 1.1rem;
}

.list-group-item:has(.event-date):hover .event-date {
    background: var(--primary);
    transform: scale(1.08);
}

.list-group-item:has(.event-date):hover .event-date .month,
.list-group-item:has(.event-date):hover .event-date .day {
    color: var(--white);
}

.list-group-item:has(.event-date):hover h6 {
    color: var(--primary);
}

/* Poll Card */
.poll-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.poll-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(107, 68, 35, 0.12) !important;
}

.poll-card .bi-bar-chart {
    display: inline-block;
    transition: transform 0.3s ease;
}

.poll-card:hover .bi-bar-chart {
    transform: scaleY(1.25) translateY(-1px);
}

/* Poll Options */
.poll-option {
    padding: 0.75rem 1rem;
    background: var(--cream);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease,
                padding-left 0.2s ease, box-shadow 0.2s ease;
}

.poll-option:hover {
    background: var(--cream-dark);
    border-left-color: var(--primary);
    padding-left: 1.25rem;
    box-shadow: 0 2px 8px rgba(107, 68, 35, 0.08);
}

.poll-option .form-check-label {
    cursor: pointer;
    transition: color 0.2s ease;
}

.poll-option:hover .form-check-label {
    color: var(--primary);
}

.poll-option .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Events button */
.events-btn {
    transition: background-color 0.25s ease, color 0.25s ease,
                transform 0.25s ease, box-shadow 0.25s ease !important;
    overflow: hidden;
}

.events-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(107, 68, 35, 0.25) !important;
}

.events-btn-arrow {
    display: inline-block;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.events-btn:hover .events-btn-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Submit button */
.poll-card .btn-primary {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poll-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(107, 68, 35, 0.3);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
}

.stat-item {
    padding: 1rem;
    border-radius: 12px;
    transition: background 0.3s ease;
    cursor: default;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.07);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

.stat-item:hover .stat-number {
    transform: scale(1.15);
    color: var(--secondary);
    text-shadow: 0 0 20px rgba(196, 163, 90, 0.5);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.stat-item:hover .stat-label {
    opacity: 1;
}

/* Footer */
.footer {
    background-color: var(--white);
    border-top: 1px solid #E9ECEF;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    position: relative;
    padding-left: 0;
    transition: color 0.25s ease, padding-left 0.25s ease;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1.5px;
    border-radius: 2px;
    background: var(--primary);
    transition: width 0.25s ease;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 6px;
}

.footer-links a:hover::before {
    width: 100%;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--cream);
    border-radius: 50%;
    color: var(--primary);
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease,
                transform 0.25s ease, box-shadow 0.25s ease;
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-4px) scale(1.12);
    box-shadow: 0 6px 16px rgba(107, 68, 35, 0.3);
}

.social-links a:active {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 3px 8px rgba(107, 68, 35, 0.2);
}

/* Badge Styles */
.badge.bg-primary-subtle {
    background-color: rgba(107, 68, 35, 0.15) !important;
}

.badge.bg-success-subtle {
    background-color: rgba(40, 167, 69, 0.15) !important;
}

.badge.bg-warning-subtle {
    background-color: rgba(255, 193, 7, 0.15) !important;
}

.badge.bg-info-subtle {
    background-color: rgba(23, 162, 184, 0.15) !important;
}

/* Form Controls */
.form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(196, 163, 90, 0.25);
}

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

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-section .carousel-item {
        padding: 3rem 0 4.5rem;
        text-align: center;
    }

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

    .hero-section .btn {
        width: 100%;
    }

    .hero-carousel-control {
        display: none;
    }
}

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

    .quick-link-card {
        padding: 1rem 0.75rem;
    }

    .quick-link-card i {
        font-size: 1.25rem;
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }

    .quick-link-card span {
        font-size: 0.75rem;
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Page Header Styles
   ============================================ */
.page-header {
    background: var(--white);
    color: var(--text-dark);
    padding: 2.5rem 0 2rem;
    border-bottom: 1px solid var(--cream-dark);
    position: relative;
    overflow: hidden;
}

/* Subtle dot pattern */
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236B4423' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Decorative accent bar at bottom-left */
.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 0 3px 3px 0;
}

.page-header h1,
.page-header h2,
.page-header .display-4,
.page-header .display-5 {
    color: var(--primary-dark);
}

.page-header .lead {
    color: var(--text-muted);
}

/* Breadcrumb */
.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.page-header .breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-header .breadcrumb-item a:hover {
    color: var(--primary);
}

.page-header .breadcrumb-item.active {
    color: var(--text-dark);
    font-weight: 500;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: #CED4DA;
}

/* Buttons on white header */
.page-header .btn-light {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.page-header .btn-light:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
}

.page-header .btn-outline-light {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.page-header .btn-outline-light:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-1px);
}

/* ============================================
   About Page Styles
   ============================================ */
.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.value-icon {
    width: 70px;
    height: 70px;
    background: var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary);
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--cream-dark);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -26px;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--cream);
}

.timeline-content {
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* ============================================
   News Page Styles
   ============================================ */
.featured-news .card-img-top,
.featured-news img {
    object-fit: cover;
}

.news-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
}

.nav-pills .nav-link {
    color: var(--text-dark);
    border-radius: 20px;
    padding: 0.5rem 1rem;
}

.nav-pills .nav-link.active {
    background-color: var(--primary);
}

.nav-pills .nav-link:hover:not(.active) {
    background-color: var(--cream);
}

/* ============================================
   Events Page Styles
   ============================================ */
.featured-event-card img {
    object-fit: cover;
}

.event-date-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    color: var(--white);
    flex-shrink: 0;
}

.event-date-large .month {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.9;
}

.event-date-large .day {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.event-date-large .weekday {
    font-size: 0.65rem;
    opacity: 0.8;
}

.event-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Calendar Table */
.calendar-table {
    table-layout: fixed;
}

.calendar-table th {
    text-align: center;
    padding: 0.75rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.calendar-table td {
    text-align: center;
    padding: 1rem 0.5rem;
    vertical-align: top;
    height: 60px;
    font-size: 0.9rem;
    position: relative;
}

.calendar-table td.today {
    background-color: var(--cream);
    font-weight: 700;
    color: var(--primary);
}

.calendar-table td.has-event {
    cursor: pointer;
}

.calendar-table td.has-event:hover {
    background-color: var(--cream);
}

.event-dot {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin: 4px auto 0;
}

/* ============================================
   Resources Page Styles
   ============================================ */
.section-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.resource-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.resource-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* ============================================
   Contact Page Styles
   ============================================ */
.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* ============================================
   Directory Page Styles
   ============================================ */
.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.staff-card img {
    transition: transform 0.3s ease;
}

.staff-card:hover img {
    transform: scale(1.05);
}

/* Pagination Styles */
.pagination .page-link {
    color: var(--primary);
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

.pagination .page-link:hover {
    background-color: var(--cream);
    border-color: var(--primary);
    color: var(--primary);
}

/* ============================================
   Additional Utility Classes
   ============================================ */
.object-fit-cover {
    object-fit: cover;
}

.bg-danger-subtle {
    background-color: rgba(220, 53, 69, 0.15) !important;
}

.text-purple {
    color: #6f42c1 !important;
}

/* Form Select Focus */
.form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(196, 163, 90, 0.25);
}

/* Accordion Styles */
.accordion-button:not(.collapsed) {
    background-color: var(--cream);
    color: var(--primary);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(196, 163, 90, 0.25);
    border-color: var(--secondary);
}

/* List Group Hover */
.list-group-item a {
    color: var(--text-dark);
    transition: color 0.2s ease;
}

.list-group-item a:hover {
    color: var(--primary);
}

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

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn {
        display: none !important;
    }

    .page-header {
        background: none !important;
        color: var(--text-dark) !important;
        padding: 1rem 0 !important;
    }
}
