/* style/online-sic-bo-glossary.css */

:root {
    --primary-color: #336699;
    --secondary-color: #FFCC00;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-dark: #000000; /* Body background from shared.css */
    --bg-light-card: rgba(255, 255, 255, 0.1); /* For cards on dark background */
    --bg-light-section: #f1f3f5;
    --border-light: #e0e0e0;
}

.page-online-sic-bo-glossary {
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--bg-dark);
    padding-top: 120px; /* Adjust for fixed header */
}

@media (max-width: 768px) {
    .page-online-sic-bo-glossary {
        padding-top: 100px; /* Adjust for fixed header on mobile */
    }
}

.page-online-sic-bo-glossary__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-online-sic-bo-glossary__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--text-light);
    overflow: hidden;
    border-bottom: 5px solid var(--secondary-color);
}

.page-online-sic-bo-glossary__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.page-online-sic-bo-glossary__main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
}

.page-online-sic-bo-glossary__subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    line-height: 1.5;
    color: var(--text-light);
}

.page-online-sic-bo-glossary__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-online-sic-bo-glossary__cta-button:hover {
    background: #e6b800;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-online-sic-bo-glossary__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.15;
    overflow: hidden;
}

.page-online-sic-bo-glossary__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-online-sic-bo-glossary__section {
    padding: 60px 0;
}

.page-online-sic-bo-glossary__light-bg {
    background-color: var(--bg-light-section);
    color: var(--text-dark);
}

.page-online-sic-bo-glossary__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-online-sic-bo-glossary__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
}

.page-online-sic-bo-glossary__dark-bg .page-online-sic-bo-glossary__section-title {
    color: var(--text-light);
}

.page-online-sic-bo-glossary__text-block {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 25px;
    text-align: justify;
}

.page-online-sic-bo-glossary__text-block a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-online-sic-bo-glossary__text-block a:hover {
    color: var(--secondary-color);
}

.page-online-sic-bo-glossary__dark-bg .page-online-sic-bo-glossary__text-block {
    color: var(--text-light);
}

.page-online-sic-bo-glossary__dark-bg .page-online-sic-bo-glossary__text-block a {
    color: var(--secondary-color);
}

.page-online-sic-bo-glossary__dark-bg .page-online-sic-bo-glossary__text-block a:hover {
    color: #ffd700;
}

.page-online-sic-bo-glossary__glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-online-sic-bo-glossary__glossary-item {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
}

.page-online-sic-bo-glossary__glossary-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-online-sic-bo-glossary__glossary-term {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

.page-online-sic-bo-glossary__glossary-definition {
    font-size: 16px;
    line-height: 1.7;
}

.page-online-sic-bo-glossary__image-container {
    margin-top: 50px;
    text-align: center;
}

.page-online-sic-bo-glossary__image-responsive {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-online-sic-bo-glossary__cta-section {
    background-color: var(--primary-color);
    padding: 80px 0;
    text-align: center;
    color: var(--text-light);
}

.page-online-sic-bo-glossary__cta-content {
    max-width: 800px;
}

.page-online-sic-bo-glossary__cta-button--large {
    font-size: 22px;
    padding: 18px 50px;
    margin-top: 30px;
}

/* FAQ Styles */
.page-online-sic-bo-glossary__faq-list {
  margin-top: 40px;
}

.page-online-sic-bo-glossary__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-online-sic-bo-glossary__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-online-sic-bo-glossary__faq-item.active .page-online-sic-bo-glossary__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-online-sic-bo-glossary__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-online-sic-bo-glossary__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-online-sic-bo-glossary__faq-question:active {
  background: #eeeeee;
}

.page-online-sic-bo-glossary__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color);
}

.page-online-sic-bo-glossary__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-online-sic-bo-glossary__faq-item.active .page-online-sic-bo-glossary__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg);
}

.page-online-sic-bo-glossary__faq-answer p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
}

.page-online-sic-bo-glossary__faq-answer a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-online-sic-bo-glossary__faq-answer a:hover {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-online-sic-bo-glossary__main-title {
        font-size: 40px;
    }
    .page-online-sic-bo-glossary__subtitle {
        font-size: 18px;
    }
    .page-online-sic-bo-glossary__section-title {
        font-size: 32px;
    }
    .page-online-sic-bo-glossary__glossary-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-online-sic-bo-glossary__hero-section {
        padding: 60px 0;
    }
    .page-online-sic-bo-glossary__main-title {
        font-size: 32px;
    }
    .page-online-sic-bo-glossary__subtitle {
        font-size: 16px;
    }
    .page-online-sic-bo-glossary__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    .page-online-sic-bo-glossary__section {
        padding: 40px 0;
    }
    .page-online-sic-bo-glossary__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-online-sic-bo-glossary__text-block {
        font-size: 15px;
    }
    .page-online-sic-bo-glossary__glossary-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-online-sic-bo-glossary__glossary-item {
        padding: 20px;
    }
    .page-online-sic-bo-glossary__glossary-term {
        font-size: 20px;
    }
    .page-online-sic-bo-glossary__glossary-definition {
        font-size: 15px;
    }
    .page-online-sic-bo-glossary__cta-button--large {
        font-size: 18px;
        padding: 15px 40px;
    }
    .page-online-sic-bo-glossary__faq-question {
        padding: 15px;
    }
    .page-online-sic-bo-glossary__faq-question h3 {
        font-size: 16px;
    }
    .page-online-sic-bo-glossary__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-online-sic-bo-glossary__faq-item.active .page-online-sic-bo-glossary__faq-answer {
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-online-sic-bo-glossary__main-title {
        font-size: 28px;
    }
    .page-online-sic-bo-glossary__subtitle {
        font-size: 14px;
    }
    .page-online-sic-bo-glossary__section-title {
        font-size: 24px;
    }
}