/* Ensure the parent container spans full width and centers the card */
.terms-container {
    width: 100%;
    max-width: 1200px; /* Adjust based on your style1.css layout width */
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    display: block; /* Overrides any unintended flex/grid alignments */
    clear: both;    /* Prevents floating headers/sidebars from pushing content right */
}

/* Fix for the terms-card shifting right */
article.terms-card {
    width: 100%;
    min-width: 0; /* Prevents grid layout compression/shrinking */
    margin: 0 auto !important; /* Overrides any inherited style1.css left margins */
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    box-sizing: border-box;
    float: none !important; /* Prevents text-wrapping float bugs */
}

/* Responsive fix for smaller viewports */
@media (max-width: 768px) {
    .terms-container {
        padding: 10px;
    }
    article.terms-card {
        padding: 15px;
    }
}


/* ==========================================================================
   Modern CSS layout style deck matching All Brahmin Matrimony design language
   ========================================================================== */

/* Variables and Theme Engine */
:root {
  --primary-color: #6a1b29;      /* Brand Accent Dark Purple tone */
  --accent-gold: #b38f4f;        /* Gold element button state */
  --btn-green: #218838;          /* Registration green confirmation tone */
  --text-dark: #2c3e50;          /* Core paragraph body copy readable tint */
  --bg-light: #fdfefe;           /* Primary page window layer tint background */
  --card-bg: #f8f9fa;            /* Clean light grey structure panel frames */
  --border-element: #eaeded;     /* Light clean framing lines separating text blocks */
  --transition-smooth: all 0.25s ease-in-out;
}

/* Base Settings Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.65;
  padding-top: 70px; /* Offset space preventing fixed navbar from covering layouts */
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Navigation Bar Top Elements
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  z-index: 2000;
}

.navbar-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.navbar-brand {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.5px;
}

.navbar-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.navbar-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.85;
  transition: var(--transition-smooth);
}

.navbar-links a:hover {
  opacity: 1;
  color: var(--accent-gold);
}

/* ==========================================================================
   Header Presentation Grid
   ========================================================================== */
.branding-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 30px 0;
  border-bottom: 2px solid var(--border-element);
  align-items: center;
}

@media (min-width: 768px) {
  .branding-header {
    grid-template-columns: 100px 1fr;
  }
}

@media (min-width: 992px) {
  .branding-header {
    grid-template-columns: 120px 1fr 260px;
  }
}

.logo-area img {
  max-width: 100px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.title-area h1 {
  font-size: 1.85rem;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.subtitle {
  font-size: 0.95rem;
  color: #7f8c8d;
  margin-bottom: 15px;
}

/* Action Utility Buttons */
.action-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  text-align: center;
  font-size: 0.95rem;
  color: #ffffff;
  transition: var(--transition-smooth);
}

.btn-gold { background-color: var(--accent-gold); }
.btn-gold:hover { background-color: #96763b; }
.btn-purple { background-color: var(--primary-color); }
.btn-purple:hover { background-color: #4d101b; }
.btn-green { background-color: var(--btn-green); }
.btn-green:hover { background-color: #19692c; }

/* Header Info Block Card */
.contact-info-card {
  background: #ffffff;
  border: 1px solid var(--border-element);
  border-radius: 6px;
  padding: 15px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.link-callout {
  display: block;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border-element);
}
.link-callout.whatsapp { color: #25d366; }
.link-callout.phone { color: var(--primary-color); }
.gst-label {
  font-size: 0.8rem;
  color: #95a5a6;
  text-transform: uppercase;
}

/* ==========================================================================
   Main Columns Framework Layout
   ========================================================================== */
.page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 20px;
}

@media (min-width: 992px) {
  .page-layout {
    grid-template-columns: 3fr 1fr; /* 3-Column main text width, 1-Column right module column split */
  }
}

/* ==========================================================================
   Left Terms Box Panel Module Styling
   ========================================================================== */
.terms-card {
  background: #ffffff;
  border: 1px solid var(--border-element);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.terms-card h2 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* High-Density Modern Directory Table of Contents UI index elements */
.toc-wrapper {
  background: var(--card-bg);
  border-radius: 6px;
  padding: 20px;
  margin: 25px 0;
  border-left: 4px solid var(--accent-gold);
}

.toc-links {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 600px) {
  .toc-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

.toc-links a {
  font-size: 0.9rem;
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.toc-links a:hover {
  color: var(--primary-color);
  padding-left: 4px;
}

/* Core Document Node Blocks formatting rules */
.terms-body-text p {
  font-size: 0.98rem;
  margin-bottom: 15px;
  text-align: justify;
  color: #34495e;
}

.scroll-target {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--border-element);
}

.btn-top {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 500;
  margin-top: 5px;
  padding: 2px 8px;
  background: var(--card-bg);
  border-radius: 4px;
}
.btn-top:hover {
  background: var(--primary-color);
  color: #ffffff;
}

/* ==========================================================================
   Right Aside Panel Column Layout UI Styling
   ========================================================================== */
.sidebar-layout {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.card {
  background: #ffffff;
  border: 1px solid var(--border-element);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}

.card-center { text-align: center; }

.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.card-body { padding: 20px; }

.card-body h3 {
  font-size: 1.15rem;
  color: var(--primary-color);
  margin-bottom: 12px;
}

/* Badges horizontal list index UI styling elements */
.badge-links, .support-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.badge-links {
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
}

.badge-links a {
  display: inline-block;
  padding: 6px 12px;
  background: var(--card-bg);
  border: 1px solid var(--border-element);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.badge-links a:hover {
  background: var(--primary-color);
  color: #ffffff;
}

.support-links a {
  font-size: 0.9rem;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
}
.support-links a:hover { color: var(--accent-gold); }

.portal-banner img {
  max-width: 100%;
  height: auto;
  margin-top: 5px;
}

/* ==========================================================================
   Full Width Grid Matrix Component Layers (Services section elements)
   ========================================================================== */
.services-wrapper {
  grid-column: 1 / -1; /* Stretch all the way across the grid structure viewports width layout */
  margin-top: 15px;
}

.services-wrapper h2 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  border-left: 4px solid var(--primary-color);
  padding-left: 10px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-thumb {
  background: #ffffff;
  border: 1px solid var(--border-element);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: transform 0.2s ease;
}
.service-thumb:hover { transform: translateY(-3px); }

.service-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   SEO Keyword Cloud Matrix block element formatting rules
   ========================================================================== */
.seo-tags-wrapper {
  grid-column: 1 / -1;
  background: var(--card-bg);
  border: 1px solid var(--border-element);
  border-radius: 8px;
  padding: 25px;
}

.seo-tags-wrapper h3 { color: var(--primary-color); margin-bottom: 4px; font-size: 1.2rem;}
.seo-tags-wrapper h4 { color: #7f8c8d; font-weight: 400; font-size: 0.95rem; margin-bottom: 15px; }

.tag-cloud {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud a {
  display: block;
  padding: 5px 12px;
  background: #ffffff;
  border: 1px solid var(--border-element);
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.tag-cloud a:hover {
  background: var(--accent-gold);
  color: #ffffff;
  border-color: var(--accent-gold);
}

/* ==========================================================================
   Universal Footer Layer layout UI styling rules
   ========================================================================== */
.site-footer {
  background: #1a252f;
  color: #ffffff;
  padding: 30px 0;
  margin-top: 50px;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
}

.footer-container p { font-size: 0.9rem; opacity: 0.8; }

.footer-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.88rem;
  opacity: 0.75;
  transition: var(--transition-smooth);
}
.footer-links a:hover { opacity: 1; color: var(--accent-gold); }

/* Sticky Back to Top Round Toggle widget UI style */
.back-to-top-button {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: var(--primary-color);
  color: white;
  cursor: pointer;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: none; /* Controlled interactively over custom runtime script snippet mappings */
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: var(--transition-smooth);
}
.back-to-top-button:hover {
  background-color: var(--accent-gold);
  transform: scale(1.08);
}
.back-to-top-button span { font-size: 1.3rem; font-weight: bold; }