/*
Theme Name: MTK Complete Final v12
Theme URI: https://makkalthalaimuraikatchi.in
Author: Makkal Thalaimurai Katchi
Description: Modern bilingual political party theme designed for Makkal Thalaimurai Katchi and integrated with MTK Party Manager.
Version: 12.0.0
Text Domain: mtk-next-generation
*/
:root {
  --wine: #7d111a;
  --wine2: #aa1723;
  --gold: #d2a03c;
  --ink: #251719;
  --cream: #fbfaf7;
  --muted: #715c5e;
}

/* Complete inner-page system */
.page-shell > .wrap { max-width: 1040px; background: #fff; border: 1px solid #eee2dc; border-radius: 30px; padding: clamp(28px, 5vw, 64px); box-shadow: 0 24px 70px #5f16101a; }
.page-shell h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.05; letter-spacing: -0.045em; color: var(--wine); margin: 12px 0 25px; }
.page-shell h2 { font-size: clamp(25px, 3vw, 36px); line-height: 1.15; margin: 42px 0 12px; }
.page-shell p, .page-shell li { font-size: 17px; color: #624f52; }
.page-shell ul { padding-left: 24px; }
.page-shell li { margin: 8px 0; }
.page-lead { font-size: 21px !important; line-height: 1.65; max-width: 850px; color: #715c5e !important; border-bottom: 1px solid #eaded8; padding-bottom: 28px; }
.mtk-leaders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 30px 0; border-top: 1px solid #e7d8d2; }
.mtk-leaders article { display: grid; grid-template-columns: minmax(150px,.7fr) 1.3fr; align-items: center; gap: 22px; padding: 22px 8px; background: transparent; border: 0; border-bottom: 1px solid #e7d8d2; }
.mtk-leaders article:nth-child(odd) { padding-right: 30px; }
.mtk-leaders article:nth-child(even) { padding-left: 30px; border-left: 1px solid #e7d8d2; }
.mtk-leaders span { font-size: 12px; letter-spacing: 0.12em; font-weight: 900; color: var(--wine); text-transform: uppercase; }
.mtk-leaders h3 { font-size: 22px; line-height: 1.25; margin: 0; }
.mtk-member-fallback { padding: 40px; border-radius: 28px; background: linear-gradient(135deg, #6f1018, #9b1822); color: #fff; margin-top: 35px; }
.mtk-member-fallback h2 { color: #fff; margin-top: 10px; }
.mtk-member-fallback p { color: #f9e7e8; }
.static-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.static-gallery figure { margin: 0; background: #f8f1e8; border-radius: 22px; overflow: hidden; }
.static-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.static-gallery figcaption { padding: 15px; font-weight: 800; color: var(--wine); }
@media (max-width: 1000px) {
  .mtk-leaders, .static-gallery { grid-template-columns: 1fr; }
  .mtk-leaders article, .mtk-leaders article:nth-child(odd), .mtk-leaders article:nth-child(even) { grid-template-columns: 1fr; gap: 7px; padding: 18px 2px; border-left: 0; }
  .page-shell { padding: 35px 0 60px; }
  .page-shell > .wrap { width: min(100% - 24px, 1040px); border-radius: 22px; }
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Noto Sans Tamil", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; }
a {
  color: inherit;
}
.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fbfaf7ee;
  border-bottom: 1px solid #7d111a18;
  backdrop-filter: blur(16px);
}
.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}
.brand strong {
  display: block;
  color: var(--wine);
  font-size: 18px;
}
.brand small {
  display: block;
  color: #9c6b22;
  font-weight: 800;
  letter-spacing: 0.11em;
}
.menu {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 14px;
}
.menu a {
  text-decoration: none;
  font-weight: 800;
}
.menu details {
  position: relative;
}
.menu summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
.menu details > div {
  display: none;
  position: absolute;
  right: 0;
  top: 30px;
  min-width: 170px;
  padding: 10px;
  background: #fff;
  border: 1px solid #eaded8;
  border-radius: 15px;
  box-shadow: 0 20px 50px #4510161f;
}
.menu details[open] > div {
  display: grid;
}
.menu details > div a {
  padding: 8px 10px;
}
.mobile-nav {
  display: none;
  position: relative;
}
.mobile-nav summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--wine);
}
.mobile-nav > div {
  position: absolute;
  right: 0;
  top: 35px;
  background: #fff;
  display: grid;
  min-width: 220px;
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 20px 50px #45101622;
}
.mobile-nav a {
  padding: 8px;
  text-decoration: none;
  font-weight: 800;
}
.mobile-join-bar { display: none; }
.mtk-notice-bar { background: #2a080b; color: #fff; border-bottom: 1px solid #ffffff1a; }
.mtk-notice-bar > .wrap { min-height: 48px; display: flex; align-items: center; gap: 20px; overflow: hidden; }
.mtk-notice-bar b { flex: 0 0 auto; color: #f0c96b; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.mtk-notice-items { display: flex; gap: 30px; overflow-x: auto; scrollbar-width: none; }
.mtk-notice-items a { color: #fff; text-decoration: none; white-space: nowrap; font-size: 14px; font-weight: 700; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--wine);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 12px 30px #7d111a22;
}
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 85% 18%, #e2b14138, transparent 26%),
    radial-gradient(circle at 15% 72%, #8b111b1c, transparent 25%);
}
.hero-grid {
  min-height: 700px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 60px;
  padding-block: 75px;
}
.hero-grid > *, .hero-copy { min-width: 0; }
.pill,
.kicker {
  font-size: 12px;
  letter-spacing: 0.17em;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--wine);
}
.pill {
  display: inline-block;
  background: #fff;
  border: 1px solid #b8872c44;
  padding: 8px 15px;
  border-radius: 999px;
}
.hero h1 {
  font-size: clamp(45px, 5.5vw, 74px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 24px 0;
  overflow-wrap: break-word;
}
.hero h1 span {
  background: linear-gradient(90deg, var(--wine), #c18929);
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 680px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.btn.alt {
  background: #fff;
  color: var(--wine);
  border: 1px solid #7d111a26;
  box-shadow: none;
}
.stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  border-top: 1px solid #7d111a1c;
  margin-top: 40px;
  padding-top: 25px;
}
.stats strong {
  display: block;
  font-size: 31px;
  color: var(--wine);
  line-height: 1.1;
}
.stats small {
  color: #806a6c;
  font-weight: 700;
}
.leader-visual {
  position: relative;
}
.leader-visual > img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 36px;
  border: 12px solid #fff;
  box-shadow: 0 25px 80px #5e10162b;
}
.leader-caption {
  position: absolute;
  bottom: 25px;
  left: 25px;
  right: 25px;
  padding: 20px;
  border-radius: 18px;
  background: #4e090fdc;
  color: #fff;
  backdrop-filter: blur(15px);
}
.leader-caption small {
  display: block;
  color: #f3ca6e;
  font-weight: 900;
  letter-spacing: 0.15em;
}
.section {
  padding: 95px 0;
}
.page-shell {
  padding: 80px 0 100px;
  min-height: 65vh;
}
.vision {
  background: #641018;
  color: #fff;
}
.vision-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 60px;
}
.vision .kicker {
  color: #f1c96f;
}
.section h2 {
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 14px 0;
}
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cards article {
  padding: 27px;
  border: 1px solid #ffffff1f;
  border-radius: 25px;
  background: #ffffff0c;
}
.cards b {
  color: #efc66f;
}
.cards h3 {
  font-size: 21px;
  margin: 25px 0 8px;
}
.cards p {
  color: #ffffffaa;
}
.members {
  background: #fff;
}
.membership-cta { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 50px; padding: clamp(32px,6vw,70px); border-radius: 34px; color: #fff; background: radial-gradient(circle at 85% 15%,#e9bd5152,transparent 25%),linear-gradient(135deg,#651018,#941722); box-shadow: 0 24px 70px #5d10182b; }
.membership-cta h2 { color: #fff; margin-top: 10px; }
.membership-cta p { color: #f5dcde; max-width: 760px; font-size: 18px; }
.membership-cta .kicker { color: #f2cc75; }
.membership-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.membership-points span { padding: 8px 12px; border: 1px solid #ffffff38; border-radius: 999px; font-size: 13px; font-weight: 800; }
.cta-button { background: #fff; color: var(--wine); white-space: nowrap; }
.constitution-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
.constitution-grid article {
  padding: 38px;
  border-radius: 30px;
  background: #efe7db;
}
.constitution-grid article:last-child {
  background: #211517;
  color: #fff;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.news-card {
  background: #fff;
  border: 1px solid #eaded8;
  border-radius: 24px;
  overflow: hidden;
}
.news-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}
.news-card div {
  padding: 23px;
}
.news-card a {
  text-decoration: none;
}
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { max-width: 760px; }
.text-link { color: var(--wine); font-weight: 900; text-decoration: none; white-space: nowrap; }
.home-gallery { background: #f2ebe2; }
.home-gallery-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 18px; }
.home-gallery-grid figure { margin: 0; position: relative; overflow: hidden; border-radius: 26px; min-height: 330px; background: #fff; }
.home-gallery-grid img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .4s ease; }
.home-gallery-grid figure:hover img { transform: scale(1.025); }
.home-gallery-grid figcaption { position: absolute; inset: auto 16px 16px; background: #3d0a0dcc; color: #fff; padding: 12px 15px; border-radius: 14px; font-weight: 800; backdrop-filter: blur(8px); }
.flag-section { background: #fff; }
.flag-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(35px,7vw,90px); }
.flag-grid figure { margin: 0; padding: 24px; border-radius: 28px; background: #f7f0e7; box-shadow: inset 0 0 0 1px #eaded8; }
.flag-grid img { width: 100%; display: block; border-radius: 16px; }
.flag-grid p { color: var(--muted); font-size: 18px; }
.upcoming { background: #fff; }
.mtk-upcoming-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.mtk-upcoming-grid article { overflow: hidden; border-radius: 24px; background: #fbf7f2; border: 1px solid #eaded8; }
.mtk-upcoming-grid img { width: 100%; height: 210px; object-fit: cover; }
.mtk-upcoming-grid article > div { padding: 24px; }
.mtk-upcoming-grid h3 { font-size: 23px; margin: 7px 0; }
.mtk-upcoming-grid p { color: var(--muted); }
.mtk-upcoming-grid a { color: var(--wine); text-decoration: none; font-weight: 900; }
.site-footer {
  background: #211517;
  color: #fff;
  padding: 55px 0;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}
.footer-brand {
  display: flex;
  gap: 16px;
  align-items: start;
}
.footer-brand img {
  width: 70px;
}
.footer-brand p {
  color: #ffffff8c;
  max-width: 680px;
}
.footer-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.footer-links a {
  color: #f0c66d;
  text-decoration: none;
  font-weight: 800;
}
.social {
  display: flex;
  gap: 10px;
}
.social a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff13;
  text-decoration: none;
  font-weight: 900;
}
.article {
  max-width: 850px;
  margin: auto;
  padding: 80px 20px;
}
.article h1 {
  font-size: 48px;
  line-height: 1.15;
}
/* Critical membership layout fallback: kept in the theme as well as the manager stylesheet. */
.mtk-member-app { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 48px; align-items: start; margin-top: 45px; }
.mtk-form-intro h2 { font-size: clamp(34px,4.5vw,56px); line-height: 1.08; margin: 12px 0 18px; }
.mtk-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 25px; }
.mtk-benefits span { padding: 10px 12px; border-radius: 12px; background: #f5ece2; color: var(--wine); font-size: 13px; font-weight: 800; }
.mtk-member-app form { min-width: 0; padding: 30px; border: 1px solid #eaded8; border-radius: 28px; background: #fff; box-shadow: 0 20px 60px #46101614; }
.mtk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.mtk-member-app label { display: grid; gap: 7px; margin-bottom: 5px; font-size: 14px; font-weight: 800; color: #3a292c; }
.mtk-member-app input, .mtk-member-app select, .mtk-member-app textarea { display: block; width: 100%; min-width: 0; padding: 13px 14px; border: 1px solid #d8c8c2; border-radius: 12px; background: #fff; color: #251719; font: inherit; }
.mtk-member-app input:focus { outline: 3px solid #d2a03c38; border-color: var(--gold); }
.mtk-photo-field { grid-column: 1/-1; }
.mtk-consent { grid-template-columns: auto 1fr !important; align-items: start; gap: 10px !important; margin: 20px 0 !important; line-height: 1.55; }
.mtk-consent input { width: 18px !important; height: 18px; margin-top: 3px; }
.mtk-member-app button { border: 0; border-radius: 12px; padding: 14px 20px; background: var(--wine); color: #fff; font-weight: 900; cursor: pointer; }
.mtk-member-app button:disabled { opacity: .55; cursor: wait; }
.mtk-message { margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-weight: 800; }
.mtk-message:empty { display: none; }
.mtk-message.good { color: #11683f; background: #e9f8f0; }
.mtk-message.bad { color: #a21818; background: #fff0f0; }
@media (max-width: 1000px) {
  .menu,
  .desktop-join {
    display: none;
  }
  .mobile-nav {
    display: block;
  }
  .hero-grid,
  .vision-grid,
  .constitution-grid {
    grid-template-columns: 1fr;
  }
  .hero-grid {
    padding-block: 50px;
    gap: 40px;
    min-height: auto;
  }
  .hero h1 {
    font-size: clamp(40px, 8vw, 58px);
  }
  .cards,
  .news-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    display: grid;
  }
  .leader-visual {
    max-width: 560px;
    margin-inline: auto;
  }
  .section {
    padding: 70px 0;
  }
  .home-gallery-grid { grid-template-columns: 1fr 1fr; }
  .flag-grid { grid-template-columns: 1fr; }
  .mtk-upcoming-grid { grid-template-columns: 1fr; }
  .home-gallery-grid .wide { grid-column: 1/-1; }
  .membership-cta { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { padding-bottom: 58px; }
  .wrap { width: min(100% - 28px, 1180px); }
  .nav { min-height: 70px; gap: 10px; }
  .brand { gap: 8px; min-width: 0; }
  .brand img { width: 46px; height: 46px; flex: 0 0 auto; }
  .brand span { min-width: 0; }
  .brand strong { font-size: 14px; line-height: 1.25; }
  .brand small { font-size: 8px; letter-spacing: .06em; white-space: nowrap; }
  .mobile-nav > div { position: fixed; top: 70px; left: 14px; right: 14px; max-height: calc(100vh - 145px); overflow-y: auto; z-index: 80; }
  .mobile-join-bar { display: block; position: fixed; z-index: 90; bottom: 0; left: 0; right: 0; padding: 15px 18px; text-align: center; background: linear-gradient(90deg,var(--wine),#ad1824); color: #fff; text-decoration: none; font-weight: 900; box-shadow: 0 -10px 30px #3b080c2b; }
  .hero-grid { padding-block: 38px 48px; }
  .hero h1 { font-size: clamp(35px, 10.5vw, 47px); line-height: 1.15; letter-spacing: -.015em; margin: 19px 0; }
  .lead { font-size: 16px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .stats strong { font-size: 25px; }
  .leader-visual > img { border-width: 7px; border-radius: 26px; }
  .leader-caption { left: 14px; right: 14px; bottom: 14px; padding: 14px; }
  .section { padding: 55px 0; }
  .section h2 { font-size: clamp(32px, 9vw, 44px); }
  .section-heading { display: block; }
  .home-gallery-grid { grid-template-columns: 1fr; }
  .home-gallery-grid .wide { grid-column: auto; }
  .home-gallery-grid figure { min-height: 260px; }
  .constitution-grid article { padding: 25px; }
  .membership-cta { padding: 28px 22px; border-radius: 24px; }
  .cta-button { white-space: normal; text-align: center; }
  .page-shell { padding: 36px 0 65px; }
  .mtk-member-app, .mtk-grid { grid-template-columns: 1fr; }
  .mtk-member-app { gap: 28px; }
  .mtk-member-app form { padding: 20px; border-radius: 20px; }
  .mtk-benefits { grid-template-columns: 1fr; }
}
