/* Kallil temple overrides on top of the Maharatri template */
:root {
  --mht-primary: #8E1B1B;      /* temple red */
  --mht-accent: #C98A1E;       /* brass */
  --mht-accent-rgb: 201, 138, 30;
}

body { font-family: 'Poppins', sans-serif; }

/* Text logo (replaces the template image logo) */
.kallil-logo { display: flex !important; flex-direction: column; justify-content: center; width: auto !important; line-height: 1.1; text-decoration: none; }
.kallil-logo-main { font-family: 'Marcellus', serif; font-size: 30px; color: var(--mht-primary); letter-spacing: .5px; }
.kallil-logo-sub { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #6b5a4a; margin-top: 4px; }
.sigma_aside .kallil-logo { padding: 20px 0; }
.header-2 .sigma_logo-wrapper { padding: 0 34px; }
@media (max-width: 575px) {
  .kallil-logo-main { font-size: 22px; }
  .kallil-logo-sub { font-size: 9px; letter-spacing: 1px; }
}

/* Active menu item */
.sigma_header .navbar-nav .menu-item.active > a { color: var(--mht-accent); }

/* Festival notice strip */
.kallil-notice { background: var(--mht-primary); color: #f7e8d2; padding: 22px 0; }
.kallil-notice-inner { display: flex; align-items: center; gap: 22px; }
.kallil-notice-inner > i { font-size: 46px; color: var(--mht-accent); line-height: 1; }
.kallil-notice-inner span { display: block; font-family: 'Marcellus', serif; font-size: 22px; color: #fff; }
.kallil-notice-inner p { margin: 2px 0 0; color: #f1dcc0; }

/* Images */
.kallil-cover { object-fit: cover; }
.kallil-rounded { border-radius: 6px; }
.kallil-thumb { overflow: hidden; border-radius: 6px; }
.kallil-thumb img { aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s ease; }
.kallil-thumb:hover img { transform: scale(1.06); }
.kallil-link { display: inline-block; margin-top: 6px; font-size: 14px; }

/* Rock stats */
.kallil-stats .section-title .subtitle { color: var(--mht-accent) !important; }
.kallil-stat { text-align: center; padding: 26px 10px; border: 1px solid rgba(255,255,255,.25); margin-bottom: 24px; background: rgba(0,0,0,.2); }
.kallil-stat b { display: block; font-family: 'Marcellus', serif; font-weight: 400; font-size: 54px; line-height: 1; color: #fff; }
.kallil-stat b small { font-size: 18px; margin-left: 6px; color: var(--mht-accent); }
.kallil-stat p { margin: 10px 0 0; color: #e9e1d6; }

/* About page */
.kallil-prose p { font-size: 16px; line-height: 1.85; margin-bottom: 1.2em; }
.kallil-prose h5 { margin-top: 30px; color: var(--mht-primary); font-family: 'Marcellus', serif; font-weight: 400; font-size: 26px; }
.kallil-sidebar .sidebar-widget { margin-bottom: 40px; }
.kallil-facts ul { list-style: none; padding: 0; margin: 0; }
.kallil-facts li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #efe6da; }
.kallil-facts li b { color: var(--mht-primary); }

/* Administration */
.kallil-card { background: #fff; padding: 40px; height: 100%; box-shadow: 0 10px 50px rgba(53,82,99,.09); border-top: 4px solid var(--mht-primary); }
.kallil-card > i { font-size: 44px; color: var(--mht-accent); }
.kallil-card h5 { margin: 12px 0 18px; font-family: 'Marcellus', serif; font-weight: 400; font-size: 26px; }
.kallil-card ul { list-style: none; padding: 0; margin: 0; }
.kallil-card li { padding: 12px 0; border-bottom: 1px solid #f0e8de; }
.kallil-card li:last-child { border-bottom: 0; }
.kallil-card li b { display: block; color: #222; }
.kallil-card li span { display: block; font-size: 14px; color: #777; }
.kallil-card li a { font-size: 14px; color: var(--mht-primary); }

/* Vazhipadu */
.kallil-vazhipadu { box-shadow: 0 10px 50px rgba(53,82,99,.12); }

/* Footer gallery */
.kallil-footer-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kallil-footer-gallery img { width: 100%; height: 80px; object-fit: cover; border-radius: 4px; }
.sigma_footer a { color: inherit; }

/* Map */
.sigma_map iframe { width: 100%; height: 520px; border: 0; display: block; }

/* Banner: real temple photos are dark, so use light text over a soft shade */
.banner-3 .sigma_banner-slider-inner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,10,5,.75) 0%, rgba(20,10,5,.35) 55%, rgba(20,10,5,0) 100%); z-index: 0; }
.banner-3 .sigma_banner-text .title { color: #fff !important; }
.banner-3 .sigma_banner-text .blockquote { color: #f1e6d6 !important; border-color: var(--mht-accent) !important; }

/* Headings in dark brown, subtitles in temple red */
.section-title .title { color: #2b1a12; }
.section-title .subtitle { color: var(--mht-primary); }
.sigma_banner-text .title { font-family: 'Marcellus', serif; font-weight: 400; }
.section-title .title, .sigma_subheader-text h1 { font-family: 'Marcellus', serif; font-weight: 400; }
.kallil-notice-inner > i { font-size: 40px; }
.kallil-card > i { font-size: 38px; }
.sigma_btn-donate .sigma_btn-donate-icon i { color: var(--mht-primary) !important; font-size: 14px; }
@media (max-width: 1199px) { .sigma_header .sigma_header-contact { display: none; } }
@media (max-width: 991px) { .sigma_header .sigma_btn-donate { display: none; } }

/* Logo on the left */
.header-2 .sigma_header-middle .navbar { flex-wrap: nowrap; }
.header-2 .sigma_logo-wrapper { order: -1; margin-left: 0; }
.header-2 .sigma_header-middle .navbar-nav { margin-left: auto; margin-right: 10px; }
.header-2 .sigma_header-middle .sigma_header-button { margin-left: 20px; margin-right: 30px; }
.header-2 .sigma_header-controls.style-2 { order: 5; border-right: 0; border-left: 1px solid #efefef; margin-left: auto; }
.kallil-logo-main { font-size: 26px; white-space: nowrap; }
@media (min-width: 992px) { .header-2 .sigma_header-controls.style-2 { display: none; } }
@media (max-width: 575px) { .kallil-logo-main { font-size: 18px; } }
.header-2 .sigma_header-middle .navbar-nav > .menu-item > a { white-space: nowrap; }
@media (max-width: 1299px) {
  .header-2 .sigma_header-middle .navbar-nav > .menu-item > a { padding-left: 9px; padding-right: 9px; font-size: 13px; }
  .header-2 .sigma_logo-wrapper { padding: 0 22px; }
  .kallil-logo-main { font-size: 22px; }
}
@media (max-width: 1199px) { .header-2 .sigma_header-middle .sigma_header-button { display: none !important; } }
@media (max-width: 991px) { .header-2 .sigma_header-controls.style-2 { display: flex !important; } }

/* Logo sits flat in the header bar (no floating white box) */
.header-2 .sigma_logo-wrapper { height: auto; margin-bottom: 0; box-shadow: none; background: transparent; padding: 0 30px; }
.kallil-stats .section-title { margin-bottom: 0; }

/* Lamp (nilavilakku) icon replaces the Om symbol everywhere */
.k-lamp { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.18em; background-color: currentColor;
  -webkit-mask: url(../img/lamp.svg) center / contain no-repeat; mask: url(../img/lamp.svg) center / contain no-repeat; }
.sigma_footer .footer-widget ul li .k-lamp { color: var(--mht-accent); margin-right: 10px; font-size: 14px; }
.section-title .subtitle::before,
.section-title .subtitle::after,
.sigma_subheader .breadcrumb-item+.breadcrumb-item::before {
  content: "" !important; font-family: inherit !important; display: inline-block; width: 17px; height: 17px; vertical-align: -3px;
  background-color: currentColor; -webkit-mask: url(../img/lamp.svg) center / contain no-repeat; mask: url(../img/lamp.svg) center / contain no-repeat;
}
.sigma_subheader .breadcrumb-item+.breadcrumb-item::before { padding-right: 0; margin-right: 12px; }

/* Loader: a lit nilavilakku */
.kallil-loader { background: #1e120c !important; }
.kallil-loader-inner { text-align: center; }
.kallil-loader-lamp { width: 110px; height: auto; display: block; margin: 0 auto; }
.kallil-loader .kl-flame { transform-origin: 60px 33px; animation: kl-flicker 1.4s ease-in-out infinite; }
.kallil-loader .kl-glow { transform-origin: 60px 30px; animation: kl-glow 1.4s ease-in-out infinite; }
.kallil-loader p { margin: 18px 0 0; font-family: 'Marcellus', serif; font-size: 20px; letter-spacing: 1px; color: #e9cf96; }
@keyframes kl-flicker { 0%,100% { transform: scale(1, 1) rotate(0deg); } 30% { transform: scale(.94, 1.06) rotate(-2deg); } 60% { transform: scale(1.04, .95) rotate(2deg); } }
@keyframes kl-glow { 0%,100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .kallil-loader .kl-flame, .kallil-loader .kl-glow { animation: none; } }

/* Floating WhatsApp button (bottom-left, back-to-top stays bottom-right) */
.kallil-whatsapp { position: fixed; left: 22px; bottom: 22px; z-index: 999; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff !important; display: flex; align-items: center; justify-content: center; font-size: 32px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: transform .2s ease; }
.kallil-whatsapp:hover { transform: scale(1.08); color: #fff; }
.kallil-whatsapp::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: kl-wa 2s ease-out infinite; }
@keyframes kl-wa { from { transform: scale(1); opacity: .8; } to { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .kallil-whatsapp::after { animation: none; } }
@media (max-width: 575px) { .kallil-whatsapp { width: 50px; height: 50px; font-size: 27px; left: 16px; bottom: 16px; } }

/* Myth & Mystery (home) */
.kallil-mm { background: #fbf1e6; }
.kallil-mm-card { background: #fff; height: 100%; box-shadow: 0 10px 40px rgba(80,40,20,.08); border-radius: 6px; overflow: hidden; }
.kallil-mm-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.kallil-mm-body { padding: 30px 34px 34px; border-top: 4px solid var(--mht-primary); }
.kallil-mm-body h5 { font-family: 'Marcellus', serif; font-weight: 400; font-size: 28px; color: var(--mht-primary); margin-bottom: 12px; }
.kallil-mm-body p { margin: 0; line-height: 1.85; color: #555; }

/* ---------- Utsavam 2026 popup ---------- */
.kallil-notice-inner > div { flex: 1; }
.kallil-notice-btn { flex-shrink: 0; background: var(--mht-accent) !important; border: 0; color: #2a1608 !important; }
.kallil-fest[hidden] { display: none; }
.kallil-fest { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.kallil-fest-backdrop { position: absolute; inset: 0; background: rgba(20,10,5,.78); opacity: 0; transition: opacity .25s; }
.kallil-fest-box { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; max-width: 1040px; width: 100%; max-height: calc(100vh - 40px);
  background: #fbf1e6; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); border: 2px solid var(--mht-accent);
  transform: translateY(20px) scale(.97); opacity: 0; transition: transform .3s ease, opacity .3s ease; }
.kallil-fest.show .kallil-fest-backdrop { opacity: 1; }
.kallil-fest.show .kallil-fest-box { transform: none; opacity: 1; }
.kallil-fest-poster { display: block; background: #1e120c; }
.kallil-fest-poster { display: flex; align-items: center; }
.kallil-fest-poster img { width: 100%; height: auto; display: block; }
.kallil-fest-body { padding: 34px 32px; overflow: auto; }
.kallil-fest-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mht-primary); }
.kallil-fest-body h3 { font-family: 'Marcellus', serif; font-weight: 400; font-size: 34px; line-height: 1.15; color: #2b1a12; margin: 10px 0 8px; }
.kallil-fest-dates { color: #6b4a2a; font-size: 15px; margin-bottom: 18px; }
.kallil-fest-body ul { list-style: none; padding: 0; margin: 0 0 24px; border-top: 1px solid #ead9c3; }
.kallil-fest-body li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #ead9c3; font-size: 15px; }
.kallil-fest-body li b { color: var(--mht-primary); font-weight: 600; }
.kallil-fest-body li span { color: #555; }
.kallil-fest-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.kallil-fest-later { background: none; border: 0; color: #6b4a2a; text-decoration: underline; font-size: 14px; cursor: pointer; }
.kallil-fest-body small { display: block; margin-top: 14px; color: #8a7560; font-size: 12px; }
.kallil-fest-x { position: absolute; top: 10px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.9); color: #2b1a12; font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
body.kallil-fest-on { overflow: hidden; }
.kallil-fest-tab[hidden] { display: none; }
.kallil-fest-tab { position: fixed; right: 0; top: 50%; z-index: 998; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl;
  background: var(--mht-primary); color: #fff; border: 0; padding: 18px 10px; border-radius: 0 8px 8px 0; font-size: 13px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; cursor: pointer; box-shadow: -4px 4px 16px rgba(0,0,0,.2); display: flex; align-items: center; gap: 8px; }
.kallil-fest-tab .k-lamp { color: var(--mht-accent); transform: rotate(90deg); }
.kallil-fest-tab:hover { background: #a32424; }
@media (max-width: 767px) {
  .kallil-fest-box { grid-template-columns: 1fr; max-width: 460px; }
  .kallil-fest-poster img { height: auto; }
  .kallil-fest-body { padding: 22px 22px 24px; }
  .kallil-fest-body h3 { font-size: 27px; }
  .kallil-notice-inner { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .kallil-fest-box, .kallil-fest-backdrop { transition: none; } }
