/* ==========================================================================
   RESET & GLOBAL STYLES
   ========================================================================== */
:root {
    --primary-font: 'Plus Jakarta Sans', sans-serif;
    --heading-font: 'Playfair Display', serif;
    --text-dark: #191a1f;
    --text-muted: #676a79;
    --border-color: #ededf2;
    --bg-light: #f8f9fa;
    
    /* Category Colors */
    --color-travel: #ff6f61;
    --color-lifestyle: #4ea8de;
    --color-tech: #560bad;
    --color-health: #43aa8b;
    --color-food: #f9c74f;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--primary-font);
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-travel);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Badges */
.cat-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.badge-travel { background-color: var(--color-travel); }
.badge-lifestyle { background-color: var(--color-lifestyle); }
.badge-tech { background-color: var(--color-tech); }
.badge-health { background-color: var(--color-health); }
.badge-food { background-color: var(--color-food); }

/* Buttons */
button {
    font-family: var(--primary-font);
    cursor: pointer;
    border: none;
    background: none;
    transition: all 0.2s ease;
}

.btn-subscribe {
    background-color: var(--text-dark);
    color: #fff;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
}

.btn-subscribe:hover {
    background-color: #333;
}

.btn-outline {
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 13px;
}

.btn-outline:hover {
    background-color: var(--text-dark);
    color: #fff;
}

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */
.main-header {
    border-bottom: 1px solid var(--border-color);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
}

.social-icons a {
    color: var(--text-muted);
    margin-right: 15px;
    font-size: 15px;
}

.social-icons a:hover { color: var(--text-dark); }

.logo-area {
    text-align: center;
}

.main-logo {
    font-family: var(--heading-font);
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -1px;
}

.tagline {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-top: -5px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-search {
    font-size: 16px;
    color: var(--text-dark);
}

/* Navigation Menu */
.main-nav {
    border-top: 1px solid var(--border-color);
    padding: 12px 0;
}

.nav-container {
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-muted);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-dark);
}

.nav-links i {
    font-size: 10px;
    margin-left: 3px;
}

/* ==========================================================================
   TRENDING TICKER
   ========================================================================== */
.trending-bar {
    display: flex;
    align-items: center;
    background-color: var(--bg-light);
    padding: 10px 15px;
    border-radius: 6px;
    margin: 25px 0;
}

.trending-badge {
    background-color: var(--text-dark);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    margin-right: 15px;
}

.trending-content {
    flex-grow: 1;
    font-size: 14px;
    font-weight: 500;
}

.trending-arrows button {
    color: var(--text-muted);
    padding: 0 5px;
}

/* ==========================================================================
   HERO SECTION (GRID)
   ========================================================================== */
.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

.featured-card {
    position: relative;
    height: 480px;
    border-radius: 8px;
    overflow: hidden;
}

.card-img-placeholder, .side-post-img, .grid-card-img, .row-card-img, .pop-thumb, .insta-img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.featured-card:hover .card-img-placeholder {
    transform: scale(1.03);
}

.card-img-placeholder {
    height: 100%;
    width: 100%;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
    color: #fff;
}

.hero-title {
    font-family: var(--heading-font);
    font-size: 32px;
    margin-bottom: 12px;
}

.hero-title a:hover { color: rgba(255,255,255,0.8); }

.hero-desc {
    font-size: 15px;
    color: #e2e8f0;
    margin-bottom: 20px;
    max-width: 600px;
}

.author-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #ccc;
    background-image: url('https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&w=100&q=80');
    background-size: cover;
}

/* Hero Right Side Stack */
.hero-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
}

.side-post-card {
    display: flex;
    gap: 15px;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.side-post-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.side-post-img {
    width: 100px;
    height: 100px;
    border-radius: 6px;
    flex-shrink: 0;
}

.side-post-info h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 5px 0;
    line-height: 1.4;
}

.post-date, .card-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================================================
   BLOCK SECTION & GRID LAYOUTS
   ========================================================================== */
.section-block {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.section-title {
    font-family: var(--heading-font);
    font-size: 24px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--text-dark);
}

.view-all {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.editors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.grid-card-img {
    height: 200px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.grid-card-body h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.grid-card-body p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* ==========================================================================
   TWO COLUMN MAIN LAYOUT
   ========================================================================== */
.layout-columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Article Row Cards (Latest Articles) */
.latest-articles-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.article-row-card {
    display: flex;
    gap: 25px;
}

.row-card-img {
    width: 240px;
    height: 160px;
    border-radius: 6px;
    flex-shrink: 0;
}

.row-card-body h3 {
    font-size: 20px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.row-card-body p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

/* Inline Newsletter Box */
.inline-newsletter {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.newsletter-info h3 {
    font-family: var(--heading-font);
    font-size: 22px;
    margin-bottom: 5px;
}

.newsletter-info p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.newsletter-form-inline {
    display: flex;
    gap: 10px;
    max-width: 500px;
}

.newsletter-form-inline input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    outline: none;
}

.newsletter-form-inline button {
    background-color: var(--text-dark);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
}

.plane-icon {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 60px;
    color: rgba(0,0,0,0.03);
    transform: rotate(15deg);
}

/* ==========================================================================
   SIDEBAR COMPONENTS
   ========================================================================== */
.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.widget {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 30px;
}

.widget:last-child {
    border-bottom: none;
}

.widget-title {
    font-family: var(--heading-font);
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--text-dark);
}

/* About widget */
.widget-about {
    text-align: center;
    background-color: var(--bg-light);
    padding: 30px 20px;
    border-radius: 8px;
    border-bottom: none;
}

.about-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
}

.about-text {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Connected Widget */
.social-connect-grid {
    display: flex;
    gap: 12px;
}

.social-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
}

.social-circle:hover {
    color: #fff;
    border-color: transparent;
}
.social-circle.fb:hover { background-color: #3b5998; }
.social-circle.ig:hover { background-color: #e1306c; }
.social-circle.tw:hover { background-color: #1da1f2; }
.social-circle.pin:hover { background-color: #bd081c; }
.social-circle.yt:hover { background-color: #ff0000; }

/* Popular Posts Widget */
.popular-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pop-post-item {
    display: flex;
    gap: 15px;
    align-items: center;
}

.pop-thumb {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    flex-shrink: 0;
}

.pop-info h4 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 3px;
}

.pop-info span {
    font-size: 11px;
    color: var(--text-muted);
}

/* Categories Widget */
.categories-list {
    list-style: none;
}

.categories-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 14px;
}

.categories-list li span {
    color: var(--text-muted);
}

/* Widget Newsletter */
.sidebar-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 10px;
    outline: none;
}

.btn-dark {
    width: 100%;
    background-color: var(--text-dark);
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    font-weight: 600;
}

.form-note {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: center;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.main-footer {
    background-color: var(--text-dark);
    color: #a1a1a9;
    padding: 60px 0 20px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr) 1.2fr;
    gap: 30px;
    border-bottom: 1px solid #2e2f36;
    padding-bottom: 40px;
}

.footer-logo {
    font-family: var(--heading-font);
    color: #fff;
    font-size: 28px;
    margin-bottom: 15px;
}

.footer-col-about p {
    margin-bottom: 20px;
    line-height: 1.5;
}

.footer-social a {
    color: #a1a1a9;
}
.footer-social a:hover { color: #fff; }

.footer-col h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a:hover { color: #fff; }

/* Instagram Grid */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.insta-img {
    aspect-ratio: 1/1;
    border-radius: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    font-size: 13px;
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE DESIGN)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-grid, .layout-columns, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .editors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-right {
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .editors-grid, .instagram-grid {
        grid-template-columns: 1fr;
    }
    
    .article-row-card {
        flex-direction: column;
    }
    
    .row-card-img {
        width: 100%;
        height: 200px;
    }
    
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
}