/* style/about.css */

/* Variables from shared.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --background-light: #f8f8f8; /* Assuming a light background from shared */
  --background-dark: #0d0d0d; /* Placeholder if shared.css has a dark background */
  --header-offset: 120px; /* Default value, will be overridden by shared.css */
}

/* Base styles for the about page content */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
  background-color: var(--background-light); /* Default light background */
}

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

.page-about__section-title {
  font-size: 36px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__sub-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__section-intro {
  text-align: center;
  margin-bottom: 40px;
  font-size: 18px;
  color: #555;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Color contrast utility classes */
.page-about__light-bg {
  background-color: var(--background-light);
  color: var(--text-dark);
}

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

.page-about__dark-bg .page-about__section-title,
.page-about__dark-bg .page-about__sub-title {
  color: var(--text-light); /* Ensure titles are light on dark background */
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure spacing from fixed header */
  background: linear-gradient(135deg, var(--primary-color), #5cbde0); /* Gradient with primary color */
  color: var(--text-light);
  overflow: hidden; /* Prevent image overflow */
}

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

.page-about__hero-image {
  width: 100%;
  margin-bottom: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  overflow: hidden;
}

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

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

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

.page-about__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
  opacity: 0.9;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #EA7C07; /* Login color for CTA */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-about__cta-button:hover {
  background: #d46b06; /* Darken #EA7C07 */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  padding: 60px 0;
}

.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.page-about__content-grid .page-about__image-block {
  text-align: center;
}

.page-about__content-grid .page-about__image-block img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-about__text-block p {
  margin-bottom: 15px;
  font-size: 17px;
}

/* History Section */
.page-about__history-section {
  padding: 60px 0;
}

.page-about__history-timeline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  padding: 40px 0;
}

.page-about__history-timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  z-index: 0;
}

.page-about__timeline-item {
  flex: 1 1 300px;
  max-width: 300px;
  padding: 20px;
  text-align: center;
  position: relative;
  margin: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background 0.3s ease;
  z-index: 1;
}

.page-about__timeline-item:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.2);
}

.page-about__timeline-item::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 15px;
  height: 15px;
  background: var(--text-light);
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  z-index: 2;
}

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

.page-about__timeline-description {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
  padding: 60px 0;
}

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

.page-about__feature-card {
  background: var(--secondary-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-about__feature-card img {
  max-width: 100%;
  height: auto;
  min-width: 200px; /* Enforce minimum size for content images */
  min-height: 200px;
  width: 200px; /* Set a base width/height for display area */
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-about__feature-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__feature-description {
  font-size: 16px;
  color: #666;
  flex-grow: 1;
}

.page-about__button-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-about__btn-primary {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-about__btn-primary:hover {
  background: #1f8ec4; /* Darken #26A9E0 */
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 15px 30px;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.page-about__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  padding: 60px 0;
}

.page-about__responsible-gaming-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__responsible-gaming-content ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-about__responsible-gaming-content li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: rgba(255, 255, 255, 0.9);
}

.page-about__responsible-gaming-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--text-light);
  font-weight: bold;
}

.page-about__responsible-gaming-content p {
  color: rgba(255, 255, 255, 0.9);
}

.page-about__responsible-gaming-content .page-about__image-block {
  text-align: center;
}

.page-about__responsible-gaming-content .page-about__image-block img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Team Section */
.page-about__team-section {
  padding: 60px 0;
}

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

.page-about__team-member-card {
  background: var(--secondary-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__team-member-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-about__team-member-card img {
  width: 200px; /* Enforce minimum size for team member images */
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 4px solid var(--primary-color);
  box-shadow: 0 0 0 8px rgba(38, 169, 224, 0.2);
}

.page-about__member-name {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 8px;
  font-weight: bold;
}

.page-about__member-role {
  font-size: 16px;
  color: #777;
  margin-bottom: 15px;
}

.page-about__member-description {
  font-size: 15px;
  color: #555;
}

/* Contact Section */
.page-about__contact-section {
  padding: 60px 0;
  text-align: center;
}

.page-about__contact-info {
  margin-top: 30px;
  font-size: 18px;
  color: var(--text-light);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__contact-info p {
  margin-bottom: 10px;
}

.page-about__contact-info a {
  color: var(--text-light);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-about__contact-info a:hover {
  color: #f0f0f0;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 60px 0;
}

.page-about__faq-list {
  max-width: 900px;
  margin: 0 auto;
  margin-top: 40px;
}

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--secondary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-about__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}