/* KUKKE SUBRAMANYA TEMPLE - v2.0 DESIGN SYSTEM */

/* ===== VARIABLES ===== */
:root {
  --saffron: #ff6f00;
  --saffron-dark: #e65100;
  --gold: #ffc107;
  --gold-light: #fff8e1;
  --maroon: #880e4f;
  --t-text: #3e2723;
  --t-text-light: #5d4037;
  --t-bg: #fdf6ec;
}

/* ===== TOPBAR ===== */
#kukke-topbar {
  background: var(--saffron-dark);
  color: white;
  font-size: 12px;
  padding: 6px 0;
}
.kukke-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.kukke-topbar-right {
  display: none;
}
@media (min-width: 768px) {
  .kukke-topbar-right {
    display: inline;
  }
}

/* ===== HEADER ===== */
#kukke-header {
  background: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.kukke-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.kukke-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.kukke-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--saffron);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 18px;
}
.kukke-site-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--t-text);
  line-height: 1.2;
}
.kukke-site-subtitle {
  display: block;
  font-size: 10px;
  color: var(--t-text-light);
  line-height: 1.2;
}
.kukke-desktop-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.kukke-nav-link {
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--t-text-light);
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
  transition: all 0.2s;
}
.kukke-nav-link:hover,
.kukke-nav-link.kukke-active {
  color: var(--saffron-dark) !important;
  background: rgba(255, 111, 0, 0.06);
}
.kukke-mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--t-text);
}
.kukke-mobile-nav {
  display: none;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 8px 20px 16px;
}
.kukke-mobile-nav.open {
  display: block;
}
.kukke-mob-link {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--t-text-light);
  text-decoration: none;
  border-radius: 6px;
}
.kukke-mob-link:hover {
  background: rgba(255, 111, 0, 0.05);
  color: var(--saffron-dark);
}

@media (max-width: 1080px) {
  .kukke-desktop-nav {
    display: none;
  }
  .kukke-mobile-toggle {
    display: block;
  }
}

/* ===== GLOBAL TYPOGRAPHY ===== */
body {
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: var(--t-text);
  line-height: 1.75;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--t-text) !important;
  line-height: 1.3;
}
a {
  color: var(--saffron-dark);
}
a:hover {
  color: var(--saffron);
}

/* ===== PAGE TITLES (Inner pages - gradient header like Next.js) ===== */
.ast-separate-container .ast-article-single .entry-header,
.ast-plain-container .ast-article-single .entry-header {
  background: linear-gradient(180deg, var(--gold-light) 0%, #fff 100%);
  padding: 30px 40px 20px !important;
  margin: -28px -36px 30px !important;
  border-radius: 0;
}
.entry-title {
  font-size: 2.2em !important;
  font-weight: 800 !important;
  padding-bottom: 0;
  border-bottom: none;
  margin-bottom: 0 !important;
}
/* Breadcrumbs styling */
.ast-breadcrumbs-wrapper {
  background: transparent !important;
  padding: 0 !important;
  margin-bottom: 8px;
  font-size: 0.85em;
}
.ast-breadcrumbs-wrapper a {
  color: var(--saffron-dark);
}
.ast-breadcrumbs-wrapper .trail-items li::after {
  color: rgba(255, 111, 0, 0.4);
}
/* Yoast Breadcrumbs */
.kukke-breadcrumbs {
  margin: -10px 0 20px;
  font-size: 0.85em;
  color: var(--t-text-light);
}
.kukke-breadcrumbs a {
  color: var(--saffron-dark);
  text-decoration: none;
}
.kukke-breadcrumbs a:hover {
  text-decoration: underline;
}
.kukke-breadcrumbs .breadcrumb_last {
  color: var(--t-text);
  font-weight: 600;
}

/* Inner page section styling - clean visual hierarchy */
.entry-content > h2 {
  position: relative;
  padding-left: 16px !important;
}
.entry-content > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--saffron);
  border-radius: 2px;
}

/* Tables get a wrapper feel */
.entry-content table {
  margin: 20px 0 30px !important;
}

/* Details/FAQ spacing */
.entry-content > details {
  margin: 8px 0 !important;
}

/* Heading + content spacing */
.entry-content > h3 {
  background: var(--gold-light);
  padding: 10px 16px !important;
  border-radius: 6px;
  margin-top: 28px !important;
  display: inline-block;
}

/* Strong emphasis blocks */
.entry-content > p > strong:first-child {
  color: var(--t-text);
}

/* Better paragraph readability */
.entry-content > p {
  max-width: 75ch;
}

/* ===== CONTENT AREA ===== */
.entry-content {
  max-width: 900px;
  margin: 0 auto;
}
/* Homepage: full-width content (page-builder mode) */
body.ast-page-builder-template .site-content .entry-content {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.ast-page-builder-template .site-main > article {
  padding: 0 !important;
}
.entry-content > h2 {
  font-size: 1.7em !important;
  margin-top: 45px !important;
  margin-bottom: 16px !important;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255, 111, 0, 0.12);
}
.entry-content > h3 {
  font-size: 1.3em !important;
  margin-top: 30px !important;
  margin-bottom: 12px !important;
  color: var(--saffron-dark) !important;
}
.entry-content > p {
  color: var(--t-text-light);
  font-size: 1.02em;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ===== TABLES ===== */
.entry-content table,
.wp-block-table table {
  border-collapse: collapse;
  width: 100%;
  border: none !important;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.entry-content thead,
.wp-block-table thead {
  background: linear-gradient(
    135deg,
    var(--saffron-dark),
    var(--saffron)
  ) !important;
}
.entry-content th,
.wp-block-table th {
  color: white !important;
  padding: 12px 16px !important;
  font-weight: 700;
  font-size: 0.88em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none !important;
}
.entry-content td,
.wp-block-table td {
  padding: 11px 16px !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 111, 0, 0.06) !important;
  color: var(--t-text-light);
  font-size: 0.95em;
}
.entry-content tbody tr:nth-child(even),
.wp-block-table tbody tr:nth-child(even) {
  background: var(--gold-light);
}
.entry-content td strong {
  color: var(--t-text);
}

/* ===== LISTS ===== */
.entry-content ul {
  padding-left: 0;
  list-style: none;
}
.entry-content ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--t-text-light);
  line-height: 1.7;
}
.entry-content ul li::before {
  content: "\2726";
  position: absolute;
  left: 0;
  color: var(--saffron);
  font-size: 0.75em;
  top: 3px;
}
.entry-content ol {
  counter-reset: ol-c;
  padding-left: 0;
  list-style: none;
}
.entry-content ol li {
  counter-increment: ol-c;
  padding-left: 34px;
  position: relative;
  margin-bottom: 10px;
  color: var(--t-text-light);
}
.entry-content ol li::before {
  content: counter(ol-c);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  background: var(--saffron);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78em;
  font-weight: 700;
}
.entry-content li strong {
  color: var(--t-text);
}

/* ===== FAQ ACCORDIONS ===== */
details {
  border: 1px solid rgba(255, 111, 0, 0.12);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: all 0.2s;
}
details:hover {
  border-color: rgba(255, 111, 0, 0.25);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
details summary {
  padding: 14px 20px;
  font-weight: 700;
  font-size: 0.95em;
  cursor: pointer;
  background: white;
  color: var(--t-text);
  transition: background 0.2s;
  list-style: none;
}
details summary::-webkit-details-marker {
  display: none;
}
details summary::before {
  content: "▸ ";
  color: var(--saffron);
}
details[open] summary::before {
  content: "▾ ";
}
details summary:hover {
  background: var(--gold-light);
}
details[open] summary {
  background: var(--gold-light);
  border-bottom: 1px solid rgba(255, 111, 0, 0.08);
}
details > p {
  padding: 14px 20px !important;
  margin: 0 !important;
  background: rgba(253, 246, 236, 0.4);
  color: var(--t-text-light);
  line-height: 1.75;
  font-size: 0.95em;
}

/* ===== COLUMNS ===== */
.wp-block-columns {
  gap: 18px !important;
  margin: 24px 0 !important;
}
.wp-block-column {
  background: white;
  border: 1px solid rgba(255, 111, 0, 0.1);
  border-radius: 12px;
  padding: 24px 20px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.2s;
}
.wp-block-column:hover {
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}
.wp-block-column h3 {
  margin-top: 0 !important;
  font-size: 1.15em !important;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 10px !important;
}
.wp-block-column p {
  color: var(--t-text-light);
  font-size: 0.92em;
  line-height: 1.6;
}

/* ===== DISCLAIMER ===== */
.entry-content > p:last-child {
  background: var(--gold-light);
  padding: 14px 18px;
  border-radius: 8px;
  border-left: 4px solid var(--saffron);
  font-size: 0.84em;
  color: var(--t-text-light);
  margin-top: 36px !important;
}

/* ===== FOOTER ===== */
#kukke-footer {
  background: var(--t-text);
  color: rgba(255, 255, 255, 0.8);
  padding: 48px 20px 16px;
}
.kukke-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.kukke-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-bottom: 36px;
}
#kukke-footer h3 {
  color: white !important;
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 14px;
}
#kukke-footer p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 10px;
}
#kukke-footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: block;
  font-size: 14px;
  line-height: 2;
  transition: color 0.2s;
}
#kukke-footer a:hover {
  color: var(--gold) !important;
}
.kukke-footer-kannada {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.4) !important;
}
.kukke-footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 0;
  text-align: center;
}
.kukke-footer-disclaimer p {
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.55) !important;
  margin: 0 !important;
}
.kukke-footer-disclaimer a {
  display: inline;
  color: var(--gold) !important;
}
.kukke-footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 0;
  text-align: center;
}
.kukke-footer-copy p {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.35) !important;
  margin: 0 !important;
}

/* ===== BLOG LISTING ===== */
.ast-separate-container .blog-layout-1 article.post {
  border: 1px solid rgba(255, 111, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.ast-separate-container .blog-layout-1 article.post:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
article.post .entry-title a {
  color: var(--t-text) !important;
  transition: color 0.2s;
}
article.post .entry-title a:hover {
  color: var(--saffron-dark) !important;
}
article.post .entry-meta {
  font-size: 0.85em;
}
article.post .entry-meta a {
  color: var(--saffron-dark);
}
.ast-separate-container .blog-layout-1 .post-thumb-img-content {
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}
/* Blog post single */
.single-post .entry-meta {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 111, 0, 0.1);
}
.single-post .cat-links a {
  background: rgba(255, 111, 0, 0.1);
  color: var(--saffron-dark);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 600;
  text-decoration: none;
}
.single-post .post-navigation {
  border-top: 1px solid rgba(255, 111, 0, 0.1);
  margin-top: 40px;
  padding-top: 20px;
}

/* ===== LAYOUT FIXES ===== */
.ast-separate-container .ast-article-single {
  padding: 28px 36px !important;
}
.ast-plain-container .site-content .ast-container {
  max-width: 1100px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .entry-title {
    font-size: 1.6em !important;
  }
  .entry-content > h2 {
    font-size: 1.4em !important;
  }
  .entry-content > h3 {
    font-size: 1.15em !important;
  }
  .wp-block-columns {
    flex-direction: column !important;
  }
  .wp-block-column {
    padding: 18px !important;
  }
  .ast-separate-container .ast-article-single {
    padding: 18px !important;
  }
  #kukke-footer {
    padding: 30px 16px 12px;
  }
  .kukke-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .entry-content table {
    font-size: 0.85em;
  }
  details summary {
    font-size: 0.9em;
    padding: 12px 16px;
  }
}
@media (max-width: 480px) {
  .kukke-footer-grid {
    grid-template-columns: 1fr;
  }
  .kukke-header-inner {
    height: 56px;
  }
  .kukke-site-title {
    font-size: 13px;
  }
}
