/* ==========================================================================
   Carrom Pool Website - Authentic Kadence & GeneratePress Stylesheet
   Includes: SEO App Specs Table, Trust Badges, and Microdata Styling
   ========================================================================== */

:root {
  --contrast: #222222;
  --contrast-2: #575760;
  --contrast-3: #b2b2be;
  
  --base: #f0f0f0;
  --base-2: #f7f8f9;
  --base-3: #ffffff;
  
  --primary-red: #790D00;
  --primary-red-hover: #5d0a00;
  --primary-wood: #956c56;
  
  --pros-green: #5cf615;
  --pros-green-bg: #9fee2c;
  --cons-red: #f02222;
  
  --link-color: #1e73be;
  --link-hover: #790D00;
  
  --font-serif: 'Aleo', Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  
  --max-width: 1120px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--base-2);
  color: var(--contrast);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link-color);
  text-decoration: underline;
  word-break: break-word;
}

a:hover {
  color: var(--link-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--contrast);
  line-height: 1.35;
  text-transform: capitalize;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===================================================
   HEADER & NAVBAR (#790D00)
=================================================== */
.site-header {
  background-color: var(--primary-red);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  min-height: 68px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  border: 1.5px solid rgba(255,255,255,0.4);
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-serif);
  line-height: 1.15;
  white-space: nowrap;
}

.brand-tagline {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-sans);
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
}

.nav-menu a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font-sans);
  padding: 8px 14px;
  border-radius: 4px;
}

.nav-menu a:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

.header-download-btn {
  background-color: #3dbea1 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 9px 20px !important;
  border-radius: 5px !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.header-download-btn:hover {
  background-color: #2da98d !important;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 30px;
  cursor: pointer;
  padding: 6px 10px;
  line-height: 1;
}

.mobile-drawer {
  display: none;
  background-color: var(--primary-red);
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  flex-direction: column;
  gap: 12px;
}

.mobile-drawer.active {
  display: flex;
}

.mobile-drawer a {
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 700;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 16px;
}

/* ===================================================
   MAIN CONTENT CARD
=================================================== */
.main-wrapper {
  padding: 24px 0 36px;
}

.content-card {
  background-color: var(--base-3);
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 36px 40px;
  overflow: hidden;
}

/* ===================================================
   HERO COVER (Wood Dimmed Background Image with Kadence Button)
=================================================== */
.hero-cover {
  position: relative;
  background-color: var(--primary-wood);
  background-image: linear-gradient(rgba(149, 108, 86, 0.86), rgba(149, 108, 86, 0.86)), url('../images/carrom-pool-hero-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 6px;
  padding: 44px 20px;
  text-align: center;
  color: #ffffff;
  margin-bottom: 24px;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.35);
}

.hero-cover-icon {
  width: 140px;
  height: 140px;
  margin: 0 auto 18px;
  border-radius: 26px;
  background: #ffffff;
  padding: 6px;
  border: 3px solid #790d00;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.hero-cover-icon img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
}

.hero-title {
  font-size: 34px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.hero-subtitle {
  font-size: 18px;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 18px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.btn-cover-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #3dbea1;
  color: #ffffff !important;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none !important;
  padding: 13px 34px;
  border-radius: 5px;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: background-color 0.2s ease;
  margin-bottom: 16px;
}

.btn-cover-download:hover {
  background-color: #2da98d;
}

.hero-desc-text {
  max-width: 680px;
  margin: 0 auto;
  font-size: 15px;
  color: #ffffff;
  line-height: 1.65;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* ===================================================
   TRUST & SAFETY BADGES (SEO & E-E-A-T Signal)
=================================================== */
.trust-badges-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0 0 28px;
}

.trust-badge-item {
  background: var(--base-2);
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 8px;
  text-align: center;
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.trust-badge-icon {
  font-size: 20px;
}

.trust-badge-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--contrast);
}

.trust-badge-sub {
  font-size: 11px;
  color: var(--contrast-2);
}

/* ===================================================
   APP INFORMATION & TECHNICAL SPECS TABLE
=================================================== */
.app-specs-box {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin: 24px 0 30px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.app-specs-header {
  background: #790d00;
  color: #ffffff;
  padding: 12px 18px;
  font-size: 16.5px;
  font-weight: 700;
  font-family: var(--font-serif);
}

.app-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-family: var(--font-sans);
  font-size: 14px;
}

.specs-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 18px;
  border-bottom: 1px solid #edf2f7;
}

.specs-row:nth-child(even) {
  background: #f8fafc;
}

.specs-label {
  color: var(--contrast-2);
  font-weight: 600;
}

.specs-value {
  color: var(--contrast);
  font-weight: 700;
  text-align: right;
}

/* ===================================================
   ARTICLE EMBEDDED IMAGES
=================================================== */
.article-image-wrap {
  margin: 24px auto 28px;
  text-align: center;
  max-width: 860px;
}

.article-image-wrap figure {
  margin: 0;
}

.article-image-wrap img {
  border-radius: 6px;
  border: 1px solid #d1d5db;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  margin: 0 auto;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ===================================================
   KADENCE MAROON BADGE SECTION HEADINGS
=================================================== */
.kadence-heading-bar {
  text-align: center;
  background-color: #790d00;
  color: #ffffff !important;
  font-size: 21px;
  font-weight: 700;
  border-top: 1px solid var(--contrast);
  border-right: 5px solid var(--contrast);
  border-bottom: 1px solid var(--contrast);
  border-left: 5px solid var(--contrast);
  border-radius: 5px;
  padding: 10px 16px;
  margin: 30px 0 16px;
  display: block;
  word-wrap: break-word;
}

.kadence-heading-bar a,
.kadence-heading-bar strong {
  color: #ffffff !important;
  text-decoration: none !important;
}

.article-section h3 {
  font-size: 18.5px;
  color: var(--contrast);
  margin: 20px 0 8px;
}

.article-section p {
  color: var(--contrast);
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.8;
}

.article-section ul, 
.article-section ol {
  margin: 12px 0 18px 24px;
  color: var(--contrast);
}

.article-section li {
  margin-bottom: 8px;
}

/* Feature Container - Kadence Dark Maroon Inner Box */
.kadence-feature-container {
  background-color: #790d00;
  border: 2px solid var(--contrast);
  border-radius: 5px;
  padding: 22px 24px;
  color: #ffffff;
  margin: 22px 0 30px;
}

.kadence-feature-container h3 {
  color: #ffffff;
  font-size: 18px;
  margin-top: 16px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 4px;
}

.kadence-feature-container h3:first-child {
  margin-top: 0;
}

.kadence-feature-container p {
  color: #f1f5f9;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 14px;
}

/* ===================================================
   TABLE OF CONTENTS (Kadence Style #790D00)
=================================================== */
.kb-table-of-content-wrap {
  background-color: #790d00;
  border-top: 3px solid #790d00;
  border-right: 2px solid var(--contrast);
  border-bottom: 3px solid #790d00;
  border-left: 2px solid var(--contrast);
  border-radius: 4px;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 12px 0px;
  padding: 16px 20px;
  margin: 26px 0 32px;
  color: #ffffff;
}

.toc-heading-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.toc-heading-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}

.toc-arrow-trigger {
  font-size: 14px;
  color: #ffffff;
}

.kb-table-of-content-wrap.collapsed .toc-content-list {
  display: none;
}

.toc-content-list {
  margin-top: 14px;
  padding-left: 20px;
}

.toc-content-list li {
  margin-bottom: 8px;
  font-size: 14.5px;
  color: #ffffff;
}

.toc-content-list a {
  color: #ffffff;
  text-decoration: underline;
}

/* ===================================================
   COMPARISON TABLE (Mobile Scroll Friendly)
=================================================== */
.wp-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 18px 0 26px;
  border: 1px solid #333333;
  border-radius: 4px;
  background-color: #ffffff;
}

.clean-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 14.5px;
}

.clean-table th {
  background-color: #ffffff;
  color: #222222;
  padding: 10px 14px;
  font-weight: 700;
  border: 1px solid #333333;
  white-space: nowrap;
}

.clean-table td {
  padding: 10px 14px;
  border: 1px solid #333333;
  color: #222222;
}

.clean-table tr:hover td {
  background-color: #f9f9f9;
}

/* ===================================================
   PROS AND CONS (Responsive Grid)
=================================================== */
.pros-cons-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 22px 0 30px;
}

.pros-box-exact {
  border: 4px solid #5cf615;
  border-radius: 5px;
  background: #ffffff;
  overflow: hidden;
}

.pros-header-bar {
  background-color: #9fee2c;
  color: #ffffff;
  font-weight: 700;
  font-size: 19px;
  text-align: center;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.cons-box-exact {
  border: 4px solid #f02222;
  border-radius: 5px;
  background: #ffffff;
  overflow: hidden;
}

.cons-header-bar {
  background-color: #f02222;
  color: #ffffff;
  font-weight: 700;
  font-size: 19px;
  text-align: center;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pc-body {
  padding: 16px 18px;
}

.pc-body ul {
  list-style: disc;
  padding-left: 18px;
  margin: 0;
}

.pc-body li {
  font-size: 14px;
  color: var(--contrast);
  margin-bottom: 8px;
  line-height: 1.55;
}

/* ===================================================
   FAQS (Kadence Accordion #790D00 Standard)
=================================================== */
.kt-accordion-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 28px;
}

.kt-pane {
  background: #ffffff;
}

.kt-blocks-accordion-header {
  width: 100%;
  text-align: left;
  background: #790d00;
  color: #ffffff;
  border-top: 1px solid var(--contrast);
  border-right: 5px solid var(--contrast);
  border-bottom: 1px solid var(--contrast);
  border-left: 5px solid var(--contrast);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  min-height: 50px;
}

.kt-blocks-accordion-header span:first-child {
  padding-right: 10px;
  line-height: 1.4;
}

.kt-blocks-accordion-header:hover {
  background: #650b00;
}

.kt-accordion-icon {
  width: 24px;
  height: 24px;
  background: #ffffff;
  color: #790d00;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.kt-pane.active .kt-accordion-icon {
  transform: rotate(45deg);
}

.kt-accordion-panel {
  display: none;
  padding: 14px 16px;
  background: #fdfdfd;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-top: 4px;
  font-size: 14.5px;
  color: var(--contrast);
  line-height: 1.65;
}

.kt-pane.active .kt-accordion-panel {
  display: block;
}

/* ===================================================
   DOWNLOAD PAGE (Clean Pro Layout)
=================================================== */
.download-card-center {
  max-width: 580px;
  margin: 10px auto;
  text-align: center;
  padding: 30px 24px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.timer-box-clean {
  margin: 18px 0;
  padding: 16px;
  background: var(--base);
  border: 1px dashed var(--contrast-3);
  border-radius: 6px;
}

.timer-num-clean {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-red);
  font-family: var(--font-sans);
}

.btn-big-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: var(--primary-red);
  color: #ffffff !important;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 22px;
  border-radius: 8px;
  border: 2px solid #ffffff;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(121, 13, 0, 0.3);
  transition: background-color 0.2s ease;
  margin: 14px auto;
  width: 100%;
  max-width: 380px;
  line-height: 1.25;
}

.btn-big-download:hover {
  background-color: var(--primary-red-hover);
}

.btn-text-block {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-main-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.btn-sub-title {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}

.mirror-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.mirror-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--base);
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  text-decoration: none;
  color: var(--contrast);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13.5px;
}

.mirror-item:hover {
  background: #ebeef2;
  color: var(--primary-red);
}

/* ===================================================
   FOOTER (#790D00)
=================================================== */
.site-footer {
  background-color: var(--primary-red);
  color: #ffffff;
  padding: 28px 0 20px;
  margin-top: 36px;
  font-family: var(--font-sans);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-nav {
  display: flex;
  gap: 16px;
  list-style: none;
}

.footer-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.copyright-text {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.9);
}

/* Back to Top */
.generate-back-to-top {
  background-color: var(--primary-red);
  color: #ffffff;
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  border-radius: 4px;
  position: fixed;
  bottom: 20px;
  right: 20px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  display: none;
  z-index: 100;
  font-size: 16px;
}

/* ===================================================
   MOBILE VIEWPORT ENHANCEMENTS
=================================================== */
@media (max-width: 860px) {
  .pros-cons-container {
    grid-template-columns: 1fr;
  }

  .trust-badges-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-specs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .mobile-nav-toggle {
    display: block;
  }

  .header-inner {
    padding: 14px 0;
    min-height: 72px;
  }

  .brand-icon-img {
    width: 46px;
    height: 46px;
  }

  .brand-title {
    font-size: 24px;
  }
  
  .container {
    padding: 0 12px;
  }
  
  .main-wrapper {
    padding: 14px 0 24px;
  }
  
  .content-card {
    padding: 18px 14px;
  }
  
  .hero-cover {
    padding: 28px 12px;
    margin-bottom: 18px;
  }
  
  .hero-cover-icon {
    width: 110px;
    height: 110px;
    margin-bottom: 12px;
  }
  
  .hero-title {
    font-size: 26px;
  }
  
  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 14px;
  }
  
  .btn-cover-download {
    width: 100%;
    max-width: 320px;
    padding: 12px 20px;
    font-size: 15.5px;
  }
  
  .kadence-heading-bar {
    font-size: 18px;
    padding: 9px 12px;
    border-right-width: 4px;
    border-left-width: 4px;
    margin: 24px 0 14px;
  }
  
  .article-section p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 14px;
  }
  
  .article-section h3 {
    font-size: 17px;
    margin: 16px 0 6px;
  }
  
  .article-section ul, 
  .article-section ol {
    margin: 10px 0 14px 20px;
  }

  .article-image-wrap {
    margin: 18px 0 22px;
  }
  
  .kadence-feature-container {
    padding: 18px 14px;
  }
  
  .kadence-feature-container h3 {
    font-size: 16.5px;
  }
  
  .kadence-feature-container p {
    font-size: 14px;
  }
  
  .pros-box-exact,
  .cons-box-exact {
    border-width: 3px;
  }
  
  .pros-header-bar,
  .cons-header-bar {
    font-size: 17px;
    padding: 7px 10px;
  }
  
  .pc-body {
    padding: 14px 12px;
  }
  
  .pc-body li {
    font-size: 13.5px;
  }
  
  .kt-blocks-accordion-header {
    font-size: 15px;
    padding: 12px 14px;
    border-right-width: 4px;
    border-left-width: 4px;
  }
  
  .kt-accordion-panel {
    padding: 12px 14px;
    font-size: 14px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .download-card-center {
    padding: 22px 14px;
  }

  .btn-big-download {
    padding: 12px 16px;
    max-width: 320px;
  }

  .btn-main-title {
    font-size: 15px;
  }

  .btn-sub-title {
    font-size: 11px;
  }
}

@media (max-width: 420px) {
  .brand-title {
    font-size: 21px;
  }

  .brand-icon-img {
    width: 42px;
    height: 42px;
  }
  
  .hero-title {
    font-size: 23px;
  }
  
  .kadence-heading-bar {
    font-size: 16.5px;
    padding: 8px 10px;
  }
  
  .clean-table {
    font-size: 13px;
  }
  
  .clean-table th, 
  .clean-table td {
    padding: 8px 10px;
  }
}
