/* Blog Styles for Text-Only Sections */

/* Dark blue background for sections */
.roof-surveying-section[style*="background: #f8f9fa" i],
.roof-surveying-section[style*="background: #1C2475" i] {
  background: #1c2475 !important;
}

/* Text colors for dark background sections */
.roof-surveying-section[style*="background: #1C2475" i] .roof-surveying-title,
.roof-surveying-section[style*="background: #1C2475" i]
  .roof-surveying-subtitle {
  color: #ffffff !important;
}

.roof-surveying-section[style*="background: #1C2475" i] .roof-surveying-text,
.roof-surveying-section[style*="background: #1C2475" i] .roof-surveying-text p {
  color: #e5e7eb !important;
}

.roof-surveying-section[style*="background: #1C2475" i] .blog-h3-title,
.roof-surveying-section[style*="background: #1C2475" i] .blog-h3-title-large {
  color: #ffffff !important;
}

.roof-surveying-section[style*="background: #1C2475" i] .blog-list-spacing,
.roof-surveying-section[style*="background: #1C2475" i] .blog-list-spacing li {
  color: #e5e7eb !important;
}

.roof-surveying-section[style*="background: #1C2475" i] .blog-ordered-list,
.roof-surveying-section[style*="background: #1C2475" i] .blog-ordered-list li {
  color: #e5e7eb !important;
}

.roof-surveying-section[style*="background: #1C2475" i]
  .blog-ordered-list
  li::before {
  color: #60a5fa !important;
}

.roof-surveying-section[style*="background: #1C2475" i] .blog-text-link {
  color: #60a5fa !important;
}

.roof-surveying-section[style*="background: #1C2475" i] .blog-text-link:hover {
  color: #93c5fd !important;
}

.roof-surveying-section[style*="background: #1C2475" i] .blog-intro-paragraph {
  color: #e5e7eb !important;
}

.roof-surveying-section[style*="background: #1C2475" i] .blog-highlight-box {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: #60a5fa !important;
}

.roof-surveying-section[style*="background: #1C2475" i]
  .blog-highlight-box
  .roof-surveying-title,
.roof-surveying-section[style*="background: #1C2475" i]
  .blog-highlight-box
  .blog-h3-title {
  color: #ffffff !important;
}

.roof-surveying-section[style*="background: #1C2475" i] .blog-highlight-box p,
.roof-surveying-section[style*="background: #1C2475" i] .blog-highlight-box li {
  color: #e5e7eb !important;
}

/* Pricing Table Styles */
.pricing-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 30px 0;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

.pricing-table thead {
  background: rgba(255, 255, 255, 0.1);
}

.pricing-table th {
  padding: 20px 15px;
  text-align: left;
  font-weight: 700;
  font-size: 18px;
  color: #ffffff;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  font-family: "Inter", sans-serif;
}

.pricing-table td {
  padding: 20px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
  font-size: 16px;
  line-height: 1.6;
}

.pricing-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.pricing-table .service-name {
  font-weight: 700;
  color: #ffffff;
  font-size: 17px;
}

.pricing-table .service-cost {
  font-weight: 600;
  color: #60a5fa;
  font-size: 17px;
}

.pricing-table .service-time {
  color: #e5e7eb;
}

.pricing-table .service-equipment {
  color: #e5e7eb;
}

.pricing-table .equipment-list {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0 0;
}

.pricing-table .equipment-list li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
  color: #e5e7eb;
  font-size: 15px;
  line-height: 1.6;
}

.pricing-table .equipment-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #60a5fa;
  font-weight: bold;
  font-size: 18px;
}

.pricing-table .equipment-category {
  margin-bottom: 15px;
}

.pricing-table .equipment-category strong {
  color: #ffffff;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.pricing-conclusion {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.pricing-conclusion-text {
  color: #e5e7eb !important;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 15px;
}

/* Meter Test Styles for Dark Background */
.roof-surveying-section[style*="background: #1C2475" i] .meter-test-step-card {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.roof-surveying-section[style*="background: #1C2475" i]
  .meter-test-step-header {
  color: #ffffff !important;
}

.roof-surveying-section[style*="background: #1C2475" i]
  .meter-test-step-subtitle {
  color: #ffffff !important;
}

.roof-surveying-section[style*="background: #1C2475" i]
  .meter-test-checklist
  li {
  color: #e5e7eb !important;
}

.roof-surveying-section[style*="background: #1C2475" i] .meter-test-text {
  color: #e5e7eb !important;
}

.roof-surveying-section[style*="background: #1C2475" i]
  .meter-test-text-highlight {
  color: #60a5fa !important;
  font-weight: 600;
}

.roof-surveying-section[style*="background: #1C2475" i] .meter-test-text-bold {
  color: #ffffff !important;
  font-weight: 700;
}

.roof-surveying-section[style*="background: #1C2475" i]
  .meter-test-text-warning {
  color: #ff6b6b !important;
  font-weight: 600;
}

/* Video overlay on water meter image */
.roof-surveying-image[style*="position: relative" i] {
  position: relative;
}

@media (max-width: 768px) {
  .roof-surveying-image[style*="position: relative" i]
    > div[style*="position: absolute"] {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    max-width: 100% !important;
    margin-top: 20px;
  }
}

/* Text-only panel - centers content when no image */
.blog-text-only-panel {
  grid-template-columns: 1fr !important;
  justify-items: center;
}

/* Improve roof-surveying-image appearance - make images full size */
.roof-surveying-image {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: auto !important;
  aspect-ratio: auto !important;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.roof-surveying-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.roof-surveying-image:hover img {
  transform: scale(1.02);
}

/* Ensure images fill the grid column properly */
.roof-surveying-panel:not(.blog-text-only-panel) .roof-surveying-image {
  align-self: stretch;
  display: flex;
}

/* Centered content wrapper for text-only sections */
.blog-content-centered {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

/* Highlighted box section with dashed border */
.blog-highlight-box {
  border: 2px dashed #1e3a8a;
  padding: 30px;
  border-radius: 10px;
  background: #f8f9fa;
}

.blog-highlight-box .roof-surveying-title {
  margin-top: 0;
}

/* Blog Ordered List Styles */
.blog-ordered-list {
  margin: 20px 0;
  padding-left: 0;
  list-style: none;
  counter-reset: blog-counter;
}

.blog-ordered-list li {
  counter-increment: blog-counter;
  position: relative;
  padding-left: 40px;
  margin-bottom: 20px;
  color: #1e3a8a;
  font-size: 16px;
  line-height: 1.8;
}

.blog-ordered-list li::before {
  content: counter(blog-counter) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: #3b82f6;
  font-size: 18px;
}

.blog-ordered-list li strong {
  /* color: #1e3a8a; */
  font-weight: 700;
}

/* Blog Text Link */
.blog-text-link {
  color: #3b82f6;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
}

.blog-text-link:hover {
  color: #1e3a8a;
  text-decoration: none;
}

/* Blog List Spacing */
.blog-list-spacing {
  margin: 20px 0;
  padding-left: 20px;
  color: #1e3a8a;
}

.blog-list-spacing li {
  margin-bottom: 15px;
  line-height: 1.8;
  font-size: 16px;
}

/* Blog Section Spacing */
.blog-section-spacing {
  margin-top: 30px;
}

/* Blog H3 Title */
.blog-h3-title {
  font-size: 24px;
  font-weight: 700;
  color: #1e3a8a;
  margin: 25px 0 15px 0;
  font-family: "Inter", sans-serif;
}

.blog-h3-title-large {
  font-size: 28px;
  font-weight: 700;
  color: #1e3a8a;
  margin: 30px 0 20px 0;
  font-family: "Inter", sans-serif;
}

/* Blog Text Center */
.blog-text-center {
  text-align: center;
}

/* Blog Intro Paragraph */
.blog-intro-paragraph {
  font-size: 18px;
  font-weight: 500;
  color: #1e3a8a;
  line-height: 1.8;
  text-align: center;
}

/* Blog FAQ Styles */
.blog-faq-item {
  margin-bottom: 15px;
  border-bottom: 1px solid #e5e7eb;
}

.blog-faq-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
}

.blog-faq-button:hover {
  color: #3b82f6;
}

.blog-faq-button:active {
  outline: none;
}

.blog-faq-question {
  font-size: 18px;
  font-weight: 600;
  color: #1e3a8a;
  font-family: "Inter", sans-serif;
}

.blog-faq-icon {
  font-size: 18px;
  color: #3b82f6;
  transition: transform 0.3s ease;
}

.blog-faq-button:hover .blog-faq-icon {
  color: #1e3a8a;
}

.blog-faq-answer {
  padding: 0 0 20px 0;
  color: #1e3a8a;
  font-size: 16px;
  line-height: 1.8;
  max-height: 1000px;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.blog-faq-answer p {
  margin: 0;
}

.blog-faq-answer.hidden {
  max-height: 0;
  padding: 0;
  overflow: hidden;
}

/* Responsive Styles */

/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) {
  .blog-content-centered {
    max-width: 800px;
    padding: 0 20px;
  }

  .blog-highlight-box {
    padding: 25px;
  }

  .blog-ordered-list li {
    padding-left: 35px;
    font-size: 15px;
  }

  .blog-h3-title {
    font-size: 22px;
  }

  .blog-h3-title-large {
    font-size: 26px;
  }
}

/* Mobile Styles (max-width: 768px) */
@media (max-width: 768px) {
  .blog-content-centered {
    max-width: 100%;
    padding: 0 20px;
  }

  .blog-text-only-panel {
    padding: 0 10px;
  }

  .blog-highlight-box {
    padding: 20px;
    border-width: 1.5px;
  }

  .blog-ordered-list {
    margin: 15px 0;
  }

  .blog-ordered-list li {
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.7;
  }

  .blog-ordered-list li::before {
    font-size: 16px;
  }

  .blog-list-spacing {
    padding-left: 18px;
    margin: 15px 0;
  }

  .blog-list-spacing li {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.7;
  }

  .blog-h3-title {
    font-size: 20px;
    margin: 20px 0 12px 0;
  }

  .blog-h3-title-large {
    font-size: 22px;
    margin: 25px 0 15px 0;
  }

  .blog-text-link {
    font-size: 14px;
  }

  .blog-intro-paragraph {
    font-size: 16px;
    padding: 0 10px;
  }

  .roof-surveying-title {
    font-size: 28px !important;
  }

  .roof-surveying-subtitle {
    font-size: 28px !important;
  }
}

/* Small Mobile Styles (max-width: 480px) */
@media (max-width: 480px) {
  .blog-content-centered {
    padding: 0 15px;
  }

  .blog-highlight-box {
    padding: 15px;
    border-radius: 8px;
  }

  .blog-ordered-list li {
    padding-left: 25px;
    font-size: 13px;
    margin-bottom: 12px;
  }

  .blog-ordered-list li::before {
    font-size: 14px;
  }

  .blog-list-spacing {
    padding-left: 15px;
  }

  .blog-list-spacing li {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .blog-h3-title {
    font-size: 18px;
    margin: 15px 0 10px 0;
  }

  .blog-h3-title-large {
    font-size: 20px;
    margin: 20px 0 12px 0;
  }

  .roof-surveying-title {
    font-size: 24px !important;
  }

  .roof-surveying-subtitle {
    font-size: 24px !important;
  }

  .blog-intro-paragraph {
    font-size: 14px;
  }

  .blog-faq-question {
    font-size: 16px;
  }

  .blog-faq-button {
    padding: 15px 0;
  }

  .blog-faq-answer {
    font-size: 14px;
  }
}

/* Responsive FAQ Styles */
@media (max-width: 768px) {
  .blog-faq-question {
    font-size: 16px;
  }

  .blog-faq-button {
    padding: 15px 0;
  }

  .blog-faq-answer {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .blog-faq-question {
    font-size: 14px;
  }

  .blog-faq-button {
    padding: 12px 0;
  }

  .blog-faq-answer {
    font-size: 13px;
  }

  .roof-surveying-image {
    border-radius: 15px;
  }

  .roof-surveying-image img {
    border-radius: 15px;
  }
}

/* Responsive image styles for roof-surveying-section */
@media (max-width: 1024px) {
  .roof-surveying-image {
    border-radius: 15px;
  }
}

@media (max-width: 768px) {
  .roof-surveying-image {
    border-radius: 12px;
    margin-top: 20px;
  }

  .roof-surveying-image img {
    border-radius: 12px;
  }

  .pricing-table {
    font-size: 14px;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 15px 10px;
    font-size: 14px;
  }

  .pricing-table .service-name {
    font-size: 15px;
  }

  .pricing-table .service-cost {
    font-size: 15px;
  }

  .pricing-table .equipment-list li {
    font-size: 13px;
  }
}

/* Responsive pricing table styles */
@media (max-width: 1024px) {
  .pricing-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pricing-table {
    min-width: 800px;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 15px 12px;
  }
}

@media (max-width: 768px) {
  .pricing-table {
    min-width: 700px;
    font-size: 13px;
  }

  .pricing-table th {
    font-size: 16px;
    padding: 15px 10px;
  }

  .pricing-table td {
    padding: 12px 8px;
    font-size: 13px;
  }

  .pricing-table .service-name {
    font-size: 14px;
  }

  .pricing-table .service-cost {
    font-size: 14px;
  }

  .pricing-table .equipment-list li {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .pricing-conclusion {
    margin-top: 20px;
    padding-top: 20px;
  }

  .pricing-conclusion-text {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .pricing-table {
    min-width: 600px;
  }

  .pricing-table th {
    font-size: 14px;
    padding: 12px 8px;
  }

  .pricing-table td {
    padding: 10px 6px;
    font-size: 12px;
  }

  .pricing-table .equipment-list li {
    font-size: 11px;
  }
}

.roof-surveying-section {
  padding: 40px 20px !important;
  min-height: auto !important;
}

.roof-surveying-container {
  max-width: 1200px !important;
}

.roof-surveying-panel {
  gap: 40px !important;
}

.roof-surveying-content {
  min-height: auto !important;
  padding: 30px 0 !important;
  gap: 20px !important;
}

.roof-surveying-image {
  position: relative;
  z-index: 7;
  max-height: 550px !important;
}

.common-causes-section-blue-background {
  background-color: #1c2475;
}

.common-causes-section-blue-background h3,
.common-causes-section-blue-background p {
  color: white !important;
}

@media (max-width: 480px) {
  .roof-surveying-content {
    padding-top: 0 !important;
  }
}
