@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Noto+Sans+Telugu:wght@300;400;500;600;700&display=swap');

:root {
    --blue: #062847;
    --blue2: #082f55;
    --gold: #f3bf4c;
    --gold2: #b97721;
    --cream: #fff4d8;
    --cream2: #f9ecca;
    --ink: #061d34;
    --page-max: 1518px;
    --page-pad: clamp(14px, 2.35vw, 36px);
    --panel-gap: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #052440;
    color: var(--ink);
    font-family: 'Poppins', 'Noto Sans Telugu', sans-serif;
}

.lang-te {}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.site-header {
    align-items: center;
    background: rgba(5, 35, 62, .98);
    color: #fff;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(300px, 1fr) auto auto;
    min-height: 86px;
    padding: 8px 28px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    align-items: center;
    display: flex;
    gap: 10px;
}

.brand-image {
    background: url("../img/Temple Logo.png") center / contain no-repeat;
    height: 70px;
    width: 76px;
}

.brand-copy {
    color: #fff;
    text-align: center;
}

.brand-copy small,
.brand-copy strong,
.brand-copy b,
.brand-copy em {
    display: block;
}

.brand-copy small,
.brand-copy strong,
.brand-copy b,
.hero-title p,
.hero-title h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
}

.brand-copy small {
    font-size: 13px;
    text-transform: uppercase;
}

.brand-copy strong {
    color: #fff1c8;
    font-size: clamp(16px, 1.55vw, 22px);
    letter-spacing: .5px;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.brand-copy b {
    color: #fff1c8;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.brand-copy em {
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.45;
    margin-top: 11px;
}

.main-nav {
    align-items: center;
    display: flex;
    gap: 5px;
    justify-content: center;
}

.main-nav a {
    align-items: center;
    border-radius: 12px;
    display: inline-flex;
    flex-direction: column;
    font-size: 11px;
    font-weight: 800;
    gap: 2px;
    justify-content: center;
    min-height: 42px;
    min-width: 62px;
    padding: 6px 8px;
    text-transform: none;
    white-space: nowrap;
}

.main-nav a:not(.active) {
    min-width: auto;
}

.main-nav a.active {
    background: linear-gradient(180deg, #ffe18a 0%, #e5ac38 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45);
    color: #061d34;
}

.header-actions {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.language-switcher {
    border: 1px solid rgba(243, 191, 76, .65);
    border-radius: 7px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
}

.language-switcher a {
    align-items: center;
    color: #fff;
    display: flex;
    font-size: 10px;
    font-weight: 800;
    justify-content: center;
    min-height: 26px;
    padding: 4px 8px;
    white-space: nowrap;
}

.language-switcher a+a {
    border-left: 1px solid rgba(243, 191, 76, .45);
}

.language-switcher a.active {
    background: var(--gold);
    color: var(--blue);
}

.footer-tilak {
    aspect-ratio: 16 / 9;
    background: url("../img/namam.png") center / contain no-repeat;
    display: block;
    width: 118px;
    margin: 0 auto;
}

.ehundi {
    align-items: center;
    border: 1px solid rgba(243, 191, 76, .8);
    border-radius: 10px;
    color: #ffe29a;
    display: flex;
    gap: 12px;
    min-height: 58px;
    padding: 8px 18px;
    text-transform: uppercase;
}

.ehundi i {
    font-size: 28px;
}

.ehundi strong,
.ehundi small {
    display: block;
    line-height: 1;
}

.ehundi strong {
    font-size: 20px;
}

.ehundi small {
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    margin-top: 5px;
}


.lang-te .brand-copy strong {
    font-size: clamp(18px, 1.7vw, 24px);
}

.lang-te .main-nav a {
    font-size: 12px;
    text-transform: none;
}

.lang-te .timing-row strong {
    font-size: 11px;
}

.menu-toggle {
    background: #0b365e;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 8px;
    color: #fff;
    display: none;
    font-size: 21px;
    height: 44px;
    width: 48px;
}

.inner-page-hero {
    align-items: flex-start;
    background: url("../img/Temple image.jpeg") center 42% / cover no-repeat;
    border-bottom: 2px solid rgba(184, 123, 24, .65);
    display: flex;
    justify-content: center;
    min-height: 300px;
    overflow: hidden;
    padding-top: 54px;
    position: relative;
}

.inner-page-hero-shade {
    background: radial-gradient(circle at center, rgba(255, 249, 232, .96) 0 25%, rgba(255, 246, 221, .78) 48%, transparent 75%);
    inset: 0;
    position: absolute;
}

.inner-page-hero-content {
    color: #32170f;
    max-width: 760px;
    position: relative;
    text-align: center;
    z-index: 1;
}

/* Align sub temple hero text to the left */
.padmavathi-hero h1,
.godadevi-hero h1,
.anjaneya-hero h1,
.ganapathi-hero h1,
.kodandarama-hero h1,
.lakshmivaraha-hero h1 {
    text-align: left;
    width: 100%;
    font-size: clamp(24px, 3vw, 42px);
}

.inner-page-hero-ornament {
    color: #c08a22;
    font-size: 30px;
    margin-bottom: 6px;
}

.inner-page-hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 3.6vw, 54px);
    letter-spacing: 0;
    line-height: 1.1;
    margin: 0;
    text-transform: uppercase;
    white-space: normal;
}

.inner-page-hero h1::before,
.inner-page-hero h1::after {
    color: #c08a22;
    content: "\f06c";
    font-family: "Font Awesome 5 Free";
    font-size: .48em;
    font-weight: 900;
    margin: 0 22px;
    vertical-align: middle;
}

.inner-page-hero p {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(18px, 2vw, 26px);
    font-style: italic;
    line-height: 1.35;
    margin: 20px auto 0;
    max-width: 650px;
}


.lang-te .inner-page-hero h1 {
    text-transform: none;
}

.hero {
    min-height: clamp(620px, 50vw, 780px);
    overflow: hidden;
    position: relative;
}

.hero-carousel-track,
.carousel-slide {
    height: 100%;
    margin: 0;
    width: 100%;
}

.carousel-slide {
    inset: 0;
    opacity: 0;
    position: absolute;
    transition: opacity .75s ease;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-media {
    height: 100%;
    inset: 0;
    object-fit: cover;
    object-position: center top;
    position: absolute;
    width: 100%;
}

.hero::after {
    background: linear-gradient(180deg, rgba(6, 40, 71, .08), rgba(6, 40, 71, .08) 62%, rgba(6, 40, 71, .72));
    content: "";
    inset: 0;
    position: absolute;
}

.hero-title {
    color: #061d34;
    left: 50%;
    max-width: 900px;
    padding: 4px 18px 0;
    position: relative;
    text-align: center;
    transform: translateX(-50%);
    z-index: 3;
}

.hero-title p {
    color: #fff;
    font-size: clamp(21px, 2.1vw, 30px);
    line-height: 1.05;
    margin: -12px 0 0;
    white-space: nowrap;
}

.hero-title h1 {
    color: #fff;
    font-size: clamp(28px, 3.4vw, 46px);
    line-height: .98;
    margin: 4px 0 2px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
    white-space: nowrap;
}

.hero-title b {
    color: #fff;
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 2.9vw, 40px);
    font-style: italic;
    line-height: 1.05;
    text-shadow: 0 2px 5px rgba(0, 0, 0, .45);
}

.carousel-control {
    align-items: center;
    background: rgba(5, 36, 64, .76);
    border: 1px solid rgba(243, 191, 76, .76);
    border-radius: 50%;
    color: #ffe29a;
    cursor: pointer;
    display: inline-flex;
    font-size: 20px;
    height: 46px;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    z-index: 4;
}

.carousel-control.prev {
    left: clamp(12px, 2.4vw, 34px);
}

.carousel-control.next {
    right: clamp(12px, 2.4vw, 34px);
}

.darshan-area {
    background: var(--cream);
    border: 2px solid rgba(212, 158, 56, .65);
    border-radius: 32px 32px 0 0;
    margin: -84px auto 0;
    max-width: var(--page-max);
    padding: 22px clamp(18px, 8vw, 122px) 30px;
    position: relative;
    z-index: 2;
}

.panel-grid {
    display: grid;
    gap: var(--panel-gap);
    grid-template-columns: repeat(3, 1fr);
}

.panel-grid>* {
    min-width: 0;
}

.cream-card {
    background: rgba(255, 249, 233, .96);
    border: 1px solid rgba(196, 139, 39, .24);
    border-radius: 8px;
    box-shadow: 0 14px 28px rgba(39, 24, 7, .17);
    overflow: hidden;
}

.timings-card,
.festivals-card {
    display: flex;
    flex-direction: column;
}

.timing-list,
.festival-list {
    flex: 1;
}

.card-heading {
    align-items: center;
    background: var(--blue);
    color: #fff;
    display: flex;
    gap: 12px;
    min-height: 58px;
    padding: 13px 18px;
}

.card-heading>i {
    color: var(--gold);
    font-size: 24px;
}

.card-heading h2 {
    flex: 1;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    margin: 0;
    text-transform: uppercase;
}

.card-heading a {
    border: 1px solid var(--gold);
    border-radius: 18px;
    color: #ffe18a;
    font-size: 11px;
    font-weight: 800;
    padding: 7px 12px;
    text-transform: uppercase;
}

.timing-list,
.festival-list {
    padding: 12px 18px;
}

.timing-row {
    align-items: center;
    border-bottom: 1px solid rgba(177, 128, 44, .18);
    display: grid;
    gap: 12px;
    grid-template-columns: 28px 1fr auto;
    min-height: 45px;
}

.timing-row i {
    
    color: #c8902a;
    text-align: center;
}

.timing-row span {
    font-size: 14px;
}

.timing-row strong {
    font-size: 13px;
    white-space: nowrap;
}

.schedule-button {
    align-items: center;
    background: linear-gradient(180deg, #0c3c66, #052440);
    border-radius: 7px;
    color: #fff;
    display: flex;
    font-size: 13px;
    font-weight: 800;
    gap: 9px;
    justify-content: center;
    margin: 4px 18px 17px;
    min-height: 42px;
    text-transform: uppercase;
}

.festival-row {
    align-items: center;
    border-bottom: 1px solid rgba(177, 128, 44, .18);
    display: grid;
    gap: 14px;
    grid-template-columns: 78px minmax(0, 1fr) minmax(82px, auto);
    min-height: 72px;
}

.festival-img {
    align-items: center;
    background: linear-gradient(135deg, #fff1bd, #cf8429);
    border-radius: 7px;
    color: var(--blue);
    display: flex;
    font-size: 28px;
    height: 56px;
    justify-content: center;
}

.festival-row h3 {
    color: var(--blue);
    font-size: 14px;
    margin: 0 0 3px;
}

.festival-row p {
    font-size: 12px;
    margin: 0;
}

.festival-row time {
    background: #fff0c9;
    border: 1px solid rgba(177, 128, 44, .24);
    border-radius: 7px;
    color: #6b4513;
    display: block;
    font-weight: 800;
    line-height: 1.05;
    justify-self: end;
    min-width: 82px;
    padding: 9px 8px;
    text-align: center;
    white-space: nowrap;
}

.festival-row time span {
    display: inline;
    font-size: 12px;
    margin-right: 4px;
    text-transform: uppercase;
}

.deity-card {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 308px;
    text-align: center;
}

.panel-deepam {
    background: url("../img/hanging-deepam.png") center top / contain no-repeat;
    display: block;
    height: 230px;
    margin: 0 auto;
    width: 78px;
}

.deity-image {
    background: url("../img/Surya Prabha Vahanam.png") center / contain no-repeat;
    height: 190px;
    width: 300px;
}

.deity-card h2 {
    align-items: center;
    color: #674716;
    display: flex;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    gap: 12px;
    justify-content: center;
    margin: 10px 0 0;
}

.deity-card h2::before,
.deity-card h2::after {
    color: #d69a2f;
    content: "\273F";
    font-size: .85em;
    line-height: 1;
}

.lamp {
    background: url("../img/hanging-deepam.png") center top / contain no-repeat;
    height: 230px;
    opacity: .85;
    position: absolute;
    top: 28px;
    width: 78px;
}

.lamp::after {
    display: none;
}

.lamp.left {
    left: 34px;
}

.lamp.right {
    right: 34px;
}

.quick-strip {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin: 24px auto 0;
    max-width: var(--page-max);
    padding: 0 var(--page-pad) 22px;
}

.quick-card {
    align-items: center;
    background: #08325c;
    border: 1px solid rgba(243, 191, 76, .5);
    border-radius: 12px;
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 168px;
    justify-content: center;
    padding: 24px 20px 48px;
    position: relative;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.quick-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(243, 191, 76, 0.9);
}

.quick-card>i {
    color: var(--gold);
    font-size: 49px;
}

.quick-card-image {
    display: block;
    filter: sepia(1) saturate(1.35) hue-rotate(355deg) brightness(1.12);
    height: 49px;
    object-fit: contain;
    opacity: .95;
    width: 49px;
}

.quick-card strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    letter-spacing: .3px;
    margin-top: 14px;
    text-transform: uppercase;
}

.quick-card span {
    font-size: 13px;
    font-style: italic;
    margin-top: 6px;
    opacity: 0.9;
}

.quick-card em {
    align-items: center;
    border: 1px solid rgba(243, 191, 76, .75);
    border-radius: 50%;
    bottom: 16px;
    color: var(--gold);
    display: flex;
    font-size: 11px;
    height: 27px;
    justify-content: center;
    position: absolute;
    width: 27px;
}

.home-db-sevas {
    margin: 24px auto 0;
    max-width: var(--page-max);
    padding: 0 var(--page-pad) 6px;
}

.home-section-heading {
    align-items: center;
    background: linear-gradient(145deg, #082f55, #05213b);
    border: 1px solid rgba(243, 191, 76, .62);
    border-radius: 14px 14px 0 0;
    color: #fff4cf;
    display: flex;
    gap: 14px;
    padding: 16px 18px;
}

.home-section-heading>span {
    align-items: center;
    border: 1px solid rgba(243, 191, 76, .72);
    border-radius: 50%;
    color: var(--gold);
    display: inline-flex;
    flex: 0 0 46px;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.home-section-heading div {
    flex: 1;
    min-width: 0;
}

.home-section-heading h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    margin: 0;
    text-transform: uppercase;
}

.home-section-heading p {
    color: #ffedb5;
    font-size: 13px;
    margin: 5px 0 0;
}

.home-section-heading a {
    align-items: center;
    background: linear-gradient(180deg, #ffe084, #e8ac34);
    border-radius: 999px;
    color: var(--blue);
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    gap: 8px;
    padding: 9px 14px;
    text-transform: uppercase;
    white-space: nowrap;
}

.home-seva-category-grid {
    background: rgba(255, 249, 234, .9);
    border: 1px solid rgba(178, 116, 24, .28);
    border-top: 0;
    border-radius: 0 0 14px 14px;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 16px;
}

.home-seva-category-card {
    background: #fffdf7;
    border: 1px solid rgba(178, 116, 24, .26);
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(65, 37, 8, .06);
    overflow: hidden;
}

.home-seva-category-card header {
    align-items: center;
    background: linear-gradient(180deg, #fff4d2, #f8dd9b);
    display: grid;
    gap: 10px;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    padding: 12px;
}

.home-seva-category-card header>span {
    align-items: center;
    background: var(--blue);
    border-radius: 50%;
    color: var(--gold);
    display: inline-flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.home-seva-category-card h3 {
    color: var(--blue);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    margin: 0;
    text-transform: uppercase;
}

.home-seva-category-card small {
    color: #7c551c;
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin-top: 2px;
}

.home-seva-category-card header b {
    align-items: center;
    background: #fffaf0;
    border: 1px solid rgba(178, 116, 24, .32);
    border-radius: 50%;
    color: var(--blue);
    display: inline-flex;
    font-size: 13px;
    height: 30px;
    justify-content: center;
    min-width: 30px;
    padding: 0 6px;
}

.home-seva-list {
    display: grid;
}

.home-seva-row {
    border-top: 1px solid rgba(178, 116, 24, .16);
    display: grid;
    gap: 5px;
    padding: 10px 12px;
}

.home-seva-row strong {
    color: #2d1d12;
    font-size: 13px;
    line-height: 1.3;
}

.home-seva-row span {
    color: #684c34;
    font-size: 11.5px;
    line-height: 1.35;
    min-height: 16px;
}

.home-seva-row span i {
    color: #b9811d;
    margin-right: 4px;
}

.home-seva-row em {
    color: var(--blue);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

.home-seva-empty {
    color: #684c34;
    font-size: 13px;
    font-style: italic;
    line-height: 1.45;
    margin: 0;
    padding: 18px 14px;
}

.home-darshan-sevas {
    padding-bottom: 18px;
}

.home-seva-heading {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.home-seva-heading h2 {
    align-items: center;
    color: #fff;
    display: flex;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    gap: 12px;
    margin: 0;
    text-transform: uppercase;
}

.home-seva-heading h2 i {
    color: var(--gold);
    font-size: 17px;
}

.home-seva-heading a {
    align-items: center;
    background: linear-gradient(180deg, #ffe084, #e8ac34);
    border: 1px solid rgba(243, 191, 76, .62);
    border-radius: 999px;
    color: var(--blue);
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    gap: 8px;
    padding: 10px 16px;
    text-transform: uppercase;
    white-space: nowrap;
}

.home-seva-panel-grid {
    display: grid;
    gap: var(--panel-gap);
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-seva-panel {
    display: flex;
    flex-direction: column;
    height: 455px;
    min-height: 455px;
    overflow: hidden;
}

.home-seva-panel .card-heading {
    margin-bottom: 0;
    min-height: 66px;
    padding: 0 14px;
}

.home-seva-panel .card-heading h2 {
    font-size: 15px;
}

.home-seva-panel .card-heading small {
    align-items: center;
    background: #fff0c9;
    border: 1px solid rgba(177, 128, 44, .24);
    border-radius: 999px;
    color: #6b4513;
    display: inline-flex;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 900;
    height: 28px;
    justify-content: center;
    min-width: 28px;
    padding: 0 8px;
}

.home-seva-timing-list {
    flex: 1;
    min-height: 318px;
    overflow-y: hidden;
    padding: 0 18px 8px;
}

.home-seva-timing-list::-webkit-scrollbar {
    width: 5px;
}

.home-seva-timing-list::-webkit-scrollbar-thumb {
    background: rgba(5, 36, 64, .26);
    border-radius: 99px;
}

.home-seva-timing-row {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    min-height: 62px;
}

.home-seva-special-row {
    grid-template-columns: 32px minmax(0, 1fr);
}

.home-seva-timing-row span {
    display: grid;
    gap: 3px;
}

.home-seva-timing-row span b {
    color: #2d1d12;
    font-size: 13px;
    line-height: 1.25;
}

.home-seva-timing-row span small {
    color: #6c5139;
    font-size: 10.5px;
    font-style: italic;
    line-height: 1.25;
}

.home-seva-timing-row strong {
    color: var(--blue);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
}

.home-seva-panel .home-seva-empty {
    border-top: 1px solid rgba(177, 128, 44, .18);
    margin: 0 18px 10px;
    text-align: center;
}

.home-seva-see-all {
    align-items: center;
    background: var(--blue);
    border: 1px solid rgba(5, 36, 64, .12);
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(5, 36, 64, .14);
    color: #fff;
    display: flex;
    font-size: 12px;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    margin: auto 18px 16px;
    min-height: 40px;
    text-transform: uppercase;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.home-seva-see-all:hover {
    background: #0a355c;
    box-shadow: 0 10px 22px rgba(5, 36, 64, .2);
    transform: translateY(-1px);
}

.home-seva-see-all i {
    color: var(--gold);
    font-size: 10px;
}

.content-grid {
    display: grid;
    gap: var(--panel-gap);
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin: 0 auto;
    max-width: var(--page-max);
    padding: 18px var(--page-pad) 42px;
}

.content-grid article {
    background: #fff2d0;
    border: 1px solid rgba(243, 191, 76, .46);
    border-radius: 8px;
    padding: 18px;
}

.content-grid h2 {
    color: var(--blue);
    font-family: Georgia, "Times New Roman", serif;
    margin: 0 0 8px;
}

.content-grid p {
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
}

.site-footer {
    align-items: center;
    color: #fff0bb;
    display: flex;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    gap: 16px;
    justify-content: center;
    padding: 20px;
}

.site-footer span {
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    height: 1px;
    width: 190px;
}

@media (max-width: 1220px) {
    .site-header {
        grid-template-columns: 1fr auto;
        min-height: 78px;
        padding: 7px 22px;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav {
        display: none;
        grid-column: 1 / -1;
        justify-content: center;
        flex-wrap: wrap;
    }

    .main-nav.open {
        display: flex;
    }

    .header-actions {
        align-items: center;
        flex-direction: row;
        grid-column: 1 / -1;
        justify-self: center;
    }

    .panel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .timings-card,
    .festivals-card {
        grid-column: auto;
    }

    .panel-deepam {
        grid-column: 1 / -1;
    }

    .deity-card {
        grid-column: 1 / -1;
    }

    .home-seva-category-grid,
    .home-seva-panel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .site-header {
        min-height: auto;
        padding: 8px 13px;
    }

    .brand-image {
        height: 54px;
        width: 58px;
        background-size: contain;
    }

    .brand-copy small {
        font-size: 11px;
    }

    .brand-copy strong {
        font-size: clamp(14px, 4.4vw, 16px);
        letter-spacing: 0;
    }

    .brand-copy b {
        font-size: 12px;
    }

    .brand-copy em {
        display: none;
    }

    .header-actions {
        align-items: stretch;
        flex-direction: column;
        width: min(100%, 280px);
    }

    .language-switcher a {
        font-size: 12px;
        min-height: 36px;
    }

    .ehundi {
        justify-content: center;
    }

    .main-nav.open {
        align-items: stretch;
        background: rgba(6, 40, 71, .96);
        border: 1px solid rgba(243, 191, 76, .32);
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        gap: 0;
        justify-content: flex-start;
        overflow: hidden;
    }

    .main-nav.open a {
        align-items: center;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
        border-radius: 0;
        flex-direction: row;
        gap: 10px;
        justify-content: flex-start;
        min-height: 46px;
        padding: 12px 16px;
        width: 100%;
    }

    .main-nav.open a.active {
        border-radius: 0;
        min-height: 46px;
    }

    .hero {
        min-height: 580px;
    }

    .hero-title {
        padding-top: 4px;
    }

    .hero-title p {
        font-size: clamp(20px, 6vw, 27px);
    }

    .hero-title h1 {
        font-size: clamp(24px, 7vw, 32px);
    }

    .darshan-area {
        margin-top: -58px;
        padding: 16px 14px;
    }

    .lamp {
        display: none;
    }

    .panel-grid,
    .quick-strip,
    .content-grid {
        grid-template-columns: 1fr;
        padding-left: 14px;
        padding-right: 14px;
    }

    .home-section-heading {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .home-section-heading a {
        justify-content: center;
        width: 100%;
    }

    .home-seva-heading {
        align-items: stretch;
        flex-direction: column;
        text-align: center;
    }

    .home-seva-heading h2 {
        justify-content: center;
    }

    .home-seva-heading a {
        justify-content: center;
    }

    .home-seva-category-grid,
    .home-seva-panel-grid {
        grid-template-columns: 1fr;
    }

    .timings-card,
    .festivals-card,
    .panel-deepam,
    .deity-card {
        grid-column: 1;
        width: 100%;
    }

    .panel-deepam {
        background-size: auto 180px;
        height: 180px;
        margin-bottom: -24px;
    }

    .timing-row,
    .festival-row {
        grid-template-columns: 1fr;
        padding: 12px 0;
    }

    .timing-row strong,
    .lang-te .timing-row strong {
        font-size: 13px;
        white-space: normal;
    }

    .festival-row time {
        justify-self: center;
    }

    .timing-row,
    .festival-row,
    .quick-card {
        justify-items: center;
        text-align: center;
    }

    .timing-row i,
    .festival-img {
        margin: 0 auto;
    }

    .site-footer span {
        width: 70px;
    }
}

@media (max-width: 760px) {
    .inner-page-hero {
        align-items: flex-start;
        min-height: 260px;
        padding-top: 44px;
    }

    .inner-page-hero-shade {
        background: rgba(255, 246, 221, .72);
    }

    .inner-page-hero h1 {
        font-size: clamp(24px, 7vw, 38px);
    }

    .inner-page-hero h1::before,
    .inner-page-hero h1::after {
        margin: 0 8px;
    }
}

@media (max-width: 430px) {

    .inner-page-hero h1::before,
    .inner-page-hero h1::after {
        display: none;
    }
}

/* Unified Premium Footer */
.site-footer-premium {
    background: linear-gradient(180deg, #05233e 0%, #03182b 100%);
    border-top: 3px solid var(--gold);
    color: #fff4d8;
    padding: 24px var(--page-pad) 12px;
    font-family: 'Poppins', 'Noto Sans Telugu', sans-serif;
}

.footer-layout {
    display: grid;
    gap: 28px;
    grid-template-columns: 2fr 1fr 1fr;
    margin: 0 auto;
    max-width: var(--page-max);
}

.footer-brand-col .footer-brand {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.footer-brand-col .brand-image {
    background: url("../img/Temple Logo.png") center / contain no-repeat;
    height: 58px;
    width: 64px;
}

.footer-location {
    font-size: 12px;
    line-height: 1.45;
    margin: 0;
    max-width: 400px;
    opacity: 0.85;
}

.footer-quotation-panel {
    align-items: center;
    border-bottom: 1px solid rgba(243, 191, 76, 0.18);
    color: #fff0bb;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 0 auto 22px;
    max-width: var(--page-max);
    min-width: 0;
    padding: 0 0 16px;
    text-align: center;
}

.footer-quotation-panel i {
    color: var(--gold);
    flex: 0 0 auto;
    font-size: 14px;
    opacity: 0.85;
}

.footer-quotation-panel blockquote {
    color: rgba(255, 244, 216, 0.94);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-style: italic;
    line-height: 1.35;
    margin: 0;
    max-width: min(900px, 100%);
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.footer-quotation-panel blockquote.is-changing {
    opacity: 0;
}

.footer-social-links {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.footer-social-links a {
    align-items: center;
    border: 1px solid rgba(243, 191, 76, 0.5);
    border-radius: 50%;
    color: #fff4d8;
    display: inline-flex;
    height: 32px;
    justify-content: center;
    text-decoration: none;
    transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s;
    width: 32px;
}

.footer-social-links a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #05233e;
    transform: translateY(-2px);
}

.footer-social-links img {
    display: block;
    height: 19px;
    width: 19px;
}

.footer-links-col h3,
.footer-social-col h3 {
    color: var(--gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.lang-te .footer-links-col h3,
.lang-te .footer-social-col h3 {
    font-family: 'Poppins', 'Noto Sans Telugu', sans-serif;
    text-transform: none;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-nav a {
    font-size: 12px;
    opacity: 0.85;
    transition: color 0.3s, opacity 0.3s;
}

.footer-nav a:hover {
    color: var(--gold);
    opacity: 1;
}


.footer-mantra-bar {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 22px 0 12px;
}

.footer-mantra-bar span {
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    height: 1px;
    flex: 1;
    max-width: 250px;
}

.footer-mantra {
    color: #fff0bb;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(16px, 1.8vw, 22px);
    margin: 0;
}

.lang-te .footer-mantra,
.lang-te .footer-quotation-panel blockquote {
    font-family: 'Poppins', 'Noto Sans Telugu', sans-serif;
}

.footer-copyright {
    border-top: 1px solid rgba(255, 244, 216, 0.1);
    margin-top: 12px;
    padding-top: 10px;
    text-align: center;
}

.footer-copyright p {
    font-size: 12px;
    margin: 0;
    opacity: 0.6;
}

@media (max-width: 900px) {
    .footer-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-mantra-bar span {
        display: none;
    }

    .footer-quotation-panel {
        align-items: center;
        gap: 12px;
        margin-bottom: 20px;
        padding-bottom: 14px;
    }

    .footer-quotation-panel i {
        font-size: 13px;
    }
}

/* Home Page Gallery Marquee Styles */
.gallery-marquee-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 10px 0 20px;
}

.gallery-marquee-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: marquee-scroll-home 30s linear infinite;
}

.gallery-marquee-track:hover {
    animation-play-state: paused;
}

.gallery-marquee-item {
    flex-shrink: 0;
    width: 260px;
    height: 180px;
    border-radius: 10px;
    border: 1px solid rgba(178, 116, 24, 0.35);
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.16);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.gallery-marquee-item:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: var(--gold);
}

.gallery-marquee-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes marquee-scroll-home {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* QR Button and QR Modal Styles */
.seva-qr-button,
.home-seva-qr-button {
    align-items: center;
    background: linear-gradient(135deg, #082f55, #041a30);
    border: 1px solid rgba(243, 191, 76, 0.7);
    border-radius: 6px;
    color: var(--gold, #f3bf4c);
    cursor: pointer;
    display: inline-flex;
    font-size: 11px;
    font-weight: 600;
    gap: 6px;
    padding: 5px 10px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.seva-qr-button:hover,
.home-seva-qr-button:hover {
    background: linear-gradient(135deg, #0c3e70, #082f55);
    border-color: #ffe084;
    color: #fff;
    box-shadow: 0 4px 12px rgba(243, 191, 76, 0.3);
    transform: translateY(-1px);
}

.home-seva-qr-button {
    font-size: 10px;
    padding: 4px 8px;
}

.managed-seva-qr-cell {
    text-align: center;
    white-space: nowrap;
}

.seva-qr-modal {
    align-items: center;
    display: flex;
    height: 100vh;
    justify-content: center;
    left: 0;
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: 99999;
}

.seva-qr-modal[hidden] {
    display: none !important;
}

.seva-qr-modal-backdrop {
    background: rgba(4, 18, 33, 0.82);
    backdrop-filter: blur(6px);
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.seva-qr-modal-dialog {
    background: linear-gradient(165deg, #072b4d 0%, #03172c 100%);
    border: 2px solid var(--gold, #f3bf4c);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 24px rgba(243, 191, 76, 0.2);
    color: #fff;
    max-width: 380px;
    padding: 24px 20px 20px;
    position: relative;
    text-align: center;
    width: 90%;
    z-index: 2;
    animation: qrModalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes qrModalPop {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.seva-qr-modal-close {
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(243, 191, 76, 0.4);
    border-radius: 50%;
    color: var(--gold, #f3bf4c);
    cursor: pointer;
    display: flex;
    font-size: 16px;
    height: 32px;
    justify-content: center;
    position: absolute;
    right: 12px;
    top: 12px;
    transition: all 0.2s ease;
    width: 32px;
}

.seva-qr-modal-close:hover {
    background: rgba(243, 191, 76, 0.2);
    color: #fff;
    transform: rotate(90deg);
}

.seva-qr-modal-dialog h3 {
    color: #fff5d2;
    font-family: Georgia, serif;
    font-size: 18px;
    margin: 0 0 16px;
    padding-right: 30px;
    text-transform: uppercase;
}

.seva-qr-modal-image {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    display: inline-block;
    margin: 0 auto 16px;
    padding: 14px;
}

.seva-qr-modal-image img {
    display: block;
    height: auto;
    max-width: 240px;
    width: 100%;
}
