/* premium-diy-page.css */

:root {
    --diy-dark-navy: #0B1F3A;
    --diy-blue: #2563EB;
    --diy-gold: #D4AF37;
    --diy-white: #FFFFFF;
    --diy-bg-light: #F8FAFF;
    --diy-text-dark: #1E1E1E;
    
    --diy-shadow: 0 10px 30px rgba(11, 31, 58, 0.04);
    --diy-shadow-hover: 0 15px 35px rgba(37, 99, 235, 0.08);
}

.diy-page-main {
    width: 100%;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    background-color: var(--diy-white);
    box-sizing: border-box;
}

/* SECTION 1: HERO */
.diy-hero-section {
    position: relative;
    background-color: var(--diy-white);
    padding: 100px 0 80px 0;
}

.diy-hero-bg-dot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 1;
}

.diy-hero-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.diy-hero-flex-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.diy-hero-left {
    display: flex;
    flex-direction: column;
}

.diy-hero-badge {
    display: inline-block;
    align-self: flex-start;
    background-color: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--diy-gold);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.diy-hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 54px;
    font-weight: 800;
    color: var(--diy-dark-navy);
    line-height: 1.1;
    margin: 0 0 20px 0;
    letter-spacing: -1px;
}

.title-blue-gradient {
    background: linear-gradient(135deg, var(--diy-blue) 0%, #1D4ED8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.diy-hero-subtitle {
    font-size: 16px;
    color: #556987;
    line-height: 1.6;
    margin: 0 0 30px 0;
}

/* Check lists */
.diy-hero-check-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 14px;
    margin-bottom: 30px;
}

.diy-hero-check-grid .check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #334E68;
}

.diy-hero-check-grid .check-icon {
    color: var(--diy-blue);
    font-weight: 900;
}

/* Buttons */
.diy-hero-buttons {
    display: flex;
    gap: 16px;
}

.btn-diy-primary {
    background-color: var(--diy-blue);
    color: var(--diy-white);
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 300ms ease, transform 300ms ease;
}

.btn-diy-primary:hover {
    background-color: #1D4ED8;
    transform: translateY(-2px);
}

.btn-diy-secondary {
    background-color: transparent;
    color: var(--diy-gold);
    border: 2px solid var(--diy-gold);
    border-radius: 12px;
    padding: 12px 26px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 300ms ease, color 300ms ease, transform 300ms ease;
}

.btn-diy-secondary:hover {
    background-color: var(--diy-gold);
    color: var(--diy-dark-navy);
    transform: translateY(-2px);
}

/* Hero Right details */
.diy-hero-right {
    display: flex;
    justify-content: flex-end;
}

.diy-hero-image-wrapper {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(11, 31, 58, 0.06);
    max-width: 480px;
    aspect-ratio: 4 / 3.8;
}

.diy-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.diy-hero-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(11, 31, 58, 0) 50%, rgba(11, 31, 58, 0.3) 100%);
}

.diy-floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.badge-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--diy-dark-navy);
}

.badge-stars {
    color: var(--diy-gold);
    font-size: 11px;
    letter-spacing: 0.5px;
}

.badge-lbl {
    font-size: 10.5px;
    color: #556987;
    font-weight: 600;
}

.badge-top {
    top: 12%;
    left: -12%;
}

.badge-mid {
    top: 45%;
    right: -12%;
}

.badge-bottom {
    bottom: 12%;
    left: 10%;
}

/* SECTION 2: SEARCH SECTION & FILTER BAR */
.diy-search-section {
    padding: 40px 0;
    background-color: var(--diy-bg-light);
}

.diy-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.search-filters-card {
    background-color: var(--diy-white);
    border: 1px solid rgba(11, 31, 58, 0.05);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--diy-shadow);
}

.diy-search-bar-wrap {
    margin-bottom: 20px;
}

.diy-search-field {
    width: 100%;
    background-color: #F8FAFC;
    border: 1px solid rgba(11, 31, 58, 0.06);
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 14.5px;
    outline: none;
    transition: border-color 300ms ease, box-shadow 300ms ease, background-color 300ms ease;
    box-sizing: border-box;
}

.diy-search-field:focus {
    background-color: var(--diy-white);
    border-color: var(--diy-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.diy-filters-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-pill {
    background-color: var(--diy-white);
    border: 1px solid rgba(11, 31, 58, 0.05);
    color: #4A5D78;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 100px;
    cursor: pointer;
    transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease;
}

.filter-pill:hover {
    border-color: var(--diy-gold);
}

.filter-pill.active {
    background-color: var(--diy-blue);
    border-color: var(--diy-blue);
    color: var(--diy-white);
}

/* SECTION 3: FEATURED GUIDE & SIDEBAR TAKEAWAYS */
.diy-featured-section {
    padding: 60px 0;
    background-color: var(--diy-white);
}

.diy-featured-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: stretch;
}

/* Horizontal card */
.featured-article-card {
    background-color: var(--diy-white);
    border: 1px solid rgba(11, 31, 58, 0.05);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--diy-shadow);
}

.featured-card-flex-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    height: 100%;
}

.featured-card-img-col {
    position: relative;
    background-color: var(--diy-bg-light);
}

.featured-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-card-text-col {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.article-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.article-meta-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--diy-blue);
    text-transform: uppercase;
}

.article-meta-time {
    font-size: 11.5px;
    color: #8899A6;
}

.featured-article-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--diy-dark-navy);
    line-height: 1.2;
    margin: 0 0 16px 0;
}

.featured-article-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #556987;
    margin: 0 0 28px 0;
}

.article-author-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--diy-white);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11.5px;
    font-weight: 800;
}

.author-details-text {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--diy-dark-navy);
}

.article-publish-date {
    font-size: 11px;
    color: #8899A6;
}

.btn-read-featured {
    align-self: flex-start;
    background-color: var(--diy-blue);
    color: var(--diy-white);
    border: none;
    border-radius: 10px;
    padding: 10px 22px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 300ms ease;
}

.btn-read-featured:hover {
    background-color: #1D4ED8;
}

/* Sidebar Takeaways */
.takeaways-sidebar-card {
    background-color: rgba(37, 99, 235, 0.02);
    border: 1px dashed rgba(37, 99, 235, 0.2);
    border-radius: 24px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.takeaways-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--diy-dark-navy);
    margin: 0 0 20px 0;
}

.takeaways-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.takeaways-checklist li {
    font-size: 13.5px;
    color: #4A5D78;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.takeaway-check {
    color: #34A853;
    font-weight: 900;
}

/* SECTION 4: LATEST DIY GUIDES & POPULAR SIDEBAR */
.diy-content-grid-section {
    padding: 60px 0;
    background-color: var(--diy-bg-light);
}

.diy-content-sidebar-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
}

.diy-articles-main-col {
    display: flex;
    flex-direction: column;
}

.diy-articles-responsive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Article Grid Card */
.diy-article-grid-card {
    background-color: var(--diy-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--diy-shadow);
    border: 1px solid rgba(11, 31, 58, 0.04);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
    box-sizing: border-box;
}

.article-card-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--diy-bg-light);
}

.article-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 500ms cubic-bezier(0.25, 0.8, 0.25, 1);
}

.article-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background-color: var(--diy-white);
    color: var(--diy-blue);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 100px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
}

.article-card-details {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta-read {
    font-size: 11px;
    color: #8899A6;
    margin-bottom: 10px;
    display: block;
}

.article-card-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: var(--diy-dark-navy);
    line-height: 1.3;
    margin: 0 0 10px 0;
}

.article-card-desc {
    font-size: 13px;
    line-height: 1.5;
    color: #556987;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.card-author-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    padding-top: 14px;
    margin-bottom: 16px;
}

.card-author-name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--diy-dark-navy);
}

.card-publish-date {
    font-size: 11px;
    color: #8899A6;
}

.card-read-more-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--diy-blue);
    text-decoration: none;
    transition: color 300ms ease;
}

.card-read-more-link:hover {
    color: var(--diy-gold);
}

/* Card Hover animation */
.diy-article-grid-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--diy-shadow-hover);
    border-color: var(--diy-gold);
}

.diy-article-grid-card:hover .article-card-img {
    transform: scale(1.05);
}

/* Sticky Popular sidebar styling */
.sticky-popular-sidebar {
    position: sticky;
    top: 100px;
    background-color: var(--diy-white);
    border: 1px solid rgba(11, 31, 58, 0.04);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--diy-shadow);
    box-sizing: border-box;
}

.popular-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--diy-dark-navy);
    margin: 0 0 24px 0;
    border-left: 4px solid var(--diy-gold);
    padding-left: 10px;
}

.popular-articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.popular-item-row {
    display: flex;
    gap: 14px;
    align-items: center;
}

.popular-thumb-wrap {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--diy-bg-light);
    flex-shrink: 0;
}

.popular-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.popular-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.popular-views {
    font-size: 10px;
    font-weight: 700;
    color: #FF9F0A;
}

.popular-item-title {
    margin: 0;
}

.popular-item-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--diy-dark-navy);
    text-decoration: none;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 300ms ease;
}

.popular-item-link:hover {
    color: var(--diy-blue);
}

.btn-popular-view-all {
    display: block;
    text-align: center;
    background-color: rgba(11, 31, 58, 0.03);
    color: var(--diy-dark-navy);
    border: 1px solid rgba(11, 31, 58, 0.05);
    border-radius: 10px;
    padding: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 300ms ease, color 300ms ease;
}

.btn-popular-view-all:hover {
    background-color: var(--diy-blue);
    color: var(--diy-white);
}

/* SECTION 5: HELPFUL TIPS BANNER */
.diy-tips-banner-section {
    padding: 60px 0;
    background-color: var(--diy-white);
}

.tips-banner-navy-card {
    background: linear-gradient(135deg, #071A33 0%, #020817 100%);
    border-radius: 30px;
    padding: 50px 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}

.tips-card-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--diy-white);
    text-align: center;
    margin: 0 0 40px 0;
}

.tips-four-cols-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.tips-col-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tips-icon-circle-white {
    font-size: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.tips-col-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--diy-white);
    margin: 0 0 6px 0;
}

.tips-col-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    line-height: 1.4;
}

/* SECTION 6: NEWSLETTER SIGNUP */
.diy-newsletter-section {
    padding: 60px 0 100px 0;
    background-color: var(--diy-bg-light);
}

.newsletter-glass-card {
    position: relative;
    background-color: var(--diy-white);
    border: 1px solid rgba(11, 31, 58, 0.06);
    border-radius: 24px;
    padding: 50px;
    box-shadow: var(--diy-shadow);
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    box-sizing: border-box;
}

.newsletter-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background-color: rgba(37, 99, 235, 0.03);
    filter: blur(40px);
    border-radius: 50%;
}

.newsletter-content-wrap {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.newsletter-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--diy-dark-navy);
    margin: 0 0 6px 0;
}

.newsletter-subtitle {
    font-size: 14px;
    color: #556987;
    margin: 0 0 30px 0;
}

/* Inline form styling */
.newsletter-inline-form {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 480px;
    margin-bottom: 16px;
}

.newsletter-text-input {
    flex-grow: 1;
    background-color: #F8FAFC;
    border: 1px solid rgba(11, 31, 58, 0.06);
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 13.5px;
    outline: none;
    transition: border-color 300ms ease, box-shadow 300ms ease, background-color 300ms ease;
    box-sizing: border-box;
}

.newsletter-text-input:focus {
    background-color: var(--diy-white);
    border-color: var(--diy-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.btn-newsletter-subscribe {
    background-color: var(--diy-blue);
    color: var(--diy-white);
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 300ms ease;
}

.btn-newsletter-subscribe:hover {
    background-color: #1D4ED8;
}

.newsletter-privacy-note {
    font-size: 11px;
    color: #8899A6;
    margin: 0;
}

.newsletter-feedback-label {
    font-size: 13px;
    font-weight: 600;
    color: #34A853;
    margin-bottom: 20px;
}

/* RESPONSIVE LAYOUT BREAKPOINTS */

@media (max-width: 1024px) {
    .diy-hero-flex-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .diy-hero-right {
        justify-content: center;
    }
    
    .diy-featured-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .diy-content-sidebar-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .sticky-popular-sidebar {
        position: static;
    }
    
    .tips-four-cols-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }
}

@media (max-width: 768px) {
    .diy-hero-title {
        font-size: 38px;
    }
    
    .diy-hero-check-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-card-flex-wrapper {
        grid-template-columns: 1fr;
    }
    
    .diy-articles-responsive-grid {
        grid-template-columns: 1fr;
    }
    
    .tips-four-cols-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .newsletter-inline-form {
        flex-direction: column;
    }
}
