/* ==========================================================================
   Policy Page Custom Premium Stylesheet
   Created for: Align Asia
   Controls typography, tables, blockquotes, links, and responsiveness.
   ========================================================================== */

/* Page Wrapper & Section Styling */
.policy-page {
  background-color: var(--white);
  position: relative;
}

.policy-page-content-sec {
  padding-block: 80px 100px;
}

/* Base Typographic Defaults for CMS Content */
.cms-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-color);
}

.cms-content p {
  margin-bottom: 24px;
}

/* Headings (H1 to H6) Styling */
.cms-content h1,
.cms-content h2,
.cms-content h3,
.cms-content h4,
.cms-content h5,
.cms-content h6 {
  color: var(--secondary-color);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 40px;
  margin-bottom: 20px;
  position: relative;
  transition: var(--transition);
}

.cms-content h1:first-child,
.cms-content h2:first-child,
.cms-content h3:first-child {
  margin-top: 0;
}

/* Detailed H1 Style */
.cms-content h1 {
  font-size: 38px;
  margin-bottom: 30px;
}

.cms-content h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 80px;
  height: 2px;
  background-color: var(--primary-color);
}

/* Detailed H2 Style with Left Accent Line */
.cms-content h2 {
  font-size: 28px;
  margin-bottom: 24px;
}

/* Detailed H3 Style */
.cms-content h3 {
  font-size: 22px;
  color: var(--text-dark);
  margin-bottom: 18px;
}

/* Detailed H4 Style */
.cms-content h4 {
  font-size: 19px;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 15px;
}

/* Detailed H5 Style */
.cms-content h5 {
  font-size: 17px;
  color: var(--text-light);
  margin-bottom: 12px;
}

/* Detailed H6 Style */
.cms-content h6 {
  font-size: 15px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}


/* Link Styling (Anchor Tags) */
.cms-content a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  display: inline-block;
  transition: var(--transition);
}

.cms-content a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cms-content a:hover {
  color: var(--secondary-color);
}

.cms-content a:hover::after {
  background-color: var(--secondary-color);
  transform: scaleX(1);
}

/* Premium Blockquote / Quotation Design */
.cms-content blockquote {
  background: linear-gradient(135deg, rgba(230, 241, 240, 0.4) 0%, rgba(245, 249, 249, 0.8) 100%);
  border-left: 4px solid var(--primary-color);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  padding: 30px 40px;
  margin: 35px 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 106, 103, 0.03);
}

.cms-content blockquote p {
  font-family: 'Rethink Sans', sans-serif;
  font-size: 18px;
  font-style: italic;
  line-height: 1.7;
  color: var(--secondary-color);
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}



/* Blockquote Citation/Author */
.cms-content blockquote cite {
  display: block;
  font-family: 'Rethink Sans', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-color);
  margin-top: 15px;
  position: relative;
  z-index: 1;
}

/* Premium Responsive Tables styling */

.cms-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background-color: var(--white);
  font-size: 15px;
  line-height: 1.6;
}

.cms-content table th {
  background: linear-gradient( var(--secondary-color) 0%, #00468b 100%);
  color: var(--white);
  font-family: 'Blauer Nue', 'Rethink Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 18px 24px;
  text-align: left;
  border: none;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  vertical-align: middle;
  white-space: nowrap;
}

.cms-content table td {
  padding: 16px 24px;
  color: var(--text-color);
  border-bottom: 1px solid rgba(0, 106, 103, 0.07);
  background-color: var(--white);
  transition: var(--transition);
  vertical-align: middle;
}

/* Zebra Striping */
.cms-content table tr:nth-child(even) td {
  background-color: var(--light-more);
}

/* Interactive Hover state */
.cms-content table tr:hover td {
  background-color: rgba(0, 106, 103, 0.04);
  color: var(--text-dark);
}

/* Clean up table bottom corners */
.cms-content table tr:last-child td {
  border-bottom: none;
}

.cms-content table td strong {
  color: var(--text-dark);
  font-weight: 600;
}
p strong{
  color: var(--text-dark);
  font-weight: 600;
}
/* Responsive Styles for Tablet and Mobile devices */
@media (max-width: 991px) {
  .policy-page-content-sec {
    padding-block: 60px 80px;
  }
  
  .cms-content h1 {
    font-size: 32px;
    margin-bottom: 25px;
  }
  
  .cms-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .cms-content h3 {
    font-size: 20px;
  }

  .cms-content blockquote {
    padding: 25px 30px;
    margin: 25px 0;
  }

  .cms-content blockquote p {
    font-size: 17px;
  }
}

@media (max-width: 767px) {
  .policy-page-content-sec {
    padding-block: 40px 60px;
  }

  .cms-content {
    font-size: 15px;
  }

  .cms-content h1 {
    font-size: 28px;
    padding-bottom: 12px;
    margin-bottom: 20px;
  }

  .cms-content h2 {
    font-size: 22px;
    margin-bottom: 18px;
  }

  .cms-content h3 {
    font-size: 19px;
    margin-top: 30px;
  }

  .cms-content blockquote {
    padding: 20px 24px;
  }

  .cms-content blockquote p {
    font-size: 16px;
  }

  .cms-content table th, 
  .cms-content table td {
    padding: 12px 16px;
    font-size: 14px;
  }

  .cms-content h1, .cms-content h2, .cms-content h3, .cms-content h4, .cms-content h5, .cms-content h6{
    margin-top: 24px;
  }
}
