/* ==============================================================
   QUICK DAILY NEWS / GOODLIFE MODERN MAGAZINE THEME
   Directly modeled on digital-network-hub.com/blog/
   High-Converting, Fast-Loading, Multi-Ad Editorial Engine
   ============================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --goodlife-primary: #0288d1;
    --goodlife-accent: #01579b;
    --goodlife-dark: #22252a;
    --goodlife-subfooter: #1e2229;
    --goodlife-text: #373d49;
    --goodlife-heading: #111827;
    --goodlife-border: #e2e8f0;
    --goodlife-bg: #ffffff;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Roboto', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.theme-goodlife {
    font-family: var(--font-body);
    background-color: #ffffff;
    color: var(--goodlife-text);
    line-height: 1.65;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

/* --- Clean Foundation 12-Column Responsive Flex Grid --- */
.row {
    max-width: 1220px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-flow: row wrap;
    box-sizing: border-box;
}

.row .row {
    max-width: none;
    padding: 0;
}

.columns {
    flex: 1 1 0;
    min-width: 0;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
}

.small-12 { flex: 0 0 100%; max-width: 100%; }

@media screen and (min-width: 64em) {
    .large-3 { flex: 0 0 25%; max-width: 25%; }
    .large-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .large-6 { flex: 0 0 50%; max-width: 50%; }
}

.text-left { text-align: left; }
.text-right { text-align: right; }
.text-center { text-align: center; }

/* Smooth scroll for category anchors */
html {
    scroll-behavior: smooth;
}

#sectioOne,
#sectioTwo,
#sectioThree {
    scroll-margin-top: 40px;
}

/* --- Header & Branding (Modeled on Quick Daily News) --- */
.goodlife-header-top {
    padding: 26px 0 10px 0;
    background: #ffffff;
    text-align: center;
}

.goodlife-header-top a {
    text-decoration: none;
    display: inline-block;
}

.qdn-badge-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border: 2px solid #0f172a;
    padding: 4px 10px 4px 6px;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.qdn-box-icon {
    display: flex;
    flex-direction: column;
    width: 24px;
    height: 38px;
    border-radius: 2px;
    overflow: hidden;
}

.qdn-box-icon .qdn-red {
    background: #e11d48;
    flex: 1;
}

.qdn-box-icon .qdn-blue {
    background: #0284c7;
    flex: 1;
}

.qdn-text-lines {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.1;
    font-family: var(--font-heading);
    font-weight: 900;
    color: #0f172a;
    letter-spacing: 0.8px;
    font-size: 13px;
}

.goodlife-header-nav {
    padding: 10px 0 20px 0;
    background: #ffffff;
    text-align: center;
}

.goodlife-nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.goodlife-nav-menu li a {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 4px 0;
}

.goodlife-nav-menu li a:hover {
    color: var(--goodlife-primary);
}

/* --- Top Magazine 5-Tile Slider (news-slider) --- */
.news-slider {
    position: relative;
    max-width: 1220px;
    margin: 0 auto 40px auto;
    overflow: hidden;
    padding: 0 12px;
    box-sizing: border-box;
}

.news-slider__viewport {
    overflow: hidden;
    width: 100%;
}

.news-slider__track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.news-slider .row-slider {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.slider-row-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
}

.slider-row-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3px;
}

.slider-row-top .post.post-overlay {
    height: 340px;
}

.slider-row-bottom .post.post-overlay {
    height: 220px;
}

.post.post-overlay {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
    display: block;
    text-decoration: none;
}

.post.post-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.78) 100%);
    pointer-events: none;
    z-index: 1;
}

.post.post-overlay .post-gallery {
    position: absolute;
    inset: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 24px 28px;
    z-index: 2;
}

.post.post-overlay .post-gallery > a {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.post.post-overlay .post-title.entry-header {
    position: relative;
    z-index: 3;
    pointer-events: none;
}

.post.post-overlay .entry-title {
    font-family: var(--font-heading);
    color: #ffffff;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 6px 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.85);
}

.slider-row-top .entry-title {
    font-size: 21px;
}

.slider-row-bottom .entry-title {
    font-size: 15px;
}

.post.post-overlay .entry-title a {
    color: #ffffff;
    text-decoration: none;
}

.post.post-overlay .post-bottom-meta {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}

.post.post-overlay .post-bottom-meta a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

/* Slider Left/Right Arrows */
.news-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 28px;
    height: 48px;
    background: #ffffff;
    color: #333333;
    font-size: 26px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
    transition: all 0.2s;
    line-height: 1;
}

.news-slider__nav--prev { left: 12px; }
.news-slider__nav--next { right: 12px; }
.news-slider__nav:hover { background: var(--goodlife-primary); color: #ffffff; }

/* --- Category Section Blocks (id="sectioOne", "#sectioTwo", "#sectioThree") --- */
.category-section-wrapper {
    margin-bottom: 50px;
}

.category_title.simple {
    text-align: center;
    margin-bottom: 35px;
    margin-top: 15px;
}

.category_title.simple h4 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    display: inline-block;
    padding-bottom: 6px;
    border-bottom: 2px solid #111827;
    letter-spacing: 0.5px;
}

.row.endcolumn {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
}

/* Standard Fashion Card (Left & Right 25% Columns) */
.post.post-fashion {
    margin-bottom: 28px;
    text-align: center;
    background: #ffffff;
}

.post.post-fashion .post-gallery {
    margin: 0;
    position: relative;
}

.post.post-fashion .post-gallery img.wp-post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: #f1f5f9;
    transition: transform 0.35s ease;
}

.post.post-fashion:hover .post-gallery img.wp-post-image {
    transform: scale(1.03);
}

.post.post-fashion .post-title-container {
    padding: 14px 6px 6px 6px;
    background: #ffffff;
    text-align: center;
}

.post.post-fashion .entry-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 6px 0;
}

.post.post-fashion .entry-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post.post-fashion .entry-title a:hover {
    color: var(--goodlife-primary);
}

.post.post-fashion .post-bottom-meta {
    font-family: var(--font-heading);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.6px;
}

.post.post-fashion .post-bottom-meta a {
    color: #475569;
    text-decoration: none;
}

/* Center Featured Large Card (Center 50% Column) */
.post.post-fashion.offset-title.bottom-title {
    margin-bottom: 30px;
    text-align: center;
}

.post.post-fashion.offset-title.bottom-title .post-gallery {
    margin: 0;
    position: relative;
}

.post.post-fashion.offset-title.bottom-title .post-gallery img.wp-post-image--full {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
    background: #f1f5f9;
}

.post.post-fashion.offset-title.bottom-title .post-title-container {
    position: relative;
    top: -55px;
    margin: 0 7%;
    background: #ffffff;
    padding: 26px 24px 18px 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    text-align: center;
    z-index: 2;
    border-radius: 2px;
}

.post.post-fashion.offset-title.bottom-title .entry-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 8px 0;
}

.post.post-fashion.offset-title.bottom-title .entry-title a {
    color: #111827;
    text-decoration: none;
}

.post.post-fashion.offset-title.bottom-title .entry-title a:hover {
    color: var(--goodlife-primary);
}

.post.post-fashion.offset-title.bottom-title .post-content.entry-content {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.post.post-fashion.offset-title.bottom-title .post-content p {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.65;
    color: #4b5563;
    margin: 0;
    text-align: center;
}

/* --- Dark Subfooter (Modeled on digital-network-hub.com) --- */
#subfooter.goodlife-dark-subfooter {
    background: var(--goodlife-dark);
    color: #94a3b8;
    padding: 45px 0 35px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 40px;
}

.subfooter-menu-holder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.subfooter-logo {
    text-decoration: none;
    display: inline-block;
}

.subfooter-menu ul.footer-menu {
    display: flex;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.subfooter-menu ul.footer-menu li a {
    font-family: var(--font-heading);
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.subfooter-menu ul.footer-menu li a:hover {
    color: var(--goodlife-primary);
}

.subfooter-copyright {
    font-size: 12px;
    color: #64748b;
    letter-spacing: 0.4px;
}

/* Scroll To Top Button */
.scroll-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: #373d49;
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--goodlife-primary);
}

.scroll-to-top svg {
    display: block;
    fill: currentColor;
}

/* Responsive Breakpoints */
@media screen and (max-width: 64em) {
    .large-3, .large-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .slider-row-top { grid-template-columns: 1fr; }
    .slider-row-bottom { grid-template-columns: 1fr; }
    .slider-row-top .post.post-overlay { height: 250px; }
    .slider-row-bottom .post.post-overlay { height: 200px; }
    .post.post-fashion.offset-title.bottom-title .post-title-container {
        position: static;
        top: 0;
        margin: 15px 0 0;
        box-shadow: none;
        padding: 15px 0;
    }
    .news-slider__nav { display: none; }
}


/* GoodLife Native Feed Grid & Columns */
.goodlife-feed-grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
    margin-bottom: 35px;
}
.goodlife-feed-col {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
    margin-bottom: 28px;
}
@media screen and (max-width: 64em) {
    .goodlife-feed-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}


/* Mobile Responsive Engine for GoodLife */
@media (max-width: 992px) {
    .category-section-wrapper .columns.large-3,
    .category-section-wrapper .columns.large-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .goodlife-feed-col {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

@media (max-width: 768px) {
    .goodlife-header-top {
        padding: 16px 12px 8px 12px !important;
    }
    .goodlife-portal-brand {
        font-size: 24px !important;
    }
    .goodlife-feed-col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .news-slider .row-slider {
        gap: 4px !important;
    }
    .slider-row-top {
        grid-template-columns: 1fr !important;
    }
    .slider-row-bottom {
        grid-template-columns: 1fr !important;
    }
    .slider-row-top .post.post-overlay {
        height: 220px !important;
    }
    .slider-row-bottom .post.post-overlay {
        height: 200px !important;
    }
    .news-slider__nav {
        display: none !important;
    }
    .category_title.simple h4 {
        font-size: 18px !important;
    }
    .post.post-fashion .post-gallery img.wp-post-image {
        height: 180px !important;
    }
}
