/*
Theme Name: Telangana Utsav
Theme URI: https://telanganautsav.com/
Author: Telangana Utsav
Author URI: https://telanganautsav.com/
Description: A responsive, cross-browser WordPress theme for Telangana Utsav, featuring event highlights, participation forms, blog support, and editable contact details.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: telangana-utsav
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-logo, custom-menu, featured-images, responsive-layout, accessibility-ready, blog, entertainment
*/

:root {
	--tu-purple: #3d146b;
	--tu-purple-dark: #231047;
	--tu-magenta: #c91469;
	--tu-orange: #ef6c1b;
	--tu-gold: #e0aa31;
	--tu-cream: #fff8e8;
	--tu-ink: #211a2a;
	--tu-muted: #6e6475;
	--tu-white: #ffffff;
	--tu-border: #eadfd1;
	--tu-shadow: 0 18px 50px rgba(42, 18, 63, 0.13);
	--tu-radius: 20px;
	--tu-radius-small: 12px;
	--tu-container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	color: var(--tu-ink);
	background: #fffdf9;
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--tu-purple); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--tu-magenta); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(100% - 32px, var(--tu-container)); margin-inline: auto; }
.narrow { width: min(100% - 32px, 820px); margin-inline: auto; }
.section { padding: 88px 0; }
.section--soft { background: linear-gradient(180deg, #fff8eb 0%, #fffdf9 100%); }
.section--purple { color: #fff; background: radial-gradient(circle at top right, rgba(239,108,27,.35), transparent 28%), linear-gradient(135deg, var(--tu-purple-dark), var(--tu-purple)); }
.section--purple a:not(.button) { color: #fff; }
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	color: var(--tu-magenta);
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .13em;
	text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 30px; height: 3px; border-radius: 99px; background: linear-gradient(90deg, var(--tu-orange), var(--tu-magenta)); }
.section--purple .eyebrow { color: #ffd68a; }
h1, h2, h3, h4 { margin: 0 0 16px; color: inherit; line-height: 1.15; letter-spacing: -.025em; }
h1 { font-size: clamp(2.35rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
p { margin: 0 0 1.2em; }
.lead { color: var(--tu-muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.section--purple .lead { color: rgba(255,255,255,.82); }
.text-center { text-align: center; }
.section-heading { max-width: 760px; margin: 0 auto 44px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.screen-reader-text:focus {
	z-index: 100000;
	top: 8px; left: 8px;
	width: auto; height: auto;
	padding: 12px 16px;
	clip: auto;
	background: #fff;
	color: #111;
	box-shadow: var(--tu-shadow);
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 13px 24px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--tu-magenta), var(--tu-orange));
	color: #fff;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	box-shadow: 0 10px 24px rgba(201,20,105,.22);
	transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.button:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(201,20,105,.3); filter: saturate(1.05); }
.button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(239,108,27,.4); outline-offset: 3px; }
.button--outline { color: var(--tu-purple); background: transparent; border-color: rgba(61,20,107,.3); box-shadow: none; }
.button--outline:hover { color: #fff; border-color: var(--tu-purple); background: var(--tu-purple); }
.button--light { color: var(--tu-purple-dark); background: #fff; box-shadow: none; }
.button--light:hover { color: var(--tu-purple-dark); background: #fff6e7; }
.button--small { min-height: 42px; padding: 11px 18px; font-size: .9rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.header-accent { height: 5px; background: linear-gradient(90deg, var(--tu-magenta), var(--tu-orange), var(--tu-gold), var(--tu-purple)); }
.site-header { position: sticky; z-index: 999; top: 0; background: rgba(255,253,249,.96); border-bottom: 1px solid rgba(61,20,107,.08); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-link { display: inline-flex; align-items: center; gap: 13px; color: var(--tu-ink); text-decoration: none; }
.brand-link:hover { color: var(--tu-ink); }
.brand-logo { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; box-shadow: 0 8px 20px rgba(61,20,107,.15); }
.brand-copy { display: flex; flex-direction: column; }
.brand-copy strong { color: var(--tu-purple-dark); font-size: 1.12rem; line-height: 1.2; }
.brand-copy small { color: var(--tu-muted); font-size: .72rem; letter-spacing: .02em; }
.primary-navigation { display: flex; align-items: center; gap: 18px; }
.primary-navigation ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.primary-navigation li { position: relative; }
.primary-navigation a:not(.button) { display: block; padding: 11px 12px; color: var(--tu-ink); font-size: .94rem; font-weight: 700; text-decoration: none; border-radius: 10px; }
.primary-navigation a:not(.button):hover, .primary-navigation .current-menu-item > a { color: var(--tu-magenta); background: #fff2f7; }
.menu-toggle { display: none; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 12px; background: #f7edf8; }
.menu-toggle__line { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--tu-purple); transition: transform .2s ease, opacity .2s ease; }

.hero { padding: 34px 0 0; background: linear-gradient(180deg, #fff7e6 0%, #fffdf9 100%); overflow: hidden; }
.hero-banner { overflow: hidden; border-radius: 24px; background: #fff; box-shadow: var(--tu-shadow); }
.hero-banner img { width: 100%; aspect-ratio: 1024 / 409; object-fit: cover; }
.hero-actions { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 24px 0 0; overflow: hidden; border-radius: 16px; background: rgba(61,20,107,.12); box-shadow: 0 12px 30px rgba(40,20,58,.1); }
.hero-action { min-height: 86px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px; color: #fff; background: var(--tu-purple); font-weight: 800; text-decoration: none; text-align: center; }
.hero-action:nth-child(2) { background: var(--tu-orange); }
.hero-action:nth-child(3) { background: var(--tu-magenta); }
.hero-action:nth-child(4) { background: #168e8d; }
.hero-action:hover { color: #fff; filter: brightness(1.07); }
.hero-intro { display: grid; grid-template-columns: 1.15fr .85fr; gap: 46px; align-items: center; padding: 74px 0 88px; }
.hero-intro__content .lead { max-width: 720px; }
.hero-intro__panel { padding: 28px; border: 1px solid rgba(61,20,107,.1); border-radius: var(--tu-radius); background: #fff; box-shadow: var(--tu-shadow); }
.hero-intro__panel h3 { color: var(--tu-purple); }
.check-list { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--tu-magenta), var(--tu-orange)); font-size: .75rem; font-weight: 900; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 58px; align-items: center; }
.media-frame { position: relative; }
.media-frame::before { content: ""; position: absolute; inset: 22px -18px -18px 22px; z-index: 0; border-radius: var(--tu-radius); background: linear-gradient(135deg, rgba(239,108,27,.22), rgba(201,20,105,.18)); }
.media-frame img { position: relative; z-index: 1; width: 100%; border-radius: var(--tu-radius); box-shadow: var(--tu-shadow); }

.pillar-grid, .highlight-grid, .audience-grid, .post-grid, .form-grid, .stat-grid { display: grid; gap: 24px; }
.pillar-grid { grid-template-columns: repeat(4, 1fr); }
.pillar-card { padding: 30px; border: 1px solid var(--tu-border); border-radius: var(--tu-radius); background: #fff; box-shadow: 0 12px 34px rgba(42,18,63,.07); }
.pillar-card__icon { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--tu-magenta), var(--tu-orange)); font-size: 1.45rem; font-weight: 900; }
.pillar-card p { margin-bottom: 0; color: var(--tu-muted); }

.highlight-grid { grid-template-columns: repeat(2, 1fr); }
.highlight-card { overflow: hidden; border-radius: var(--tu-radius); background: #fff; box-shadow: var(--tu-shadow); }
.highlight-card__media { aspect-ratio: 16 / 9; overflow: hidden; }
.highlight-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.highlight-card:hover .highlight-card__media img { transform: scale(1.035); }
.highlight-card__content { padding: 28px; }
.highlight-card__content h3 { color: var(--tu-purple-dark); }
.highlight-card__content p { color: var(--tu-muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tag-list li { padding: 7px 11px; border-radius: 999px; color: var(--tu-purple); background: #f5edf9; font-size: .78rem; font-weight: 800; }

.audience-grid { grid-template-columns: repeat(3, 1fr); }
.audience-card { padding: 32px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--tu-radius); background: rgba(255,255,255,.08); }
.audience-card h3 { color: #ffd68a; }
.audience-card ul { margin: 18px 0 0; padding-left: 20px; }
.audience-card li + li { margin-top: 9px; }

.stat-grid { grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px; text-align: center; border-radius: 18px; background: #fff; box-shadow: 0 12px 30px rgba(42,18,63,.08); }
.stat strong { display: block; color: var(--tu-magenta); font-size: 2rem; line-height: 1; }
.stat span { display: block; margin-top: 10px; color: var(--tu-muted); font-weight: 700; }

.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 34px; padding: 44px; border-radius: 26px; color: #fff; background: radial-gradient(circle at 90% 20%, rgba(255,214,138,.27), transparent 30%), linear-gradient(135deg, var(--tu-purple-dark), var(--tu-magenta)); box-shadow: var(--tu-shadow); }
.cta-box p { max-width: 720px; margin-bottom: 0; color: rgba(255,255,255,.84); }

.page-hero { position: relative; overflow: hidden; padding: 86px 0; color: #fff; background: linear-gradient(135deg, rgba(35,16,71,.96), rgba(87,22,103,.9)), url('assets/images/telangana-collage.png') center/cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 25%, rgba(239,108,27,.35), transparent 27%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero p { max-width: 760px; color: rgba(255,255,255,.84); font-size: 1.15rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; color: rgba(255,255,255,.7); font-size: .86rem; }
.breadcrumbs a { color: #fff; }

.content-card { padding: 40px; border: 1px solid var(--tu-border); border-radius: var(--tu-radius); background: #fff; box-shadow: 0 12px 34px rgba(42,18,63,.07); }
.content-card + .content-card { margin-top: 24px; }
.content-card h2, .content-card h3 { color: var(--tu-purple-dark); }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; margin: 22px 0 0; padding: 0; list-style: none; }
.feature-list li { position: relative; padding-left: 25px; }
.feature-list li::before { content: "◆"; position: absolute; left: 0; color: var(--tu-orange); font-size: .75rem; }

.post-grid { grid-template-columns: repeat(3, 1fr); }
.post-card { overflow: hidden; border: 1px solid var(--tu-border); border-radius: var(--tu-radius); background: #fff; box-shadow: 0 12px 34px rgba(42,18,63,.07); }
.post-card__media { aspect-ratio: 16/10; overflow: hidden; background: #eee; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__content { padding: 25px; }
.post-card__meta { margin-bottom: 10px; color: var(--tu-magenta); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.post-card h2, .post-card h3 { font-size: 1.35rem; }
.post-card h2 a, .post-card h3 a { color: var(--tu-purple-dark); text-decoration: none; }
.post-card p { color: var(--tu-muted); }
.pagination { margin-top: 38px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px; border-radius: 10px; background: #f5edf9; text-decoration: none; }
.page-numbers.current { color: #fff; background: var(--tu-purple); }
.entry-content > * { max-width: 820px; margin-inline: auto; }
.entry-content > .alignwide { max-width: 1100px; }
.entry-content > .alignfull { max-width: none; }
.entry-content img { border-radius: 16px; }

.form-grid { grid-template-columns: repeat(2, 1fr); }
.form-card { padding: 34px; border: 1px solid var(--tu-border); border-radius: var(--tu-radius); background: #fff; box-shadow: 0 12px 34px rgba(42,18,63,.07); }
.form-card h2, .form-card h3 { color: var(--tu-purple-dark); }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-field { margin-bottom: 17px; }
.form-field label { display: block; margin-bottom: 7px; color: var(--tu-purple-dark); font-weight: 800; }
.form-field input, .form-field textarea, .form-field select {
	width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	border: 1px solid #d9cddb;
	border-radius: 12px;
	background: #fff;
	color: var(--tu-ink);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--tu-magenta); box-shadow: 0 0 0 3px rgba(201,20,105,.1); outline: 0; }
.form-honeypot { position: absolute !important; left: -9999px !important; }
.form-notice { margin: 0 0 24px; padding: 14px 18px; border-radius: 12px; font-weight: 700; }
.form-notice--success { color: #17653b; background: #e8f8ef; border: 1px solid #b9e8cd; }
.form-notice--error { color: #8a2232; background: #fff0f2; border: 1px solid #f4c4cb; }
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 42px; align-items: start; }
.contact-panel { padding: 32px; border-radius: var(--tu-radius); color: #fff; background: linear-gradient(145deg, var(--tu-purple-dark), var(--tu-purple)); box-shadow: var(--tu-shadow); }
.contact-panel a { color: #fff; }
.contact-detail { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.contact-detail:last-child { border-bottom: 0; }
.contact-detail strong { display: block; margin-bottom: 5px; color: #ffd68a; }

.site-footer { margin-top: 0; color: rgba(255,255,255,.78); background: #170b2b; }
.footer-top { padding: 66px 0 44px; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .65fr 1fr; gap: 48px; }
.footer-brand { display: flex; gap: 20px; align-items: flex-start; }
.footer-brand img { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; }
.footer-brand h2, .site-footer h3 { color: #fff; }
.footer-menu, .contact-list { margin: 0; padding: 0; list-style: none; }
.footer-menu li + li, .contact-list li + li { margin-top: 10px; }
.site-footer a { color: rgba(255,255,255,.9); text-decoration: none; }
.site-footer a:hover { color: #ffd68a; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom__inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.footer-bottom p { margin: 0; }

.not-found { padding: 110px 0; text-align: center; }
.not-found .error-code { display: block; color: var(--tu-magenta); font-size: clamp(5rem, 18vw, 12rem); font-weight: 900; line-height: .8; }

@media (max-width: 1050px) {
	.brand-copy small { display: none; }
	.primary-navigation { gap: 8px; }
	.primary-navigation a:not(.button) { padding-inline: 9px; font-size: .89rem; }
	.pillar-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
	.section { padding: 70px 0; }
	.header-inner { min-height: 80px; }
	.brand-logo { width: 60px; height: 60px; }
	.menu-toggle { display: block; }
	.primary-navigation {
		position: absolute;
		top: 100%; left: 16px; right: 16px;
		display: none;
		padding: 18px;
		border: 1px solid rgba(61,20,107,.1);
		border-radius: 16px;
		background: #fff;
		box-shadow: var(--tu-shadow);
	}
	.primary-navigation.is-open { display: block; }
	.primary-navigation ul { display: block; }
	.primary-navigation li + li { margin-top: 4px; }
	.primary-navigation a:not(.button) { padding: 12px 13px; }
	.nav-cta { width: 100%; margin-top: 12px; }
	.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(2) { opacity: 0; }
	.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.hero-actions { grid-template-columns: repeat(2, 1fr); }
	.hero-intro, .split, .contact-layout { grid-template-columns: 1fr; }
	.hero-intro { gap: 28px; }
	.media-frame { max-width: 680px; margin-inline: auto; }
	.highlight-grid, .audience-grid, .post-grid, .form-grid { grid-template-columns: repeat(2, 1fr); }
	.stat-grid { grid-template-columns: repeat(2, 1fr); }
	.cta-box { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
	.container, .narrow { width: min(100% - 24px, var(--tu-container)); }
	.section { padding: 58px 0; }
	.brand-copy { display: none; }
	.hero { padding-top: 16px; }
	.hero-banner { border-radius: 14px; }
	.hero-banner img { min-height: 225px; object-position: center; }
	.hero-actions { grid-template-columns: 1fr 1fr; margin-top: 12px; border-radius: 12px; }
	.hero-action { min-height: 68px; padding: 12px 8px; font-size: .82rem; }
	.hero-intro { padding: 52px 0 62px; }
	.pillar-grid, .highlight-grid, .audience-grid, .post-grid, .form-grid, .stat-grid, .feature-list, .form-row { grid-template-columns: 1fr; }
	.pillar-card, .highlight-card__content, .audience-card, .form-card, .content-card { padding: 24px; }
	.page-hero { padding: 62px 0; }
	.cta-box { padding: 30px 24px; }
	.footer-grid { grid-template-columns: 1fr; gap: 34px; }
	.footer-brand { grid-column: auto; flex-direction: column; }
	.footer-bottom__inner { padding: 20px 0; align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
	.site-header, .site-footer, .hero-actions, .button, .menu-toggle { display: none !important; }
	body { color: #000; background: #fff; }
	.section { padding: 30px 0; }
	* { box-shadow: none !important; }
}
