/* style/about.css */

:root {
    --primary-color: #C61F1F;
    --secondary-color: #E53030;
    --button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
    --card-bg: #2A1212;
    --site-bg: #140C0C;
    --text-main-color: #FFF1E8;
    --border-color: #6A1E1E;
    --gold-color: #F3C54D;
    --deep-red-color: #7E0D0D;
}

.page-about {
    font-family: Arial, sans-serif;
    color: var(--text-main-color);
    background-color: var(--site-bg);
    line-height: 1.6;
    padding-bottom: 50px;
}

.page-about__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    background-color: var(--deep-red-color);
    color: var(--text-main-color);
    text-align: center;
    overflow: hidden;
    padding-bottom: 40px;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px;
}

.page-about__hero-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.page-about__main-title {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--gold-color);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__intro-text {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-main-color);
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-about__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-about__btn-secondary {
    background-color: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
}

.page-about__btn-secondary:hover {
    background-color: var(--gold-color);
    color: var(--site-bg);
    transform: translateY(-2px);
}

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

.page-about__section-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-about__mission-vision-section,
.page-about__why-choose-us-section,
.page-about__team-values-section,
.page-about__faq-section {
    padding: 50px 0;
    background-color: var(--site-bg);
}

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

.page-about__card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    color: var(--text-main-color);
}

.page-about__card:hover {
    transform: translateY(-5px);
}

.page-about__card-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-about__card-title {
    font-size: 24px;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-about__card-text {
    font-size: 16px;
    color: var(--text-main-color);
}

.page-about__feature-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.page-about__feature-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: var(--text-main-color);
}

.page-about__feature-title {
    font-size: 22px;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.page-about__feature-description {
    font-size: 16px;
    color: var(--text-main-color);
}

.page-about__text-block {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--text-main-color);
}

.page-about__value-list {
    list-style: none;
    padding: 0;
    max-width: 700px;
    margin: 0 auto 40px auto;
    text-align: left;
    color: var(--text-main-color);
}

.page-about__value-item {
    font-size: 17px;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.page-about__value-item::before {
    content: '★';
    color: var(--gold-color);
    position: absolute;
    left: 0;
    font-size: 18px;
    line-height: 1;
}

.page-about__team-image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 40px auto 0 auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    min-width: 200px;
    min-height: 200px;
}

/* FAQ Section */
.page-about__faq-list {
    margin-top: 30px;
}

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  color: var(--text-main-color);
}
details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-about__faq-item summary.page-about__faq-question::-webkit-details-marker {
  display: none;
}
details.page-about__faq-item summary.page-about__faq-question:hover {
  background: var(--deep-red-color);
}
.page-about__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--gold-color);
}
.page-about__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-about__faq-item .page-about__faq-answer {
  padding: 0 20px 20px;
  background: rgba(0, 0, 0, 0.2); /* Slightly lighter background for answer */
  border-radius: 0 0 5px 5px;
  color: var(--text-main-color);
}
.page-about__faq-answer p {
    margin: 0;
}

/* General image responsiveness */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: 38px;
    }
    .page-about__section-title {
        font-size: 34px;
    }
    .page-about__intro-text,
    .page-about__text-block,
    .page-about__card-text,
    .page-about__feature-description,
    .page-about__value-item {
        font-size: 17px;
    }
    .page-about__card-title {
        font-size: 22px;
    }
    .page-about__feature-title {
        font-size: 20px;
    }
    .page-about__card-image {
        max-height: 250px;
    }
    .page-about__hero-image-wrapper {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-about__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
    }

    .page-about__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 20px;
    }

    .page-about__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px;
    }

    .page-about__hero-content-wrapper {
        padding: 0 15px;
    }

    .page-about__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-about__intro-text {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .page-about__cta-buttons {
        flex-direction: column !important; /* Force vertical stacking */
        gap: 15px;
        padding: 0 15px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 16px;
    }

    .page-about__container {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-about__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .page-about__card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__card {
        padding: 25px;
    }

    .page-about__card-image {
        max-height: 200px;
        min-width: 200px;
        min-height: 200px;
    }

    .page-about__card-title {
        font-size: 20px;
    }

    .page-about__feature-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__feature-item {
        padding: 20px;
    }

    .page-about__feature-title {
        font-size: 18px;
    }

    .page-about__text-block {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .page-about__value-item {
        font-size: 16px;
    }

    .page-about__team-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px;
        min-height: 200px;
    }

    details.page-about__faq-item summary.page-about__faq-question {
        padding: 15px;
    }
    .page-about__faq-qtext {
        font-size: 16px;
    }
    .page-about__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
        margin-left: 10px;
    }
    details.page-about__faq-item .page-about__faq-answer {
        padding: 0 15px 15px;
    }

    /* Ensure all images are responsive */
    .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,
    .page-about__hero-section,
    .page-about__mission-vision-section,
    .page-about__why-choose-us-section,
    .page-about__team-values-section,
    .page-about__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden;
    }
}