:root {
    --primary-color: #113B7A; /* Main color */
    --secondary-color: #1D5FD1; /* Accent color */
    --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: #08162B; /* Body background from shared */
}

body {
    background-color: var(--deep-navy); /* From shared.css, ensuring consistency */
    color: var(--text-main); /* Light text on dark body background */
}

.page-faq {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: var(--deep-navy); /* Ensure page background matches body if needed */
    color: var(--text-main); /* Default text color for the page */
}

/* HERO Section */
.page-faq__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-color: var(--deep-navy);
    color: var(--text-main);
}

.page-faq__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Required for flex container in desktop */
}

.page-faq__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-faq__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-faq__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px; /* Add some horizontal padding */
}

.page-faq__main-title {
    font-size: 3.2em;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 15px var(--glow-color);
}

.page-faq__hero-description {
    font-size: 1.2em;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-faq__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    max-width: 100%; /* Button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-faq__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%); /* Slight hover effect */
}

/* General Section Styling */
.page-faq__section {
    padding: 60px 0;
    background-color: var(--deep-navy);
    color: var(--text-main);
    border-top: 1px solid var(--divider-color);
}

.page-faq__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.page-faq__subsection-title {
    font-size: 1.8em;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

.page-faq__text-block {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.page-faq__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-faq__list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.page-faq__list li::before {
    content: '✅'; /* Unicode checkmark */
    position: absolute;
    left: 0;
    color: var(--gold-color);
    font-size: 1.2em;
}

.page-faq__ordered-list {
    list-style: decimal;
    padding-left: 25px;
    margin-bottom: 20px;
}

.page-faq__ordered-list li {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.page-faq__image-wrapper {
    margin: 30px 0;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-faq__image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

/* FAQ Specific Styles */
.page-faq__faq-list {
    padding-bottom: 80px;
}

details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
details.page-faq__faq-item summary.page-faq__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: var(--text-main);
  font-weight: 600;
  font-size: 1.1em;
}
details.page-faq__faq-item summary.page-faq__faq-question::-webkit-details-marker {
  display: none;
}
details.page-faq__faq-item summary.page-faq__faq-question:hover {
  background: rgba(29, 95, 209, 0.1); /* Lighter version of secondary color */
}
.page-faq__faq-qtext {
  flex: 1;
  font-size: 1em;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}
.page-faq__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 20px;
  background: var(--card-bg); /* Match summary background */
  border-radius: 0 0 8px 8px;
  color: var(--text-secondary);
}
.page-faq__faq-answer p {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 1em;
    line-height: 1.7;
}

/* Latest News/Blog Section */
.page-faq__latest-news {
    background-color: var(--deep-navy);
    padding-bottom: 80px;
}

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

.page-faq__blog-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.page-faq__blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-faq__blog-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-faq__blog-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-faq__blog-card-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    flex-grow: 1; /* Allow title to take up available space */
}

.page-faq__blog-card-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-faq__blog-card-title a:hover {
    color: var(--gold-color);
}

.page-faq__blog-card-excerpt {
    font-size: 0.95em;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
}

.page-faq__blog-card-date {
    font-size: 0.85em;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-top: auto; /* Push date to bottom */
}

.page-faq__button-group {
    text-align: center;
    margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: 2.8em;
    }
    .page-faq__section-title {
        font-size: 2.2em;
    }
    .page-faq__subsection-title {
        font-size: 1.6em;
    }
    .page-faq__hero-description,
    .page-faq__text-block,
    .page-faq__list li,
    .page-faq__ordered-list li,
    .page-faq__faq-qtext,
    .page-faq__faq-answer p {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding-top: 10px !important; /* Important for mobile, body handles header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-faq__hero-image img {
        border-radius: 4px;
    }

    .page-faq__main-title {
        font-size: 2.2em;
        margin-top: 20px;
    }

    .page-faq__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-faq__cta-button {
        padding: 12px 30px;
        font-size: 1em;
        max-width: 100% !important; /* Button responsiveness */
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: auto;
        margin-right: auto;
    }

    .page-faq__section {
        padding: 40px 0;
    }

    .page-faq__container {
        padding: 0 15px;
        max-width: 100% !important; /* Ensure container is full width */
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-faq__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-faq__subsection-title {
        font-size: 1.4em;
        margin-top: 30px;
    }

    .page-faq__text-block,
    .page-faq__list li,
    .page-faq__ordered-list li,
    .page-faq__faq-answer p {
        font-size: 0.95em;
    }

    .page-faq__image-wrapper img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* FAQ Mobile Styles */
    details.page-faq__faq-item summary.page-faq__faq-question { padding: 15px; }
    .page-faq__faq-qtext { font-size: 1em; }
    .page-faq__faq-answer { padding: 0 15px 15px; }

    /* Blog Card Mobile Styles */
    .page-faq__blog-grid {
        grid-template-columns: 1fr;
    }
    .page-faq__blog-card-image {
        height: 180px;
    }
    .page-faq__blog-card-title {
        font-size: 1.2em;
    }
    .page-faq__blog-card-excerpt {
        font-size: 0.9em;
    }
    .page-faq__blog-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .page-faq__main-title {
        font-size: 1.8em;
    }
    .page-faq__section-title {
        font-size: 1.6em;
    }
    .page-faq__cta-button {
        font-size: 0.9em;
        padding: 10px 25px;
    }
}