/* style/about.css */

/* Variables for colors */
:root {
    --primary-color: #FFD700;
    --secondary-color: #8B0000;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #1a1a1a;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
}

.page-about {
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--bg-dark);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

/* --- General Section Styling --- */
.page-about__section {
    padding: 60px 20px;
    text-align: center;
}

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

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

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

.page-about h1,
.page-about h2,
.page-about h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-about h1 {
    font-size: 48px;
}

.page-about h2 {
    font-size: 38px;
    color: var(--text-light);
}

.page-about h3 {
    font-size: 28px;
}

.page-about p {
    font-size: 18px;
    margin-bottom: 20px;
}

.page-about ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: left;
}

.page-about li {
    margin-bottom: 10px;
    font-size: 17px;
    color: var(--text-light);
}

/* --- CTA Button Styling --- */
.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__cta-button--primary {
    background: var(--primary-color);
    color: var(--bg-dark);
}

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

.page-about__cta-button--secondary {
    background: var(--secondary-color);
    color: var(--text-light);
}

.page-about__cta-button--secondary:hover {
    background: #7a0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* --- Video Section --- */
.page-about__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px);
  background-color: var(--bg-dark);
}

.page-about__video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-about__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-about__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-about__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none; /* Prevent video controls from interfering with click event on <a> */
}

.page-about__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-about__video-link:hover .page-about__video-overlay {
  opacity: 1;
}

.page-about__video-click-hint {
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  background: rgba(0, 123, 255, 0.8);
  border-radius: 5px;
  white-space: nowrap;
}

.page-about__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.page-about__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--bg-dark);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
}

.page-about__play-now-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-about__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* --- Hero Section --- */
.page-about__hero-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 80px 20px;
    text-align: center;
}

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

.page-about__main-title {
    font-size: 52px;
    font-weight: bold;
    margin-bottom: 25px;
    color: var(--primary-color);
}

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

/* --- Brand Section --- */
.page-about__brand-section {
    background-color: var(--bg-dark);
    padding: 80px 20px;
    color: var(--text-light);
}

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

.page-about__brand-title {
    font-size: 42px;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.page-about__brand-intro {
    font-size: 18px;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: var(--text-light);
}

.page-about__brand-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.page-about__brand-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-about__brand-item h3.page-about__item-title {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 15px;
}

.page-about__brand-item p,
.page-about__brand-item li {
    font-size: 16px;
    line-height: 1.7;
    color: #f0f0f0;
}

.page-about__brand-item ul.page-about__value-list {
    margin-top: 15px;
    margin-bottom: 20px;
}

.page-about__brand-item ul.page-about__value-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.page-about__brand-item ul.page-about__value-list li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-about__item-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 25px;
    object-fit: cover;
}

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

.page-about__light-bg {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.page-about__cta-section {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    padding: 50px;
    border-radius: 10px;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-about__cta-text {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 30px;
    color: var(--bg-dark);
}

/* Override for CTA button in brand section to match dark background */
.page-about__cta-section .page-about__cta-button--primary {
    background: var(--bg-dark);
    color: var(--primary-color);
}

.page-about__cta-section .page-about__cta-button--primary:hover {
    background: #333;
    color: var(--primary-color);
}

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

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

.page-about__faq-title {
    font-size: 42px;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.page-about__faq-list {
    margin-top: 30px;
}

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.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;
}

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

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

.page-about__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
}

.page-about__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

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

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

.page-about__faq-item.active .page-about__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Optional: rotate to make it an 'X' or keep as '-' */
}

/* --- Blog Section --- */
.page-about__blog-section {
    background-color: var(--bg-dark);
    padding: 80px 20px;
    color: var(--text-light);
}

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

.page-about__blog-title {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.page-about__blog-intro {
    font-size: 18px;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: var(--text-light);
}

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

.page-about__blog-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-about__blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__blog-item-image {
    width: 100%;
    height: 220px; /* Fixed height for blog images */
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__blog-link {
    padding: 20px;
    text-decoration: none;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.page-about__blog-item-title {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--primary-color);
    line-height: 1.3;
}

.page-about__blog-item-excerpt {
    font-size: 16px;
    color: #f0f0f0;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-about__blog-item-date {
    font-size: 14px;
    color: #aaa;
    text-align: right;
    display: block;
}

.page-about__blog-cta {
    margin-top: 50px;
    text-align: center;
}

/* --- Image Responsive Styles --- */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Responsive Design (Mobile) --- */
@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-about__video-section,
    .page-about__hero-section,
    .page-about__brand-section,
    .page-about__faq-section,
    .page-about__blog-section {
        padding: 40px 15px;
    }

    .page-about__video-container,
    .page-about__hero-container,
    .page-about__brand-container,
    .page-about__faq-container,
    .page-about__blog-container {
        padding: 0;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-about__main-title {
        font-size: 36px;
    }

    .page-about__hero-description {
        font-size: 16px;
    }

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

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

    .page-about h2 {
        font-size: 30px;
    }

    .page-about h3 {
        font-size: 22px;
    }

    /* Video Section Mobile */
    .page-about__video-section {
      padding-top: var(--header-offset, 120px) !important;
      padding-bottom: 40px;
      padding-left: 15px;
      padding-right: 15px;
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      overflow: hidden !important;
    }
    
    .page-about__video-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 0;
      padding-right: 0;
      overflow: hidden !important;
    }
    
    .page-about__video-link {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }
    
    .page-about__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      border-radius: 4px;
      overflow: hidden !important;
    }
    
    .page-about__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      border-radius: 4px;
      object-fit: contain; 
    }
    
    .page-about__video-cta {
      margin-top: 20px;
      padding-left: 0;
      padding-right: 0;
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
    }
    
    .page-about__play-now-button {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding: 12px 30px !important;
      font-size: 16px !important;
      white-space: normal !important;
      word-wrap: break-word !important;
    }
    
    .page-about__video-click-hint {
      font-size: 14px !important;
      padding: 8px 16px !important;
    }

    /* Brand Section Mobile */
    .page-about__brand-content-grid {
        grid-template-columns: 1fr;
    }

    .page-about__brand-item {
        padding: 25px;
    }

    .page-about__brand-item h3.page-about__item-title {
        font-size: 20px;
    }

    .page-about__brand-item p,
    .page-about__brand-item li {
        font-size: 15px;
    }

    .page-about__cta-section {
        padding: 30px;
    }

    .page-about__cta-text {
        font-size: 18px;
    }

    /* FAQ Section Mobile */
    .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;
    }

    /* Blog Section Mobile */
    .page-about__blog-item-image {
        height: 180px;
    }

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

    .page-about__blog-item-excerpt {
        font-size: 14px;
    }

    /* Global image and video responsive styles for mobile */
    .page-about img,
    .page-about video,
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-about__brand-item .page-about__item-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-about__blog-item-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !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;
    }
}