/* style/about.css */
:root {
  --primary-color: #0A2463;
  --secondary-color: #E34234;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0f0f0f;
  --bg-light-card: rgba(255, 255, 255, 0.1);
  --border-color: #444;
  --shadow-color: rgba(0, 0, 0, 0.3);
}

.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Body background is dark, so text is light */
  line-height: 1.6;
  background-color: var(--bg-dark); /* Inherited from shared.css, just for clarity */
  padding-top: 120px; /* Adjust for fixed header on desktop */
}

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

.page-about__hero-section {
  text-align: center;
  padding: 60px 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a70 100%);
  box-shadow: 0 4px 15px var(--shadow-color);
}

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

.page-about__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  color: #e0e0e0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

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

.page-about__cta-button--secondary {
  background: #f0f0f0;
  color: var(--primary-color);
}

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

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

.page-about__text-block {
  font-size: 17px;
  margin-bottom: 25px;
  line-height: 1.8;
  text-align: justify;
  color: #e0e0e0;
}

.page-about__mission-vision-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__text-block,
.page-about__dark-section .page-about__card-title,
.page-about__dark-section .page-about__card-text {
  color: var(--text-light);
}

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

.page-about__mission-card, .page-about__vision-card, .page-about__advantage-card {
  background: var(--bg-light-card);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.page-about__mission-card:hover, .page-about__vision-card:hover, .page-about__advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px var(--shadow-color);
}

.page-about__card-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  max-width: 100%;
  height: auto;
  display: block;
}

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

.page-about__card-text {
  font-size: 16px;
  color: #e0e0e0;
  line-height: 1.7;
  text-align: justify;
}

.page-about__history-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
}

.page-about__timeline {
  position: relative;
  max-width: 800px;
  margin: 60px auto;
  padding: 20px 0;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--secondary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.page-about__timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
  box-sizing: border-box;
}

.page-about__timeline-item::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: var(--primary-color);
  border: 4px solid var(--secondary-color);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.page-about__timeline-item:nth-child(odd) {
  left: 0;
}

.page-about__timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 70px;
}

.page-about__timeline-item:nth-child(even)::after {
  left: -17px;
}

.page-about__timeline-year {
  font-size: 22px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-about__timeline-description {
  font-size: 16px;
  color: #e0e0e0;
  line-height: 1.7;
  background: var(--bg-light-card);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow-color);
}

.page-about__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin-top: 50px;
  box-shadow: 0 4px 15px var(--shadow-color);
  max-width: 100%;
  box-sizing: border-box;
}

.page-about__advantages-section {
  padding: 80px 0;
  background-color: var(--primary-color);
}

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

.page-about__advantage-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 15px;
  object-fit: contain;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-about__cta-section {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 4px 15px var(--shadow-color);
  border: 1px solid var(--border-color);
}

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

.page-about__fair-play-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
}

.page-about__image-centered {
  display: block;
  margin: 40px auto 0;
  width: 80%; /* Adjust as needed */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px var(--shadow-color);
  max-width: 100%;
  box-sizing: border-box;
}

.page-about__future-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 40px;
  }
  .page-about__section-title {
    font-size: 32px;
  }
  .page-about__hero-description {
    font-size: 18px;
  }
  .page-about__text-block {
    font-size: 16px;
  }
  .page-about__card-title {
    font-size: 22px;
  }
  .page-about__card-text {
    font-size: 15px;
  }
  .page-about__timeline-item {
    padding: 10px 20px;
  }
  .page-about__timeline-item:nth-child(even) {
    padding-left: 50px;
  }
  .page-about__cta-text {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-about {
    padding-top: 100px !important; /* Adjust for fixed header on mobile */
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__hero-section {
    padding: 40px 0;
  }
  .page-about__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-about__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-about__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-about__text-block {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-about__mission-vision-section,
  .page-about__history-section,
  .page-about__advantages-section,
  .page-about__fair-play-section,
  .page-about__future-section {
    padding: 50px 0;
  }
  .page-about__grid,
  .page-about__advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-about__card-title {
    font-size: 20px;
  }
  .page-about__card-text {
    font-size: 14px;
  }
  .page-about__timeline::before {
    left: 15px;
  }
  .page-about__timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 15px;
  }
  .page-about__timeline-item::after {
    left: 8px;
    margin-left: 0;
  }
  .page-about__timeline-item:nth-child(even) {
    left: 0;
    padding-left: 50px;
  }
  .page-about__timeline-item:nth-child(even)::after {
    left: 8px;
  }
  .page-about__image-full-width,
  .page-about__image-centered {
    width: 90% !important;
    margin-left: auto;
    margin-right: auto;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-about__cta-section {
    padding: 30px 20px;
  }
  .page-about__cta-text {
    font-size: 18px;
    margin-bottom: 20px;
  }
  .page-about__advantage-card,
  .page-about__mission-card,
  .page-about__vision-card {
    padding: 25px;
  }
  /* Ensure all images are responsive */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Ensure all image containers are responsive */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__grid,
  .page-about__advantages-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent overflow */
  }
  /* Special handling for sections that might not have direct padding */
  .page-about__hero-section .page-about__container,
  .page-about__mission-vision-section .page-about__container,
  .page-about__history-section .page-about__container,
  .page-about__advantages-section .page-about__container,
  .page-about__fair-play-section .page-about__container,
  .page-about__future-section .page-about__container {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 28px;
  }
  .page-about__section-title {
    font-size: 24px;
  }
  .page-about__cta-button {
    padding: 10px 20px;
    font-size: 15px;
  }
  .page-about__timeline-year {
    font-size: 18px;
  }
  .page-about__cta-text {
    font-size: 16px;
  }
}