/* Karnataka Nadar Sangam - site styles */
:root {
    --kns-primary: #1e3a8a;
    --kns-primary-dark: #172554;
    --kns-primary-soft: #eef2fb;
    --kns-gold: #d9a21b;
    --kns-gold-dark: #b8860b;
    --kns-ink: #1b2033;
    --kns-muted: #5f6678;
    --kns-line: #e3e8f2;
    --kns-bg: #ffffff;
    --kns-soft: #f6f8fc;
    --kns-radius: 14px;
    --kns-shadow: 0 10px 30px rgba(60, 20, 10, .08);
    --kns-shadow-lg: 0 20px 50px rgba(60, 20, 10, .14);
    --bs-body-font-family: 'Poppins', 'Noto Sans Tamil', system-ui, sans-serif;
    --bs-body-color: var(--kns-ink);
    --bs-link-color-rgb: 30, 58, 138;
}

body { background: var(--kns-bg); color: var(--kns-ink); font-size: 15.5px; line-height: 1.7; }
h1, h2, h3, h4, h5 { font-weight: 600; line-height: 1.25; }
img { max-width: 100%; }
a { text-decoration: none; }
.tamil, .tamil-aware { font-family: 'Noto Sans Tamil', 'Poppins', sans-serif; }
.text-muted-2 { color: var(--kns-muted); }
.text-gold { color: var(--kns-gold) !important; }
.bg-soft { background: var(--kns-soft); }

/* Buttons */
.btn { border-radius: 50px; font-weight: 500; padding: .6rem 1.4rem; }
.btn-sm { padding: .4rem 1rem; }
.btn-lg { padding: .8rem 1.8rem; font-size: 1rem; }
.btn-primary-kns { background: var(--kns-primary); color: #fff; border: 0; }
.btn-primary-kns:hover, .btn-primary-kns:focus { background: var(--kns-primary-dark); color: #fff; }
.btn-gold { background: var(--kns-gold); color: #2a1a00; border: 0; }
.btn-gold:hover, .btn-gold:focus { background: var(--kns-gold-dark); color: #fff; }
.btn-outline-kns { border: 2px solid var(--kns-primary); color: var(--kns-primary); }
.btn-outline-kns:hover { background: var(--kns-primary); color: #fff; }
.link-kns { color: var(--kns-primary); font-weight: 500; }
.link-kns:hover { color: var(--kns-gold-dark); }

/* Top bar & navigation */
.topbar { position: relative; z-index: 1025; /* above the sticky navbar so the language menu isn't hidden */ background: var(--kns-primary-dark); color: rgba(255,255,255,.8); font-size: 13px; padding: 7px 0; }
.topbar a, .topbar span { color: rgba(255,255,255,.85); }
.topbar a:hover { color: var(--kns-gold); }
.topbar i { margin-right: 4px; color: var(--kns-gold); }
.topbar-login { border-left: 1px solid rgba(255,255,255,.2); padding-left: 12px; }

.site-nav { background: rgba(255,255,255,.97); backdrop-filter: blur(8px); box-shadow: 0 2px 20px rgba(0,0,0,.06); padding: 10px 0; }
.brand-logo { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: #fff; padding: 2px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: 'Playfair Display', serif; font-weight: 700; color: var(--kns-primary); font-size: 1.1rem; white-space: nowrap; }
.brand-sub { font-size: 11.5px; color: var(--kns-muted); font-family: 'Noto Sans Tamil', sans-serif; }
.site-nav .nav-link { color: var(--kns-ink); font-weight: 500; padding: .5rem .55rem !important; border-radius: 8px; white-space: nowrap; }
.site-nav .btn { white-space: nowrap; }
.site-nav .navbar-brand { margin-right: 1.5rem; }
@media (min-width: 992px) and (max-width: 1199.98px) { .site-nav .nav-link { padding: .5rem .45rem !important; font-size: 14px; } .brand-sub { display: none; } }
.site-nav .nav-link:hover, .site-nav .nav-link.active, .site-nav .nav-link.show { color: var(--kns-primary); }
.site-nav .nav-link.active { background: var(--kns-primary-soft); }
.site-nav .dropdown-menu { border: 0; box-shadow: var(--kns-shadow-lg); border-radius: 12px; padding: 8px; margin-top: 8px !important; }
.site-nav .dropdown-item { border-radius: 8px; padding: .5rem 1rem; font-size: 14.5px; }
.site-nav .dropdown-item:hover { background: var(--kns-primary-soft); color: var(--kns-primary); }
@media (min-width: 992px) {
    .site-nav .dropdown:hover > .dropdown-menu { display: block; }
}
@media (max-width: 575.98px) {
    .brand-name { font-size: 1rem; }
    .brand-sub { display: none; }
    .brand-logo { width: 44px; height: 44px; }
}

.flash-wrap { padding-top: 16px; }

/* Language switcher */
.lang-btn { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 50px; padding: 2px 12px; font-size: 13px; }
.lang-btn:hover, .lang-btn.show { background: var(--kns-gold); border-color: var(--kns-gold); color: #1b2033; }
.lang-btn i { color: inherit; margin-right: 2px; }
.lang-switch .dropdown-menu { min-width: 150px; border: 0; border-radius: 10px; box-shadow: var(--kns-shadow-lg); padding: 6px; font-size: 14px; }
.lang-switch .dropdown-item { border-radius: 6px; }
.lang-switch .dropdown-item.active, .lang-switch .dropdown-item:active { background: var(--kns-primary); color: #fff; }
.lang-switch-mobile .lang-btn { background: var(--kns-primary-soft); border-color: var(--kns-line); color: var(--kns-primary); padding: 6px 16px; font-size: 14px; }

/* Hide Google Translate's own toolbar, tooltips and highlight so only our switcher shows */
body { top: 0 !important; position: static !important; }
.skiptranslate iframe, iframe.skiptranslate, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame, .VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
.goog-text-highlight, font[style] { background: none !important; box-shadow: none !important; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--kns-primary-dark); }
.hero-content { max-width: 640px; color: #fff; }

/* Kamarajar banner: blue backdrop, faded portrait behind, framed portrait on the right */
.hero-kamaraj { padding: clamp(48px, 8vw, 96px) 0; min-height: min(86vh, 680px); display: flex; align-items: center; isolation: isolate;
    background: radial-gradient(circle at 78% 45%, rgba(217,162,27,.22), transparent 42%),
                linear-gradient(120deg, #0b1640 0%, var(--kns-primary-dark) 45%, var(--kns-primary) 100%); }
.hero-kamaraj::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .12; filter: grayscale(1);
    background: url('../img/kamaraj-circle.png') no-repeat 105% 50% / auto 140%; }
.hero-kamaraj::after { content: ''; position: absolute; inset: 0; z-index: -1; background: url('../img/pattern.svg'); opacity: .6; }
.hero-kamaraj > .container { width: 100%; }
.hero-portrait { margin: 0 auto; max-width: 420px; text-align: center; }
.portrait-ring { position: relative; border-radius: 50%; padding: 10px; aspect-ratio: 1 / 1;
    background: conic-gradient(from 200deg, var(--kns-gold), #f6d77a, var(--kns-gold), #8a6206, var(--kns-gold));
    box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 14px rgba(217,162,27,.12); animation: portrait-float 6s ease-in-out infinite; }
.portrait-ring img { display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; object-fit: cover; }
.hero-portrait figcaption { margin-top: 26px; color: #fff; }
.hero-portrait figcaption strong { display: block; font-family: 'Playfair Display', serif; font-size: 1.25rem; }
.hero-portrait figcaption span { color: var(--kns-gold); font-size: 14.5px; }
@keyframes portrait-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 991.98px) {
    .hero-kamaraj { text-align: center; }
    .hero-kamaraj .hero-content { margin: 0 auto; }
    .hero-kamaraj .hero-content .d-flex { justify-content: center; }
    .hero-portrait { max-width: 260px; }
    .hero-kamaraj::before { background-position: 50% 0; background-size: 120% auto; }
}
@media (prefers-reduced-motion: reduce) { .portrait-ring { animation: none; } }
.hero-content h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; margin: 12px 0 16px; }
.hero-content .lead { font-size: 1.1rem; opacity: .9; margin-bottom: 28px; }
.eyebrow { display: inline-block; background: rgba(217,162,27,.18); color: var(--kns-gold); border: 1px solid rgba(217,162,27,.4);
    padding: 5px 14px; border-radius: 50px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
/* Ticker */
.ticker { background: var(--kns-gold); color: #2a1a00; overflow: hidden; }
.ticker-label { background: var(--kns-primary); color: #fff; padding: 12px 18px; font-weight: 600; white-space: nowrap; font-size: 14px; position: relative; z-index: 1; }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.ticker-items { display: inline-flex; gap: 48px; white-space: nowrap; padding-left: 24px; animation: ticker 35s linear infinite; }
.ticker-items a { color: #2a1a00; font-weight: 500; font-family: 'Noto Sans Tamil', 'Poppins', sans-serif; font-size: 14px; }
.ticker-items a::before { content: '◆'; margin-right: 10px; color: var(--kns-primary); font-size: 10px; }
.ticker:hover .ticker-items { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 90px 0; }
@media (max-width: 767.98px) { .section { padding: 60px 0; } }
.section-eyebrow { display: block; color: var(--kns-primary); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 700; margin-bottom: 16px; }
.section-head { max-width: 620px; margin: 0 auto 48px; }

/* About */
.about-media { position: relative; padding: 0 30px 30px 0; }
.about-media .img-main { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: var(--kns-radius); box-shadow: var(--kns-shadow-lg); }
.about-media::before { content: ''; position: absolute; right: 0; bottom: 0; width: 60%; height: 70%; border: 3px solid var(--kns-gold); border-radius: var(--kns-radius); z-index: -1; }
.about-badge { position: absolute; left: -10px; bottom: 50px; background: var(--kns-primary); color: #fff; border-radius: var(--kns-radius);
    padding: 18px 22px; display: flex; gap: 12px; align-items: center; box-shadow: var(--kns-shadow-lg); }
.about-badge strong { font-size: 2.2rem; font-family: 'Playfair Display', serif; color: var(--kns-gold); }
.about-badge span { font-size: 13px; line-height: 1.3; }
.feature-mini { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; background: var(--kns-soft); height: 100%; }
.feature-mini i { font-size: 1.4rem; color: var(--kns-primary); background: #fff; width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 10px; box-shadow: var(--kns-shadow); }
.feature-mini strong { display: block; font-size: 15px; }
.feature-mini span { font-size: 13px; color: var(--kns-muted); line-height: 1.4; display: block; }

/* Stats */
.stats-band { background: linear-gradient(135deg, var(--kns-primary) 0%, var(--kns-primary-dark) 100%); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.stats-band::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(217,162,27,.25), transparent 40%); }
.stat { position: relative; z-index: 1; }
.stat .counter { font-family: 'Playfair Display', serif; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; color: var(--kns-gold); display: block; }
.stat .counter::after { content: '+'; }
.stat label { opacity: .85; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }

/* People */
.person-card { background: #fff; border-radius: var(--kns-radius); overflow: hidden; box-shadow: var(--kns-shadow); text-align: center; height: 100%; transition: transform .3s, box-shadow .3s; }
.person-card:hover { transform: translateY(-6px); box-shadow: var(--kns-shadow-lg); }
.person-photo { aspect-ratio: 1 / 1; overflow: hidden; background: var(--kns-soft); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.person-card:hover .person-photo img { transform: scale(1.05); }
.person-body { padding: 18px 14px 20px; }
.person-body h3 { font-size: 1rem; margin: 10px 0 2px; }
.person-card-lead .person-body h3 { font-size: 1.15rem; }
.badge-post { display: inline-block; background: var(--kns-primary-soft); color: var(--kns-primary); font-size: 11.5px; font-weight: 600; padding: 4px 12px; border-radius: 50px; text-transform: uppercase; letter-spacing: .06em; }
.person-card-lead .badge-post { background: var(--kns-primary); color: #fff; }
.person-phone { display: inline-block; margin-top: 8px; font-size: 13.5px; color: var(--kns-primary); }

.member-tile { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--kns-line); border-radius: 12px; padding: 12px; height: 100%; transition: border-color .2s, box-shadow .2s; }
.member-tile:hover { border-color: var(--kns-gold); box-shadow: var(--kns-shadow); }
.member-tile img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; object-position: top; flex: none; background: var(--kns-soft); }
.member-tile h3 { font-size: 14px; margin: 0 0 2px; line-height: 1.3; }
.member-tile .code { display: inline-block; font-size: 11.5px; color: var(--kns-primary); font-weight: 600; }
.member-tile .loc { display: block; font-size: 12px; color: var(--kns-muted); }
@media (max-width: 575.98px) {
    .member-tile { flex-direction: column; text-align: center; }
}

/* Search & filters */
.search-bar { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--kns-line); border-radius: 50px; padding: 6px 6px 6px 18px; box-shadow: var(--kns-shadow); max-width: 680px; margin: 0 auto 40px; }
.search-bar i { color: var(--kns-muted); }
.search-bar .form-control { border: 0; box-shadow: none; background: transparent; }
.search-bar-sm { max-width: 460px; margin: 0; width: 100%; }
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pills a { padding: 8px 18px; border-radius: 50px; border: 1px solid var(--kns-line); color: var(--kns-ink); font-weight: 500; font-size: 14px; background: #fff; }
.filter-pills a span { background: var(--kns-soft); border-radius: 50px; padding: 1px 8px; margin-left: 4px; font-size: 12px; }
.filter-pills a.active, .filter-pills a:hover { background: var(--kns-primary); color: #fff; border-color: var(--kns-primary); }
.filter-pills a.active span { background: rgba(255,255,255,.2); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--kns-muted); }
.empty-state i { font-size: 3rem; color: var(--kns-gold); display: block; margin-bottom: 10px; }

/* Matrimony */
.profile-card { display: block; background: #fff; border-radius: var(--kns-radius); overflow: hidden; box-shadow: var(--kns-shadow); color: var(--kns-ink); height: 100%; transition: transform .3s, box-shadow .3s; }
.profile-card:hover { transform: translateY(-6px); box-shadow: var(--kns-shadow-lg); color: var(--kns-ink); }
.profile-photo { position: relative; aspect-ratio: 4 / 4.2; background: var(--kns-soft); overflow: hidden; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.profile-id { position: absolute; left: 12px; top: 12px; background: rgba(30,58,138,.92); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 50px; }
.profile-body { padding: 16px 18px 18px; }
.profile-body h3 { font-size: 1.02rem; margin-bottom: 10px; }
.profile-body ul { list-style: none; padding: 0; margin: 0 0 12px; font-size: 13.5px; color: var(--kns-muted); }
.profile-body li { padding: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-body li i { color: var(--kns-primary); width: 20px; display: inline-block; }
.profile-more { font-size: 13.5px; font-weight: 600; color: var(--kns-primary); }
.notice-card { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; background: var(--kns-soft); border: 1px dashed var(--kns-gold); border-radius: var(--kns-radius); padding: 24px; }
.notice-card > i { font-size: 2rem; color: var(--kns-primary); }
@media (min-width: 768px) { .notice-card { flex-direction: row; align-items: center; } }

.profile-side { background: #fff; border-radius: var(--kns-radius); box-shadow: var(--kns-shadow); overflow: hidden; position: sticky; top: 100px; }
.profile-side img { width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover; object-position: top; background: var(--kns-soft); }
.contact-box p { margin-bottom: 6px; }
.detail-card { background: #fff; border-radius: var(--kns-radius); box-shadow: var(--kns-shadow); padding: 24px; margin-bottom: 24px; }
.detail-card h3 { font-size: 1.1rem; color: var(--kns-primary); margin-bottom: 14px; }
.detail-card h3 i { margin-right: 6px; }
.detail-table { width: 100%; }
.detail-table th, .detail-table td { padding: 9px 0; border-bottom: 1px solid var(--kns-line); vertical-align: top; font-size: 14.5px; }
.detail-table th { width: 42%; color: var(--kns-muted); font-weight: 500; padding-right: 12px; }
.detail-table tr:last-child th, .detail-table tr:last-child td { border-bottom: 0; }

/* South Indian horoscope chart: 4x4 grid, centre 2x2 merged */
.chart { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, minmax(64px, auto)); border: 2px solid var(--kns-primary); border-radius: 6px; overflow: hidden; background: #fbfcff; }
.chart-cell { border: 1px solid #c9d4ec; padding: 6px; font-size: 11.5px; line-height: 1.35; text-align: center; display: flex; align-items: center; justify-content: center; word-break: break-word; }
.chart-center { grid-column: 2 / 4; grid-row: 2 / 4; display: grid; place-items: center; background: var(--kns-primary-soft); color: var(--kns-primary); font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.2rem; border: 1px solid #c9d4ec; }
.chart .c1 { grid-area: 1 / 1; } .chart .c2 { grid-area: 1 / 2; } .chart .c3 { grid-area: 1 / 3; } .chart .c4 { grid-area: 1 / 4; }
.chart .c5 { grid-area: 2 / 1; } .chart .c6 { grid-area: 2 / 4; } .chart .c7 { grid-area: 3 / 1; } .chart .c8 { grid-area: 3 / 4; }
.chart .c9 { grid-area: 4 / 1; } .chart .c10 { grid-area: 4 / 2; } .chart .c11 { grid-area: 4 / 3; } .chart .c12 { grid-area: 4 / 4; }

/* News */
.news-row { display: flex; gap: 20px; background: #fff; border: 1px solid var(--kns-line); border-radius: var(--kns-radius); padding: 20px; color: var(--kns-ink); transition: border-color .2s, box-shadow .2s, transform .2s; }
.news-row:hover { border-color: var(--kns-gold); box-shadow: var(--kns-shadow); transform: translateX(4px); color: var(--kns-ink); }
.news-date { flex: none; width: 76px; height: 76px; border-radius: 12px; background: var(--kns-primary); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.news-date strong { font-size: 1.6rem; font-family: 'Playfair Display', serif; }
.news-date span { font-size: 11.5px; text-transform: uppercase; opacity: .85; }
.news-row h3 { font-size: 1.05rem; margin-bottom: 6px; font-family: 'Noto Sans Tamil', 'Poppins', sans-serif; }
.news-row p { margin: 0; font-size: 14px; color: var(--kns-muted); font-family: 'Noto Sans Tamil', 'Poppins', sans-serif; }
.news-chip { display: inline-flex; gap: 6px; align-items: center; background: var(--kns-primary-soft); color: var(--kns-primary); padding: 6px 14px; border-radius: 50px; font-size: 13px; font-weight: 500; }
.quote-card { position: relative; background: linear-gradient(160deg, #0b1640, var(--kns-primary)); color: #fff; border-radius: var(--kns-radius); padding: 32px 28px; overflow: hidden; }
.quote-card > i { position: absolute; right: 16px; top: -10px; font-size: 7rem; color: rgba(217,162,27,.2); }
.quote-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.quote-card p { opacity: .9; font-size: 14.5px; margin: 0; }
.info-card { border: 1px solid var(--kns-line); border-radius: var(--kns-radius); padding: 24px; background: var(--kns-soft); }
.info-card h4 { font-size: 1.05rem; color: var(--kns-primary); }

/* Kamarajar band */
.kamarajar-band { background: #0b1430 url('../img/pattern.svg'); color: #fff; padding: 90px 0; }
.kamaraj-portrait { max-width: 300px; width: 100%; background: #fff; padding: 14px; border-radius: 20px; border: 4px solid var(--kns-gold); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.tamil-sub { font-family: 'Noto Sans Tamil', sans-serif; color: var(--kns-gold); margin-top: -8px; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-grid .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-grid-full { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.gallery-grid-full .gallery-item:nth-child(1) { grid-column: auto; grid-row: auto; }
.gallery-item { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--kns-soft); }
.gallery-grid .gallery-item:nth-child(1) { aspect-ratio: auto; }
.gallery-grid-full .gallery-item:nth-child(1) { aspect-ratio: 1 / 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery-item span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(30,58,138,.55); color: #fff; font-size: 1.5rem; opacity: 0; transition: opacity .3s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover span { opacity: 1; }
@media (max-width: 767.98px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Matrimony CTA */
.matri-cta { background: linear-gradient(120deg, var(--kns-primary-dark), var(--kns-primary) 60%, #2c4fb0); border-radius: 22px; padding: clamp(28px, 5vw, 56px); color: #fff; position: relative; overflow: hidden; }
.matri-cta::after { content: ''; position: absolute; width: 320px; height: 320px; right: -80px; top: -120px; border-radius: 50%; background: rgba(217,162,27,.18); }
.matri-tile { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 16px; padding: 22px 12px; color: #fff; transition: background .2s, transform .2s; }
.matri-tile:hover { background: rgba(255,255,255,.18); color: #fff; transform: translateY(-4px); }
.matri-tile i { font-size: 1.8rem; color: var(--kns-gold); }
.matri-tile strong { font-size: 2rem; font-family: 'Playfair Display', serif; line-height: 1.2; }
.matri-tile span { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }

/* Video */
.video-card { position: relative; display: block; border-radius: var(--kns-radius); overflow: hidden; aspect-ratio: 16 / 9; background: #000; box-shadow: var(--kns-shadow); }
.video-card img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .5s, opacity .3s; }
.video-card:hover img { transform: scale(1.05); opacity: .7; }
.video-card .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: var(--kns-gold); color: #2a1a00; display: grid; place-items: center; font-size: 2rem; box-shadow: 0 0 0 10px rgba(217,162,27,.3); transition: box-shadow .3s; }
.video-card:hover .play { box-shadow: 0 0 0 16px rgba(217,162,27,.25); }

/* Sponsors marquee */
.sponsors { padding: 70px 0; border-top: 1px solid var(--kns-line); overflow: hidden; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: ticker 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.sponsor-logo { flex: none; width: 200px; height: 110px; background: #fff; border: 1px solid var(--kns-line); border-radius: 12px; padding: 8px; display: grid; place-items: center; }
.sponsor-logo img { max-height: 100%; max-width: 100%; object-fit: contain; }

/* Inner pages */
.page-hero { background: linear-gradient(120deg, rgba(10,20,50,.94), rgba(30,58,138,.88)), url('../img/pattern.svg'); color: #fff; padding: 64px 0 52px; text-align: center; }
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: 6px; }
.page-hero p { opacity: .85; margin-bottom: 14px; }
.page-hero .breadcrumb { justify-content: center; margin: 0; font-size: 14px; }
.page-hero .breadcrumb-item, .page-hero .breadcrumb-item a { color: rgba(255,255,255,.75); }
.page-hero .breadcrumb-item a:hover { color: var(--kns-gold); }
.page-hero .breadcrumb-item.active { color: var(--kns-gold); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

.prose { font-size: 16px; line-height: 1.85; color: #353b4f; }
.prose p { margin-bottom: 1.1rem; text-align: justify; }
.prose strong { color: var(--kns-ink); }
.prose h2, .prose h3 { color: var(--kns-primary); }
.prose img { border-radius: 10px; height: auto; }
.prose-float { float: right; max-width: 220px; margin: 0 0 16px 24px; border: 3px solid var(--kns-gold); padding: 8px; background: #fff; }
@media (max-width: 575.98px) { .prose-float { float: none; display: block; margin: 0 auto 16px; } }

.sidebar { position: sticky; top: 100px; display: grid; gap: 24px; }
.side-card { background: #fff; border: 1px solid var(--kns-line); border-radius: var(--kns-radius); padding: 24px; }
.side-card h4 { font-size: 1.05rem; margin-bottom: 14px; }
.side-card-dark { background: linear-gradient(150deg, var(--kns-primary-dark), var(--kns-primary)); color: #fff; border: 0; }
.side-card-dark p { opacity: .85; font-size: 14.5px; }
.side-links, .side-news { list-style: none; padding: 0; margin: 0; }
.side-links a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--kns-ink); font-size: 14.5px; }
.side-links a i { font-size: 11px; color: var(--kns-gold); }
.side-links a:hover, .side-links a.active { background: var(--kns-primary-soft); color: var(--kns-primary); }
.side-news li { border-bottom: 1px solid var(--kns-line); }
.side-news a { display: block; padding: 10px 0; color: var(--kns-ink); font-family: 'Noto Sans Tamil', 'Poppins', sans-serif; font-size: 14.5px; }
.side-news a:hover { color: var(--kns-primary); }
.side-news small { display: block; color: var(--kns-muted); font-size: 12px; }

/* Contact */
.contact-tile { background: #fff; border-radius: var(--kns-radius); box-shadow: var(--kns-shadow); padding: 28px; height: 100%; text-align: center; }
.contact-tile i { width: 60px; height: 60px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--kns-primary-soft); color: var(--kns-primary); font-size: 1.5rem; margin-bottom: 12px; }
.contact-tile h3 { font-size: 1.05rem; }
.contact-tile p { margin: 0; color: var(--kns-muted); font-size: 14.5px; word-break: break-word; }
.form-card { background: #fff; border-radius: var(--kns-radius); box-shadow: var(--kns-shadow); padding: clamp(22px, 4vw, 36px); }
.form-control, .form-select { border-radius: 10px; padding: .65rem .9rem; border-color: var(--kns-line); }
.form-control:focus, .form-select:focus { border-color: var(--kns-gold); box-shadow: 0 0 0 .2rem rgba(217,162,27,.2); }
.form-label { font-weight: 500; font-size: 14px; }
.map-card { border-radius: var(--kns-radius); overflow: hidden; box-shadow: var(--kns-shadow); height: 100%; min-height: 360px; }
.map-card iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* Footer */
.site-footer { background: #0b1222; color: rgba(255,255,255,.7); font-size: 14.5px; }
.footer-cta { background: var(--kns-primary); color: #fff; padding: 36px 0; }
.footer-cta h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; }
.newsletter-form { display: flex; gap: 8px; background: #fff; padding: 6px; border-radius: 50px; }
.newsletter-form .form-control { border: 0; border-radius: 50px; box-shadow: none; }
.site-footer h5 { color: #fff; font-size: 1rem; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.site-footer h5::after { content: ''; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--kns-gold); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a, .footer-contact a { color: rgba(255,255,255,.7); }
.footer-links a:hover, .footer-contact a:hover { color: var(--kns-gold); }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; }
.footer-contact i { color: var(--kns-gold); margin-top: 3px; }
.footer-contact strong { color: #fff; font-weight: 500; }
.social-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; }
.social-btn:hover { background: var(--kns-gold); color: #2a1a00; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: 13px; }
.dev-credit { color: var(--kns-gold); font-weight: 500; }
.dev-credit:hover { color: #fff; }

.back-to-top { position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; background: var(--kns-primary); color: #fff; display: grid; place-items: center; box-shadow: var(--kns-shadow-lg); opacity: 0; visibility: hidden; transition: all .3s; z-index: 1000; }
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--kns-gold); color: #2a1a00; }

/* Pagination */
.pagination .page-link { color: var(--kns-primary); border-radius: 8px !important; margin: 2px; border-color: var(--kns-line); }
.pagination .page-item.active .page-link { background: var(--kns-primary); border-color: var(--kns-primary); color: #fff; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .ticker-items, .marquee-track { animation: none; }
}
