/* style/about.css */

/* Variables from color scheme */
:root {
    --e2betvip-primary: #11A84E;
    --e2betvip-secondary: #22C768;
    --e2betvip-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --e2betvip-card-bg: #11271B;
    --e2betvip-bg: #08160F; /* Body background */
    --e2betvip-text-main: #F2FFF6; /* For dark backgrounds */
    --e2betvip-text-secondary: #A7D9B8;
    --e2betvip-border: #2E7A4E;
    --e2betvip-glow: #57E38D;
    --e2betvip-gold: #F2C14E;
    --e2betvip-divider: #1E3A2A;
    --e2betvip-deep-green: #0A4B2C;
}

.page-about {
    font-family: 'Arial', sans-serif;
    color: var(--e2betvip-text-main); /* Default text color for the page, as body background is dark */
    background-color: var(--e2betvip-bg); /* Ensure page content matches body background if not overridden */
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding at the bottom */
}

/* General container for content sections */
.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

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

.page-about__dark-section {
    background-color: var(--e2betvip-deep-green);
    color: var(--e2betvip-text-main);
}

.page-about__dark-bg {
    background-color: var(--e2betvip-bg);
    color: var(--e2betvip-text-main);
}

/* Headings */
.page-about__section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--e2betvip-primary);
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.page-about__sub-title {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--e2betvip-secondary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-about__hero-section .page-about__main-title {
    font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size */
    color: var(--e2betvip-gold);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 900px;
    margin: 0 auto 20px auto;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-about__section-description,
.page-about__hero-description {
    font-size: 1.1em;
    color: var(--e2betvip-text-secondary);
    max-width: 900px;
    margin: 0 auto 30px auto;
}

/* Text blocks */
.page-about__text-block {
    font-size: 1em;
    margin-bottom: 15px;
    color: var(--e2betvip-text-main);
    text-align: left;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 80px 0; /* Adjust padding as body already has padding-top */
    padding-top: 10px; /* Small top padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
}

.page-about__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Darken image for text readability */
}

.page-about__hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    padding: 20px;
    box-sizing: border-box;
}

/* CTA Buttons */
.page-about__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background: var(--e2betvip-button-gradient);
    color: var(--e2betvip-text-main);
    border: none;
}

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    opacity: 0.9;
}

.page-about__btn-secondary {
    background-color: transparent;
    color: var(--e2betvip-secondary);
    border: 2px solid var(--e2betvip-secondary);
}

.page-about__btn-secondary:hover {
    background-color: var(--e2betvip-secondary);
    color: var(--e2betvip-bg);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.page-about__btn-large {
    font-size: 1.2em;
    padding: 18px 40px;
}

.page-about__cta-center {
    margin-top: 40px;
    text-align: center;
}

/* Video Section */
.page-about__video-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--e2betvip-deep-green);
    color: var(--e2betvip-text-main);
    padding-top: 10px; /* Small top padding */
}

.page-about__video-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-about__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    width: 100%; /* Ensure width is 100% for desktop as well */
    background: #000;
    margin-top: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.page-about__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    cursor: pointer; /* Indicate clickable */
}

.page-about__video-cta {
    margin-top: 40px;
}

/* Flex layout for sections */
.page-about__flex-container {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.page-about__flex-container--reverse {
    flex-direction: row-reverse;
}

.page-about__text-column {
    flex: 1;
    min-width: 300px;
}

.page-about__image-column {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: block; /* Ensures no extra space below image */
}

/* Core Values Grid */
.page-about__values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__value-card {
    background-color: var(--e2betvip-card-bg);
    border: 1px solid var(--e2betvip-border);
    border-radius: 10px;
    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: var(--e2betvip-text-main);
}

.page-about__value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.page-about__value-icon {
    width: 200px; /* Enforce minimum size */
    height: 200px; /* Enforce minimum size */
    margin-bottom: 20px;
    display: inline-block;
    filter: drop-shadow(0 0 5px var(--e2betvip-glow));
    object-fit: contain; /* To ensure the content fits if not exactly square */
}

.page-about__value-title {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--e2betvip-secondary);
    margin-bottom: 15px;
}

.page-about__value-description {
    font-size: 0.95em;
    color: var(--e2betvip-text-secondary);
}

/* Products and Services Grid */
.page-about__products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__product-card {
    background-color: var(--e2betvip-card-bg);
    border: 1px solid var(--e2betvip-border);
    border-radius: 10px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--e2betvip-text-main);
    display: flex;
    flex-direction: column;
}

.page-about__product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.page-about__product-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency, minimum 200px */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-about__product-title {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--e2betvip-gold);
    margin-bottom: 10px;
}

.page-about__product-title a {
    color: var(--e2betvip-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-about__product-title a:hover {
    color: var(--e2betvip-secondary);
}

.page-about__product-description {
    font-size: 0.9em;
    color: var(--e2betvip-text-secondary);
    flex-grow: 1; /* Make description take available space */
    margin-bottom: 15px;
}

.page-about__btn-text {
    display: inline-flex;
    align-items: center;
    color: var(--e2betvip-secondary);
    text-decoration: none;
    font-weight: bold;
    margin-top: auto; /* Push to bottom of card */
    transition: color 0.3s ease;
}

.page-about__btn-text:hover {
    color: var(--e2betvip-gold);
}

.page-about__arrow {
    margin-left: 5px;
    font-size: 1.2em;
    line-height: 1;
}

/* Security List */
.page-about__security-list,
.page-about__responsible-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
}

.page-about__list-item {
    background-color: var(--e2betvip-card-bg);
    border: 1px solid var(--e2betvip-border);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start; /* Align items to start */
    color: var(--e2betvip-text-main);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-about__list-item strong {
    color: var(--e2betvip-secondary);
    margin-right: 8px;
    flex-shrink: 0; /* Prevent strong tag from shrinking */
}

/* Contact Methods */
.page-about__contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__contact-card {
    background-color: var(--e2betvip-card-bg);
    border: 1px solid var(--e2betvip-border);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: var(--e2betvip-text-main);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__contact-title {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--e2betvip-gold);
    margin-bottom: 15px;
}

.page-about__contact-description {
    font-size: 1em;
    color: var(--e2betvip-text-secondary);
    margin-bottom: 25px;
    flex-grow: 1;
}

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

.page-about__faq-item {
    background-color: var(--e2betvip-card-bg);
    border: 1px solid var(--e2betvip-border);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: var(--e2betvip-text-main);
    overflow: hidden; /* For transition */
}

.page-about__faq-item summary {
    list-style: none; /* Remove default marker */
}
.page-about__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit */
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--e2betvip-gold);
    cursor: pointer;
    background-color: var(--e2betvip-deep-green);
    border-bottom: 1px solid var(--e2betvip-divider);
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: var(--e2betvip-primary);
}

.page-about__faq-qtext {
    flex-grow: 1;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--e2betvip-text-main);
}

.page-about__faq-answer {
    padding: 20px;
    font-size: 0.95em;
    color: var(--e2betvip-text-secondary);
    border-top: 1px solid var(--e2betvip-divider);
}

.page-about__faq-answer p {
    margin: 0;
    text-align: left;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-about__flex-container {
        flex-direction: column;
    }

    .page-about__flex-container--reverse {
        flex-direction: column; /* Revert to default column for smaller screens */
    }

    .page-about__hero-section {
        padding: 60px 0;
        min-height: 500px;
    }

    .page-about__section-title {
        font-size: 2em;
    }

    .page-about__sub-title {
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    .page-about__container {
        padding: 30px 15px;
    }

    .page-about__content-section {
        padding: 40px 0;
    }

    .page-about__hero-section {
        padding: 40px 0;
        padding-top: 10px !important; /* body has padding-top, this is decorative */
        min-height: 400px;
    }

    .page-about__hero-section .page-about__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
    }

    .page-about__section-description,
    .page-about__hero-description {
        font-size: 1em;
    }

    .page-about__cta-group {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Constrain buttons */
        margin: 30px auto 0 auto;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
        font-size: 0.95em;
    }

    .page-about__video-section {
        padding-top: 10px !important;
    }

    .page-about__video-container,
    .page-about__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-about video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__image,
    .page-about__hero-image,
    .page-about__product-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure min size */
        min-height: 200px !important; /* Ensure min size */
    }
    
    .page-about__value-icon {
        width: 200px !important; /* Keep it at least 200px */
        height: 200px !important;
        object-fit: contain;
    }

    .page-about__value-card,
    .page-about__product-card,
    .page-about__contact-card {
        padding: 20px;
    }

    .page-about__products-grid,
    .page-about__values-grid,
    .page-about__contact-methods {
        grid-template-columns: 1fr;
    }
}

/* Ensure images in content areas are not too small */
.page-about img:not(.page-about__value-icon) {
    min-width: 200px;
    min-height: 200px;
}

/* Color contrast enforcement */
.page-about p, .page-about li, .page-about__text-block, .page-about__value-description, .page-about__product-description, .page-about__contact-description, .page-about__faq-answer p {
    color: var(--e2betvip-text-main); /* Ensure main text is light on dark background */
}

/* Specific text color overrides for secondary text */
.page-about__section-description,
.page-about__hero-description,
.page-about__value-description,
.page-about__product-description,
.page-about__contact-description,
.page-about__faq-answer {
    color: var(--e2betvip-text-secondary); /* Use secondary text color where appropriate */
}

/* Link color for product titles */
.page-about__product-title a {
    color: var(--e2betvip-gold);
}

.page-about__btn-text {
    color: var(--e2betvip-secondary);
}

/* FAQ toggle icon color */
.page-about__faq-toggle {
    color: var(--e2betvip-text-main);
}