/* Hero */
.tam-hero {
  min-height: 552px;
  padding: 76px 24px 112px;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  text-align: center;
  background-color: #f5dcb4;
  background-image:url('../images/lamp-hanging.png'),url('../images/lamp-hanging.png'),radial-gradient(circle at 47% 42%, rgba(255,250,235,.72) 0%, rgba(255,241,210,.42) 34%, rgba(255,223,175,.08) 66%),linear-gradient(90deg, rgba(255,247,228,.4), rgba(255,229,186,.1)),url('../images/hampi.png');
  background-position:left 4% top,right 4% top,center,center,center 58%;
  background-size:82px auto,82px auto,cover,cover,cover;
  background-repeat:no-repeat;
  color: var(--tam-maroon);
  isolation: isolate;
}
.tam-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 118px; z-index: -1; background: linear-gradient(transparent, rgba(255,253,247,.94)); }
.tam-hero-inner { width: 100%; max-width: 990px; padding-top: 44px; position: relative; }
.tam-hero-inner::before { content: ""; position: absolute; top: -32px; left: 50%; width: 78px; height: 48px; transform: translateX(-50%); background: url('../images/lotus-main.png') center/contain no-repeat; filter:drop-shadow(0 4px 8px rgba(101,42,20,.16)); }
.tam-eyebrow, .tam-kicker, .tam-card-label { margin-bottom: 11px; color: var(--tam-gold); font: 700 12px/1.4 var(--tam-font-body); letter-spacing: .17em; text-transform: uppercase; }
.tam-hero .tam-eyebrow { color: #8c541e; }
.tam-hero h1 { margin: 6px 0 10px; color: var(--tam-maroon); font: 700 clamp(74px,5.55vw,80px)/.98 var(--tam-font-display); letter-spacing: -.035em; text-shadow: 0 2px 18px rgba(255,246,225,.95); }
.tam-hero-subtitle { margin-bottom: 0; color: #612132; font: 600 clamp(23px,2vw,27px)/1.3 var(--tam-font-display); letter-spacing: .005em; text-shadow: 0 1px 10px rgba(255,250,235,.95); }
.tam-search { width: min(100%, 770px); height: 66px; display: flex; margin: 27px auto 15px; overflow: hidden; background: rgba(255,255,255,.96); border: 1px solid rgba(166,108,35,.3); border-radius: 40px; box-shadow: 0 13px 36px rgba(90,50,27,.2),0 0 0 5px rgba(255,247,228,.3); }
.tam-search input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 0 27px; background: #fff; color: var(--tam-text); font: 16px/1.2 inherit; }
.tam-search button { width: 72px; flex: 0 0 72px; border: 0; border-radius: 34px; background: linear-gradient(145deg,#78142a,#9a2036); color: #fff; cursor: pointer; font-size: 26px; box-shadow: -5px 0 15px rgba(116,22,41,.1); }
.tam-quick-links { width: fit-content; max-width: 100%; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0; margin: 0 auto; padding: 5px 12px; background: rgba(255,250,239,.7); border: 1px solid rgba(184,138,66,.24); border-radius: 28px; box-shadow: 0 7px 22px rgba(94,50,28,.1); backdrop-filter: blur(7px); }
.tam-quick-links a { min-height: 42px; display: inline-flex; align-items: center; padding: 0 17px; color: var(--tam-maroon); border-right: 1px solid rgba(184,138,66,.38); text-decoration: none; font: 700 15px/1 var(--tam-font-body); }
.tam-quick-links a:last-child { border-right: 0; }
.tam-quick-links a:hover { color: var(--tam-saffron); }

/* Wide homepage foundation */
.tam-section, .tam-stats { width: min(calc(100% - 48px), var(--tam-page-max)); max-width: none; margin-inline: auto; }
.tam-section { padding: 62px 0; }
.tam-section-head { margin-bottom: 30px; }
.tam-section-head:not(.tam-section-head-row)::after{content:"";display:block;width:112px;height:28px;margin:7px 0 0;background:url('../images/divider-lotus-gold.png') center/contain no-repeat;opacity:.55}
.tam-section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.tam-section h2 { margin-bottom: 8px; color: var(--tam-maroon); font: 700 clamp(39px,3vw,46px)/1.05 var(--tam-font-display); letter-spacing: -.025em; }
.tam-section-head > p:last-child { margin-bottom: 0; color: var(--tam-muted); font-size: 16px; line-height: 1.55; }
.tam-text-link { color: var(--tam-maroon); font-size: 14px; font-weight: 700; text-decoration: none; }

/* Today floating panel */
.tam-today { margin-top: -68px; padding: 31px; position: relative; z-index: 8; background: rgba(255,251,243,.97); border: 1px solid var(--tam-border); border-radius: var(--tam-radius-lg); box-shadow: 0 20px 54px rgba(88,47,26,.15); }
.tam-today .tam-section-head { margin-bottom: 22px; }
.tam-today .tam-section-head h2 { font-size: 34px; }
.tam-today-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; padding: 0; background: none; border: 0; }
.tam-card { min-height: 285px; padding: 30px; position: relative; display: flex; flex-direction: column; background: linear-gradient(145deg,#fff,#fffaf1); border: 1px solid #e7d2ad; border-radius: var(--tam-radius-md); box-shadow: 0 12px 30px rgba(74,41,24,.09); }
.tam-card-icon { margin-bottom: 17px; color: var(--tam-saffron); font: 34px/1 var(--tam-font-display); }
.tam-card h3 { margin-bottom: 11px; color: var(--tam-maroon); font: 700 26px/1.12 var(--tam-font-display); }
.tam-card p { margin-bottom: 12px; color: var(--tam-muted); font-size: 16px; line-height: 1.62; }
.tam-card h3.tam-telugu { font: 500 24px/1.45 var(--tam-font-telugu-serif); letter-spacing: 0; }
.tam-card p.tam-telugu { font: 400 18px/1.75 var(--tam-font-telugu-serif); letter-spacing: 0; }
.tam-card-label { color: var(--tam-saffron); }
.tam-card-actions { display: flex; gap: 19px; margin-top: auto; padding-top: 15px; }
.tam-card-actions a, .tam-card-link { color: var(--tam-maroon); font-size: 14px; font-weight: 800; text-decoration: none; }
.tam-koti-card { color: #fff; background: linear-gradient(145deg, #6e1426, #8a2532); border-color: #6e1426; box-shadow: 0 15px 34px rgba(116,22,41,.24); transform: translateY(-5px); }
.tam-koti-card h3, .tam-koti-card p, .tam-koti-card .tam-card-link { color: #fff; }
.tam-koti-card .tam-card-label, .tam-koti-card .tam-card-icon { color: #edc985; }
.tam-kn-total { color: #f2d18e; font: 700 45px/1 var(--tam-font-display); }
.tam-kn-meta { display: flex; flex-direction: column; gap: 4px; margin: 5px 0 16px; font-size: 13px; opacity: .85; }
.tam-spotlight-card { padding: 0; overflow: hidden; display: grid; grid-template-rows: 132px 1fr; }
.tam-spotlight-image { min-height: 132px; background: #eadcc4 url('../images/mandala-bg.png') center/cover no-repeat; }
.tam-spotlight-card > div:last-child { padding: 20px 25px 23px; display: flex; flex-direction: column; }
.tam-spotlight-card h3 { font-size: 21px; }
.tam-spotlight-card .tam-card-link { margin-top: auto; }

/* Devotional practice: one shared premium panel, 60/40 composition. */
.tam-practice { margin-top: 34px; padding: 34px; position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0,3fr) minmax(340px,2fr); column-gap: 24px; align-items: stretch; background: #fffaf0; border: 1px solid var(--tam-border); border-radius: var(--tam-radius-lg); box-shadow: var(--tam-shadow); }
.tam-practice::before { content: ""; width: 400px; height: 400px; position: absolute; top: -230px; left: -230px; z-index: 0; background: url('../images/mandala-bg.png') center/contain no-repeat; opacity: .055; pointer-events: none; }
.tam-practice > * { position: relative; z-index: 1; }
.tam-practice > .tam-section-head { grid-column: 1 / -1; margin-bottom: 24px; }
.tam-practice > .tam-practice-grid { grid-column: 1; grid-row: 2; }
.tam-practice > .tam-editorial-feature { grid-column: 2; grid-row: 2; }
.tam-practice-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; }
.tam-practice-item { min-height: 242px; padding: 26px 15px 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; color: var(--tam-maroon); text-align: center; background: linear-gradient(155deg,#fffdf8,#fbf3e5); border: 1px solid #dfc18d; border-radius: 18px; box-shadow: 0 9px 23px rgba(75,38,21,.07),inset 0 0 0 3px rgba(255,255,255,.55); text-decoration: none; transition: transform .18s ease,box-shadow .18s ease; }
.tam-practice-item:hover { transform: translateY(-3px); box-shadow: 0 13px 28px rgba(75,38,21,.11),inset 0 0 0 3px rgba(255,255,255,.55); }
.tam-practice-item > b { width: 74px; height: 74px; flex: 0 0 74px; display: block; overflow: hidden; color: transparent; font-size: 0; background-position: center; background-size: contain; background-repeat: no-repeat; }
.tam-practice-item:nth-child(1) > b { background-image: url('../images/icon-lotus.png'); }
.tam-practice-item:nth-child(2) > b { background-image: url('../images/icon-mala.png'); }
.tam-practice-item:nth-child(3) > b { background-image: url('../images/icon-manuscript.png'); }
.tam-practice-item:nth-child(4) > b { background-image: url('../images/icon-chakra.png'); }
.tam-practice-item span { flex: 0 0 auto; }
.tam-practice-item strong, .tam-practice-item small { display: block; }
.tam-practice-item strong { color: var(--tam-maroon); font: 700 22px/1.15 var(--tam-font-display); }
.tam-practice-item small { margin-top: 8px; color: var(--tam-muted); font-size: 14px; line-height: 1.45; }
.tam-practice-featured { background: linear-gradient(145deg,#f8e8ca,#fff6e6); border-color: #c98b35; box-shadow: 0 12px 29px rgba(177,112,34,.15),inset 0 0 0 3px rgba(255,255,255,.48); }
.tam-editorial-feature { min-height: 235px; height: 100%; margin: 0; padding: 34px; display: flex; align-items: center; overflow: hidden; border-radius: 18px; background-color: #ead6bb; background-image: linear-gradient(90deg,rgba(255,249,237,.98) 0%,rgba(255,249,237,.91) 43%,rgba(255,249,237,.18) 72%),url('../images/inner-page-hero-section/fragment-decorations-hindu-sri-veeramakaliamman-temple-singapore.jpg'); background-position: center,right center; background-size: cover; }
.tam-editorial-feature > div:first-child { max-width: 56%; }
.tam-editorial-feature h2 { font-size: 39px; }
.tam-editorial-feature p:not(.tam-kicker) { color: #5e4d43; font-size: 16px; line-height: 1.6; }
.tam-button { display: inline-flex; min-height: 46px; align-items: center; margin-top: 8px; padding: 0 22px; border-radius: 28px; background: var(--tam-maroon); color: #fff !important; font-size: 13px; font-weight: 800; text-decoration: none; }

/* Statistics */
.tam-stats { margin-top: 38px; margin-bottom: 12px; padding: 27px 20px; display: grid; grid-template-columns: repeat(4,1fr); text-align: center; background: #fffaf0; border-top: 1px solid var(--tam-border); border-bottom: 1px solid var(--tam-border); }
.tam-stats div + div { border-left: 1px solid var(--tam-border); }
.tam-stats strong, .tam-stats span { display: block; }
.tam-stats strong { margin-bottom: 5px; color: var(--tam-maroon); font: 700 29px/1.1 var(--tam-font-display); }
.tam-stats span { color: var(--tam-muted); font-size: 13px; }

/* Lower homepage */
.tam-stats ~ .tam-section { padding-bottom: 50px; }
.tam-stats ~ .tam-section + .tam-section { padding-top: 30px; }
.tam-temple-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); grid-auto-rows: 1fr; align-items: stretch; gap: 18px; }
.tam-temple-card { height: 100%; overflow: hidden; display: flex; flex-direction: column; background: #fffdf8; border: 1px solid #e5cfaa; border-radius: var(--tam-radius-md); box-shadow: 0 12px 31px rgba(85,44,23,.09); text-decoration: none; transition: transform .18s ease,box-shadow .18s ease; }
.tam-temple-card:hover { transform: translateY(-3px); box-shadow: 0 17px 37px rgba(85,44,23,.13); }
.tam-temple-image { height: auto; aspect-ratio: 16/10; flex: 0 0 auto; background: #eadcc4 url('../images/mandala-bg.png') center/cover no-repeat; border-radius: 17px 17px 0 0; }
.tam-temple-card > div:last-child { flex: 1; padding: 21px 20px 22px; display: flex; flex-direction: column; }
.tam-temple-card h3 { min-block-size: 2.3em; margin-bottom: 8px; color: var(--tam-maroon); font: 700 23px/1.15 var(--tam-font-display); }
.tam-temple-card p { margin-bottom: 9px; color: var(--tam-muted); font-size: 15px; line-height: 1.45; }
.tam-temple-card span { display: block; margin-bottom: 16px; color: var(--tam-saffron); font-size: 13px; }
.tam-temple-card b { margin-top: auto; color: var(--tam-maroon); font-size: 14px; }
.tam-event-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; }
.tam-event-card { min-height: 0; overflow: hidden; display: flex; flex-direction: column; background: #fffaf1; border: 1px solid var(--tam-border); border-radius: 15px; text-decoration: none; box-shadow: 0 8px 22px rgba(85,44,23,.06); transition: transform .18s ease,box-shadow .18s ease; }
.tam-event-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(85,44,23,.11); }
.tam-event-image { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #f5ead8; }
.tam-event-image img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.tam-event-content { flex: 1; padding: 18px 18px 20px; }
.tam-event-card span { color: var(--tam-saffron); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.tam-event-card h3 { margin: 11px 0 10px; color: var(--tam-maroon); font: 700 21px/1.2 var(--tam-font-display); }
.tam-event-card p { margin: 0; color: var(--tam-muted); font-size: 12px; line-height: 1.45; }
.tam-deity-rail { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); gap: 18px; }
.tam-deity { text-align: center; text-decoration: none; }
.tam-deity-image { width: 100%; aspect-ratio: 1; margin-bottom: 11px; background: #f3e5cd url('../images/mandala-bg.png') center/cover no-repeat; border: 3px solid #ead3aa; border-radius: 50%; }
.tam-deity strong, .tam-deity small { display: block; }
.tam-deity strong { color: var(--tam-maroon); font: 700 17px/1.2 var(--tam-font-display); }
.tam-deity small { margin-top: 5px; color: var(--tam-muted); font-size: 13px; }
.tam-media-grid { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 16px; }
.tam-media-card { min-height: 245px; padding: 27px; display: flex; flex-direction: column; justify-content: end; overflow: hidden; color: #fff !important; border: 1px solid rgba(216,174,103,.58); border-radius: 18px; text-decoration: none; background-color: #761c2c; background-image: linear-gradient(0deg,rgba(70,12,24,.92),rgba(91,35,25,.08)),url('../images/view-buddha-statue-temple.jpg'); background-position: center; background-size: cover; box-shadow: 0 12px 30px rgba(77,39,20,.12); }
.tam-media-greetings { background-image: linear-gradient(0deg,rgba(70,12,24,.92),rgba(128,54,27,.05)),url('../images/inner-page-hero-section/fragment-decorations-hindu-sri-veeramakaliamman-temple-singapore.jpg'); background-position: 58% center; }
.tam-media-card span { font-size: 14px; opacity: .9; }
.tam-media-card strong { margin-top: 6px; font: 700 24px/1.15 var(--tam-font-display); }
.tam-video-rail { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.tam-video-rail a { position: relative; isolation: isolate; overflow: hidden; background: #f8eedc url('../images/mandala-bg.png') center 22%/150px no-repeat; border: 1px solid var(--tam-border); border-radius: 14px; box-shadow: 0 8px 23px rgba(85,44,23,.08); text-decoration: none; }
.tam-video-rail a::before { content: "▶"; width: 48px; height: 48px; position: absolute; top: calc((100% - 54px) * .28); left: 50%; z-index: 0; display: grid; place-items: center; transform: translate(-50%,-50%); color: #fff; background: var(--tam-maroon); border: 1px solid #d8ad67; border-radius: 50%; box-shadow: 0 7px 20px rgba(92,31,37,.2); font-size: 17px; padding-left: 3px; }
.tam-video-rail img { width: 100%; aspect-ratio: 16/9; position: relative; z-index: 1; display: block; object-fit: cover; background: transparent; }
.tam-video-rail strong { min-height: 58px; position: relative; z-index: 2; display: block; padding: 12px; color: var(--tam-maroon); background: #fffdf8; font-size: 14px; line-height: 1.45; }
.tam-video-rail a.is-thumb-missing img { opacity: 0; }
.tam-video-rail a.is-thumb-missing::after { content: "Video"; position: absolute; top: 62%; left: 50%; z-index: 0; transform: translate(-50%,-50%); color: var(--tam-maroon); font: 700 12px/1 var(--tam-font-body); letter-spacing: .14em; text-transform: uppercase; }
.tam-group-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; }
.tam-group-grid a { min-height: 145px; padding: 24px; background: #f7eddd url('../images/mandala-bg.png') right -70px center/170px no-repeat; border: 1px solid var(--tam-border); border-radius: 15px; text-decoration: none; }
.tam-group-grid span, .tam-group-grid small { display: block; color: var(--tam-saffron); font-size: 11px; }
.tam-group-grid strong { display: block; margin: 13px 0; color: var(--tam-maroon); font: 700 22px/1.2 var(--tam-font-display); }
.tam-group-grid small { color: var(--tam-muted); }

/* Responsive */
@media (max-width: 1390px) and (min-width: 1280px) {
}
@media (max-width: 1279px) {
}
@media (max-width: 1199px) {
  .tam-today-grid, .tam-temple-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tam-spotlight-card { grid-column: span 2; grid-template-columns: 42% 58%; grid-template-rows: 1fr; }
  .tam-practice { display: block; }
  .tam-practice-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tam-practice-item { min-height: 180px; }
  .tam-editorial-feature { min-height: 310px; margin-top: 20px; }
  .tam-event-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tam-deity-rail { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .tam-media-grid { grid-template-columns: 1fr 1fr; }
  .tam-video-rail { grid-column: span 2; }
  .tam-group-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 767px) {
  .tam-hero { min-height: 570px; padding: 70px 18px 92px; background-size:58px auto,58px auto,cover,cover,cover; background-position:left 1% top,right 1% top,center,center,center 58%; }
  .tam-hero-inner { padding-top: 35px; }
  .tam-hero-inner::before { width: 52px; height: 52px; }
  .tam-hero h1 { font-size: clamp(44px,12vw,52px); line-height: .98; }
  .tam-hero-subtitle { font-size: 20px; line-height: 1.25; }
  .tam-search { height: 60px; }
  .tam-search input { padding-left: 20px; font-size: 14px; }
  .tam-search button { width: 62px; flex-basis: 62px; }
  .tam-quick-links { width: 100%; gap: 6px; padding: 0; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; }
  .tam-quick-links a { min-height: 42px; padding: 0 10px; border: 1px solid rgba(116,22,41,.2); border-radius: 21px; background: rgba(255,250,238,.82); font-size: 12.5px; }
  .tam-section, .tam-stats { width: calc(100% - 28px); }
  .tam-section { padding: 48px 0; }
  .tam-section h2 { font-size: 36px; }
  .tam-section-head-row { align-items: flex-start; flex-direction: column; gap: 7px; }
  .tam-today { width: calc(100% - 24px); margin-top: -55px; padding: 22px 16px; }
  .tam-today-grid, .tam-temple-grid, .tam-event-grid, .tam-media-grid, .tam-group-grid { grid-template-columns: 1fr; }
  .tam-card { min-height: 245px; }
  .tam-koti-card { transform: none; }
  .tam-spotlight-card { grid-column: auto; grid-template-columns: 1fr; grid-template-rows: 145px 1fr; }
  .tam-practice { width: calc(100% - 24px); padding: 23px 15px; }
  .tam-practice::before { width: 300px; height: 300px; top: -185px; left: -185px; opacity: .045; }
  .tam-practice-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .tam-practice-item { min-height: 170px; padding: 18px 9px; }
  .tam-practice-item > b { width: 54px; height: 54px; flex-basis: 54px; }
  .tam-practice-item strong { font-size: 19px; }
  .tam-editorial-feature { min-height: 280px; padding: 26px 20px; background-image: linear-gradient(90deg,rgba(255,249,237,.98),rgba(255,249,237,.65)),url('../images/inner-page-hero-section/fragment-decorations-hindu-sri-veeramakaliamman-temple-singapore.jpg'); }
  .tam-editorial-feature > div:first-child { max-width: 76%; }
  .tam-stats { grid-template-columns: repeat(2,1fr); gap: 20px 0; }
  .tam-stats div:nth-child(3) { border-left: 0; }
  .tam-deity-rail { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px 8px; }
  .tam-deity strong { font-size: 14px; }
  .tam-video-rail { grid-column: auto; grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 420px) {
  .tam-hero h1 { font-size: 46px; }
  .tam-quick-links a { padding-inline: 9px; }
  .tam-practice-item small { font-size: 12.5px; }
  .tam-deity-rail { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
