/* style/about.css */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #1A1A1A; /* Dark Grey */
    --accent-color: #DC3545; /* Red for emphasis */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #0d0d0d;
    --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
    --border-color-dark-mode: rgba(255, 255, 255, 0.2);
}

.page-about {
    padding-top: 120px; /* Adjust based on actual header height */
    color: var(--text-light); /* Light text for dark body background */
    background-color: var(--bg-dark);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

.page-about__hero-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #333333 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--primary-color);
}

.page-about__hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: page-about__rotate 20s linear infinite;
    z-index: 0;
}

@keyframes page-about__rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.page-about__hero-title {
    font-size: 3.2em;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
    font-weight: bold;
}

.page-about__hero-description {
    font-size: 1.2em;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 40px auto;
    position: relative;
    z-index: 1;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

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

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

.page-about__cta-button--primary:hover {
    background: darken(var(--primary-color), 10%);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-about__cta-button--secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-about__cta-button--secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-about__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: bold;
}

.page-about__sub-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-about__dark-section {
    background-color: var(--secondary-color);
    padding: 60px 0;
    border-top: 1px solid var(--border-color-dark-mode);
    border-bottom: 1px solid var(--border-color-dark-mode);
}

.page-about__mission-vision-section {
    padding: 80px 0;
}

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

.page-about__grid--3-cols {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-about__card {
    background: var(--card-bg-dark-mode);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid var(--border-color-dark-mode);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

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

.page-about__card-text {
    font-size: 1em;
    color: var(--text-light);
}

.page-about__history-section {
    padding: 80px 0;
}

.page-about__content-block {
    font-size: 1.1em;
    color: var(--text-light);
    line-height: 1.8;
}

.page-about__content-block p {
    margin-bottom: 20px;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin: 20px 0;
    display: block;
}

.page-about__image--left {
    float: left;
    margin-right: 30px;
    margin-bottom: 15px;
    width: 400px; /* Recommended size */
    height: 300px; /* Recommended size */
    object-fit: cover;
}

.page-about__image--right {
    float: right;
    margin-left: 30px;
    margin-bottom: 15px;
    width: 400px; /* Recommended size */
    height: 300px; /* Recommended size */
    object-fit: cover;
}

.page-about__values-section {
    padding: 80px 0;
}

.page-about__value-item {
    background: var(--card-bg-dark-mode);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color-dark-mode);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.page-about__value-item:hover {
    background-color: rgba(255, 215, 0, 0.1);
}

.page-about__value-icon {
    width: 120px; /* Recommended size */
    height: 120px; /* Recommended size */
    margin-bottom: 20px;
    object-fit: contain;
}

.page-about__value-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

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

.page-about__why-choose-us-section {
    padding: 80px 0;
}

.page-about__why-choose-us-section p {
    margin-bottom: 15px;
}

.page-about__responsible-gaming-section {
    padding: 80px 0;
}

.page-about__responsible-gaming-section ul {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-about__responsible-gaming-section li {
    background: var(--card-bg-dark-mode);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color-dark-mode);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-size: 1.05em;
    color: var(--text-light);
}

.page-about__responsible-gaming-section li strong {
    color: var(--primary-color);
}

.page-about__responsible-gaming-section li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-about__responsible-gaming-section li a:hover {
    text-decoration: underline;
}

.page-about__join-us-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--secondary-color);
    border-top: 2px solid var(--primary-color);
}

.page-about__join-us-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-light);
}

/* Clearfix for floated images */
.page-about__content-block::after {
    content: '';
    display: table;
    clear: both;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 2.8em;
    }

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

    .page-about__image--left,
    .page-about__image--right {
        width: 300px;
        height: 225px;
        margin-left: 20px;
        margin-right: 20px;
    }
}

@media (max-width: 768px) {
    .page-about {
        padding-top: 100px !important; /* Mobile: Adjust based on actual mobile header height */
        font-size: 15px;
    }

    .page-about__container {
        padding: 0 15px;
    }

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

    .page-about__hero-title {
        font-size: 2.2em;
    }

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

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

    .page-about__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 auto;
    }

    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-about__sub-title {
        font-size: 1.5em;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-about__dark-section,
    .page-about__mission-vision-section,
    .page-about__history-section,
    .page-about__values-section,
    .page-about__why-choose-us-section,
    .page-about__responsible-gaming-section,
    .page-about__join-us-section {
        padding: 40px 0;
    }

    .page-about__grid {
        grid-template-columns: 1fr;
    }

    .page-about__grid--3-cols {
        grid-template-columns: 1fr;
    }

    .page-about__image--left,
    .page-about__image--right {
        float: none;
        margin: 20px auto;
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }

    .page-about__content-block p {
        text-align: justify;
    }

    .page-about__value-icon {
        width: 80px;
        height: 80px;
    }

    .page-about__value-title {
        font-size: 1.4em;
    }

    .page-about__value-text {
        font-size: 0.9em;
    }

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

    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__content-block,
    .page-about__value-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__hero-section .page-about__container {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Ensure images within content blocks are responsive */
.page-about__content-block img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Specific overrides for mobile button and image containers */
@media (max-width: 768px) {
    .page-about__cta-buttons {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
        overflow: hidden;
    }
    .page-about__image--left,
    .page-about__image--right {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        float: none !important;
    }
    .page-about__content-block {
        padding-left: 15px;
        padding-right: 15px;
    }
}