/*
Theme Name: Weazy Blog
Author: Abhishek
Version: 1.0
*/

body {
    font-family: 'Lexend', sans-serif;
    margin: 0;
    background: #ffffff;
    padding-top: 80px; /* Base padding for fixed header */
}

/* Adjust padding when admin bar is present to prevent double spacing */
.admin-bar body {
    padding-top: 80px;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 60px; /* Slightly reduced height for better fit */
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 9999;
    height: 80px; /* Explicit height to match body padding */
}

/* Fix for WordPress Admin Bar */
.admin-bar .navbar {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .navbar {
        top: 46px;
    }
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.brand-name {
    font-family: 'Lexend', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #111;
    letter-spacing: -1px;
}

.z-accent {
    position: relative;
    color: #111;
}

.z-accent::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    transform: translateX(-50%);
    width: 100%;
    height: 6px;
    background: #00b0b0; /* Teal accent from the image */
    border-radius: 10px;
    z-index: -1;
}

.blog-label {
    font-family: 'Lexend', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #111;
    margin-left: 5px;
    opacity: 0.9;
}

.navbar ul.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
    margin: 0;
    padding: 0;
    font-weight: 600;
    color: #111;
}

.navbar ul.nav-links li {
    font-size: 15px;
    cursor: pointer;
    position: relative;
}

.navbar ul.nav-links a {
    text-decoration: none;
    color: #111;
}

/* Dropdown styling */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 180px;
    border-radius: 8px;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 10px 20px;
}

.dropdown-menu li a {
    display: block;
    color: #333;
    font-size: 14px;
}

.dropdown-menu li:hover {
    background-color: #f5f5f5;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.search-icon {
    font-size: 20px;
    cursor: pointer;
}

.btn-demo {
    background: lightblue;
    color: #111;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
}

/* MAIN */
.container {
    display: flex;
    gap: 40px;
    padding: 50px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

/* LEFT */
.left {
    width: 48%;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.card {
    display: flex;
    gap: 25px;
    background: white;
    text-decoration: none;
    color: #111;
    align-items: center;
}

.card-image-wrap {
    width: 280px;
    height: 170px;
    flex-shrink: 0;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-content h3 {
    margin: 0 0 15px 0;
    font-size: 22px;
    color: #111;
    line-height: 1.4;
    font-weight: 700;
}

.card-content p.author-date {
    margin: 0;
    font-size: 12px;
    color: #666;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* RIGHT */
.right {
    width: 52%;
}

.featured {
    display: block;
    text-decoration: none;
    color: black;
}

.featured img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 30px;
}

.featured h2 {
    margin: 0;
    font-size: 32px;
    text-align: center;
    color: #111;
    font-weight: 700;
    line-height: 1.3;
}

/* SINGLE POST NEW DESIGN */
.post-header-wrapper {
    background-color: #f9f9f9;
    padding-bottom: 60px;
    border-bottom: 1px solid #eee;
}

.pb-0 {
    padding-bottom: 0 !important;
}

.breadcrumbs {
    font-size: 13px;
    color: #cc4d4d; /* Reddish color for breadcrumbs like in the image */
    margin-bottom: 20px;
    font-weight: 500;
}

.breadcrumbs a {
    text-decoration: none;
    color: #cc4d4d;
}

.breadcrumbs .current-post {
    color: #333;
}

.post-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    padding-top: 20px;
}

.post-header-left {
    flex: 1;
}

.post-main-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    color: #111;
    margin-bottom: 30px;
}

.post-header-meta {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.post-category-tag {
    display: inline-block;
    background: #e0e0e0;
    color: #555;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    width: fit-content;
}

.post-dates {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: #666;
    gap: 5px;
}

.post-header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.featured-image-frame {
    width: 100%;
    max-width: 600px;
    background: #002d41; /* Dark blue background from the screenshot */
    padding: 0;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* BLOG CONTENT LAYOUT (3 COLUMNS) */
.blog-content-layout {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 50px;
    padding-top: 60px;
}

/* Main Content */
.main-content {
    min-width: 0; /* Prevents overflow */
}

.post-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.post-content p {
    margin-bottom: 25px;
}

/* Left Sidebar */
.left-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    top: 120px; /* Adjusted to sit nicely below the sticky header */
    height: fit-content;
}

/* Fix for WordPress Admin Bar sticky position */
.admin-bar .left-sidebar {
    top: 152px;
}

.toc-header {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toc-toggle {
    font-size: 14px;
    color: #666;
    font-weight: 400;
    cursor: pointer;
}

.sidebar-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.product-box {
    background: #f8f9fa;
    padding: 20px 10px;
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    transition: transform 0.2s, background 0.2s;
}

.product-box:hover {
    transform: translateY(-5px);
    background: #f0f0f0;
}

.product-box-wide {
    grid-column: span 2;
    padding: 30px 10px;
}

.product-icon {
    height: 25px;
    width: auto;
    object-fit: contain;
}

.product-box span {
    font-size: 12px;
    font-weight: 700;
    color: #111;
    letter-spacing: 0.5px;
}

/* Right Sidebar (Blue Theme) */
.right-sidebar {
    position: sticky;
    top: 120px; /* Adjusted to sit nicely below the sticky header */
    height: fit-content;
}

/* Fix for WordPress Admin Bar sticky position */
.admin-bar .right-sidebar {
    top: 152px;
}

.demo-form-card {
    background: #f1f2f4; /* Light gray background as in the image */
    padding: 30px;
    border-radius: 20px;
    box-shadow: none; /* Removed shadow to match the flat gray look */
    border: none;
}

.demo-form-card h3 {
    font-size: 22px;
    margin: 0 0 25px 0;
    font-weight: 700;
    color: #111;
}

.sidebar-demo-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-demo-form input,
.sidebar-demo-form select {
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background: #f9f9f9;
    font-size: 15px;
    color: #333;
    transition: border-color 0.2s;
}

.sidebar-demo-form input:focus {
    outline: none;
    border-color: #007bff; /* Blue focus color */
}

.btn-demo-submit {
    background: #007bff; /* Requested blue color */
    color: white;
    padding: 15px;
    border-radius: 12px;
    border: none;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s, transform 0.2s;
}

.btn-demo-submit:hover {
    background: #0056b3;
    transform: scale(1.02);
}

@media (max-width: 1200px) {
    .blog-content-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .left-sidebar, .right-sidebar {
        grid-row: auto;
    }
    .left-sidebar {
        order: 2;
    }
    .main-content {
        order: 1;
    }
    .right-sidebar {
        order: 3;
    }
}

@media (max-width: 1024px) {
    .post-header-flex {
        flex-direction: column;
        gap: 40px;
    }
    .post-main-title {
        font-size: 42px;
    }
    .post-header-right {
        justify-content: center;
    }
}

/* CATEGORY SECTIONS */
.category-sections {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px 60px 60px;
}

.category-block {
    margin-bottom: 60px;
}

.category-title {
    font-size: 26px;
    margin-bottom: 30px;
    color: #111;
    font-weight: 700;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.cat-card {
    text-decoration: none;
    color: #111;
    display: flex;
    flex-direction: column;
}

.cat-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

.cat-card h4 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.cat-card p.author-date {
    margin: 0;
    font-size: 12px;
    color: #666;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: auto;
}

/* FOOTER */
.site-footer {
    background: #000;
    color: #fff;
    padding: 60px 60px 40px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-column h3 {
    font-size: 28px;
    margin: 0 0 15px 0;
    font-weight: 800;
}

.footer-column h4 {
    font-size: 18px;
    margin: 0 0 20px 0;
    font-weight: 700;
}

.brand-column p {
    color: #ccc;
    font-size: 15px;
    line-height: 1.6;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column ul li a {
    text-decoration: none;
    color: #ccc;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-column ul li a:hover {
    color: #fff;
}