/* --- STYLE.CSS - MODERN BREEZE (TIGHTER LINE HEIGHTS) --- */

:root {
    /* --- PALETTE --- */
    --color-primary: #FF847C;
    --color-primary-dark: #E85D54;
    --color-secondary: #2A363B;
    --color-accent: #99B898;
    --color-highlight: #FFF5EC;
    --color-white: #ffffff;
    --color-border: #F0F0F0;

    /* --- TYPOGRAPHY --- */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Quicksand', sans-serif;

    /* --- SPACING --- */
    --container-width: 1300px;
    --border-radius: 16px;
    --shadow-hover: 0 20px 40px rgba(42, 54, 59, 0.1);
}

/* --- RESET & BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    color: var(--color-secondary);
    background-color: var(--color-white);
    line-height: 1.6; /* UPDATED: Tightened from 1.8 */
    font-weight: 500;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s ease; }
img { max-width: 100%; display: block; object-fit: cover; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 5px 15px rgba(255, 132, 124, 0.3);
}
.btn-primary:hover {
    transform: translateY(-3px);
    background-color: var(--color-primary-dark);
    box-shadow: 0 8px 25px rgba(255, 132, 124, 0.5);
}

.btn-outline {
    background-color: var(--color-white);
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
}
.btn-outline:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
    transform: translateY(-3px);
}

/* --- NAVIGATION --- */
.main-nav {
    padding: 1.5rem 0;
    background: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}
.main-nav.scrolled { border-bottom: 1px solid var(--color-border); }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-secondary);
}
.logo span { color: var(--color-primary); }

.nav-links { display: flex; align-items: center; }
.nav-links a:not(.btn) {
    margin-left: 2.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}
.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--color-primary);
    transition: 0.3s ease;
}
.nav-links a:not(.btn):hover::after { width: 100%; }

/* --- HERO SECTION (Fixed: Full Width Background) --- */

/* 1. The Outer Parent: spans full screen width */
.hero-section {
    width: 100%;
    position: relative;
    /* Move padding here so the background covers the spacing */
    padding: 6rem 0 8rem 0; 
    /* The Peach Gradient 
    background-image: radial-gradient(circle at 20% 50%, var(--color-highlight) 0%, transparent 60%);*/
    overflow: hidden; 
}

/* 2. The Inner Container: handles grid layout & centering */
.hero-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    position: relative;
    /* Reset padding/bg since the parent handles it now */
    padding: 0;
    background-image: none;
}

.hero-text { padding-right: 4rem; z-index: 2; }

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    margin: 1rem 0 2rem 0;
    color: var(--color-secondary);
}

.hero-text p { font-size: 1.3rem; margin-bottom: 3rem; color: #555; max-width: 500px; }

.hero-image-container {
    position: relative;
    height: 600px;
    z-index: 1;
    transform: translateX(2rem);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 20px 20px 0px rgba(42, 54, 59, 0.05);
}

/* RESPONSIVE UPDATE */
/* You must update the media query at the bottom of your file too */
@media (max-width: 900px) {
    /* Add this to your existing media query block */
    .hero-section { padding-top: 4rem; text-align: center; background-image: none; }
    .hero-wrapper { grid-template-columns: 1fr; }
    /* ... keep your existing mobile styles ... */
}

/* --- GUIDES (Cards) --- */
.guide-header { text-align: center; margin-bottom: 5rem; margin-top: 4rem;}
.guide-header h2 { font-family: var(--font-heading); font-size: 3rem; margin-bottom: 0.5rem; }
.guide-header p { font-size: 1.2rem; color: #777; }

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 8rem;
}
.guide-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    text-align: left;
    transition: all 0.4s ease;
    padding: 1.5rem;
}
.guide-card:hover { transform: translateY(-15px); box-shadow: var(--shadow-hover); }
.guide-img-wrapper {
    aspect-ratio: 4 / 3;
    width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}
.guide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.guide-card:hover .guide-img { transform: scale(1.08); }
.guide-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--color-secondary);
    line-height: 1.3; /* UPDATED: Tightened headings */
}
.guide-card p { margin-bottom: 2rem; color: #666; font-size: 0.95rem; line-height: 1.5; }
.guide-link {
    color: var(--color-secondary);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 5px;
}
.guide-link:hover { color: var(--color-primary); }

/* --- MAGAZINE FEED --- */
.feed-section { margin-bottom: 8rem; }
.story-feed { display: grid; grid-template-columns: 1.5fr 1fr; gap: 4rem; align-items: start; }
.story-large { grid-row: span 2; }
.story-large img {
    border-radius: var(--border-radius);
    height: 500px;
    width: 100%;
    object-fit: cover;
    margin-bottom: 2rem;
}
.story-small {
    display: flex; gap: 2rem; align-items: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 2rem; margin-bottom: 2rem;
}
.story-small:last-child { border-bottom: none; margin-bottom: 0; }
.story-small img {
    border-radius: var(--border-radius);
    height: 140px; width: 140px;
    object-fit: cover;
}
.story-meta {
    font-size: 0.8rem; font-weight: 800; color: var(--color-primary);
    text-transform: uppercase; margin-bottom: 0.75rem; letter-spacing: 1px;
    display: inline-block; background: var(--color-highlight);
    padding: 4px 12px; border-radius: 20px;
}
.story-title { font-family: var(--font-heading); font-size: 1.4rem; line-height: 1.3; margin-bottom: 1rem; }

/* --- SPONSOR STRIP --- */
.sponsor-strip { background-color: var(--color-highlight); padding: 5rem 0; }
.strip-flex { display: flex; align-items: center; justify-content: center; gap: 4rem; text-align: left; }
.strip-logo-area {
    width: 160px; height: 160px;
    background: var(--color-white); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 3px solid var(--color-primary);
}
.strip-text h4 { font-family: var(--font-heading); font-size: 1.8rem; margin-bottom: 1rem; }

/* --- ARTICLE PAGE STYLES --- */
.article-header { text-align: center; padding-top: 4rem; max-width: 1000px; margin: 0 auto; }
.article-meta-top { margin-bottom: 1.5rem; font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.category-tag { color: var(--color-primary); margin-right: 1rem; }
.read-time { color: #aaa; }
.article-header h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem; line-height: 1.1;
    color: var(--color-secondary); margin-bottom: 1.5rem;
}
.article-header .subtitle {
    font-size: 1.25rem; color: #666;
    line-height: 1.5; /* UPDATED */
    max-width: 800px; margin: 0 auto;
}

.article-grid {
    display: grid; grid-template-columns: 2fr 1fr;
    gap: 4rem; margin-top: 5rem; margin-bottom: 8rem; align-items: start;
}

.article-body { font-size: 1.15rem; color: #444; }
.article-body p {
    margin-bottom: 1.5rem; /* UPDATED: Reduced spacing */
    line-height: 1.6;      /* UPDATED: Tightened line height */
}
.article-body .lead { font-size: 1.3rem; font-weight: 400; color: var(--color-secondary); line-height: 1.5; }
.article-body h3 {
    font-family: var(--font-heading); font-size: 2rem;
    margin-top: 3rem; margin-bottom: 1rem; color: var(--color-secondary);
}

.highlight-box {
    background-color: var(--color-highlight); padding: 2.5rem;
    border-radius: var(--border-radius); border-left: 5px solid var(--color-primary);
    margin: 2.5rem 0;
}
.highlight-box h4 { color: var(--color-primary); text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; margin-bottom: 0.5rem; }
.highlight-box p { margin-bottom: 0; font-weight: 700; font-size: 1.2rem; color: var(--color-secondary); }

.sidebar { position: sticky; top: 120px; }
.sponsor-widget {
    background: var(--color-white); border: 1px solid var(--color-border);
    padding: 2rem; border-radius: var(--border-radius);
    text-align: center; margin-bottom: 2rem; box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.widget-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.widget-img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; margin-bottom: 1.5rem; }
.sponsor-widget h4 { font-family: var(--font-heading); font-size: 1.5rem; line-height: 1.2; margin-bottom: 0.5rem; }
.sponsor-widget p { font-size: 0.9rem; margin-bottom: 1.5rem; line-height: 1.5; }

.related-widget { background: #FAFAFA; padding: 2rem; border-radius: var(--border-radius); }
.related-widget h5 { text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; color: #999; font-size: 0.8rem; }
.related-link {
    display: flex; justify-content: space-between; padding: 1rem 0;
    border-bottom: 1px solid #eee; font-weight: 700; color: var(--color-secondary); font-size: 1.1rem;
}
.related-link:last-child { border-bottom: none; }
.related-link:hover { color: var(--color-primary); }

/* --- FOOTER --- */
footer {
    background-color: var(--color-white); color: var(--color-secondary);
    padding: 6rem 2rem 3rem 2rem; text-align: center; border-top: 1px solid var(--color-border);
}
footer h3 { color: var(--color-primary); font-family: var(--font-heading); margin-bottom: 1.5rem; font-size: 2rem; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero-text h1 { font-size: 3.5rem; }
    .hero-image-container { height: 500px; }
}
@media (max-width: 900px) {
    .hero-wrapper { grid-template-columns: 1fr; text-align: center; padding-top: 4rem; background-image: none; }
    .hero-text { padding-right: 0; order: 2; }
    .hero-text h1 { font-size: 3rem; }
    .hero-image-container { order: 1; height: 400px; transform: none; margin-bottom: 3rem; }
    .story-feed { grid-template-columns: 1fr; gap: 3rem; }
    .story-large { grid-row: auto; }
    .strip-flex { flex-direction: column; text-align: center; gap: 2rem; }
    .article-grid { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .nav-links { display: none; }
}
/* --- APPEND TO STYLE.CSS: TOPICS PAGE SPECIFIC STYLES --- */

/* Centered Search Hero */
.search-hero {
    text-align: center;
    padding: 6rem 0 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}
.search-hero h1 { font-family: var(--font-heading); font-size: 3.5rem; margin-bottom: 1rem; color: var(--color-secondary); }
.search-hero p { margin-bottom: 2.5rem; color: #666; font-size: 1.1rem; }

/* Stylish Input Field */
.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}
.search-box input {
    width: 100%;
    padding: 1.2rem 2rem;
    border-radius: 50px;
    border: 2px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
}
.search-box input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(255, 132, 124, 0.15);
}

/* The "Shelves" (Category Sections) */
.topic-shelf {
    padding: 4rem 0;
    border-bottom: 1px solid var(--color-border);
}
.topic-shelf:last-child { border-bottom: none; }

.shelf-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
}
.shelf-header h2 { font-family: var(--font-heading); font-size: 2.2rem; margin: 0; }
.shelf-header a { font-weight: 700; color: var(--color-primary); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

/* Shelf Grid Layout */
.shelf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

/* Mini Card (The styling for the articles on this page) */
.mini-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    group: hover;
}
.mini-card img {
    border-radius: var(--border-radius);
    height: 220px;
    width: 100%;
    object-fit: cover;
    margin-bottom: 1rem;
    transition: 0.3s;
}
.mini-card:hover img { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.mini-card h3 { font-family: var(--font-heading); font-size: 1.3rem; line-height: 1.3; margin-bottom: 0.5rem; color: var(--color-secondary); }
.mini-card .meta { font-size: 0.8rem; color: #999; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; margin-bottom: 0.5rem; display: block; }