/* style/blog.css */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #00CED1; /* Dark Turquoise */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f4f7f6;
    --bg-dark: #2c3e50;
    --accent-color: #FF6347; /* Tomato */
    --border-color: #e0e0e0;
}

.page-blog {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

.page-blog h1, .page-blog h2, .page-blog h3, .page-blog h4, .page-blog h5, .page-blog h6 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-blog h1 {
    font-size: 3em;
    text-align: center;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-blog h2 {
    font-size: 2.5em;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.page-blog h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.page-blog p {
    margin-bottom: 1em;
    font-size: 1.1em;
}

.page-blog a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Hero Section */
.page-blog .hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    overflow: hidden;
}

.page-blog .hero-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.page-blog .hero-image {
    width: 100%;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
}

.page-blog .hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease-in-out;
}

.page-blog .hero-image img:hover {
    transform: scale(1.03);
}

.page-blog .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.page-blog .hero-content p {
    font-size: 1.25em;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.page-blog .cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-blog .cta-button:hover {
    background: #ff4500; /* Darker Tomato */
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-blog .intro-section {
    padding: 60px 0;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.page-blog .intro-section p {
    text-align: justify;
    margin-bottom: 1.5em;
    font-size: 1.1em;
}

/* Featured Articles */
.page-blog .featured-articles {
    padding: 60px 0;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

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

.page-blog .article-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-blog .article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-blog .article-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.page-blog .article-card h3 {
    padding: 20px 20px 0;
    font-size: 1.5em;
    line-height: 1.3;
    color: var(--text-dark);
}

.page-blog .article-card h3 a {
    color: inherit;
    text-decoration: none;
}

.page-blog .article-card h3 a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-blog .article-card p {
    padding: 10px 20px;
    font-size: 1em;
    color: #666;
    flex-grow: 1;
}

.page-blog .read-more-button {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 20px 20px;
    background: var(--secondary-color);
    color: var(--text-light);
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.page-blog .read-more-button:hover {
    background: #00a8ad;
    text-decoration: none;
}

/* Categories Section */
.page-blog .categories-section {
    padding: 60px 0;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.page-blog .category-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-blog .category-item {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    text-align: center;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog .category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-blog .category-item a {
    display: block;
    color: var(--text-dark);
    text-decoration: none;
}

.page-blog .category-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 50%;
    background-color: var(--primary-color);
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-blog .category-item h4 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.page-blog .category-item p {
    font-size: 0.95em;
    color: #777;
}

/* Latest Articles */
.page-blog .latest-articles {
    padding: 60px 0;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.page-blog .article-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.page-blog .article-item {
    display: flex;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog .article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.page-blog .article-item img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
}

.page-blog .article-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-blog .article-content h3 {
    font-size: 1.6em;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-blog .article-content h3 a {
    color: var(--text-dark);
    text-decoration: none;
}

.page-blog .article-content h3 a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-blog .article-content p {
    font-size: 1.05em;
    color: #555;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-blog .article-content span {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 15px;
    display: block;
}

/* FAQ Section */
.page-blog .faq-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.page-blog .faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog .faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.page-blog .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-blog .faq-question:hover {
    background: #f5f5f5;
}

.page-blog .faq-question h3 {
    margin: 0;
    font-size: 1.25em;
    color: var(--text-dark);
}

.page-blog .faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.page-blog .faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--accent-color);
}

.page-blog .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    background: #fdfdfd;
    border-top: 1px solid var(--border-color);
}

.page-blog .faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height for content */
    padding: 20px 25px;
    border-top: none;
}

.page-blog .faq-answer p {
    margin-bottom: 0;
    font-size: 1.05em;
    color: #444;
    text-align: justify;
}

/* Bottom CTA Section */
.page-blog .cta-bottom-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #008b8b 100%);
    text-align: center;
    color: var(--text-light);
}

.page-blog .cta-bottom-section h2 {
    color: var(--text-light);
    font-size: 2.8em;
    margin-bottom: 25px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-blog .cta-bottom-section p {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-blog .article-item img {
        width: 250px;
        height: 180px;
    }
    .page-blog .article-content {
        padding: 20px;
    }
    .page-blog .article-content h3 {
        font-size: 1.4em;
    }
    .page-blog .hero-content h1 {
        font-size: 2.5em;
    }
    .page-blog .hero-content p {
        font-size: 1.1em;
    }
    .page-blog h2 {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-blog .hero-section {
        padding: 40px 15px;
    }
    .page-blog .hero-content h1 {
        font-size: 2em;
    }
    .page-blog .hero-content p {
        font-size: 1em;
    }
    .page-blog .cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }
    .page-blog h2 {
        font-size: 1.8em;
        margin-top: 30px;
        margin-bottom: 20px;
    }
    .page-blog h3 {
        font-size: 1.4em;
    }
    .page-blog .article-grid {
        grid-template-columns: 1fr;
    }
    .page-blog .article-card img {
        height: 200px;
    }
    .page-blog .category-list {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    .page-blog .category-item {
        padding: 15px;
    }
    .page-blog .category-item img {
        width: 60px;
        height: 60px;
    }
    .page-blog .category-item h4 {
        font-size: 1.1em;
    }
    .page-blog .article-item {
        flex-direction: column;
    }
    .page-blog .article-item img {
        width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .page-blog .article-content {
        padding: 15px;
    }
    .page-blog .article-content h3 {
        font-size: 1.3em;
    }
    .page-blog .faq-question {
        padding: 15px 20px;
    }
    .page-blog .faq-question h3 {
        font-size: 1.1em;
    }
    .page-blog .faq-toggle {
        font-size: 20px;
    }
    .page-blog .faq-answer {
        padding: 0 20px;
    }
    .page-blog .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
    .page-blog .cta-bottom-section h2 {
        font-size: 2.2em;
    }
    .page-blog .cta-bottom-section p {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .page-blog .hero-content h1 {
        font-size: 1.6em;
    }
    .page-blog h2 {
        font-size: 1.5em;
    }
    .page-blog .article-card h3 {
        font-size: 1.3em;
    }
    .page-blog .article-content h3 {
        font-size: 1.2em;
    }
    .page-blog .cta-bottom-section h2 {
        font-size: 1.8em;
    }
    .page-blog .cta-bottom-section p {
        font-size: 1em;
    }
}