    :root {
        --primary: #1b9c73;
        --secondary: #588367;
        --accent: #a4b476;
        --light: #f8f9fa;
        --dark: #212529;
    }

    body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background-color: #f8f9fa;
        padding-top: 120px;

    }

    /* Header Styling */
    .main-header {
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        color: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        position: fixed;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 97%;
        z-index: 1000;
        border-bottom-left-radius: 25px;
        border-bottom-right-radius: 25px;
        padding: 10px 30px;
        backdrop-filter: blur(6px);
    }



    .nav-menu .btn {
        color: white;
        font-weight: 500;
        font-size: 1rem;
        border: none;
        transition: all 0.3s ease;
    }

    .nav-menu .btn:hover {
        background-color: rgba(255, 255, 255, 0.15);
        transform: translateY(-2px);
    }

    .nav-menu .dropdown-toggle {
        background: none;
        border: none;
        color: white;
        font-weight: 500;
        font-size: 1rem;
    }

    .nav-menu .dropdown-toggle:focus {
        box-shadow: none;
    }

    .nav-menu .dropdown-menu {
        background-color: var(--secondary);
        border: none;
        border-radius: 8px;
        overflow: hidden;
    }

    .nav-menu .dropdown-item {
        color: white;
        transition: all 0.2s ease;
    }

    .nav-menu .dropdown-item:hover {
        background-color: var(--accent);
        color: #000;
        padding-left: 25px;
    }

    /*  GALLERY SECTION  */
    #gallery {
        background-color: #f8f9fa;
        padding: 80px 20px;
    }

    #gallery h2 {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 2rem;
        color: #222;
        text-align: center;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    /* Grid Layout */
    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
        padding: 0 15px;
    }

    /* New Card Design */
    .gallery-item {
        border-radius: 16px;
        overflow: visible;
        position: relative;
        cursor: pointer;
        transition: transform 0.4s ease, box-shadow 0.4s ease;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
        border-radius: 16px;
    }

    .gallery-item:hover {
        transform: scale(1.03);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .gallery-item:hover img {
        transform: scale(1.07);
    }

    /* Footer */
    .footer {
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        color: white;
        padding: 60px 20px 30px;
        text-align: center;
    }

    .footer h5 {
        color: var(--accent);
        margin-bottom: 1.5rem;
        position: relative;
        padding-bottom: 10px;
    }

    .footer h5::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 2px;
        background-color: var(--accent);
    }

    .footer-links {
        list-style: none;
        padding: 0;
        margin: 0 auto;
        display: inline-block;
    }

    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-links a {
        color: #e0e0e0;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .footer-links a:hover {
        color: var(--accent);
        padding-left: 5px;
    }

    .social-links a {
        display: inline-block;
        width: 40px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        text-align: center;
        line-height: 40px;
        margin: 5px;
        color: white;
        transition: all 0.3s ease;
    }

    .social-links a:hover {
        background-color: var(--accent);
        color: #333;
        transform: translateY(-3px);
    }

    .copyright {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 20px;
        margin-top: 40px;
        font-size: 0.9rem;
    }


    /* Responsive adjustments */

    @media (max-width: 768px) {
        .main-header {
            text-align: center;
            padding: 10px 20px;
            width: 95%;
            border-radius: 1;
        }

        .main-header>div {
            margin-bottom: 1rem;
        }

        .nav-menu {
            flex-wrap: wrap;
            justify-content: center;
        }

        .gallery-grid {
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 15px;
        }

        .gallery-img-container {
            height: 280px;
        }
    }

    @media (max-width: 576px) {
        .gallery-grid {
            grid-template-columns: 1fr;
        }

        .gallery-img-container {
            height: 250px;
            /* Slightly reduced for mobile */
        }
    }


    .navbar-toggler {
        background-color: rgba(255, 255, 255, 0.25);
        border-radius: 8px;
        padding: 6px 4px;
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255,255,255,0.8)' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    }





.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

/* NAME BAR ON IMAGE */
.name-overlay {
    position: absolute;
    bottom: 0;                 /* bottom placement */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background:  #fff;   /* transparent dark bar */
    color: #000;
    padding: 10px 15px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    margin-bottom: 10px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-img {
  width: 100%;
  display: block;
}

/* ✅ TEXT OVER IMAGE – WORKING FIX */
.name-overlay {
  position: absolute;
  bottom: 0;
  left: 10;
  width: 100%;

  background: rgba(0, 0, 0, 0.6);   /* dark overlay */
  color: #fff;                      /* white text */
  padding: 10px;
  font-size: 14px;
  text-align: center;

  z-index: 10;                      /* ✅ image-ന്റെ മുകളിൽ വരാൻ */
  opacity: 1;
  visibility: visible;
}
