/* style/about.css */

/* CSS variables for colors from the custom palette */
:root {
    --color-deep-navy: #08162B;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --card-bg: #10233F;
    --card-bg-rgb: 16, 35, 63; /* RGB for card-bg to use in rgba() */
    --border-color: #244D84;
    --gold: #F2C14E;
    --button-gradient-start: #2B73F6;
    --button-gradient-end: #1144A6;
}

/* General styles for the about page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Light text on dark body background */
    background-color: var(--color-deep-navy); /* From shared.css */
}

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

.page-about__section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.page-about__text-block {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    text-align: center;
    background-color: var(--color-deep-navy);
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    position: relative;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly dim the image for text contrast */
}

.page-about__hero-content {
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.page-about__main-title {
    font-size: clamp(36px, 4vw, 48px); /* Responsive font size for desktop */
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-about__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* For mobile responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-about__btn--primary {
    background: linear-gradient(180deg, var(--button-gradient-start) 0%, var(--button-gradient-end) 100%);
    color: var(--text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-about__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.page-about__btn--secondary {
    background: transparent;
    color: var(--gold); /* Use gold for secondary button text */
    border: 2px solid var(--gold);
}

.page-about__btn--secondary:hover {
    background: var(--gold);
    color: var(--color-deep-navy); /* Dark text on gold hover */
    transform: translateY(-2px);
}

/* Mission Section */
.page-about__mission-section {
    padding: 80px 0;
    background-color: var(--color-deep-navy);
}

.page-about__image-content {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin: 40px auto 0;
    max-width: 800px; /* Constrain image width */
    object-fit: cover;
}

/* Why Choose Section */
.page-about__why-choose-section {
    padding: 80px 0;
    background-color: var(--color-deep-navy);
}

.page-about__features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.page-about__feature-card {
    background-color: var(--card-bg); /* Dark card background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-about__feature-title {
    font-size: 24px;
    color: var(--gold); /* Gold for feature titles */
    margin-bottom: 15px;
    font-weight: 700;
}

.page-about__feature-text {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--color-deep-navy); /* Already dark */
}

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 0;
    background-color: var(--color-deep-navy);
}

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

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color); /* Dark border for dark theme */
  overflow: hidden;
  background: var(--card-bg); /* Dark card background */
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main); /* Light text for question */
}
details.page-about__faq-item summary.page-about__faq-question::-webkit-details-marker {
  display: none;
}
details.page-about__faq-item summary.page-about__faq-question:hover {
  background: rgba(var(--card-bg-rgb), 0.8); /* Slightly lighter dark background on hover */
}
.page-about__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--gold); /* Gold for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-about__faq-item .page-about__faq-answer {
  padding: 0 25px 20px;
  background: var(--card-bg); /* Dark card background */
  border-radius: 0 0 8px 8px;
  color: var(--text-secondary); /* Secondary light text for answer */
  font-size: 16px;
}
.page-about__faq-answer p {
    margin: 0;
}


/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: clamp(36px, 4.5vw, 48px);
    }
    .page-about__description {
        font-size: 18px;
    }
    .page-about__section-title {
        font-size: 32px;
    }
    .page-about__features-grid {
        grid-template-columns: 1fr; /* Single column on tablets */
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    .page-about__feature-card {
        padding: 25px;
    }
    .page-about__feature-title {
        font-size: 22px;
    }
    .page-about__feature-text {
        font-size: 16px;
    }
    .page-about__text-block {
        font-size: 17px;
    }
    .page-about__image-content {
        max-width: 700px;
    }
    details.page-about__faq-item summary.page-about__faq-question {
        padding: 18px 20px;
    }
    .page-about__faq-qtext {
        font-size: 17px;
    }
    details.page-about__faq-item .page-about__faq-answer {
        padding: 0 20px 15px;
    }
}

@media (max-width: 768px) {
    /* Hero Section */
    .page-about__hero-section {
        padding-top: 10px !important; /* Ensure small padding */
        padding-bottom: 40px;
    }
    .page-about__hero-image-wrapper {
        max-height: 250px;
    }
    .page-about__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-about__main-title {
        font-size: clamp(30px, 8vw, 40px); /* Responsive font size */
        margin-bottom: 15px;
    }
    .page-about__description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    /* Buttons */
    .page-about__btn,
    .page-about__btn--primary,
    .page-about__btn--secondary,
    .page-about a[class*="button"],
    .page-about a[class*="btn"] {
        padding: 12px 20px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: auto;
        margin-right: auto;
    }
    .page-about__hero-content .page-about__btn {
        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 {
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
    }

    /* Sections */
    .page-about__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-about__text-block {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-about__mission-section,
    .page-about__why-choose-section,
    .page-about__responsible-gaming-section,
    .page-about__faq-section {
        padding: 50px 0;
    }
    .page-about__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-about__image-content {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
    .page-about__hero-image-wrapper,
    .page-about__mission-section,
    .page-about__why-choose-section,
    .page-about__responsible-gaming-section,
    .page-about__faq-section,
    .page-about__feature-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Features Grid */
    .page-about__features-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
        gap: 20px;
        margin-top: 30px;
    }
    .page-about__feature-card {
        padding: 25px;
    }
    .page-about__feature-title {
        font-size: 20px;
    }
    .page-about__feature-text {
        font-size: 15px;
    }

    /* FAQ Section */
    details.page-about__faq-item summary.page-about__faq-question { padding: 15px; }
    .page-about__faq-qtext { font-size: 16px; }
    .page-about__faq-toggle { font-size: 24px; width: 24px; }
    details.page-about__faq-item .page-about__faq-answer {
        padding: 0 15px 15px;
        font-size: 15px;
    }
}