/* style/blog.css */

.page-blog {
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-top: var(--header-offset, 120px);
}

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

.page-blog__hero-section {
    position: relative;
    text-align: center;
    overflow: hidden;
    padding-bottom: 60px; /* Space below hero content */
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    filter: brightness(0.6);
    min-height: 400px; /* Ensure image is not too small */
}

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

.page-blog__hero-title {
    font-size: 3.5em;
    color: #D4AF37;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.page-blog__hero-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 40px;
    line-height: 1.6;
}

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

.page-blog__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__button--primary {
    background-color: #D4AF37;
    color: #1A202C;
    border: 2px solid #D4AF37;
}

.page-blog__button--primary:hover {
    background-color: #e1c773;
    border-color: #e1c773;
    color: #1A202C;
}

.page-blog__button--secondary {
    background-color: transparent;
    color: #D4AF37;
    border: 2px solid #D4AF37;
}

.page-blog__button--secondary:hover {
    background-color: #D4AF37;
    color: #1A202C;
}

.page-blog__section-title {
    font-size: 2.8em;
    color: #D4AF37;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-blog__section-intro {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

.page-blog__articles-section,
.page-blog__categories-section,
.page-blog__why-ph33-section,
.page-blog__detail-pages-section,
.page-blog__cta-section {
    padding: 80px 0;
    background-color: #1A202C;
    margin-bottom: 20px; /* Add margin between sections */
}

.page-blog__articles-section {
    background-color: #111;
}

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

.page-blog__article-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-blog__article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

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

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

.page-blog__article-title {
    font-size: 1.6em;
    color: #D4AF37;
    margin-bottom: 15px;
    line-height: 1.4;
}

.page-blog__article-link {
    color: #D4AF37;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__article-link:hover {
    color: #e1c773;
}

.page-blog__article-excerpt {
    font-size: 1em;
    color: #cccccc;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.page-blog__read-more-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #D4AF37;
    color: #1A202C;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}

.page-blog__read-more-button:hover {
    background-color: #e1c773;
}

.page-blog__categories-section {
    background-color: #1A202C;
}

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

.page-blog__category-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-blog__category-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.1);
}

.page-blog__category-image {
    width: 100%; /* Ensure images are not too small */
    height: 200px; /* Ensure images are not too small */
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
}

.page-blog__category-title {
    font-size: 1.4em;
    color: #D4AF37;
    margin-bottom: 10px;
}

.page-blog__category-link {
    color: #D4AF37;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__category-link:hover {
    color: #e1c773;
}

.page-blog__category-description {
    font-size: 0.95em;
    color: #cccccc;
    line-height: 1.5;
}

.page-blog__why-ph33-section {
    background-color: #111;
}

.page-blog__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-blog__feature-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background-color 0.3s ease;
}

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

.page-blog__feature-icon {
    width: 100%; /* Ensure images are not too small */
    max-width: 200px; /* Max size for icon-like images */
    height: 200px; /* Ensure images are not too small */
    object-fit: contain;
    margin-bottom: 20px;
}

.page-blog__feature-title {
    font-size: 1.3em;
    color: #D4AF37;
    margin-bottom: 10px;
}

.page-blog__feature-description {
    font-size: 0.95em;
    color: #cccccc;
    line-height: 1.5;
}

.page-blog__detail-pages-section {
    background-color: #1A202C;
}

.page-blog__detail-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.page-blog__detail-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__detail-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

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

.page-blog__detail-title {
    font-size: 1.8em;
    color: #D4AF37;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-blog__detail-link {
    color: #D4AF37;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__detail-link:hover {
    color: #e1c773;
}

.page-blog__detail-description {
    font-size: 1.05em;
    color: #cccccc;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.page-blog__button--details {
    background-color: #D4AF37;
    color: #1A202C;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}

.page-blog__button--details:hover {
    background-color: #e1c773;
}

.page-blog__cta-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    background-color: #111;
    overflow: hidden;
}

.page-blog__cta-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    filter: brightness(0.4);
}

.page-blog__cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.page-blog__cta-title {
    font-size: 3em;
    color: #D4AF37;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.page-blog__cta-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 40px;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .page-blog__hero-title {
        font-size: 3em;
    }
    .page-blog__section-title {
        font-size: 2.2em;
    }
    .page-blog__cta-title {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    .page-blog__hero-content {
        padding: 80px 20px 40px;
    }
    .page-blog__hero-title {
        font-size: 2.5em;
    }
    .page-blog__hero-description {
        font-size: 1em;
    }
    .page-blog__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-blog__button {
        width: 100%;
        max-width: 300px;
    }
    .page-blog__articles-section,
    .page-blog__categories-section,
    .page-blog__why-ph33-section,
    .page-blog__detail-pages-section,
    .page-blog__cta-section {
        padding: 60px 0;
    }
    .page-blog__section-title {
        font-size: 1.8em;
    }
    .page-blog__section-intro {
        font-size: 0.95em;
        margin-bottom: 40px;
    }
    .page-blog__article-image,
    .page-blog__category-image,
    .page-blog__feature-icon,
    .page-blog__detail-image {
        max-width: 100%;
        height: auto;
    }
    .page-blog__article-title {
        font-size: 1.4em;
    }
    .page-blog__category-title {
        font-size: 1.2em;
    }
    .page-blog__feature-title {
        font-size: 1.1em;
    }
    .page-blog__detail-title {
        font-size: 1.5em;
    }
    .page-blog__cta-title {
        font-size: 2em;
    }
    .page-blog__cta-description {
        font-size: 1em;
    }
    /* Mobile specific image sizing for content images */
    .page-blog__article-card img,
    .page-blog__category-card img,
    .page-blog__feature-item img,
    .page-blog__detail-card img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-blog__hero-title {
        font-size: 2em;
    }
    .page-blog__section-title {
        font-size: 1.5em;
    }
    .page-blog__cta-title {
        font-size: 1.8em;
    }
    .page-blog__button {
        padding: 12px 25px;
        font-size: 1em;
    }
}