/* Import Roboto Slab font */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;500;600;700&display=swap');

.page-hero {
  position: relative;
  width: 100%;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("../images/pulication.png");
  background-size: cover;
  background-position: center;
  background-color: #4a0202;
  padding-top: 80px;
  box-sizing: border-box;
}

/* Overlay for better text readability */
.page-hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

/* Container for content */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-hero .container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
  text-align: center;
}

/* Main Title */
.page-hero h1 {
  /* font-family: 'Playfair Display', serif; */
  font-size: 2.8rem;
  color: #ffffff;
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

/* Breadcrumb Navigation */
.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
  font-size: 14px;
  color: #ffffff;
}

.page-hero .breadcrumb a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-hero .breadcrumb a:hover {
  color: #c49a18;
  /* Gold color on hover */
}

.page-hero .breadcrumb span {
  color: #d1b24a;
  /* Gold color for current page */
  font-weight: 500;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .page-hero {
    min-height: 300px;
    height: 40vh;
    background-attachment: scroll;
    /* Disable parallax on mobile for better performance */
  }

  .page-hero h1 {
    font-size: 2.5rem;
  }

  .page-hero .breadcrumb {
    font-size: 12px;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .page-hero {
    min-height: 250px;
    height: 35vh;
  }

  .page-hero h1 {
    font-size: 2rem;
  }
}

/* 1. Top Content Styles */
.risk-main-title {
    color: var(--primary-color);
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
    margin-top: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    /* font-family: 'Segoe UI', sans-serif; */
    text-align: center;
}

.risk-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 40px;
    /* Space between top text and accordion below */
}

.risk-image-wrapper {
    flex: 0 0 300px;
}

.risk-image-wrapper img {
    width: 100%;
    height: 200px;
    display: block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

.risk-content-wrapper {
    flex: 1;
}

.risk-subtitle {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 20px;
}

.risk-content-wrapper p {
    color: #333;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    margin-top: 60px;
    text-align: justify;
}


/* --- EPG Section General --- */
/* --- EPG Section General --- */
.epg-section {
    padding: 60px 0;
    background-color: #ffffff;
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
}

/* --- Brochure & E-Flyer Section --- */
.epg-brochure-section {
    padding: 60px 0 80px;
    background-color: #f8f9fb;
}

.epg-brochure-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.epg-brochure-item {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: none;
    padding: 0;
    cursor: pointer;
}

.epg-brochure-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Lightbox */
.epg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.epg-lightbox.open {
    display: flex;
}

.epg-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
}

.epg-lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 70vw;
    max-height: 80vh;
}

.epg-lightbox-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 80vh;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.epg-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

/* Main Title (Centered & Underlined) */
.epg-main-title {
    text-align: center;
    color: var(--primary-color);
    /* Maroon */
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.epg-main-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background-color: #e2c04f;
    /* Gold */
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

/* Headers */
.sub-title {
    color: #a07b15;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.section-header {
    color: var(--primary-color);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 25px;
    border-left: 5px solid #d1b24a;
    padding-left: 15px;
}

/* --- Intro & Categories --- */
.epg-intro-box {
    margin-bottom: 50px;
    /* background: #49171750; */
    /* padding: 30px; */
    border-radius: 10px;
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); */
}

.intro-text {
    color: #555;
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cat-card {
    background: #fff;
    border: 1px solid #680909;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    /* font-weight: 600; */
    color: #580000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.cat-card:hover {
    transform: translateY(-5px);
    border-color: #d1b24a;
}

/* --- Content Block --- */
.epg-content-block {
    margin-bottom: 60px;
}

.epg-content-block p {
    color: #444;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

/* --- Benefits Section --- */
.epg-benefits-wrapper {
    margin-bottom: 60px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-card {
    background: #b38989c0;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-top: 4px solid #580000;
    transition: transform 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.icon-box {
    font-size: 24px;
    font-weight: 800;
    color: #d1b24a;
    background: #fff9e662;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    margin: 0 auto 20px auto;
}

.benefit-card h4 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 700;
}

.benefit-card p {
    color: #502214;
    font-size: 14px;
    line-height: 1.5;
}

/* --- Footer Block (Quote & Contact) --- */
.epg-footer-block {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.quote-box {
    background: #96791846;
    padding: 30px;
    border-left: 5px solid var(--secondary-color);
    border-radius: 5px;
    font-style: italic;
}

.quote-box blockquote {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 20px 0;
}

.quote-box cite {
    font-weight: 700;
    color: #333;
    font-style: normal;
}

.quote-box cite span {
    font-weight: 400;
    font-size: 13px;
    color: #777;
}

.contact-highlight {
    background: #580000;
    color: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-highlight p {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.5;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
    /* font-weight: 700; */
    font-size: 18px;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.contact-link:hover {
    color: #d1b24a;
}

.contact-link-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-icon-svg {
    width: 22px;
    height: 22px;
}

/* --- Responsive (Mobile) --- */
@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .epg-footer-block {
        grid-template-columns: 1fr;
    }

    .epg-brochure-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .epg-main-title {
        font-size: 28px;
    }

    .epg-brochure-grid {
        grid-template-columns: 1fr;
    }
}