@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css');
@import url('https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@7.3.0/css/all.min.css');
@import url('https://cdn.jsdelivr.net/npm/aos@2.3.4/dist/aos.css');
@import url('https://cdn.jsdelivr.net/npm/swiper@14.0.5/swiper-bundle.min.css');
@import url('https://cdn.jsdelivr.net/npm/lightbox2@2.12.0/dist/css/lightbox.min.css');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* ============================================
   CUSTOM VARIABLES
   ============================================ */

:root {
    --primary-color: #2A4A25;
    --secondary-color: #9AAF6D;
    --accent-color: #EBEAD6;
    --dark-color: #2A4A25;
    --light-color: #FFF5EC;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* ============================================
   GENERAL STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

img,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-color);
}

p {
    line-height: 1.8;
}

.hero-section .hero-greeting {
    font-family: 'Lobster', cursive !important;
    font-weight: 400 !important;
}

.hero-image {
    max-width: 260px;
    width: min(100%, 260px);
    height: auto;
    display: block;
    margin: 0 auto;
}

.btn-icon-img,
.hero-btn-icon {
    width: clamp(40px, 6vw, 60px);
    height: auto;
    display: inline-block;
    object-fit: contain;
    flex-shrink: 0;
}

.menu-icon-img,
.statistik-icon-img,
.potensi-icon-img {
    width: clamp(72px, 16vw, 120px);
    height: clamp(72px, 16vw, 120px);
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.event-card-img,
.card .card-img-top,
.card .img-fluid,
.img-cover {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.event-card-img {
    width: 100%;
}

.navbar-brand-logo {
    width: 30px;
    height: auto;
    flex-shrink: 0;
}

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

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    background-color: var(--accent-color);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1051;
}

.navbar-toggler {
    border-color: var(--primary-color);
    z-index: 1052;
    padding: 0.6rem 0.75rem;
    border-radius: 0.6rem;
    margin-left: auto;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(42, 74, 37, 0.2);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(42,74,37,0.85)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    transition: var(--transition);
}

.navbar-brand:hover {
    color: var(--secondary-color) !important;
    transform: scale(1.05);
}

.nav-link {
    color: #555 !important;
    font-weight: 500;
    margin: 0 8px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

/* Badge styling in navbar */
.nav-link .badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
    border-radius: 50%;
    font-weight: 700;
    min-width: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(220, 53, 69, 0);
    }
}

.nav-link .badge.bg-danger {
    background-color: #dc3545 !important;
    color: #fff;
}

.nav-link .badge.bg-success {
    background-color: var(--primary-color) !important;
    color: #fff;
}

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

.btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.btn-success:hover {
    background-color: #243d20;
    border-color: #243d20;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 74, 37, 0.3);
}

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

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

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

.card {
    border: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    overflow: hidden;
}

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

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

.card .img-fluid,
.card .card-img-top,
.card video,
.img-cover,
.event-card-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.potensi-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.potensi-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .potensi-card-image {
        height: 100%;
        min-height: 100%;
    }
}

@media (max-width: 767.98px) {
    .potensi-card-image {
        height: 220px;
    }

    .potensi-card-body {
        padding-top: 1rem;
    }

    .card .row.g-0 {
        display: block;
    }

    .card .col-md-5,
    .card .col-md-7,
    .card .row.g-0 > [class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        min-height: auto !important;
        height: auto !important;
    }

    .card-body.h-100,
    .col-md-7.h-100,
    .col-md-5.h-100 {
        height: auto !important;
        min-height: auto !important;
    }

    .potensi-card-body {
        height: auto !important;
        padding-bottom: 1rem;
    }
}

/* ============================================
   SECTIONS
   ============================================ */

section {
    padding: 3rem 0;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(42, 74, 37, 0.12) !important;
}

.bg-success {
    background-color: var(--primary-color) !important;
}

.list-group-item.active.bg-success,
.bg-success.bg-opacity-10 {
    background-color: rgba(42, 74, 37, 0.08) !important;
}

.bg-success:not(.bg-opacity-10) .text-success,
.bg-success:not(.bg-opacity-10) .text-muted,
.bg-success:not(.bg-opacity-10) .text-body {
    color: #fff !important;
}

.bg-success.bg-opacity-10 .text-success,
.bg-success.bg-opacity-10 .text-muted,
.bg-success.bg-opacity-10 .text-body,
.bg-success.bg-opacity-10 .card-text {
    color: rgba(42, 74, 37, 0.92) !important;
}

.bg-secondary {
    background-color: rgba(154, 175, 109, 0.18) !important;
}

.text-secondary,
.text-secondary * {
    color: var(--secondary-color) !important;
}

section.bg-success.bg-opacity-10 {
    background-color: rgba(235, 234, 214, 0.95) !important;
}

section.bg-success.bg-opacity-10 h1,
section.bg-success.bg-opacity-10 h2,
section.bg-success.bg-opacity-10 h3,
section.bg-success.bg-opacity-10 h4,
section.bg-success.bg-opacity-10 h5,
section.bg-success.bg-opacity-10 h6,
section.bg-success.bg-opacity-10 p,
section.bg-success.bg-opacity-10 .lead,
section.bg-success.bg-opacity-10 .card-title,
section.bg-success.bg-opacity-10 .card-subtitle,
section.bg-success.bg-opacity-10 .text-muted,
section.bg-success.bg-opacity-10 .text-success {
    color: var(--dark-color) !important;
}

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

.bg-success.bg-opacity-10 h1,
.bg-success.bg-opacity-10 h2,
.bg-success.bg-opacity-10 h3,
.bg-success.bg-opacity-10 h4,
.bg-success.bg-opacity-10 h5,
.bg-success.bg-opacity-10 h6,
.bg-success.bg-opacity-10 p,
.bg-success.bg-opacity-10 .lead,
.bg-success.bg-opacity-10 .text-muted,
.bg-success.bg-opacity-10 .card-title,
.bg-success.bg-opacity-10 .card-text,
.bg-success.bg-opacity-10 .fw-bold,
.bg-success.bg-opacity-10 .display-4 {
    color: var(--dark-color) !important;
}

.card-subtitle,
.card-text.small,
.card-text,
.lead,
p,
.text-body {
    color: rgba(42, 74, 37, 0.92) !important;
}

.shadow-sm {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

.container-lg {
    max-width: 1200px;
}

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

.form-control,
.form-select {
    border-color: #ddd;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(42, 74, 37, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* ============================================
   BADGES & LABELS
   ============================================ */

.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

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

footer {
    background-color: var(--dark-color);
    color: #ddd;
    margin-top: auto;
}

footer h5 {
    color: #fff;
    margin-bottom: 1.5rem;
}

footer a {
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.9);
}

footer a:hover {
    color: #ffffff !important;
}

.text-light-opacity {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 991px) {
    .hero-section {
        padding: 3rem 0;
    }

    .hero-section .row > div {
        margin-bottom: 2rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-actions .btn {
        width: min(100%, 280px);
        justify-content: center;
    }

    .hero-image {
        max-width: 220px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 2rem 0;
    }

    section h2 {
        font-size: 1.8rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .nav-link {
        margin: 0 4px;
    }
}

@media (max-width: 576px) {
    .container-lg {
        padding: 0 15px;
    }

    .navbar .navbar-collapse {
        background-color: rgba(255,255,255,0.98);
        position: relative;
        z-index: 1050;
        width: 100%;
        border-bottom: 1px solid rgba(42, 74, 37, 0.12);
        padding-bottom: 0.5rem;
    }

    .navbar-collapse.collapse.show,
    .navbar-collapse.collapsing {
        display: block !important;
        height: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .navbar-nav .nav-item {
        width: 100%;
    }

    .navbar-nav .nav-link {
        width: 100%;
        padding: 0.75rem 1rem;
        display: block;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background-color: transparent;
    }

    .dropdown-item {
        padding-left: 2rem;
    }

    section {
        padding: 1.5rem 0;
    }

    section h2 {
        font-size: 1.5rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .navbar,
    footer,
    .btn {
        display: none;
    }
}

.hero-section {
    background: none;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    background: none;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.35);
}

.statistik-bg {
    background-image: url("../../images/statistik_desa.jpg");
    background-size: 100% auto;
    background-position: center center;
    background-repeat: no-repeat;
    margin-bottom: 0;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.event-bg {
    background-image: url("../../images/event_desa_bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 480px;
}

.galeri-bg {
    background-image: url("../../images/galeri_desa_bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section h1,
.hero-section h2,
.hero-section .display-3,
.hero-section .display-4 {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-weight: 700 !important;
    text-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
}

.hero-overlay {
    background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25));
    z-index: 1;
}

.potensi-video-overlay {
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55));
    z-index: 1;
}

.potensi-title {
    text-shadow: 0 8px 20px rgba(0, 0, 0, 0.65);
}

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

.btn-outline-light {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.85);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

.countdown-timer {
    display: inline-flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.countdown-timer .col {
    min-width: 4.5rem;
}

.countdown-timer .fw-bold {
    font-size: 2rem;
    color: #1b1b18 !important;
    letter-spacing: -0.05em;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.7);
}

.countdown-timer small {
    color: #1b1b18 !important;
}

.countdown-timer .card-body {
    padding: 1rem;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(42, 74, 37, 0.2) !important;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    display: block;
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(40, 167, 69, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 2rem;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* ============================================
   HOME GALLERY STYLES
   ============================================ */

.home-gallery-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.home-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #EBEAD6 0%, #FFF5EC 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-end;
}

.home-gallery-item:hover {
    box-shadow: 0 12px 35px rgba(42, 74, 37, 0.25);
    transform: translateY(-10px);
}

.home-gallery-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
}

.home-gallery-item:hover .home-gallery-img {
    transform: scale(1.15);
}

.home-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(42, 74, 37, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    color: white;
    font-size: 2.5rem;
    border-radius: 16px;
    z-index: 2;
}

.home-gallery-item:hover .home-gallery-overlay {
    opacity: 1;
}

.home-gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1.5rem 1rem 1rem;
    z-index: 3;
}

/* ============================================
   MOBILE RESPONSIVENESS
   ============================================ */

/* Extra small devices (576px and down) */
@media (max-width: 575.98px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    h4, h5, h6 {
        font-size: 1rem !important;
    }

    section {
        padding: 2rem 0;
    }

    section h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.875rem;
    }

    .btn-lg {
        padding: 0.75rem 1rem;
    }

    .hero-image {
        max-width: 100%;
        height: auto;
    }

    .btn-icon-img,
    .hero-btn-icon {
        width: 40px;
    }

    .menu-icon-img,
    .statistik-icon-img,
    .potensi-icon-img {
        width: 72px;
        height: 72px;
    }

    .card {
        margin-bottom: 1rem;
    }

    .card-img-top {
        height: 150px;
    }

    .container-lg,
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Hero Section */
    .hero-section {
        padding: 2rem 0;
        min-height: auto;
    }

    .hero-greeting {
        font-size: clamp(1.8rem, 5vw, 2.4rem) !important;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-image {
        max-width: min(220px, 80vw);
    }

    .navbar-brand-logo {
        width: 24px;
    }

    .statistik-bg,
    .event-bg {
        background-size: cover;
        background-position: center;
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    /* Footer */
    footer {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    footer h5 {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }

    footer p {
        font-size: 0.875rem;
    }

    /* Dropdown adjustments */
    .dropdown-menu {
        font-size: 0.9rem;
    }

    /* Image in hero card */
    .position-absolute.bottom-0 {
        font-size: 0.875rem;
    }
}

/* Small devices (576px to 767px) */
@media (max-width: 767.98px) {
    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    h3 {
        font-size: 1.4rem !important;
    }

    section {
        padding: 2.5rem 0;
    }

    section h2 {
        font-size: 1.75rem;
        margin-bottom: 2.5rem;
    }

    section h2::after {
        bottom: -12px;
        width: 50px;
    }

    .navbar-nav {
        padding-top: 0.5rem;
    }

    .nav-link {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        margin: 0 !important;
    }

    .nav-item.dropdown .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0;
        box-shadow: none;
        border: none;
        background-color: #f8f9fa;
        padding: 0;
    }

    .nav-item.dropdown .dropdown-menu .dropdown-item {
        padding-left: 2rem;
    }

    .btn-group {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .btn-group .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .hero-section .row > div {
        margin-bottom: 2rem;
    }

    .position-absolute.bottom-0.end-0 {
        position: static !important;
        margin-top: 1rem;
    }
}

/* Medium devices and up (768px and up) */
@media (min-width: 768px) {
    .navbar-brand {
        font-size: 1.5rem;
    }

    section {
        padding: 3rem 0;
    }

    section h2 {
        font-size: 2.5rem;
    }
}

/* Tables responsiveness */
@media (max-width: 575.98px) {
    .table {
        font-size: 0.85rem;
    }

    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
    }

    .table-responsive {
        font-size: 0.85rem;
    }
}

/* Touch-friendly buttons on mobile */
@media (max-width: 767.98px) {
    .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    a {
        -webkit-tap-highlight-color: rgba(42, 74, 37, 0.1);
    }
}

/* Image responsiveness */
img {
    max-width: 100%;
    height: auto;
}

/* Video responsiveness */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.home-gallery-item:hover .home-gallery-info {
    transform: translateY(-5px);
}

.home-gallery-info h6 {
    color: white;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive adjustments for home gallery */
@media (max-width: 1199px) {
    .home-gallery-item {
        aspect-ratio: 1.1;
    }
}

@media (max-width: 991px) {
    .home-gallery-item {
        aspect-ratio: 1;
    }
    
    .home-gallery-overlay {
        font-size: 2rem;
    }
}

@media (max-width: 575px) {
    .home-gallery-item {
        aspect-ratio: 1.2;
    }
    
    .home-gallery-info {
        padding: 1rem 0.75rem 0.75rem;
    }
    
    .home-gallery-info h6 {
        font-size: 0.85rem;
    }
    
    .home-gallery-overlay {
        font-size: 1.5rem;
    }
}

/* ============================================
   DROPDOWN MENU
   ============================================ */

.dropdown-menu {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease;
    min-width: 200px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    color: #555;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.dropdown-item:hover,
.dropdown-item.active {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.dropdown-divider {
    background-color: #e9ecef;
}

.dropdown-toggle::after {
    display: none !important;
}

.dropdown-toggle {
    padding-right: 0.5rem !important;
}

.dropdown-toggle::before {
    content: ' ▼';
    font-size: 0.6rem;
    margin-left: 0.5rem;
    transition: var(--transition);
}

.dropdown-toggle[aria-expanded="true"]::before {
    transform: rotate(180deg);
}

@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
    }
}

/* Mobile dropdown styles */
@media (max-width: 991px) {
    .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin: 0;
        padding: 0.5rem 0;
        border: none;
        box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
        background-color: var(--light-color);
    }

    .dropdown-item {
        padding-left: 2rem;
    }
}

@tailwind base;
@tailwind components;
@tailwind utilities;
