/*
Theme Name: Tiranga Rally Corporate
Theme URI: https://www.tirangarally.com
Author: Bharat Media Point
Author URI: https://www.bharatmediapoint.com
Description: A complete corporate WordPress theme for Tiranga Rally 2026 with participant, sponsor, local-rally, story and contact registrations, admin submissions, CSV export and event settings.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tiranga-rally-corporate
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, one-column, two-columns, accessibility-ready
*/

:root {
  --trc-saffron: #f36c12;
  --trc-saffron-dark: #c94a00;
  --trc-green: #157a2f;
  --trc-green-dark: #0b5420;
  --trc-navy: #0b1f3a;
  --trc-blue: #1f4f86;
  --trc-gold: #c99a2e;
  --trc-red: #c51419;
  --trc-white: #ffffff;
  --trc-offwhite: #f7f8fa;
  --trc-light: #edf1f5;
  --trc-border: #dce2e9;
  --trc-text: #26313d;
  --trc-muted: #647181;
  --trc-shadow: 0 18px 50px rgba(11,31,58,.10);
  --trc-radius: 18px;
  --trc-max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--trc-text);
  background: var(--trc-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--trc-blue); text-decoration: none; }
a:hover { color: var(--trc-saffron-dark); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.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 {
  position: fixed !important; width: auto; height: auto; top: 12px; left: 12px;
  z-index: 99999; padding: 12px 16px; background: #fff; color: #111; clip: auto;
}

.trc-container { width: min(100% - 32px, var(--trc-max)); margin-inline: auto; }
.trc-section { padding: 80px 0; }
.trc-section-sm { padding: 50px 0; }
.trc-section-muted { background: var(--trc-offwhite); }
.trc-section-navy { color: #fff; background: linear-gradient(135deg, #07192e, #123a68); }
.trc-grid { display: grid; gap: 26px; }
.trc-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trc-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trc-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trc-stack > * + * { margin-top: 18px; }

.trc-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--trc-saffron-dark); text-transform: uppercase; letter-spacing: .12em;
  font-size: .78rem; font-weight: 800;
}
.trc-kicker::before { content: ""; width: 34px; height: 3px; border-radius: 99px; background: var(--trc-saffron); }
.trc-title { margin: 8px 0 14px; color: var(--trc-navy); font-size: clamp(2rem, 4vw, 3.65rem); line-height: 1.1; letter-spacing: -.035em; }
.trc-title-sm { font-size: clamp(1.65rem, 3vw, 2.55rem); }
.trc-lead { max-width: 820px; color: var(--trc-muted); font-size: 1.11rem; }
.trc-section-navy .trc-title, .trc-section-navy .trc-lead { color: #fff; }
.trc-center { text-align: center; }
.trc-center .trc-lead { margin-inline: auto; }

.trc-topbar {
  color: #fff; background: var(--trc-navy); font-size: .9rem;
}
.trc-topbar .trc-container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 0; }
.trc-topbar strong { color: #ffd37e; }
.trc-tricolor-line { height: 7px; background: linear-gradient(to right, var(--trc-saffron) 0 33.33%, #fff 33.33% 66.66%, var(--trc-green) 66.66%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(220,226,233,.9);
}
.admin-bar .site-header { top: 32px; }
.trc-header-inner { min-height: 86px; display: flex; align-items: center; gap: 24px; }
.trc-brand { display: flex; align-items: center; flex: 0 0 auto; }
.trc-brand img { display: block; width: 226px; max-height: 68px; object-fit: contain; object-position: left center; }
.trc-nav { margin-left: auto; }
.trc-nav ul { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.trc-nav a { display: block; padding: 10px 11px; color: var(--trc-navy); font-weight: 650; font-size: .94rem; border-radius: 9px; }
.trc-nav a:hover, .trc-nav .current-menu-item > a { color: var(--trc-saffron-dark); background: #fff4ea; }
.trc-header-actions { display: flex; gap: 10px; }
.trc-menu-toggle { display: none; border: 0; background: transparent; padding: 8px; color: var(--trc-navy); }
.trc-menu-toggle span { display: block; width: 26px; height: 2px; margin: 5px 0; background: currentColor; }

.trc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 11px 20px; border: 1px solid transparent; border-radius: 10px;
  font-weight: 800; line-height: 1.2; transition: .2s ease;
}
.trc-btn:hover { transform: translateY(-2px); }
.trc-btn-primary { color: #fff; background: linear-gradient(135deg, var(--trc-saffron), #e74e00); box-shadow: 0 10px 22px rgba(243,108,18,.25); }
.trc-btn-primary:hover { color: #fff; background: linear-gradient(135deg, #e85b00, #c93d00); }
.trc-btn-secondary { color: #fff; background: linear-gradient(135deg, var(--trc-green), var(--trc-green-dark)); box-shadow: 0 10px 22px rgba(21,122,47,.20); }
.trc-btn-secondary:hover { color: #fff; }
.trc-btn-outline { color: var(--trc-navy); background: #fff; border-color: var(--trc-border); }
.trc-btn-outline:hover { color: var(--trc-saffron-dark); border-color: var(--trc-saffron); }
.trc-btn-sm { min-height: 42px; padding: 9px 15px; font-size: .9rem; }
.trc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.trc-hero {
  position: relative; overflow: hidden;
  min-height: 690px; display: flex; align-items: center;
  background:
    radial-gradient(circle at 84% 18%, rgba(243,108,18,.18), transparent 30%),
    radial-gradient(circle at 74% 80%, rgba(21,122,47,.14), transparent 32%),
    linear-gradient(135deg, #fff 0 58%, #f7f9fb 58% 100%);
}
.trc-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(11,31,58,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(11,31,58,.035) 1px, transparent 1px);
  background-size: 36px 36px; mask-image: linear-gradient(to right, #000, transparent 75%);
}
.trc-hero::after {
  content: ""; position: absolute; width: 580px; height: 580px; right: -160px; bottom: -260px;
  border-radius: 50%; border: 46px solid rgba(21,122,47,.08); box-shadow: 0 0 0 46px rgba(243,108,18,.06);
}
.trc-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: center; padding: 90px 0; }
.trc-hero-badge { display: inline-flex; gap: 9px; align-items: center; padding: 8px 13px; border-radius: 99px; background: #fff; border: 1px solid var(--trc-border); box-shadow: 0 8px 26px rgba(11,31,58,.08); color: var(--trc-navy); font-weight: 750; font-size: .9rem; }
.trc-hero h1 { margin: 20px 0 10px; color: var(--trc-navy); font-size: clamp(3.3rem, 7vw, 6.5rem); line-height: .9; letter-spacing: -.06em; text-transform: uppercase; }
.trc-hero h1 span:first-child { display: block; color: var(--trc-saffron); text-shadow: 0 4px 0 rgba(201,74,0,.10); }
.trc-hero h1 span:last-child { display: block; color: var(--trc-green); }
.trc-hero-tagline { margin: 0 0 18px; color: var(--trc-navy); font-size: 1.22rem; font-weight: 800; }
.trc-hero-copy { max-width: 700px; color: var(--trc-muted); font-size: 1.08rem; }
.trc-event-card {
  position: relative; overflow: hidden; padding: 34px; border-radius: 26px;
  color: #fff; background: linear-gradient(145deg, #081b32, #133c6c 62%, #0f6430);
  box-shadow: 0 28px 70px rgba(11,31,58,.25);
}
.trc-event-card::before { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; right: -100px; top: -100px; border: 28px solid rgba(255,255,255,.08); }
.trc-event-card h2 { margin: 0 0 22px; font-size: 1.7rem; }
.trc-event-card dl { margin: 0; }
.trc-event-card .trc-detail { display: grid; grid-template-columns: 36px 1fr; gap: 11px; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.14); }
.trc-event-card .trc-detail:first-child { border-top: 0; }
.trc-event-card dt { font-weight: 800; }
.trc-event-card dd { margin: 2px 0 0; color: rgba(255,255,255,.78); }
.trc-event-card .trc-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); }
.trc-flag-wave { position: absolute; inset: auto 0 0; height: 16px; background: linear-gradient(to right, var(--trc-saffron) 0 33.33%, #fff 33.33% 66.66%, var(--trc-green) 66.66%); }

.trc-card {
  height: 100%; padding: 28px; border: 1px solid var(--trc-border); border-radius: var(--trc-radius); background: #fff; box-shadow: 0 10px 35px rgba(11,31,58,.055);
}
.trc-card h3 { margin: 12px 0 9px; color: var(--trc-navy); font-size: 1.25rem; }
.trc-card p { margin: 0; color: var(--trc-muted); }
.trc-card-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--trc-saffron), var(--trc-green)); font-size: 1.35rem; font-weight: 900; }
.trc-card-highlight { border-top: 4px solid var(--trc-saffron); }

.trc-statbar { margin-top: -46px; position: relative; z-index: 5; }
.trc-statbar-inner { display: grid; grid-template-columns: repeat(4,1fr); border-radius: 18px; background: #fff; box-shadow: var(--trc-shadow); overflow: hidden; }
.trc-stat { padding: 25px; border-right: 1px solid var(--trc-border); }
.trc-stat:last-child { border-right: 0; }
.trc-stat strong { display: block; color: var(--trc-navy); font-size: 1.35rem; }
.trc-stat span { color: var(--trc-muted); font-size: .92rem; }

.trc-info-table { width: 100%; border-collapse: collapse; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 35px rgba(11,31,58,.06); }
.trc-info-table th, .trc-info-table td { padding: 16px 18px; border-bottom: 1px solid var(--trc-border); text-align: left; }
.trc-info-table th { width: 34%; color: var(--trc-navy); background: #f4f7fa; }
.trc-info-table tr:last-child th, .trc-info-table tr:last-child td { border-bottom: 0; }

.trc-list { margin: 20px 0 0; padding: 0; list-style: none; }
.trc-list li { position: relative; padding: 8px 0 8px 30px; }
.trc-list li::before { content: "✓"; position: absolute; left: 0; top: 8px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--trc-green); font-size: .72rem; font-weight: 900; }
.trc-list-warning li::before { content: "!"; background: var(--trc-saffron); }

.trc-page-hero { position: relative; overflow: hidden; padding: 82px 0 72px; background: linear-gradient(135deg, #07192e, #153f70); color: #fff; }
.trc-page-hero::after { content:""; position:absolute; inset:0; background: linear-gradient(120deg, rgba(243,108,18,.18), transparent 40%, rgba(21,122,47,.18)); }
.trc-page-hero .trc-container { position: relative; z-index: 1; }
.trc-page-hero h1 { margin: 10px 0 12px; font-size: clamp(2.4rem, 5vw, 4.7rem); line-height: 1.05; letter-spacing: -.04em; }
.trc-page-hero p { max-width: 760px; margin: 0; color: rgba(255,255,255,.78); font-size: 1.1rem; }
.trc-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; color: rgba(255,255,255,.7); font-size: .88rem; }
.trc-breadcrumb a { color: #fff; }

.trc-form-wrap { padding: 34px; border: 1px solid var(--trc-border); border-radius: 22px; background: #fff; box-shadow: var(--trc-shadow); }
.trc-form-section { margin: 0 0 32px; padding: 0 0 26px; border: 0; border-bottom: 1px solid var(--trc-border); }
.trc-form-section:last-of-type { margin-bottom: 20px; padding-bottom: 0; border-bottom: 0; }
.trc-form-section legend { width: 100%; margin-bottom: 18px; color: var(--trc-navy); font-size: 1.25rem; font-weight: 850; }
.trc-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.trc-field-full { grid-column: 1 / -1; }
.trc-field label { display: block; margin-bottom: 7px; color: var(--trc-navy); font-weight: 720; font-size: .94rem; }
.trc-required { color: var(--trc-red); }
.trc-field input[type="text"], .trc-field input[type="email"], .trc-field input[type="tel"], .trc-field input[type="url"], .trc-field input[type="number"], .trc-field input[type="time"], .trc-field input[type="date"], .trc-field input[type="file"], .trc-field select, .trc-field textarea {
  width: 100%; min-height: 48px; padding: 11px 13px; color: var(--trc-text); background: #fff; border: 1px solid #cfd7df; border-radius: 9px; outline: none; transition: .2s;
}
.trc-field textarea { min-height: 120px; resize: vertical; }
.trc-field input:focus, .trc-field select:focus, .trc-field textarea:focus { border-color: var(--trc-blue); box-shadow: 0 0 0 3px rgba(31,79,134,.12); }
.trc-field small { display: block; margin-top: 6px; color: var(--trc-muted); }
.trc-check-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 20px; }
.trc-check { display: flex; align-items: flex-start; gap: 10px; color: var(--trc-text); }
.trc-check input { margin-top: 5px; accent-color: var(--trc-green); }
.trc-form-note { padding: 15px 17px; border-left: 4px solid var(--trc-gold); border-radius: 8px; background: #fff9ea; color: #644a0d; }
.trc-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.trc-repeat-row { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr auto; gap: 10px; align-items: end; padding: 14px; margin-bottom: 10px; border: 1px solid var(--trc-border); border-radius: 12px; background: #f9fbfc; }
.trc-remove-row { width: 42px; height: 42px; border: 1px solid #e7b2b2; border-radius: 8px; color: #a20e14; background: #fff4f4; font-weight: 900; }

.trc-notice { margin: 22px 0; padding: 17px 20px; border-radius: 10px; border: 1px solid; }
.trc-notice-success { color: #0f5e27; background: #edfff3; border-color: #a8e7ba; }
.trc-notice-error { color: #8b1519; background: #fff1f1; border-color: #efb5b5; }
.trc-notice a { font-weight: 800; text-decoration: underline; }

.trc-sponsor-tier { position: relative; overflow: hidden; }
.trc-sponsor-tier::after { content: ""; position: absolute; right: -34px; bottom: -34px; width: 95px; height: 95px; border-radius: 50%; background: rgba(243,108,18,.07); }
.trc-tier-name { display: inline-flex; padding: 5px 10px; border-radius: 99px; color: #fff; background: var(--trc-navy); font-size: .76rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }

.trc-faq { border: 1px solid var(--trc-border); border-radius: 12px; background: #fff; overflow: hidden; }
.trc-faq + .trc-faq { margin-top: 12px; }
.trc-faq summary { position: relative; padding: 18px 52px 18px 20px; color: var(--trc-navy); font-weight: 800; cursor: pointer; list-style: none; }
.trc-faq summary::-webkit-details-marker { display: none; }
.trc-faq summary::after { content: "+"; position: absolute; right: 20px; top: 13px; font-size: 1.55rem; color: var(--trc-saffron); }
.trc-faq[open] summary::after { content: "−"; }
.trc-faq div { padding: 0 20px 18px; color: var(--trc-muted); }

.trc-cta { position: relative; overflow: hidden; padding: 52px; border-radius: 24px; color: #fff; background: linear-gradient(125deg, var(--trc-saffron-dark), var(--trc-saffron) 38%, var(--trc-green)); box-shadow: 0 24px 60px rgba(11,31,58,.18); }
.trc-cta::before { content: ""; position: absolute; width: 240px; height: 240px; border: 35px solid rgba(255,255,255,.10); border-radius: 50%; right: -80px; top: -110px; }
.trc-cta h2 { position: relative; margin: 0 0 10px; font-size: clamp(2rem,4vw,3.4rem); line-height: 1.05; }
.trc-cta p { position: relative; margin: 0; max-width: 780px; color: rgba(255,255,255,.88); }
.trc-cta .trc-actions { position: relative; }

.site-footer { color: rgba(255,255,255,.78); background: #07192e; }
.trc-footer-main { padding: 60px 0 42px; }
.trc-footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .9fr; gap: 44px; }
.trc-footer-logo { width: 240px; padding: 11px 14px; border-radius: 9px; background: #fff; }
.site-footer h3 { color: #fff; font-size: 1rem; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .08em; }
.trc-footer-links { margin: 0; padding: 0; list-style: none; }
.trc-footer-links li + li { margin-top: 8px; }
.trc-footer-links a { color: rgba(255,255,255,.78); }
.trc-footer-links a:hover { color: #fff; }
.trc-footer-bottom { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); }
.trc-footer-bottom .trc-container { display: flex; justify-content: space-between; gap: 20px; }
.trc-jaihind { color: #fff; font-weight: 900; letter-spacing: .04em; }

.trc-floating-actions { display: none; }
.trc-empty { padding: 50px; text-align: center; color: var(--trc-muted); border: 1px dashed var(--trc-border); border-radius: 18px; background: #fff; }
.trc-content { max-width: 900px; }
.trc-content h2, .trc-content h3 { color: var(--trc-navy); }
.trc-content h2 { margin-top: 38px; }
.trc-content blockquote { margin: 24px 0; padding: 18px 22px; border-left: 4px solid var(--trc-saffron); background: #fff6ef; }

@media (max-width: 1080px) {
  .trc-header-actions .trc-btn-outline { display: none; }
  .trc-nav a { padding-inline: 8px; font-size: .88rem; }
  .trc-hero-grid { grid-template-columns: 1fr; }
  .trc-event-card { max-width: 690px; }
  .trc-grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  .admin-bar .site-header { top: 46px; }
  .trc-menu-toggle { display: block; margin-left: auto; }
  .trc-nav { position: fixed; inset: 94px 16px auto; padding: 14px; border: 1px solid var(--trc-border); border-radius: 14px; background: #fff; box-shadow: var(--trc-shadow); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .2s; }
  .trc-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .trc-nav ul { display: block; }
  .trc-nav a { padding: 12px; }
  .trc-header-actions { display: none; }
  .trc-grid-3, .trc-grid-2 { grid-template-columns: 1fr; }
  .trc-statbar-inner { grid-template-columns: repeat(2,1fr); }
  .trc-stat:nth-child(2) { border-right: 0; }
  .trc-stat:nth-child(-n+2) { border-bottom: 1px solid var(--trc-border); }
  .trc-footer-grid { grid-template-columns: 1fr 1fr; }
  .trc-footer-grid > :first-child { grid-column: 1 / -1; }
  .trc-repeat-row { grid-template-columns: 1fr 1fr; }
  .trc-repeat-row .trc-remove-row { grid-column: 2; justify-self: end; }
}
@media (max-width: 640px) {
  .trc-container { width: min(100% - 22px, var(--trc-max)); }
  .trc-topbar .trc-container { justify-content: center; text-align: center; }
  .trc-topbar span:last-child { display: none; }
  .trc-header-inner { min-height: 74px; }
  .trc-brand img { width: 190px; max-height: 56px; }
  .trc-nav { inset: 82px 10px auto; }
  .trc-hero { min-height: auto; }
  .trc-hero-grid { padding: 68px 0 92px; gap: 34px; }
  .trc-hero h1 { font-size: clamp(3rem,17vw,4.8rem); }
  .trc-event-card { padding: 25px; }
  .trc-section { padding: 62px 0; }
  .trc-grid-4 { grid-template-columns: 1fr; }
  .trc-statbar { margin-top: -30px; }
  .trc-statbar-inner { grid-template-columns: 1fr; }
  .trc-stat { border-right: 0; border-bottom: 1px solid var(--trc-border); }
  .trc-stat:last-child { border-bottom: 0; }
  .trc-form-wrap { padding: 22px 16px; border-radius: 16px; }
  .trc-form-grid, .trc-check-grid { grid-template-columns: 1fr; }
  .trc-repeat-row { grid-template-columns: 1fr; }
  .trc-repeat-row .trc-remove-row { grid-column: 1; justify-self: end; }
  .trc-cta { padding: 35px 22px; border-radius: 18px; }
  .trc-footer-grid { grid-template-columns: 1fr; }
  .trc-footer-grid > :first-child { grid-column: auto; }
  .trc-footer-bottom .trc-container { display: block; text-align: center; }
  .trc-floating-actions { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 -8px 25px rgba(11,31,58,.18); }
  .trc-floating-actions a { border-radius: 0; min-height: 54px; }
  body { padding-bottom: 54px; }
  .trc-info-table, .trc-info-table tbody, .trc-info-table tr, .trc-info-table th, .trc-info-table td { display: block; width: 100%; }
  .trc-info-table th { padding-bottom: 5px; border-bottom: 0; }
  .trc-info-table td { padding-top: 5px; }
}
