/*
Theme Name: AZ News Custom
Theme URI: https://parthingx.dotanpix.com
Author: Parth Sheth
Description: Full Theme with Fixed Related Posts Images & Layout.
Version: 9.9
Text Domain: az-news-custom
*/

:root {
    --font-headings: 'Oswald', sans-serif; 
    --font-content: 'Open Sans', sans-serif;
    --primary-color: #6fdceb; 
    --secondary-color: #03002e; 
    --dark-bg: #000000; 
    --light-gray: #f4f4f4;
    --white: #ffffff;
}

body { font-family: var(--font-content); margin: 0; padding: 0; background: var(--white); color: #333; line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; display: block; }
html { scroll-behavior: smooth; }

/* ---------------------------------------------------------
   ANIMATED FALLING BLACK LINES ON WHITE BACKGROUND
------------------------------------------------------------ */
.homepage-lines-wrapper { position: fixed; top: 0; left: 0; right: 0; height: 100vh; width: 100vw; margin: auto; z-index: -1; pointer-events: none; overflow: hidden; }
.homepage-lines-wrapper .line { position: absolute; width: 1px; height: 100%; top: 0; background: rgba(0, 0, 0, 0.05); overflow: hidden; }
.homepage-lines-wrapper .line::after { content: ''; display: block; position: absolute; height: 15vh; width: 100%; top: -50%; left: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #000000 75%, #000000 100%); animation: dropAnimation 7s 0s infinite; animation-fill-mode: forwards; animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97); }
.homepage-lines-wrapper .line:nth-child(1) { left: 10%; } .homepage-lines-wrapper .line:nth-child(1)::after { animation-delay: 2s; }
.homepage-lines-wrapper .line:nth-child(2) { left: 30%; } .homepage-lines-wrapper .line:nth-child(2)::after { animation-delay: 4.5s; }
.homepage-lines-wrapper .line:nth-child(3) { left: 50%; } .homepage-lines-wrapper .line:nth-child(3)::after { animation-delay: 2.5s; }
.homepage-lines-wrapper .line:nth-child(4) { left: 70%; } .homepage-lines-wrapper .line:nth-child(4)::after { animation-delay: 5s; }
.homepage-lines-wrapper .line:nth-child(5) { left: 90%; } .homepage-lines-wrapper .line:nth-child(5)::after { animation-delay: 3.5s; }
@keyframes dropAnimation { 0% { top: -50%; } 100% { top: 110%; } }

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-headings); font-weight: 700; margin-top: 0; color: var(--secondary-color); }

/* HEADER & MENU */
.top-bar { background: var(--light-gray); color: #333; padding: 0; font-size: 12px; line-height: 35px; border-bottom: 1px solid #eee; }
.top-social a { margin-left: 15px; color: #555; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; position: relative; }
.main-header { background: var(--secondary-color); padding: 15px 0; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo a { font-size: 32px; font-weight: 900; color: #ffffff; text-transform: uppercase; line-height: 1; font-family: var(--font-headings); }
.logo span { color: var(--primary-color); }
.logo img, .custom-logo-link img { height: auto; width: auto; max-width: 180px; object-fit: contain; }

/* NAVIGATION */
.main-menu { background: var(--dark-bg); color: #fff; min-height: 50px; display: flex; align-items: center; position: relative; z-index: 100; }
.menu-container { display: flex; align-items: center; justify-content: space-between; width: 100%; }

/* --- MOBILE TOGGLE BUTTON STYLING --- */
.mobile-menu-toggle { display: none; background: #1a1a1a; border: 1px solid #333; border-radius: 5px; color: #fff; font-size: 16px; font-family: var(--font-headings); text-transform: uppercase; cursor: pointer; padding: 10px 20px; margin: 10px 15px; transition: 0.3s; }
.mobile-menu-toggle:hover { background: var(--primary-color); color: var(--secondary-color); }
.mobile-menu-toggle i { margin-right: 8px; font-size: 18px; }

.nav-wrapper { display: flex; width: 100%; height: 100%; align-items: center; }
.nav-links { display: flex; height: 100%; align-items: center; }
.nav-links > li { position: relative; height: 100%; display: flex; align-items: center; }
.nav-links > li > a { color: #ffffff; padding: 0 15px; font-family: var(--font-headings); font-weight: 500; text-transform: uppercase; font-size: 14px; letter-spacing: 1px; display: flex; align-items: center; height: 100%; min-height: 50px; }
.nav-links > li:hover > a { color: var(--primary-color); }
.menu-item-has-children > a::after { content: '\f107'; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-left: 5px; font-size: 10px; color: #888; }
.nav-links ul { position: absolute; top: 100%; left: 0; background: #111; min-width: 200px; display: none; flex-direction: column; box-shadow: 0 5px 10px rgba(0,0,0,0.3); border-top: 3px solid var(--primary-color); }
.nav-links li:hover > ul { display: flex; }
.nav-links ul li { width: 100%; border-bottom: 1px solid #222; }
.nav-links ul li a { padding: 12px 15px; display: block; font-size: 13px; text-transform: capitalize; color: #ccc; font-weight: 400; font-family: var(--font-content); }
.nav-links ul li a:hover { background: #222; color: #fff; }

/* NEWS TICKER */
.ticker-wrapper { background: var(--light-gray); border-bottom: 1px solid #e5e5e5; height: 80px; overflow: hidden; margin-bottom: 30px; }
.ticker-track { display: flex; width: max-content; animation: scroll-left 40s linear infinite; align-items: center; height: 100%; }
@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ticker-item { display: flex; align-items: center; margin-right: 50px; height: 100%; padding: 10px 0; }
.ticker-img { height: 60px; width: auto; border-radius: 4px; display: block; margin-right: 12px; }
.ticker-title { font-family: var(--font-headings); font-weight: 700; font-size: 16px; color: var(--secondary-color); text-decoration: none; line-height: 1.15; letter-spacing: -0.3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; width: 280px; white-space: normal; }
.ticker-title:hover { color: var(--primary-color); }

/* HOMEPAGE ELEMENTS */
.featured-strip { margin-bottom: 40px; }
.strip-heading { margin-bottom: 15px; font-size: 18px; text-transform: uppercase; border-left: 4px solid var(--primary-color); padding-left: 10px; color: var(--secondary-color); }
.featured-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feat-card { background: var(--light-gray); border-radius: 6px; overflow: hidden; box-shadow: 0 4px 8px rgba(0,0,0,0.08); border: 1px solid #eaeaea; transition: transform 0.3s; }
.feat-card:hover { transform: translateY(-3px); }
.feat-media { width: 100%; aspect-ratio: 1200 / 630; background: #0a0a0a; overflow: hidden; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; justify-content: center; }
.feat-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.feat-body { padding: 15px; }
.feat-title { font-size: 15px; font-weight: 700; line-height: 1.35; margin: 0 0 10px 0; color: var(--secondary-color); font-family: var(--font-headings); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feat-title:hover { color: var(--primary-color); }
.feat-meta { font-size: 11px; color: #999; }

/* Hero Section */
.hero-section { margin-bottom: 50px; }
.hero-wrapper { display: grid; grid-template-columns: 1.6fr 1fr; gap: 25px; align-items: start; }
.hero-left { position: relative; border-radius: 6px; overflow: hidden; line-height: 0; background: #0a0a0a; }
.hero-media { position: relative; width: 100%; aspect-ratio: 1200 / 630; background: #0a0a0a; display: flex; align-items: center; justify-content: center; }
.hero-img-big { width: 100%; height: 100%; display: block; object-fit: contain; }
.hero-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 60%, transparent 100%); z-index: 2; line-height: 1.6; }
.cat-badge { background: var(--primary-color); color: var(--secondary-color); padding: 4px 10px; font-size: 11px; font-weight: 800; text-transform: uppercase; display: inline-block; margin-bottom: 10px; border-radius: 3px; }
.hero-big-title { font-size: 28px; margin: 0 0 10px 0; line-height: 1.2; font-family: var(--font-headings); color: #ffffff !important; text-shadow: 2px 2px 4px rgba(0,0,0,0.9); }
.hero-meta { font-size: 12px; font-weight: 600; color: #ffffff !important; text-shadow: 1px 1px 2px rgba(0,0,0,0.8); }
.hero-right { display: flex; flex-direction: column; gap: 15px; }
.hero-small-card { display: block; background: var(--light-gray); border-radius: 6px; overflow: hidden; border: 1px solid #eee; height: 100%; }
.small-card-link { display: flex; align-items: center; padding: 10px; }
.small-card-link:hover { background: #e8e8e8; }
.small-media { width: 120px; aspect-ratio: 1200 / 630; flex-shrink: 0; margin-right: 15px; border-radius: 4px; overflow: hidden; background: #0a0a0a; display: flex; align-items: center; justify-content: center; }
.hero-img-small { width: 100%; height: 100%; object-fit: contain; }
.hero-small-title { font-size: 15px; font-weight: 700; line-height: 1.3; margin: 0 0 5px 0; color: var(--secondary-color); font-family: var(--font-headings); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.small-date { font-size: 11px; color: #999; font-weight: 600; }

/* Category Sections */
.custom-cat-section { margin-bottom: 50px; }
.black-strip { background-color: #1a1a1a; padding: 8px 15px; display: flex; justify-content: space-between; align-items: center; border-radius: 4px; margin-bottom: 25px; border-left: 5px solid var(--primary-color); }
.strip-title { color: #ffffff; font-size: 18px; font-weight: 800; margin: 0; text-transform: uppercase; letter-spacing: 0.5px; }
.red-btn { background-color: #ff0055; color: #ffffff; font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 6px 12px; border-radius: 3px; transition: background 0.3s ease; font-family: var(--font-headings); }
.four-box-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.box-card { background: var(--light-gray); border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.08); border: 1px solid #eee; transition: transform 0.3s ease; display: flex; flex-direction: column; }
.box-media { width: 100%; aspect-ratio: 1200 / 630; overflow: hidden; background: #0a0a0a; display: flex; align-items: center; justify-content: center; }
.box-img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s ease; }
.box-body { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.box-title { font-size: 16px; font-weight: 700; line-height: 1.4; margin: 0 0 10px 0; color: var(--secondary-color); font-family: var(--font-headings); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.box-meta { font-size: 12px; color: #888; font-weight: 600; margin-top: auto; }

/* SINGLE POST */
.single-page-container { display: grid; grid-template-columns: 70% 28%; gap: 2%; margin-top: 30px; margin-bottom: 50px; }
.post-header { margin-bottom: 20px; }
.cat-badge-single { background: var(--primary-color); color: var(--secondary-color); padding: 3px 10px; font-size: 12px; font-weight: 800; text-transform: uppercase; border-radius: 3px; display: inline-block; margin-bottom: 10px; }
.single-title { font-size: 36px; line-height: 1.2; margin-bottom: 15px; color: var(--secondary-color); }
.single-meta { font-size: 13px; color: #888; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.meta-item { margin-right: 15px; }
.meta-item i { color: var(--primary-color); margin-right: 5px; }

/* ORIGINAL/NORMAL SINGLE BANNER CSS */
.single-featured-img { margin-bottom: 30px; border-radius: 6px; overflow: hidden; background: #0a0a0a; display: flex; align-items: center; justify-content: center; }
.single-featured-img img { width: 100%; height: auto; object-fit: contain; display: block; }

.toc-container { background: var(--light-gray); border: 1px solid #e5e5e5; border-top: 3px solid var(--primary-color); padding: 20px; margin-bottom: 35px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.03); display: inline-block; min-width: 300px; max-width: 100%; }
.toc-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 15px; }
.toc-title { font-size: 18px; font-family: var(--font-headings); color: var(--secondary-color); text-transform: uppercase; font-weight: 700; }
.toc-toggle { font-size: 13px; cursor: pointer; color: #555; font-weight: 600; }
.toc-toggle:hover { color: var(--primary-color); }
.toc-toggle i { margin-left: 5px; }
#toc-list { padding-left: 20px; margin: 0; }
#toc-list li { list-style: decimal; margin-bottom: 8px; color: #555; font-size: 15px; }
.toc-sub-item { margin-left: 20px; list-style: circle !important; }
#toc-list li a { color: #333; font-weight: 600; text-decoration: none; transition: color 0.2s; }
#toc-list li a:hover { color: var(--primary-color); text-decoration: underline; }

.post-content { font-size: 17px; line-height: 1.8; color: #333; margin-bottom: 40px; }
.post-content p { margin-bottom: 20px; }
.post-content h2, .post-content h3 { margin-top: 30px; margin-bottom: 15px; color: var(--secondary-color); font-family: var(--font-headings); }
.post-content blockquote { border-left: 5px solid var(--primary-color); background: var(--light-gray); padding: 15px 20px; font-style: italic; margin: 20px 0; color: #555; }

/* --- POST CONTENT LINKS FIX --- */
.post-content a {
    color: #0044cc; /* Dark Blue */
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.3s ease;
}
.post-content a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* =========================================================
   FIX FOR BANNERS & IMAGES INSIDE POST CONTENT
========================================================= */
.post-content figure,
.post-content .wp-block-image {
    margin: 35px 0; /* Gives nice breathing room around the banner */
    max-width: 100%;
    display: block;
}

.post-content img,
.post-content figure img,
.post-content .wp-block-image img,
.post-content p img {
    width: 100%; /* Forces the banner to span the full width of the text area */
    max-width: 100%;
    height: auto !important; /* Keeps your 1080x500 aspect ratio intact */
    display: block;
    border-radius: 6px; /* Matches the rounded corners of your featured images */
    object-fit: cover;
}

/* Prevents the image from having a blue underline if you wrap it in a link */
.post-content a img {
    border: none;
    box-shadow: none;
    transition: transform 0.3s ease;
}

/* Optional: Slight hover effect if the banner is clickable */
.post-content a:hover img {
    transform: translateY(-3px);
}

/* --- BRAND NEW TAGS STYLING --- */
.post-tags { margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tag-label { font-weight: 800; color: var(--secondary-color); text-transform: uppercase; font-size: 14px; margin-right: 5px; }
.tag-label i { color: var(--primary-color); margin-right: 5px; }
.post-tags a { background: var(--secondary-color); color: var(--white); padding: 6px 14px; font-size: 13px; border-radius: 4px; font-weight: 600; transition: 0.3s; text-transform: capitalize; }
.post-tags a:hover { background: var(--primary-color); color: var(--secondary-color); transform: translateY(-2px); }

/* --- AUTHOR BIO BOX STYLING --- */
.author-bio-box { display: flex; align-items: center; background: var(--light-gray); padding: 25px; margin-top: 40px; border-radius: 6px; border-left: 5px solid var(--primary-color); box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
.author-avatar { flex-shrink: 0; margin-right: 20px; }
.author-avatar img { border-radius: 50%; width: 90px; height: 90px; object-fit: cover; border: 3px solid var(--white); box-shadow: 0 3px 6px rgba(0,0,0,0.1); }
.author-info h4 { margin: 0 0 8px 0; font-size: 18px; color: var(--secondary-color); font-family: var(--font-headings); text-transform: uppercase; letter-spacing: 0.5px; }
.author-info h4 a { color: var(--secondary-color); transition: 0.3s; }
.author-info h4 a:hover { color: var(--primary-color); }
.author-info p { margin: 0; font-size: 15px; color: #555; line-height: 1.6; }

.related-posts-section { margin-top: 50px; padding-top: 30px; border-top: 2px solid #eee; }
.related-heading { font-size: 20px; text-transform: uppercase; margin-bottom: 25px; border-left: 5px solid var(--primary-color); padding-left: 15px; color: var(--secondary-color); font-weight: 800; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.related-card { background: var(--light-gray); border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; }
.related-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.related-card a { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }

.rel-media { width: 100%; aspect-ratio: 1200 / 630; overflow: hidden; background: #0a0a0a; display: flex; align-items: center; justify-content: center; }
.rel-media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s ease; }
.rel-title { padding: 15px; font-size: 16px; margin: 0; line-height: 1.4; color: var(--secondary-color); font-family: var(--font-headings); font-weight: 700; }
.rel-title:hover { color: var(--primary-color); }

/* --- SIDEBAR IMAGES --- */
.single-sidebar { position: sticky; top: 20px; height: fit-content; }
.widget-title { font-size: 18px; text-transform: uppercase; border-bottom: 2px solid var(--secondary-color); padding-bottom: 10px; margin-bottom: 20px; color: var(--secondary-color); }
.sidebar-list li { list-style: none; margin-bottom: 15px; }
.side-link { display: flex; align-items: center; }

.side-img { width: 90px; height: 65px; flex-shrink: 0; margin-right: 15px; border-radius: 4px; overflow: hidden; background: #0a0a0a; display: flex; align-items: center; justify-content: center; }
.side-img img { width: 100%; height: 100%; object-fit: contain; display: block; }

.side-info { flex-grow: 1; }
.side-title { font-size: 14px; margin: 0 0 5px 0; line-height: 1.3; font-family: var(--font-headings); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-date { font-size: 11px; color: #999; }

/* CATEGORY PAGE STYLES */
.cat-hero-section { background-color: var(--secondary-color); padding: 80px 0; text-align: center; margin-bottom: 40px; }
.cat-page-title { color: #ffffff; font-size: 48px; margin-bottom: 30px; font-family: var(--font-headings); text-transform: capitalize; }
.cat-search-wrapper { max-width: 500px; margin: 0 auto; position: relative; }
.cat-search-form { display: flex; background: var(--light-gray); border-radius: 5px; overflow: hidden; height: 50px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.cat-search-input { border: none; padding: 0 20px; flex-grow: 1; font-size: 16px; outline: none; color: #333; background: transparent; }
.cat-search-submit { background: var(--light-gray); border: none; padding: 0 20px; color: var(--secondary-color); font-size: 18px; cursor: pointer; transition: color 0.3s; }
.cat-search-submit:hover { color: var(--primary-color); }
.cat-grid-wrapper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.load-more-wrapper { text-align: center; margin-top: 50px; }
#az_load_more_btn { background-color: var(--primary-color); color: var(--secondary-color); font-family: var(--font-headings); font-weight: 700; text-transform: uppercase; padding: 12px 30px; border: none; border-radius: 4px; cursor: pointer; font-size: 16px; transition: background 0.3s, transform 0.2s; }
#az_load_more_btn:hover { background-color: #5bcbd8; transform: translateY(-2px); }

/* FOOTER */
footer { background-color: var(--secondary-color); color: #e0e0e0; padding: 70px 0 0; margin-top: 60px; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 40px; margin-bottom: 50px; }
.footer-widget h3 { color: #ffffff; font-size: 18px; margin-bottom: 25px; font-family: var(--font-headings); text-transform: capitalize; font-weight: 700; }
.branding-widget .footer-logo img { width: auto; max-width: 180px; height: auto; display: block; margin-bottom: 20px; }
.footer-desc { line-height: 1.8; margin-bottom: 25px; color: #ffffff; font-weight: 500; }
.footer-links li { margin-bottom: 12px; list-style: none; }
.footer-links li a { color: #ffffff; font-weight: 600; text-decoration: none; transition: 0.3s; display: inline-block; }
.footer-links li a:hover { color: var(--primary-color); transform: translateX(5px); }

/* --- FOOTER BLOG WIDGET IMAGES --- */
.footer-blog-list { display: flex; flex-direction: column; gap: 15px; }
.footer-blog-item { display: flex; align-items: center; text-decoration: none; color: inherit; transition: 0.3s; }
.footer-blog-item:hover { transform: translateX(5px); }
.footer-blog-item:hover h4 { color: var(--primary-color); }

.f-blog-img { width: 90px; height: 65px; flex-shrink: 0; margin-right: 15px; border-radius: 4px; overflow: hidden; background: #0a0a0a; display: flex; align-items: center; justify-content: center; }
.f-blog-img img { width: 100%; height: 100%; object-fit: contain; display: block; }

.f-blog-info h4 { font-size: 14px; margin: 0 0 5px 0; color: #ffffff; line-height: 1.3; font-family: var(--font-headings); font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.f-blog-info span { font-size: 11px; color: #999; }

.copyright { background-color: rgba(0,0,0,0.2); padding: 20px 0; text-align: center; font-size: 13px; color: #ffffff; font-weight: 600; border-top: 1px solid rgba(255,255,255,0.05); }


/* =========================================================
   SEPARATE MOBILE RESPONSIVENESS (NO WEB ERRORS)
========================================================= */
@media (max-width: 992px) {
    .four-box-grid, .featured-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-wrapper { grid-template-columns: 1fr; }
    .hero-right { display: grid; grid-template-columns: 1fr 1fr; }
    .cat-grid-wrapper { grid-template-columns: repeat(2, 1fr); }
    .footer-cols { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }
    .nav-wrapper { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--dark-bg); box-shadow: 0 5px 10px rgba(0,0,0,0.3); flex-direction: column; }
    .nav-wrapper.active { display: flex; }
    .nav-links { flex-direction: column; width: 100%; align-items: flex-start; }
    .nav-links > li { width: 100%; border-bottom: 1px solid #222; }
    .nav-links > li > a { padding: 15px; width: 100%; box-sizing: border-box; }
    .nav-links ul { position: static; display: none; width: 100%; background: #1a1a1a; padding-left: 15px; border-top: none; }
    .nav-links li:hover > ul { display: block; } 
    
    .hero-right { grid-template-columns: 1fr; }
    .single-page-container { grid-template-columns: 1fr; display: flex; flex-direction: column; }
    
    /* HIDDEN ON MOBILE */
    .single-sidebar { display: none !important; }
    .toc-container { display: none !important; }
    
    .related-grid { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 600px) {
    .four-box-grid, .featured-grid { grid-template-columns: 1fr; }
    .cat-grid-wrapper { grid-template-columns: 1fr; }
    .cat-page-title { font-size: 36px; }
    
    .branding-widget { text-align: center; }
    .footer-logo img { margin: 0 auto 20px auto; }
    
    .hero-big-title { font-size: 20px; margin-bottom: 5px; }
    .hero-overlay { padding: 15px; }
    .small-media { width: 100px; }
    
    .single-title { font-size: 26px; }
    
    /* Mobile Tags Fix */
    .post-tags {
        display: flex !important;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        text-align: center;
        padding-top: 15px;
    }

    /* Mobile Author Box Fix */
    .author-bio-box { 
        display: flex !important;
        flex-direction: column; 
        text-align: center; 
        padding: 20px 15px;
    }
    .author-avatar { 
        margin-right: 0; 
        margin-bottom: 15px; 
    }
    .author-avatar img {
        width: 80px; 
        height: 80px;
    }
}