body {
    font-family: 'Noto Sans Malayalam', 'Noto Sans Devanagari', 'Noto Sans Kannada', 'Poppins', 'Georgia', 'Times New Roman', serif;
}

        /* language block visibility */
        .lang { display: none; }
        .lang.en { display: block; }



        /* ================= NAVBAR ================= */
        .madayi-navbar {
            background: linear-gradient(90deg, #6b0f0f, #8b1a1a);
            padding: 20px 0;
            border-bottom: 5px solid #d4a94f;
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .madayi-navbar .navbar-brand {
            display: flex;
            align-items: center;
            gap: 10px;
            color: #fff;
            font-weight: 600;
            font-size: 18px;
        }

        .madayi-navbar .navbar-brand img {
            height: 42px;
        }

        .madayi-navbar .nav-link {
        color: #f5e6c8 !important;
        font-weight: 100;
        font-size: 15px;
        margin: 0 8px;
        position: relative;
        }

        .madayi-navbar .nav-link:hover,
        .madayi-navbar .nav-link.active {
            color: #ffd27d !important;
        }

        .madayi-navbar .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: #ffd27d;
        }

        .book-pooja-btn {
            background: #d4a94f;
            color: #4a2a00;
            font-weight: 600;
            padding: 8px 18px;
            border-radius: 6px;
            text-decoration: none;
        }

        .book-pooja-btn:hover {
            background: #e6bd63;
            color: #4a2a00;
        }

        .madayi-navbar .navbar-toggler {
            border: 1px solid rgba(245, 230, 200, 0.45);
            padding: 0.45rem 0.7rem;
        }

        .madayi-navbar .navbar-toggler:focus {
            box-shadow: 0 0 0 0.2rem rgba(212, 169, 79, 0.3);
        }

        .madayi-navbar .navbar-toggler-icon {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28245, 230, 200, 0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        }

        .madayi-navbar .navbar-nav {
            align-items: center;
        }

        .madayi-navbar .dropdown-menu {
            min-width: 11rem;
        }

        /* Navbar responsive fixes for longer text in other languages */
        @media (max-width: 1200px) {
            .madayi-navbar .nav-link {
                margin: 0 3px;
                font-size: 14px;
                padding: 8px 6px;
            }
            .madayi-navbar .navbar-brand {
                font-size: 16px;
            }
        }

        @media (max-width: 991.98px) {
            .madayi-navbar {
                padding: 14px 0;
            }
            .madayi-navbar .container {
                align-items: flex-start;
            }
            .madayi-navbar .navbar-brand {
                max-width: calc(100% - 72px);
                font-size: 15px;
                line-height: 1.3;
                white-space: normal;
            }
            .madayi-navbar .navbar-collapse {
                width: 100%;
                margin-top: 14px;
                padding: 14px;
                background: rgba(58, 7, 7, 0.96);
                border: 1px solid rgba(212, 169, 79, 0.28);
                border-radius: 14px;
            }
            .madayi-navbar .navbar-nav {
                width: 100%;
                align-items: stretch;
                text-align: center;
            }
            .madayi-navbar .nav-item {
                width: 100%;
                margin-bottom: 4px;
            }
            .madayi-navbar .nav-link {
                display: flex;
                justify-content: center;
                align-items: center;
                width: 100%;
                margin: 0;
                padding: 10px 14px;
                font-size: 14px;
                white-space: normal;
                overflow: visible;
                text-overflow: clip;
                max-width: none;
                border-radius: 10px;
            }
            .madayi-navbar .nav-link.active {
                background: rgba(212, 169, 79, 0.12);
            }
            .madayi-navbar .nav-link.active::after {
                display: none;
            }
            .madayi-navbar .dropdown-menu {
                position: static !important;
                width: 100%;
                margin-top: 8px;
                text-align: center;
                transform: none !important;
            }
        }

        @media (max-width: 576px) {
            .madayi-navbar .navbar-brand {
                font-size: 13px;
            }
            .book-pooja-btn {
                padding: 6px 12px;
                font-size: 12px;
            }
        }

        /* ================= GALLERY HERO ================= */
        .events-hero {
            background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("/static/images/home/cover/gallery.jpg") no-repeat center center;
            background-size: cover;
            background-attachment: fixed;
            background-position: center center;
            height: 45vh;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            border-bottom: 5px solid #d4a94f;
        }

        .events-hero-title {
            font-family: 'Playfair Display', 'Poppins', sans-serif;
            font-size: clamp(28px, 6vw, 52px);
            font-weight: 700;
            color: #f5d28b;
            text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
            margin: 0;
            text-align: center;
        }

        @media (max-width: 768px) {
            .events-hero-title {
                font-size: 36px;
            }
        }

        @media (max-width: 480px) {
            .events-hero-title {
                font-size: 28px;
                word-wrap: break-word;
                overflow-wrap: break-word;
            }
        }

        /* ================= GALLERY STYLES ================= */
        .gallery-section {
            padding: 80px 20px;
            background: #ffffff;
        }

        .gallery-section .container {
            max-width: 1200px;
            margin: auto;
        }

        .section-title {
            font-family: 'Playfair Display', 'Poppins', sans-serif;
            text-align: center;
            font-size: clamp(26px, 5vw, 40px);
            margin-bottom: 50px;
            position: relative;
            font-weight: 600;
        }

        .section-title .title-line {
            display: inline-block;
            width: 60px;
            height: 2px;
            background: #c69c3a;
            vertical-align: middle;
            margin: 0 15px;
        }

        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 20px;
        }

        .gallery-item {
            position: relative;
            overflow: hidden;
            border-radius: 12px;
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform .5s ease;
        }

        .gallery-item:hover img {
            transform: scale(1.1);
        }

        .gallery-overlay {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.55);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: .4s;
        }

        .gallery-overlay i {
            color: #fff;
            font-size: 26px;
        }

        .gallery-item:hover .gallery-overlay {
            opacity: 1;
        }

        /* ================= PAGINATION ================= */
        .gallery-pagination {
            display: flex;
            justify-content: center;
            margin-top: 50px;
            gap: 10px;
        }

        .gallery-pagination button {
            border: none;
            background: #eee;
            padding: 8px 14px;
            cursor: pointer;
            border-radius: 6px;
            font-size: 14px;
            transition: .3s;
        }

        .gallery-pagination button.active,
        .gallery-pagination button:hover {
            background: #c69c3a;
            color: #fff;
        }

        /* ================= LIGHTBOX ================= */
        .madayi-lightbox {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.95);
            z-index: 2000;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 40px;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .lightbox-content {
            position: relative;
            max-width: 90%;
            max-height: 90%;
        }

        .lightbox-content img {
            width: 100%;
            height: auto;
            max-height: 85vh;
            border-radius: 8px;
            box-shadow: 0 0 50px rgba(212, 169, 79, 0.3);
            border: 2px solid #d4a94f;
        }

        .lightbox-close {
            position: absolute;
            top: -50px;
            right: 0;
            color: #f5d28b;
            font-size: 40px;
            background: none;
            border: none;
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .lightbox-close:hover {
            color: #fff;
        }

        /* ================= FOOTER ================= */
        .madayi-footer {
            background: #2a0909;
            color: #f5e6c8;
            padding: 60px 0 20px;
        }

        .madayi-footer h5 {
            color: #d4a94f;
            margin-bottom: 15px;
            font-size: 1.35rem;
            font-weight: 700;
        }

        .madayi-footer p {
            font-size: 0.95rem;
            line-height: 1.6;
        }

        .madayi-footer ul li {
            margin-bottom: 8px;
        }

        .madayi-footer a {
            color: #f5e6c8;
            text-decoration: none;
            font-size: 0.96rem;
        }

        .madayi-footer a:hover {
            color: #ffd27d;
            text-decoration: underline;
        }

        .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            margin-top: 40px;
            padding-top: 15px;
            text-align: center;
            font-size: 0.88rem;
        }

        .whatsapp-float {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 60px;
            height: 60px;
            background-color: #25D366;
            color: #fff;
            border-radius: 50%;
            text-align: center;
            font-size: 30px;
            box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            line-height: 0;
            border: none;
        }

        .whatsapp-float:hover {
            transform: scale(1.1);
            box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.4);
        }

        @media (max-width: 768px) {
            .events-hero-title {
                font-size: 36px;
            }
            .gallery-grid {
                grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            }
        }