/* style/about.css */

:root {
    --primary-color: #8B0000; /* Deep Red */
    --secondary-color: #FFD700; /* Gold */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #111;
    --bg-light: #f9f9f9;
    --border-color: #e0e0e0;
}

.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--bg-dark); /* Inherits from body */
}

/* Fixed header padding */
.page-about__hero-section {
    padding-top: 180px; /* Desktop: Adjust based on fixed header height */
}

.page-about__section:first-of-type {
    padding-top: 60px; /* Ensure content starts below the header if no hero */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px;
    background: linear-gradient(135deg, var(--primary-color), #5a0000); /* Darker red gradient */
    color: var(--text-light);
}

.page-about__hero-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-about__hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--text-light);
}

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

.page-about__cta-button:hover {
    background: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-about__cta-button--large {
    padding: 18px 50px;
    font-size: 20px;
}

/* General Section Styles */
.page-about__section {
    padding: 80px 0;
    text-align: center;
}

.page-about__section.page-about__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-about__heading {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 40px;
    color: var(--secondary-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-about__heading--center {
    text-align: center;
}

.page-about__sub-heading {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-about__paragraph {
    font-size: 17px;
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: justify;
    color: var(--text-dark); /* Default for light background cards */
}

.page-about__section.page-about__dark-bg .page-about__paragraph {
    color: var(--text-light); /* Override for dark background sections */
    text-align: center;
}

.page-about__paragraph--center {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-about__image--center {
    margin-left: auto;
    margin-right: auto;
}

/* Card Styles */
.page-about__card {
    background: var(--text-light); /* White background for cards */
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    color: var(--text-dark); /* Dark text for white cards */
    text-align: left;
}

.page-about__card .page-about__heading,
.page-about__card .page-about__sub-heading {
    color: var(--primary-color);
}

.page-about__mission-vision .page-about__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.page-about__mission-vision .page-about__card {
    margin-bottom: 0;
}

/* Values Grid */
.page-about__values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__value-card {
    padding: 25px;
    text-align: center;
    background: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-about__value-card .page-about__sub-heading {
    color: var(--primary-color);
    font-size: 20px;
}

.page-about__value-card .page-about__paragraph {
    font-size: 15px;
    text-align: center;
}

/* Expertise Grid */
.page-about__expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__expertise-item {
    background: rgba(255, 255, 255, 0.1); /* Light transparent background for dark section */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__expertise-item .page-about__sub-heading {
    color: var(--secondary-color);
    font-size: 20px;
}

.page-about__expertise-item .page-about__paragraph {
    color: var(--text-light);
    font-size: 15px;
}

/* Why Choose Us Grid */
.page-about__advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__advantage-card {
    padding: 25px;
    text-align: center;
    background: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-about__advantage-card .page-about__sub-heading {
    color: var(--primary-color);
    font-size: 20px;
}

.page-about__advantage-card .page-about__paragraph {
    font-size: 15px;
    text-align: center;
}

.page-about__cta-wrapper {
    margin-top: 50px;
}

.page-about__cta-wrapper--center {
    text-align: center;
}

/* FAQ Section */
.page-about__faq-section {
    background-color: var(--bg-dark);
    padding: 80px 0;
}

.page-about__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--text-light);
}

.page-about__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;
  color: var(--text-dark);
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--bg-light);
  border-radius: 0 0 5px 5px;
}

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

.page-about__faq-question:hover {
  background: var(--bg-light);
  border-color: #d0d0d0;
}

.page-about__faq-question:active {
  background: #eeeeee;
}

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

.page-about__faq-toggle {
  font-size: 24px;
  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: 28px;
  height: 28px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 40px;
    }
    .page-about__heading {
        font-size: 30px;
    }
    .page-about__mission-vision .page-about__container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-top: 160px !important; /* Mobile: Adjust based on fixed header height */
        padding-bottom: 40px;
    }
    .page-about__hero-title {
        font-size: 32px;
    }
    .page-about__hero-subtitle {
        font-size: 18px;
    }
    .page-about__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    .page-about__section {
        padding: 60px 0;
    }
    .page-about__container {
        padding: 0 15px;
    }
    .page-about__heading {
        font-size: 26px;
        margin-bottom: 30px;
    }
    .page-about__sub-heading {
        font-size: 20px;
    }
    .page-about__paragraph {
        font-size: 16px;
        text-align: left;
    }
    .page-about__section.page-about__dark-bg .page-about__paragraph {
        text-align: left;
    }
    .page-about__image {
        margin-top: 20px;
    }
    .page-about__values-grid,
    .page-about__expertise-grid,
    .page-about__advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-about__value-card,
    .page-about__expertise-item,
    .page-about__advantage-card {
        padding: 20px;
    }
    .page-about__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-about__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-about__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-about__faq-answer {
        padding: 0 15px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px !important;
    }
    /* Mobile image responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__cta-button--large {
        font-size: 18px;
        padding: 15px 30px;
    }
}