/* style/about.css */
/* Base styles for the About Us page, ensuring high contrast on a dark background */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF6D6; /* Main text color for dark background */
    background-color: #0A0A0A; /* Page background color */
}

/* Ensure headings have proper contrast */
.page-about h1,
.page-about h2,
.page-about h3,
.page-about h4,
.page-about h5,
.page-about h6 {
    color: #FFF6D6; /* Default heading color */
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-about__section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
    color: #F2C14E; /* Highlight section titles with brand primary color */
    font-weight: 700;
}

.page-about__sub-title {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: #FFD36B; /* Highlight sub-titles with brand secondary color */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    text-align: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    background-color: #0A0A0A; /* Ensure dark background for hero */
    overflow: hidden;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-about__hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1; /* Ensure text is above any potential background elements */
}

.page-about__hero-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 700;
    color: #FFF6D6;
    margin-bottom: 1rem;
    max-width: 90%; /* Prevent title from being too wide */
    margin-left: auto;
    margin-right: auto;
}

.page-about__hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #FFF6D6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General Container for content sections */
.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Dark Section styling */
.page-about__dark-section {
    background-color: #0A0A0A; /* Explicitly set dark background */
    color: #FFF6D6; /* Ensure light text */
}

/* Grid Layouts */
.page-about__grid-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.page-about__grid-two-col-reverse {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}
.page-about__grid-two-col-reverse .page-about__text-block { order: 2; }
.page-about__grid-two-col-reverse .page-about__image-block { order: 1; }

.page-about__image-block img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Min size for content images */
    min-height: 200px; /* Min size for content images */
}

.page-about__text-block p {
    margin-bottom: 1rem;
    color: #FFF6D6;
}

.page-about__mt-40 {
    margin-top: 40px;
}

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

.page-about__feature-card {
    background-color: #111111; /* Card background color */
    color: #FFF6D6; /* Card text color */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px; /* Ensure cards have a minimum height */
    border: 1px solid #3A2A12; /* Border color */
}

.page-about__card-title {
    font-size: 1.5rem;
    color: #F2C14E; /* Card title color */
    margin-bottom: 1rem;
}

.page-about__feature-card p {
    font-size: 1rem;
    color: #FFF6D6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-text-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Ensure padding is included in width */
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #111111; /* Dark text for bright button */
    border: none;
}

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

.page-about__btn-secondary {
    background-color: transparent;
    color: #F2C14E; /* Brand color text */
    border: 2px solid #F2C14E; /* Brand color border */
}

.page-about__btn-secondary:hover {
    background-color: #F2C14E;
    color: #111111; /* Dark text on brand color background */
    transform: translateY(-2px);
}

.page-about__btn-text-link {
    background: none;
    border: none;
    color: #FFD36B; /* Secondary brand color for text links */
    padding: 0;
    text-decoration: underline;
    font-size: 0.95rem;
}

.page-about__btn-text-link:hover {
    color: #F2C14E;
    text-decoration: none;
}

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

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

.page-about__faq-item {
    background-color: #111111; /* Card background */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #111111; /* Question background */
    color: #FFF6D6; /* Question text */
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: #1a1a1a;
}

.page-about__faq-title {
    margin: 0;
    color: #FFF6D6;
    font-size: 1.1rem;
}

.page-about__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #F2C14E; /* Toggle icon color */
}

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg);
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #FFF6D6; /* Answer text color */
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 15px 25px 20px; /* Padding when active */
}

.page-about__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
    color: #FFF6D6;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-about__grid-two-col,
    .page-about__grid-two-col-reverse {
        grid-template-columns: 1fr;
    }
    .page-about__grid-two-col-reverse .page-about__text-block { order: 1; }
    .page-about__grid-two-col-reverse .page-about__image-block { order: 2; }

    .page-about__hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-about__section-title {
        font-size: 2rem;
    }
    .page-about__sub-title {
        font-size: 1.5rem;
    }
}

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

    .page-about__hero-section {
        padding: 10px 15px 40px;
    }

    .page-about__container {
        padding: 30px 15px;
    }

    .page-about__hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about a[class*="button"],
    .page-about a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__cta-buttons,
    .page-about__button-group,
    .page-about__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-about__cta-buttons {
        flex-direction: column;
    }

    .page-about__image-block img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: unset !important; /* Reset min-width for mobile */
        min-height: unset !important; /* Reset min-height for mobile */
    }
    
    .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__hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-about__section-title {
        font-size: 1.8rem;
    }
    .page-about__sub-title {
        font-size: 1.3rem;
    }

    .page-about__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-about__faq-answer {
        padding: 0 20px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 10px 20px 15px;
    }
}

/* Ensure all images are responsive by default */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Text contrast fix for any element that might accidentally have low contrast */
.page-about__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-about__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}