/* style/blog-jb88-official-website-safety.css */

:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy-color: #08162B;
}

.page-blog-jb88-official-website-safety {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Body background is dark, use light text */
    background-color: var(--deep-navy-color); /* Matches body background for consistency */
}

.page-blog-jb88-official-website-safety__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-blog-jb88-official-website-safety__section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.page-blog-jb88-official-website-safety__section:nth-of-type(even) {
    background-color: rgba(16, 35, 63, 0.5); /* Card BG with some transparency */
}

.page-blog-jb88-official-website-safety__heading {
    font-size: 36px;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
}

.page-blog-jb88-official-website-safety__heading::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--gold-color);
    border-radius: 2px;
}

.page-blog-jb88-official-website-safety h3 {
    font-size: 24px;
    color: var(--text-main);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-blog-jb88-official-website-safety p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.page-blog-jb88-official-website-safety ul,
.page-blog-jb88-official-website-safety ol {
    margin-bottom: 15px;
    padding-left: 25px;
    color: var(--text-secondary);
}

.page-blog-jb88-official-website-safety ul li,
.page-blog-jb88-official-website-safety ol li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.page-blog-jb88-official-website-safety__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background: var(--deep-navy-color);
}

.page-blog-jb88-official-website-safety__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-blog-jb88-official-website-safety__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-blog-jb88-official-website-safety__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--glow-color);
}

.page-blog-jb88-official-website-safety__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-blog-jb88-official-website-safety__hero-content h1 {
    font-size: clamp(28px, 4vw, 48px);
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-blog-jb88-official-website-safety__hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-blog-jb88-official-website-safety__cta-button,
.page-blog-jb88-official-website-safety__btn-primary,
.page-blog-jb88-official-website-safety__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-blog-jb88-official-website-safety__cta-button,
.page-blog-jb88-official-website-safety__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: 2px solid var(--glow-color);
    box-shadow: 0 0 15px var(--glow-color);
}

.page-blog-jb88-official-website-safety__cta-button:hover,
.page-blog-jb88-official-website-safety__btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 25px var(--glow-color);
}

.page-blog-jb88-official-website-safety__btn-secondary {
    background: transparent;
    color: var(--glow-color);
    border: 2px solid var(--glow-color);
    margin-left: 20px;
}

.page-blog-jb88-official-website-safety__btn-secondary:hover {
    background: var(--glow-color);
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 15px var(--glow-color);
}

.page-blog-jb88-official-website-safety__image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 40px auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-blog-jb88-official-website-safety__text-link {
    color: var(--glow-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-blog-jb88-official-website-safety__text-link:hover {
    color: var(--gold-color);
}

/* FAQ Styles */
details.page-blog-jb88-official-website-safety__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
details.page-blog-jb88-official-website-safety__faq-item summary.page-blog-jb88-official-website-safety__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  color: var(--text-main);
  font-weight: 600;
  font-size: 18px;
}
details.page-blog-jb88-official-website-safety__faq-item summary.page-blog-jb88-official-website-safety__faq-question::-webkit-details-marker {
  display: none;
}
details.page-blog-jb88-official-website-safety__faq-item summary.page-blog-jb88-official-website-safety__faq-question:hover {
  background: rgba(var(--primary-color), 0.7);
  color: var(--gold-color);
}
.page-blog-jb88-official-website-safety__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}
.page-blog-jb88-official-website-safety__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--gold-color);
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}
details.page-blog-jb88-official-website-safety__faq-item .page-blog-jb88-official-website-safety__faq-answer {
  padding: 0 25px 25px;
  background: var(--deep-navy-color);
  border-top: 1px solid var(--border-color);
  border-radius: 0 0 8px 8px;
  color: var(--text-secondary);
}
.page-blog-jb88-official-website-safety__faq-answer p {
    margin-bottom: 0;
}

.page-blog-jb88-official-website-safety__button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog-jb88-official-website-safety__heading {
        font-size: 32px;
    }
    .page-blog-jb88-official-website-safety__hero-content h1 {
        font-size: clamp(26px, 4.5vw, 40px);
    }
    .page-blog-jb88-official-website-safety__hero-description {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .page-blog-jb88-official-website-safety__section {
        padding: 40px 0;
    }
    .page-blog-jb88-official-website-safety__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-blog-jb88-official-website-safety__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-blog-jb88-official-website-safety__heading {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-blog-jb88-official-website-safety h3 {
        font-size: 20px;
    }
    .page-blog-jb88-official-website-safety p,
    .page-blog-jb88-official-website-safety ul li,
    .page-blog-jb88-official-website-safety ol li {
        font-size: 15px;
    }
    .page-blog-jb88-official-website-safety__hero-image img {
        border-radius: 8px;
    }
    .page-blog-jb88-official-website-safety__cta-button,
    .page-blog-jb88-official-website-safety__btn-primary,
    .page-blog-jb88-official-website-safety__btn-secondary {
        padding: 12px 25px;
        font-size: 16px;
        margin-top: 15px;
        max-width: 100% !important;
        width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0; /* Remove margin for stacked buttons */
        margin-right: 0;
    }
    .page-blog-jb88-official-website-safety__button-group {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-blog-jb88-official-website-safety__image {
        border-radius: 8px;
        margin: 30px auto;
    }

    /* Mobile specific image handling */
    .page-blog-jb88-official-website-safety img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-blog-jb88-official-website-safety__section,
    .page-blog-jb88-official-website-safety__card,
    .page-blog-jb88-official-website-safety__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* FAQ Mobile Styles */
    details.page-blog-jb88-official-website-safety__faq-item summary.page-blog-jb88-official-website-safety__faq-question {
        padding: 15px;
        font-size: 16px;
    }
    .page-blog-jb88-official-website-safety__faq-qtext {
        font-size: 15px;
    }
    .page-blog-jb88-official-website-safety__faq-toggle {
        font-size: 24px;
        margin-left: 10px;
        width: 25px;
    }
    details.page-blog-jb88-official-website-safety__faq-item .page-blog-jb88-official-website-safety__faq-answer {
        padding: 0 15px 15px;
    }
}