
/* Global Resets and Fonts */
:root {
    --primary-color: #6A0572; /* Deep Plum for sophistication */
    --accent-color: #A349A4; /* Lighter Plum for hover/buttons */
    --text-dark: #1e1e1e;
    --text-light: #555;
    --bg-light: #f7f7f7; /* Soft background */
}

* {
    box-sizing: border-box;
}

/* 1. Hero Banner (Non-Slide Carousel) */
.hero-banner {
    height: 80vh; 
    background-image: url('https://via.placeholder.com/1800x1200/9b59b6/ffffff?text=Fashion+Elegance+Banner');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-overlay {
    /* Sophisticated, complex, beautiful color transition */
    background: linear-gradient(
        135deg, 
        rgba(106, 5, 114, 0.85) 0%, /* Deep Plum */
        rgba(163, 73, 164, 0.65) 100% /* Lighter Plum/Mauve */
    );
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 32px; /* 2rem -> 32px */
}

.blog-title {
    font-family: 'Playfair Display', serif; /* Elegant font for the title */
    font-size: clamp(48px, 7vw, 80px); /* Using clamp for responsiveness */
    font-weight: 700;
    margin-bottom: 8px; /* 0.5rem -> 8px */
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.blog-subtitle {
    font-size: clamp(16px, 2vw, 24px); /* Using clamp for responsiveness */
    margin-bottom: 32px; /* 2rem -> 32px */
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 13px 32px; /* 0.8rem -> 13px, 2rem -> 32px (approx) */
    background-color: #fff;
    color: var(--primary-color);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px; /* 1rem -> 16px */
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* 2. Blog Content Container */
.blog-container {
    max-width: 1400px; 
    margin: auto;
    padding: 64px 24px; /* 4rem -> 64px, 1.5rem -> 24px */
}

/* 3. Masonry Grid Layout (Magazine Style) */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 5px;
    align-items: start; /* Items align to the top of their row */
}

@media (min-width: 768px) {
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .masonry-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 10px; /* Crucial for masonry: Small row height for sizing */
    }
}

/* 4. Masonry Cards */
.masonry-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05); 
}

.masonry-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(106, 5, 114, 0.15); 
}

.masonry-card img {
    width: 100%;
    min-height: 200px; /* Ensure a minimum image presence */
    display: block;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.masonry-card:hover img {
    opacity: 0.95;
}

.masonry-card .card-body {
    padding: 24px 24px 29px; /* 1.5rem -> 24px, 1.8rem -> 29px (approx) */
    display: flex;
    flex-direction: column;
    gap: 13px; /* 0.8rem -> 13px (approx) */
    flex-grow: 1; 
}

.masonry-card h2 {
    font-size: 22px; /* 1.4rem -> 22px (approx) */
    margin: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.masonry-card p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 16px; /* 1rem -> 16px */
    flex: 1 0 auto;
}

.blog-read {
    align-self: start;
    padding: 10px 19px; /* 0.6rem -> 10px, 1.2rem -> 19px (approx) */
    background-color: var(--accent-color);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px; /* 0.95rem -> 15px (approx) */
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.15s ease;
}

.blog-read:hover {
    background-color: var(--primary-color);
    transform: translateY(-1px);
}

/* 5. Masonry Size Variants (Grid-Row Spanning in Pixels) */
@media (min-width: 1200px) {
    /* Small card: spans 40 rows (40 * 10px = 400px height) */
    .masonry-card.small { 
        grid-row: span 40; 
    } 

    /* Tall card: spans 110 rows (110 * 10px = 1100px height) */
    .masonry-card.tall  { 
        grid-row: span 110; 
    } 

    /* Wide card: spans 2 columns and 60 rows (60 * 10px = 600px height) */
    .masonry-card.wide  { 
        grid-column: span 2; 
        grid-row: span 60; 
    } 
}

/* Tighter Spans for slightly larger screens */
@media (min-width: 1400px) {
    .masonry-card.tall { grid-row: span 130; }
    .masonry-card.wide { grid-column: span 2; grid-row: span 70; }
}

/* Fallback for small screens (disable spans) */
@media (max-width: 1199px) {
    .masonry-card.wide { 
        grid-column: span 1; 
    } 
    .masonry-card.small, .masonry-card.tall { 
        grid-row: auto; 
    }
}