/* --- Blog Specific Styles --- */
/* Note: styles.css must be loaded before this file */

/* 1. Blog Header (Landing Page) */
.blog-header {
    background-color: var(--primary-bg);
    padding: 140px 2rem 5rem;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--gold-muted);
}

.blog-page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', "Times New Roman", serif;
}

.blog-page-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 2. Blog Grid & Container */
.blog-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* 3. Blog Card Design (Premium Clean Look) */
.blog-card {
    background-color: var(--secondary-bg);
    border: 1px solid var(--gold-muted);
    border-radius: 6px;
    /* Slightly sharper styling */
    overflow: hidden;
    transition: all 0.4s ease-out;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    cursor: pointer;
}

/* Make entire card clickable */
.card-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.blog-card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    /* Increased to square aspect ratio to show more of the content */
    overflow: hidden;
    background-color: #000;
}

.blog-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* Ensure top of image is always visible */
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0.9;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.08);
    opacity: 1;
}

.blog-card-content {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    font-size: 0.8rem;
    color: var(--gold);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.blog-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    line-height: 1.35;
}

.blog-card-title a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
    background-image: linear-gradient(var(--gold), var(--gold));
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 1px;
    transition: background-size .3s, color .3s;
}

.blog-card:hover .blog-card-title a {
    color: var(--gold);
    background-size: 100% 1px;
}

.blog-excerpt {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    /* Reserve space for border */
    transition: all 0.3s ease;
}

.read-more-link:after {
    content: '→';
    margin-left: 0.5rem;
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.read-more-link:hover {
    border-bottom-color: var(--gold);
}

.read-more-link:hover:after {
    transform: translateX(6px);
}

/* 4. Single Article Page Styles (Clean Typography) */
.article-container {
    max-width: 900px;
    margin: 120px auto 4rem;
    /* Top margin for fixed header */
    padding: 0 2rem;
}

.back-link {
    display: inline-block;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.back-link:hover {
    color: var(--gold);
}

/* Article specific header (excludes main nav header) */
.article-container header.article-header {
    text-align: center;
    margin-bottom: 2rem;
}

.article-header .hero-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.25;
    margin-bottom: 1rem;
}

.article-meta {
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.article-hero-image {
    width: 100%;
    max-width: 600px;
    /* Constrain width to make it smaller as requested */
    margin: 0 auto 3rem;
    /* Center the image */
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--gold-muted);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.article-hero-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    /* Ensure full image is visible */
    display: block;
}

/* Clean Typography for content */
.article-body {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-primary);
    /* Standardized text color */
}

.article-body h2 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.article-body p {
    margin-bottom: 1.8rem;
    text-align: justify;
}

.article-body strong {
    color: var(--white);
    font-weight: 600;
}

.article-footer {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--gold-muted);
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: normal;
    text-align: center;
}

/* New: Responsive adjustments */
@media (max-width: 768px) {
    .blog-header {
        padding: 120px 1.5rem 3rem;
    }

    .blog-page-title {
        font-size: 2.2rem;
    }

    .article-container {
        margin-top: 100px;
        padding: 0 1.5rem;
    }

    .article-body {
        font-size: 1.05rem;
    }

    .blog-grid {
        gap: 2rem;
    }
}