:root {
    --winph-primary: #F2C14E;
    --winph-secondary: #FFD36B;
    --winph-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --winph-card-bg: #111111;
    --winph-background: #0A0A0A;
    --winph-text-main: #FFF6D6;
    --winph-border: #3A2A12;
    --winph-glow: #FFD36B;
    --header-offset: 120px; /* Default for desktop, adjusted by shared.css media query */
}

.page-blog {
    font-family: 'Arial', sans-serif;
    color: var(--winph-text-main); /* Light text for dark background */
    background-color: var(--winph-background); /* Dark background from shared */
    line-height: 1.6;
    padding-top: 10px; /* Small top padding for first section */
}

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

.page-blog__section {
    padding: 60px 0;
}

.page-blog__section-title {
    font-size: 2.8em;
    color: var(--winph-primary);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-blog__section-description {
    font-size: 1.1em;
    color: var(--winph-text-main);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* Hero Section */
.page-blog__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    padding-bottom: 60px;
    background: var(--winph-background);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-blog__hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
    max-width: 900px;
}

.page-blog__hero-title {
    font-size: 3.2em;
    color: var(--winph-primary);
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.page-blog__hero-description {
    font-size: 1.2em;
    color: var(--winph-text-main);
    margin-bottom: 30px;
    opacity: 0.95;
}

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

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box;
    max-width: 100%;
}

.page-blog__btn-primary {
    background: var(--winph-button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-blog__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
    opacity: 0.9;
}

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

.page-blog__btn-secondary:hover {
    background: var(--winph-primary);
    color: var(--winph-background);
    transform: translateY(-3px);
}

/* Latest Articles Grid */
.page-blog__articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-blog__article-card {
    background-color: var(--winph-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-blog__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-blog__article-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-blog__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-blog__article-title {
    font-size: 1.6em;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.3;
}

.page-blog__article-title a {
    color: var(--winph-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
    color: var(--winph-secondary);
}

.page-blog__article-excerpt {
    font-size: 0.95em;
    color: var(--winph-text-main);
    margin-bottom: 15px;
    opacity: 0.85;
    flex-grow: 1;
}

.page-blog__article-meta {
    font-size: 0.85em;
    color: var(--winph-text-main);
    opacity: 0.7;
    margin-bottom: 20px;
}

.page-blog__read-more-btn {
    display: inline-block;
    background: var(--winph-secondary);
    color: var(--winph-background);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    align-self: flex-start;
}

.page-blog__read-more-btn:hover {
    background: var(--winph-primary);
}

.page-blog__view-all-btn-container {
    text-align: center;
    margin-top: 50px;
}

/* Categories Section */
.page-blog__categories {
    background-color: var(--winph-card-bg);
}

.page-blog__dark-section .page-blog__section-title {
    color: var(--winph-primary);
}

.page-blog__dark-section .page-blog__section-description {
    color: var(--winph-text-main);
}

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

.page-blog__category-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--winph-border);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: var(--winph-text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-blog__category-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--winph-primary);
    transform: translateY(-3px);
}

.page-blog__category-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(242, 193, 78, 0.5)); /* Glow effect for icons */
}

.page-blog__category-name {
    font-size: 1.1em;
    font-weight: 600;
}

/* Featured Guides Section */
.page-blog__featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.page-blog__featured-guide-item {
    background-color: var(--winph-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-blog__featured-guide-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-blog__featured-image {
    width: 100%;
    height: 250px; /* Consistent height for featured images */
    object-fit: cover;
    display: block;
}

.page-blog__featured-title {
    font-size: 1.8em;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.2;
}

.page-blog__featured-title a {
    color: var(--winph-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__featured-title a:hover {
    color: var(--winph-secondary);
}

.page-blog__featured-excerpt {
    font-size: 1em;
    color: var(--winph-text-main);
    margin-bottom: 25px;
    opacity: 0.85;
    flex-grow: 1;
}

/* Responsible Gaming Section */
.page-blog__responsible-gaming {
    background-color: var(--winph-card-bg);
    text-align: center;
}

.page-blog__responsible-gaming-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* FAQ Section */
.page-blog__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__faq-item {
    background-color: var(--winph-card-bg);
    border: 1px solid var(--winph-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--winph-text-main);
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.03);
    transition: background-color 0.3s ease;
}

.page-blog__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.page-blog__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--winph-primary);
}

.page-blog__faq-item.active .page-blog__faq-toggle {
    transform: rotate(45deg);
}

.page-blog__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: var(--winph-text-main);
    font-size: 1em;
    opacity: 0.8;
}

.page-blog__faq-item.active .page-blog__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to accommodate content */
    padding: 15px 25px;
}

.page-blog__faq-answer p {
    margin-bottom: 0;
}

/* Join CTA Section */
.page-blog__join-cta {
    text-align: center;
    padding: 80px 0;
    background-color: var(--winph-card-bg);
    border-top: 1px solid var(--winph-border);
}

.page-blog__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-blog__section-title {
        font-size: 2.2em;
    }
    .page-blog__hero-title {
        font-size: 2.8em;
    }
    .page-blog__article-title {
        font-size: 1.4em;
    }
    .page-blog__featured-title {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .page-blog {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-blog__section {
        padding: 40px 0;
    }
    .page-blog__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header */
        padding-bottom: 40px;
    }
    .page-blog__hero-title {
        font-size: 2em;
    }
    .page-blog__hero-description {
        font-size: 1em;
    }
    .page-blog__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-blog__cta-buttons,
    .page-blog__hero-buttons {
        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-blog__articles-grid,
    .page-blog__category-grid,
    .page-blog__featured-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-blog__article-card,
    .page-blog__featured-guide-item {
        padding: 0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    .page-blog__article-image,
    .page-blog__featured-image,
    .page-blog__responsible-gaming-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-blog__card-content {
        padding: 20px;
    }
    .page-blog__section-title {
        font-size: 1.8em;
    }
    .page-blog__section-description {
        font-size: 0.9em;
    }
    .page-blog__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-blog__faq-answer {
        padding: 10px 20px;
    }
    .page-blog__category-icon {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .page-blog__hero-title {
        font-size: 1.8em;
    }
    .page-blog__section-title {
        font-size: 1.6em;
    }
    .page-blog__hero-description {
        font-size: 0.9em;
    }
}