/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  font-family: Arial, sans-serif;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  line-height: 1.6;
  padding-bottom: 60px; /* Add some bottom padding to main content */
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden; /* Ensure content doesn't spill */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for aesthetic */
    overflow: hidden;
    margin-bottom: 20px;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-about__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  z-index: 1; /* Ensure text is above image if any overlap */
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  color: #FFD36B; /* Glow color for main title */
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-about__description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #FFF6D6;
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  box-sizing: border-box; /* Include padding and border in element's total width and height */
  max-width: 100%; /* Ensure button doesn't exceed container width */
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #111111; /* Dark text for contrast */
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #FFE699 0%, #E6B033 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

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

.page-about__btn-secondary:hover {
  background: rgba(255, 211, 107, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.2);
}

/* General Section Styles */
.page-about__section {
  padding: 80px 20px;
  background-color: #0A0A0A; /* Background */
}

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

.page-about__container--centered {
    text-align: center;
}

.page-about__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #F2C14E; /* Main color */
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
  line-height: 1.3;
}

.page-about__subsection-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #FFD36B; /* Glow color */
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-about__text-block p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #FFF6D6; /* Text Main */
}

.page-about__link {
    color: #F2C14E; /* Main color for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-about__link:hover {
    color: #FFD36B; /* Glow color on hover */
}

/* Content Layout (text + image) */
.page-about__content-wrapper {
  display: flex;
  align-items: flex-start; /* Align items to the top */
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-about__content-wrapper--reversed {
  flex-direction: row-reverse;
}

.page-about__text-block {
  flex: 1;
  min-width: 300px; /* Minimum width for text block before wrapping */
}

.page-about__image-block {
  flex: 1;
  min-width: 300px; /* Minimum width for image block before wrapping */
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Feature Grid (Why Choose Us) */
.page-about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-about__card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF6D6; /* Text Main */
}

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

.page-about__card-icon {
  width: 100px; /* Example size, adjust as needed */
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-about__card-title {
  font-size: 1.4rem;
  color: #F2C14E; /* Main color */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__card p {
  font-size: 1rem;
  color: #FFF6D6; /* Text Main */
}

.page-about__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-about__feature-item {
  background-color: #111111; /* Card BG */
  border-left: 4px solid #F2C14E; /* Main color accent */
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__feature-item h4 {
  color: #FFD36B; /* Glow color */
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-about__feature-item p {
  font-size: 1rem;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 0;
}

.page-about__additional-links {
    margin-top: 30px;
}

.page-about__additional-links p {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #FFF6D6;
}

.page-about__small-text {
    font-size: 0.9rem;
    color: #AAA;
    margin-top: 20px;
}

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

.page-about__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #1A1A1A; /* Slightly darker for question */
  color: #F2C14E; /* Main color */
  font-size: 1.2rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

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

.page-about__faq-question h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #F2C14E; /* Main color */
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFD36B; /* Glow color */
  transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg); /* Plus sign becomes a cross */
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px; /* Initial padding, will expand */
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6; /* Text Main */
  font-size: 1.05rem;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

.page-about__faq-answer p {
  margin-bottom: 0;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-section {
        padding-bottom: 40px;
    }

    .page-about__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

    .page-about__description {
        font-size: 1.1rem;
    }

    .page-about__section {
        padding: 60px 20px;
    }

    .page-about__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
        margin-bottom: 40px;
    }

    .page-about__subsection-title {
        font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    }

    .page-about__text-block p {
        font-size: 1rem;
    }

    .page-about__card-title {
        font-size: 1.3rem;
    }
}

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

    .page-about__hero-section {
        padding-bottom: 30px;
    }

    .page-about__hero-image-wrapper {
        max-height: 400px; /* Adjust hero image height for mobile */
    }

    .page-about__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .page-about__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .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-left: 15px;
        padding-right: 15px;
    }

    .page-about__section {
        padding: 40px 15px;
    }

    .page-about__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 30px;
    }

    .page-about__subsection-title {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-about__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .page-about__content-wrapper--reversed {
        flex-direction: column; /* Stack vertically on mobile */
    }

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

    .page-about__card,
    .page-about__section,
    .page-about__container,
    .page-about__text-block,
    .page-about__image-block,
    .page-about__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* All images must be responsive */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__card-icon {
        width: 80px; /* Adjust icon size for mobile */
        height: auto;
    }

    .page-about__card-title {
        font-size: 1.2rem;
    }

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

    .page-about__faq-question {
        padding: 15px 20px;
        font-size: 1.1rem;
    }

    .page-about__faq-question h3 {
        font-size: 1.1rem;
    }

    .page-about__faq-answer {
        padding: 15px 20px;
        font-size: 1rem;
    }
}