  body {
    font-family: 'Noto Sans Malayalam', 'Noto Sans Devanagari', 'Noto Sans Kannada', 'Poppins', 'Georgia', 'Times New Roman', serif;
  }

  /* Language-Specific Fonts */
  .lang {
    display: none;
  }

  .lang.en {
    display: inline;
    font-family: 'Poppins', 'Arial', sans-serif;
  }

  .lang.ml {
    font-family: 'Noto Sans Malayalam', sans-serif !important;
  }

  .lang.hi {
    font-family: 'Noto Sans Devanagari', sans-serif !important;
  }

  .lang.kn {
    font-family: 'Noto Sans Kannada', sans-serif !important;
  }

  /* ================= 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;
    }
  }

  /* ================= HERO ================= */
  .hero-section {
    position: relative;
    height: 90vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
  }

  .hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }

  .hero-carousel .carousel-item {
    height: 90vh;
  }

  .hero-carousel img {
    object-fit: cover;
    height: 100%;
    width: 100%;
  }

  .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
  }

  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
  }

  .hero-title {
    font-family: Arial, sans-serif;
    font-size: 64px;
    font-weight: 700;
    color: #f5d28b;
    letter-spacing: 2px;
  }

  .hero-subtitle {
    margin-top: 15px;
    font-size: 18px;
    color: #f5e6c8;
  }

  .hero-btn {
    margin-top: 30px;
    background: #d4a94f;
    color: #4a2a00;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
  }

  .hero-btn:hover {
    background: #e6bd63;
    color: #4a2a00;
  }

  /* ================= 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;
  }

  @media (max-width: 768px) {
    .hero-title {
      font-size: 40px;
    }
  }

  /* ================= ADDITIONAL ABOUT STYLES ================= */
  .about-hero {
    background:
      linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
      url("/static/images/home/main_banner.jpg") no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
  }

  .about-hero-title {
    font-family: 'Playfair Display', 'Poppins', sans-serif;
    font-size: clamp(28px, 6vw, 48px);
    font-weight: 700;
    color: #f5d28b;
  }

  @media (max-width: 768px) {
    .about-hero-title {
      font-size: 36px;
    }
  }

  @media (max-width: 480px) {
    .about-hero-title {
      font-size: 28px;
      word-wrap: break-word;
      overflow-wrap: break-word;
    }
  }

  .about-temple {
    padding: 80px 0;
    background: #ffffff;
  }

  .section-title {
    text-align: center;
    font-family: 'Playfair Display', 'Poppins', sans-serif;
    font-size: 40px;
    color: #6b0f0f;
    margin-bottom: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }

  .title-line {
    display: inline-block;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        #d4a94f 30%,
        #ffd27d 70%,
        transparent);
  }

  .about-temple .temple-content {
    display: flex !important;
    flex-direction: row !important;
    gap: 50px !important;
    align-items: flex-start !important;
  }

  .about-temple .temple-image {
    width: 40% !important;
    min-width: 320px !important;
    flex: 0 0 40% !important;
    flex-shrink: 0 !important;
  }

  .about-temple .temple-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(107, 15, 15, 0.15);
  }

  .about-temple .temple-info {
    width: 60% !important;
    flex: 1 1 60% !important;
    flex-grow: 1 !important;
  }

  .temple-info p {
    line-height: 1.8;
    font-size: 16px;
    color: #4a2a00;
    margin-bottom: 25px;
    text-align: justify;
  }

  .history-section {
    background: #f5e6d3;
    padding: 80px 0;
  }

  .history-card {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    border-left: 8px solid #6b0f0f;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  }

  @media (max-width: 992px) {
    .about-temple .temple-content {
      gap: 30px !important;
      flex-direction: row !important;
    }

    .about-temple .temple-image {
      width: 35% !important;
      min-width: 280px !important;
      flex: 0 0 35% !important;
    }

    .about-temple .temple-info {
      width: 65% !important;
      flex: 1 1 65% !important;
    }

    .about-temple .temple-info p {
      font-size: 15px;
      text-align: justify;
    }
  }

  @media (max-width: 768px) {
    .about-temple .temple-content {
      gap: 20px !important;
      flex-direction: column !important;
    }

    .about-temple .temple-image {
      width: 100% !important;
      min-width: auto !important;
      flex: 1 1 auto !important;
      flex-shrink: 1 !important;
    }

    .about-temple .temple-info {
      width: 100% !important;
      flex: 1 1 auto !important;
      flex-grow: 0 !important;
    }

    .about-temple .temple-info p {
      font-size: 14px;
    }
  }

  /* language block visibility */
  .lang {
    display: none;
  }

  .lang.en {
    display: block;
  }

  .history-section {
    background: linear-gradient(rgba(210, 102, 44, 0.85), rgba(255, 252, 248, 0.85)),
    url("{% static 'images/home/cover/event.jpg' %}") no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    padding: 80px 0;
    border-top: 1px solid #d4a94f;
    border-bottom: 1px solid #d4a94f;
  }

  .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 i {
    line-height: 1;
  }

  .whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.4);
  }



      /* ========== MAIN ABOUT SECTION - DESKTOP ========== */
        .about-temple {
            padding: 60px 0;
            background: #ffffff;
        }

        .about-temple .section-title {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 20px;
            font-size: clamp(22px, 4vw, 38px);
            font-weight: 700;
            color: #6b0f0f;
            margin-bottom: 40px;
            text-align: center;
            flex-wrap: nowrap;
            padding: 0 10px;
            word-break: break-word;
        }

        .about-temple .section-title span.lang {
            flex-shrink: 1;
            min-width: 0;
        }

        .about-temple .title-line {
            display: inline-block;
            height: 2px;
            flex: 0 1 120px;
            min-width: 40px;
            background: linear-gradient(90deg, transparent, #d4a94f 30%, #ffd27d 70%, transparent);
            flex-shrink: 1;
        }

        /* Grid layout: image left, text right (top row), full-width text (bottom row) */
        .about-temple .temple-content {
            display: grid !important;
            grid-template-columns: 30% 1fr !important;
            gap: 50px !important;
            align-items: end !important;
            grid-template-rows: auto auto !important;
        }

        .about-temple .temple-image {
            grid-column: 1 !important;
            grid-row: 1 !important;
            width: 100% !important;
        }

        .about-temple .temple-image img {
            width: 100%;
            border-radius: 12px;
            box-shadow: 0 15px 35px rgba(107, 15, 15, 0.15);
            display: block;
        }

        .about-temple .temple-info-short {
            grid-column: 2 !important;
            grid-row: 1 !important;
            width: 100% !important;
        }

        .about-temple .temple-info-full {
            grid-column: 1 / -1 !important;
            grid-row: 2 !important;
            width: 100% !important;
        }

        .temple-info-short p,
        .temple-info-full p {
            line-height: 1.9;
            font-size: 16px;
            color: #4a2a00;
            margin-bottom: 20px;
            text-align: justify;
        }

        /* ========== TABLET (max 992px) ========== */
        @media (max-width: 992px) {
            .about-temple {
                padding: 50px 0;
            }

            .about-temple .section-title {
                font-size: 32px;
                gap: 15px;
            }

            .about-temple .temple-content {
                grid-template-columns: 38% 1fr !important;
                gap: 30px !important;
            }

            .temple-info-short p,
            .temple-info-full p {
                font-size: 15px;
            }
        }

        /* ========== MOBILE (max 768px) ========== */
        @media (max-width: 768px) {
            .about-temple {
                padding: 35px 0;
            }

            .about-temple .section-title {
                font-size: clamp(20px, 5vw, 28px);
                gap: 10px;
                margin-bottom: 20px;
                flex-wrap: nowrap;
            }

            .about-temple .title-line {
                flex: 0 1 60px;
                min-width: 30px;
            }

            /* Stack everything in a single column */
            .about-temple .temple-content {
                grid-template-columns: 1fr !important;
                gap: 20px !important;
            }

            .about-temple .temple-image {
                grid-column: 1 !important;
                grid-row: 1 !important;
            }

            .about-temple .temple-image img {
                border-radius: 8px;
                max-height: 280px;
                object-fit: cover;
            }

            .about-temple .temple-info-short {
                grid-column: 1 !important;
                grid-row: 2 !important;
            }

            .about-temple .temple-info-full {
                grid-column: 1 !important;
                grid-row: 3 !important;
            }

            .temple-info-short p,
            .temple-info-full p {
                font-size: 14px;
                line-height: 1.8;
                margin-bottom: 15px;
            }
        }

        /* ========== SMALL MOBILE (max 480px) ========== */
        @media (max-width: 480px) {
            .about-temple {
                padding: 25px 0;
            }

            .about-temple .section-title {
                font-size: clamp(18px, 5.5vw, 22px);
                gap: 6px;
                margin-bottom: 16px;
                justify-content: center;
                flex-wrap: nowrap;
            }

            /* Hide decorative lines on very small screens — just show the centered text */
            .about-temple .title-line {
                display: none;
            }

            .about-temple .temple-content {
                gap: 15px !important;
            }

            .about-temple .temple-image img {
                max-height: 220px;
                border-radius: 6px;
            }

            .temple-info-short p,
            .temple-info-full p {
                font-size: 13px;
                line-height: 1.7;
                margin-bottom: 12px;
            }
        }


           /* ================= ABOUT HERO ================= */
        .contact-hero {
            background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
                url("/static/images/home/main_banner.jpg") no-repeat center center;
            background-size: cover;
            background-attachment: fixed;
            min-height: 180px;
            height: 35vh;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            border-bottom: 5px solid #d4a94f;
            padding: 0 20px;
        }

        .contact-hero-title {
            font-family: Arial, sans-serif;
            /* Scales from 20px (tiny phones) to 48px (desktop) */
            font-size: clamp(20px, 5.5vw, 48px);
            font-weight: 700;
            color: #f5d28b;
            white-space: nowrap;
            text-align: center;
        }

        @media (max-width: 992px) {
            .contact-hero {
                background-attachment: scroll;
            }
        }

        @media (max-width: 480px) {
            .contact-hero {
                min-height: 140px;
                height: 25vh;
            }

            .contact-hero-title {
                /* Extra reduction on very small screens */
                font-size: clamp(16px, 5vw, 22px);
                white-space: normal;
                word-break: break-word;
            }
        }