/* style/blog-rick88-security-deep-dive.css */

/* Base styles for the page content, ensuring text contrast with body background */
.page-blog-rick88-security-deep-dive {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for light backgrounds */
  background-color: var(--background-color); /* Inherit from shared, likely dark */
}

/* Ensure main text is readable on dark body background */
.page-blog-rick88-security-deep-dive p,
.page-blog-rick88-security-deep-dive li,
.page-blog-rick88-security-deep-dive h1,
.page-blog-rick88-security-deep-dive h2,
.page-blog-rick88-security-deep-dive h3,
.page-blog-rick88-security-deep-dive h4 {
  color: var(--text-main); /* Ensure light text on dark background */
}

/* Hero Section */
.page-blog-rick88-security-deep-dive__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

.page-blog-rick88-security-deep-dive__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 700px; /* Limit height for aesthetic */
  z-index: 1;
}

.page-blog-rick88-security-deep-dive__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-top: -150px; /* Overlap slightly for visual effect, but text is below image in DOM */
  padding: 20px;
  background: linear-gradient(180deg, rgba(8, 22, 15, 0.8) 0%, rgba(8, 22, 15, 0.95) 100%);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transform: translateY(-50%); /* Adjust to center visually */
  margin-bottom: -150px;
}

.page-blog-rick88-security-deep-dive__main-title {
  font-size: clamp(2em, 4vw, 2.8em);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: 0.5px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.page-blog-rick88-security-deep-dive__description {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog-rick88-security-deep-dive__cta-button {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog-rick88-security-deep-dive__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

.page-blog-rick88-security-deep-dive__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(17, 168, 78, 0.4);
}

.page-blog-rick88-security-deep-dive__btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--border-color);
  margin-left: 15px;
}

.page-blog-rick88-security-deep-dive__btn-secondary:hover {
  background: rgba(46, 122, 78, 0.2);
  color: var(--text-main);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(17, 168, 78, 0.2);
}

/* Sections */
.page-blog-rick88-security-deep-dive__section {
  padding: 60px 0;
  box-sizing: border-box;
}

.page-blog-rick88-security-deep-dive__dark-bg {
  background-color: var(--background-color);
  color: var(--text-main);
}

.page-blog-rick88-security-deep-dive__light-bg {
  background-color: #0d2218; /* A slightly lighter dark green for contrast */
  color: var(--text-main);
}

.page-blog-rick88-security-deep-dive__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-blog-rick88-security-deep-dive__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.3);
}

.page-blog-rick88-security-deep-dive__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 30px;
  margin-bottom: 15px;
  border-left: 5px solid var(--primary-color);
  padding-left: 15px;
}

.page-blog-rick88-security-deep-dive__content-area {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-blog-rick88-security-deep-dive__text-block {
  font-size: 1.05em;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-blog-rick88-security-deep-dive__image-content {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 30px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-blog-rick88-security-deep-dive__faq-list {
  margin-top: 30px;
}

.page-blog-rick88-security-deep-dive__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main);
}

.page-blog-rick88-security-deep-dive__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-main);
  background-color: #11271B; /* Darker than card-bg for question header */
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-blog-rick88-security-deep-dive__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome/Safari */
}

.page-blog-rick88-security-deep-dive__faq-question:hover {
  background-color: #1a3325;
}

.page-blog-rick88-security-deep-dive__faq-qtext {
  flex-grow: 1;
}

.page-blog-rick88-security-deep-dive__faq-toggle {
  font-size: 1.5em;
  font-weight: 300;
  margin-left: 15px;
  color: var(--gold);
}

.page-blog-rick88-security-deep-dive__faq-item[open] .page-blog-rick88-security-deep-dive__faq-toggle {
  content: '−';
}

.page-blog-rick88-security-deep-dive__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.0em;
  color: var(--text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-blog-rick88-security-deep-dive__faq-item[open] .page-blog-rick88-security-deep-dive__faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding-top: 15px;
}

/* Final CTA buttons */
.page-blog-rick88-security-deep-dive__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog-rick88-security-deep-dive__hero-content {
    margin-top: -100px;
    margin-bottom: -100px;
    transform: translateY(-30%);
  }
}

@media (max-width: 768px) {
  .page-blog-rick88-security-deep-dive__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
  }
  .page-blog-rick88-security-deep-dive__hero-content {
    margin-top: -80px;
    margin-bottom: -80px;
    transform: translateY(-20%);
    padding: 15px;
    width: calc(100% - 30px);
  }

  .page-blog-rick88-security-deep-dive__main-title {
    font-size: clamp(1.8em, 7vw, 2.2em);
    max-width: 100%;
  }

  .page-blog-rick88-security-deep-dive__description {
    font-size: 1em;
    max-width: 100%;
  }

  .page-blog-rick88-security-deep-dive__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog-rick88-security-deep-dive__btn-secondary {
    margin-left: 0;
    margin-top: 15px;
  }

  .page-blog-rick88-security-deep-dive__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-blog-rick88-security-deep-dive__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-blog-rick88-security-deep-dive__sub-title {
    font-size: 1.5em;
  }

  .page-blog-rick88-security-deep-dive__container,
  .page-blog-rick88-security-deep-dive__content-area {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog-rick88-security-deep-dive img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog-rick88-security-deep-dive__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-blog-rick88-security-deep-dive__faq-answer {
    padding: 0 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-blog-rick88-security-deep-dive__hero-content {
    margin-top: -60px;
    margin-bottom: -60px;
    transform: translateY(-10%);
  }
  .page-blog-rick88-security-deep-dive__main-title {
    font-size: 1.8em;
  }
  .page-blog-rick88-security-deep-dive__section-title {
    font-size: 1.8em;
  }
  .page-blog-rick88-security-deep-dive__sub-title {
    font-size: 1.3em;
  }
}