/* style/blog.css */

/* Variables from custom palette */
:root {
    --winph-primary: #F2C14E;
    --winph-secondary: #FFD36B;
    --winph-card-bg: #111111;
    --winph-background: #0A0A0A;
    --winph-text-main: #FFF6D6;
    --winph-border: #3A2A12;
    --winph-glow: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --header-offset: 120px; /* Default desktop offset, will be overridden by shared.css if present */
}

/* Global styles for .page-blog content scope */
.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--winph-text-main); /* Light text for dark body background */
    background-color: var(--winph-background); /* Ensure consistent background */
}

/* Ensure content is not hidden by fixed header */
.page-blog__hero-section {
    padding-top: var(--header-offset); 
}

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

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

.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;
}

/* Buttons */
.page-blog__btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--button-gradient);
    color: #ffffff; /* White text for gradient button */
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    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);
}

.page-blog__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: var(--winph-primary);
    text-decoration: none;
    border: 2px solid var(--winph-primary);
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.page-blog__btn-secondary:hover {
    background-color: var(--winph-primary);
    color: #ffffff;
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #F2C14E, #FFD36B); /* Brand colors for hero background */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding-bottom: 50px; 
}

.page-blog__hero-content-wrapper {
    display: flex;
    flex-direction: column; 
    align-items: center;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    gap: 40px;
    z-index: 2;
}

.page-blog__hero-text-content {
    text-align: center;
    max-width: 800px;
}

.page-blog__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); 
    color: #ffffff; /* White text for hero H1 */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.1;
    letter-spacing: 0.05em;
}

.page-blog__hero-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-blog__hero-image-container {
    width: 100%;
    max-width: 800px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Dark sections for consistent background */
.page-blog__dark-section {
    background-color: var(--winph-background);
    color: var(--winph-text-main);
    padding: 80px 0;
}

/* Latest Articles Section */
.page-blog__latest-articles-section {
    padding: 80px 0;
}

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

.page-blog__article-card {
    background-color: var(--winph-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 1px solid var(--winph-border);
}

.page-blog__article-card:hover {
    transform: translateY(-5px);
}

.page-blog__article-image-wrapper {
    width: 100%;
    height: 250px; 
    overflow: hidden;
}

.page-blog__article-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-blog__article-content {
    padding: 25px;
}

.page-blog__article-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    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-meta {
    font-size: 0.9em;
    color: #bbb;
    margin-bottom: 15px;
}

.page-blog__article-meta a {
    color: #bbb;
    text-decoration: none;
}

.page-blog__article-meta a:hover {
    text-decoration: underline;
}

.page-blog__article-excerpt {
    font-size: 1em;
    color: var(--winph-text-main);
    margin-bottom: 20px;
}

.page-blog__read-more-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.page-blog__read-more-btn:hover {
    transform: translateY(-2px);
}

.page-blog__view-all-wrapper {
    text-align: center;
    margin-top: 20px;
}

/* Deep Dives Section */
.page-blog__deep-dives-section {
    background-color: #1a1a1a; /* Slightly lighter dark background */
}

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

.page-blog__strategy-item {
    background-color: var(--winph-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--winph-border);
    transition: background-color 0.3s ease;
}

.page-blog__strategy-item:hover {
    background-color: #1f1f1f;
}

.page-blog__strategy-title {
    font-size: 1.4em;
    color: var(--winph-primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-blog__strategy-text {
    font-size: 1em;
    color: var(--winph-text-main);
    margin-bottom: 20px;
}

.page-blog__read-more-link {
    color: var(--winph-secondary);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-blog__read-more-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Promotions Section */
.page-blog__promotions-section {
    padding: 80px 0;
}

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

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

.page-blog__promo-title {
    font-size: 1.6em;
    color: var(--winph-primary);
    margin-bottom: 15px;
}

.page-blog__promo-text {
    font-size: 1em;
    color: var(--winph-text-main);
    margin-bottom: 25px;
}

.page-blog__promo-btn {
    width: 100%;
    max-width: 250px;
}

/* Safety Section */
.page-blog__safety-section {
    background-color: #1a1a1a;
}

.page-blog__safety-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-blog__safety-item {
    background-color: var(--winph-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--winph-border);
}

.page-blog__safety-heading {
    font-size: 1.4em;
    color: var(--winph-primary);
    margin-bottom: 10px;
}

.page-blog__safety-text {
    font-size: 1em;
    color: var(--winph-text-main);
}

.page-blog__safety-cta-wrapper {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* App Section */
.page-blog__app-section {
    padding: 80px 0;
}

.page-blog__app-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    text-align: center;
}

.page-blog__app-text-content {
    max-width: 700px;
}

.page-blog__app-features-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__app-features-list li {
    font-size: 1.1em;
    color: var(--winph-text-main);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-blog__app-features-list li i {
    color: var(--winph-secondary);
    font-size: 1.2em;
}

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

.page-blog__app-download-btn,
.page-blog__app-login-btn {
    min-width: 180px; 
}

.page-blog__app-image-container {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-blog__app-image {
    width: 100%;
    height: auto;
    display: block;
}

.page-blog__app-note {
    font-size: 0.9em;
    color: #bbb;
    margin-top: 20px;
}

/* FAQ Section */
.page-blog__faq-section {
    background-color: #1a1a1a;
}

.page-blog__faq-list {
    max-width: 800px;
    margin: 0 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: background-color 0.0s ease; /* Reduced transition to 0.0s for immediate hover feedback */
}

.page-blog__faq-item:hover {
    background-color: #1f1f1f;
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--winph-primary);
    transition: color 0.3s ease;
}

.page-blog__faq-question:hover {
    color: var(--winph-secondary);
}

.page-blog__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.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, padding 0.3s ease;
    color: var(--winph-text-main);
}

.page-blog__faq-item.active .page-blog__faq-answer {
    max-height: 1000px !important; 
    padding: 15px 25px 25px;
}

.page-blog__faq-answer p {
    margin: 0;
    font-size: 1em;
}