/* ============================================
   css/style.css - Complete Blog System Styles
   Fixed: Responsive Menu Toggle, Sticky Header, Ad Sizes
   Removed: Ad Background Shadow
   ============================================ */

/* ==================== ROOT VARIABLES ==================== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #e2e8f0;
    --white: #ffffff;
    --black: #000000;
    --shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.02);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --header-scroll-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* ==================== RESET & BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ==================== HEADER STYLES (SCROLL + STICKY) ==================== */
.header {
    position: relative;
    top: 0;
    background: var(--white);
    z-index: 1000;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--header-scroll-shadow);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    flex-wrap: wrap;
    gap: 20px;
    transition: padding 0.3s ease;
}

.header.scrolled .header-top {
    padding: 12px 0;
}

.logo-wrapper {
    flex-shrink: 0;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.logo span {
    color: var(--dark);
}

.logo-image img {
    max-height: 60px;
    width: auto;
    transition: max-height 0.3s ease;
}

.header.scrolled .logo-image img {
    max-height: 45px;
}

/* ==================== HEADER AD (728x90) - RESPONSIVE, NO SHADOW ==================== */
.header-ad {
    flex: 1;
    text-align: right;
}

.ad-container {
    background: transparent !important;
    text-align: center;
    padding: 0px;
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: auto;
    /* NO SHADOW */
    box-shadow: none;
   
}

.header-ad .ad-container {
    background: transparent;
    width: 100%;
    max-width: 728px;
    min-height: 90px;
    margin-left: auto;
}

.header-ad .ad-container ins.adsbygoogle {
    display: inline-block;
    width: 728px;
    height: 90px;
}

/* ==================== NAVIGATION ==================== */
.nav {
    background: var(--white);
    padding: 12px 0;
    border-top: 1px solid var(--gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
    display: block;
    padding: 8px 0;
}

.nav-menu a:hover {
    color: var(--primary);
}

/* Dropdown Menu Desktop */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    list-style: none;
}

.menu-item:hover > .submenu {
    opacity: 1;
    visibility: visible;
}

.submenu li {
    position: relative;
}

.submenu a {
    padding: 10px 20px;
    display: block;
    font-size: 14px;
}

.submenu .submenu {
    top: 0;
    left: 100%;
}

.search-form {
    flex-shrink: 0;
}

.search-form input {
    padding: 8px 12px;
    border: 1px solid var(--gray);
    border-radius: 8px;
    font-size: 14px;
    width: 200px;
}

.search-form button {
    background: var(--primary);
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: white;
    transition: background 0.3s;
}

.search-form button:hover {
    background: var(--primary-dark);
}

/* ==================== MOBILE TOGGLE MENU (FIXED & FULLY FUNCTIONAL) ==================== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 200;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 140;
    display: none;
}

.menu-overlay.active {
    display: block;
}

/* ==================== MAIN CONTENT ==================== */
.main {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

/* ==================== POSTS GRID ==================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.post-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.post-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--gray);
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 20px;
}

.post-meta {
    margin-bottom: 12px;
}

.post-date {
    font-size: 13px;
    color: var(--secondary);
}

.post-card-title {
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.post-card-title a {
    text-decoration: none;
    color: var(--dark);
    transition: color 0.3s;
}

.post-card-title a:hover {
    color: var(--primary);
}

.post-card-subtitle {
    color: var(--secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    width: 100%;
}

.sidebar-widget {
    background: var(--white);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    position: relative;
}

.widget-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widget-post {
    display: flex;
    gap: 12px;
    align-items: center;
}

.widget-post-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--gray);
}

.widget-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-post-info {
    flex: 1;
}

.widget-post-info h4 {
    font-size: 14px;
    margin-bottom: 6px;
    line-height: 1.4;
}

.widget-post-info a {
    text-decoration: none;
    color: var(--dark);
    transition: color 0.3s;
}

.widget-post-info a:hover {
    color: var(--primary);
}

.widget-post-date,
.widget-post-views {
    font-size: 11px;
    color: var(--secondary);
    display: inline-block;
    margin-right: 10px;
}

/* Sidebar Ad - NO SHADOW */
.sidebar-ad .ad-container {
        background: transparent !important;
    width: 100%;
    min-height: 250px;
    box-shadow: none;
}

.sidebar-ad .ad-container ins.adsbygoogle {
    display: block;
    width: 100%;
    height: 250px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px;
    border: 1px solid var(--gray);
    border-radius: 10px;
    font-size: 14px;
}

.newsletter-form button {
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

/* ==================== SINGLE POST PAGE ==================== */
.single-post-article {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.post-date-top {
    padding: 20px 40px 0;
    font-size: 14px;
    color: var(--secondary);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--gray);
    padding-bottom: 15px;
    margin-bottom: 10px;
}

.post-date-top i {
    margin-right: 6px;
}

.post-featured-image-bordered {
    margin: 20px 40px;
    border: 3px solid var(--primary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.post-featured-image-bordered img {
    width: 100%;
    height: auto;
    display: block;
}

.post-header-single {
    padding: 20px 40px;
}

.post-meta-single {
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.post-date-single,
.post-views-single {
    font-size: 14px;
    color: var(--secondary);
}

.post-title-single {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--dark);
}

.post-subtitle-single {
    font-size: 20px;
    color: var(--secondary);
    line-height: 1.4;
}

/* In-Content Ad - NO SHADOW */
.in-content-ad {
    margin: 30px 0;
    text-align: center;
}

.in-content-ad .ad-container {
    width: 100%;
    min-height: 90px;
      background: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.in-content-ad .ad-container ins.adsbygoogle {
    display: block;
    width: 100%;
    height: 90px;
}

/* Post Content */
.post-content-single {
    padding: 20px 40px 40px;
    font-size: 18px;
    line-height: 1.8;
    color: #334155;
}

.post-content-single p {
    margin-bottom: 24px;
}

.post-content-single h2 {
    font-size: 32px;
    margin: 40px 0 20px;
    color: var(--dark);
}

.post-content-single h3 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: var(--dark);
}

.post-content-single h4 {
    font-size: 20px;
    margin: 25px 0 12px;
    color: var(--dark);
}

.post-content-single img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
}

.post-content-single img:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.post-content-single ul,
.post-content-single ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-content-single li {
    margin-bottom: 10px;
}

.post-content-single strong,
.post-content-single b {
    font-weight: 700;
    color: var(--dark);
}

.post-content-single em,
.post-content-single i {
    font-style: italic;
}

.post-content-single blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin: 25px 0;
    font-style: italic;
    color: var(--secondary);
}

.post-content-single code {
    background: var(--light);
    padding: 2px 8px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 14px;
}

.post-content-single pre {
    background: var(--dark);
    color: var(--light);
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 20px 0;
    position: relative;
}

/* ==================== SOCIAL SHARE SECTION ==================== */
.social-share-section {
    padding: 30px 40px;
    background: var(--light);
    margin: 20px 0;
    border-radius: 16px;
}

.share-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--dark);
}

.share-title i {
    color: var(--primary);
    margin-right: 10px;
}

.social-share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 40px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.3s, opacity 0.3s;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.pinterest { background: #e60023; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.email { background: #6c757d; }

/* ==================== COMMENTS SECTION ==================== */
.comments-section {
    padding: 0 40px 40px;
    border-top: 1px solid var(--gray);
    margin-top: 20px;
}

.comments-title {
    font-size: 24px;
    margin: 30px 0 20px;
    color: var(--dark);
}

.comment-form-wrapper {
    background: var(--light);
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.comment-form-wrapper h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-comment {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
}

.submit-comment:hover {
    background: var(--primary-dark);
}

.comment-success {
    background: #d1fae5;
    color: #065f46;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #10b981;
}

.comment-moderation-notice {
    font-size: 12px;
    color: var(--secondary);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.comments-list {
    margin-top: 30px;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray);
}

.comment-avatar i {
    font-size: 48px;
    color: var(--secondary);
}

.comment-body {
    flex: 1;
}

.comment-meta {
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.comment-author {
    font-weight: 700;
    color: var(--dark);
}

.comment-date {
    font-size: 12px;
    color: var(--secondary);
}

.comment-text {
    line-height: 1.6;
    color: var(--dark);
}

.no-comments {
    color: var(--secondary);
    font-style: italic;
    padding: 20px 0;
    text-align: center;
}

/* ==================== RELATED & RANDOM POSTS ==================== */
.related-posts-section,
.random-posts-section {
    padding: 0 40px 40px;
    border-top: 1px solid var(--gray);
    margin-top: 20px;
}

.related-title,
.random-posts-title {
    font-size: 24px;
    font-weight: 700;
    margin: 30px 0 20px;
    color: var(--dark);
}

.related-posts-grid,
.random-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.related-post-card,
.random-post-card {
    background: var(--light);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-post-card:hover,
.random-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.related-post-image,
.random-post-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: var(--gray);
}

.related-post-image img,
.random-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-post-card:hover .related-post-image img,
.random-post-card:hover .random-post-image img {
    transform: scale(1.05);
}

.related-post-content,
.random-post-content {
    padding: 15px;
}

.related-post-content h4,
.random-post-content h4 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.related-post-content a,
.random-post-content a {
    text-decoration: none;
    color: var(--dark);
    transition: color 0.3s;
}

.related-post-content a:hover,
.random-post-content a:hover {
    color: var(--primary);
}

.related-post-date,
.random-post-date {
    font-size: 12px;
    color: var(--secondary);
}

/* ==================== PAGINATION ==================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination a {
    padding: 10px 16px;
    background: var(--white);
    text-decoration: none;
    color: var(--dark);
    border-radius: 10px;
    transition: all 0.3s;
    min-width: 42px;
    text-align: center;
}

.pagination a:hover,
.pagination a.active {
    background: var(--primary);
    color: var(--white);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    display: inline-block;
}

.footer-col h4:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.social-links a i {
    width: 20px;
}

/* ==================== FOOTER AD (970x90) - RESPONSIVE, NO SHADOW ==================== */
.footer-ad {
    text-align: center;
    margin: 40px 0;
}

.footer-ad .ad-container {
     background: transparent !important;
    width: 100%;
    max-width: 970px;
    min-height: 90px;
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: none;
}

.footer-ad .ad-container ins.adsbygoogle {
    display: inline-block;
    width: 970px;
    height: 90px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 14px;
}

/* ==================== BACK TO TOP BUTTON ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
    transform: translateY(-3px);
    background: var(--primary-dark);
}

/* ==================== UTILITY CLASSES ==================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 40px;
    transition: background 0.3s;
    font-weight: 500;
}

.btn:hover {
    background: var(--primary-dark);
}

.search-info {
    background: var(--white);
    padding: 20px 24px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.search-info h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.search-info p {
    color: var(--secondary);
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 16px;
}

.post-reading-time,
.post-views-count {
    color: var(--secondary);
    font-size: 13px;
}

.post-reading-time i,
.post-views-count i {
    margin-right: 4px;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-0 { margin-bottom: 0; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.p-20 { padding: 20px; }
.rounded { border-radius: 12px; }
.shadow { box-shadow: var(--shadow); }

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.post-card,
.single-post-article,
.sidebar-widget {
    animation: fadeIn 0.5s ease;
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==================== LIGHTBOX ==================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: fadeIn 0.3s ease;
}

.lightbox button {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10000;
    transition: transform 0.3s;
}

.lightbox button:hover {
    transform: scale(1.1);
}

/* ==================== COPY CODE BUTTON ==================== */
.copy-code-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
    z-index: 10;
    transition: all 0.3s ease;
}

.copy-code-btn:hover {
    background: var(--primary-dark);
}

/* ==================== RESPONSIVE TABLES ==================== */
.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

.table-responsive table {
    min-width: 600px;
    width: 100%;
    border-collapse: collapse;
}

.table-responsive th,
.table-responsive td {
    border: 1px solid var(--gray);
    padding: 10px;
    text-align: left;
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablet (992px and below) */
@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }
    
    .content-wrapper {
        gap: 30px;
    }
    
   .post-title-single {
    font-size: 36px;
    padding-left: 5px;
}
    
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
    
    /* Tablet Ad Sizes */
    .header-ad .ad-container {
        max-width: 100%;
    }
    
    .header-ad .ad-container ins.adsbygoogle {
        width: 100%;
        max-width: 728px;
        height: auto;
        min-height: 90px;
    }
    
    .footer-ad .ad-container {
        max-width: 728px;
    }
    
    .footer-ad .ad-container ins.adsbygoogle {
        width: 100%;
        max-width: 728px;
        height: auto;
        min-height: 90px;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Header Mobile */
    .header-top {
        flex-direction: column;
        text-align: center;
    }
    
    .header.scrolled .header-top {
        padding: 10px 0;
    }
    
    .header-ad {
        text-align: center;
        width: 100%;
    }
    
    .header-ad .ad-container {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        min-height: auto;
    }
    
    .header-ad .ad-container ins.adsbygoogle {
        width: 100%;
        height: auto;
        min-height: 60px;
    }
    
    /* Toggle Menu Mobile - Fully Functional */
    .menu-toggle {
        display: block;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 20px 30px;
        margin: 0;
        gap: 0;
        transition: left 0.3s ease;
        z-index: 150;
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        border-bottom: 1px solid var(--gray);
        width: 100%;
        list-style: none;
    }
    
    .nav-menu a {
        padding: 15px 0;
        display: block;
        font-size: 16px;
    }
    
    /* Dropdown on mobile */
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding-left: 20px;
        display: none;
        background: var(--light);
        width: 100%;
        border-radius: 0;
    }
    
    .menu-item.active > .submenu {
        display: block;
    }
    
    .submenu a {
        padding: 12px 0;
        font-size: 14px;
    }
    
    .submenu .submenu {
        padding-left: 20px;
    }
    
    /* Dropdown arrow indicator */
    .menu-item.has-dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .menu-item.has-dropdown > a::after {
        content: '▼';
        font-size: 10px;
        transition: transform 0.3s;
        font-family: inherit;
    }
    
    .menu-item.has-dropdown.active > a::after {
        transform: rotate(180deg);
    }
    
    .search-form {
        width: 100%;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    .search-form input {
        width: calc(100% - 50px);
        max-width: none;
    }
    
    /* Single Post Mobile */
    .post-date-top {
        padding: 15px 20px 0;
        font-size: 12px;
        gap: 12px;
    }
    
    .post-featured-image-bordered {
        margin: 15px 20px;
    }
    
    .post-header-single {
        padding: 15px 20px;
    }
    
 .post-title-single {
    font-size: 36px;
    padding-left: 5px;
}
    
    .post-subtitle-single {
        font-size: 16px;
    }
    
    
    .post-subtitle-single {
        font-size: 16px;
    }
    
    .post-meta-single {
        gap: 12px;
        font-size: 12px;
    }
    
    .post-content-single {
        padding: 15px 20px 25px;
        font-size: 16px;
    }
    
    .post-content-single h2 {
        font-size: 24px;
    }
    
    .post-content-single h3 {
        font-size: 20px;
    }
    
    /* Social Share Mobile */
    .social-share-section {
        padding: 20px;
        margin: 15px 0;
    }
    
    .social-share-buttons {
        gap: 8px;
    }
    
    .share-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    /* Comments Mobile */
    .comments-section {
        padding: 0 20px 30px;
    }
    
    .comments-title {
        font-size: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .comment-form-wrapper {
        padding: 20px;
    }
    
    .comment-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .comment-avatar {
        text-align: center;
    }
    
    /* Related & Random Posts Mobile */
    .related-posts-section,
    .random-posts-section {
        padding: 0 20px 30px;
    }
    
    .related-title,
    .random-posts-title {
        font-size: 20px
    
    .related-title, .random-posts-title {
        font-size: 20px;
    }
    
    .related-posts-grid, .random-posts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Sidebar Mobile */
    .sidebar-widget {
        padding: 20px;
    }
    
    /* Pagination Mobile */
    .pagination a {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 40px 0 20px;
        margin-top: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-col h4:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        align-items: center;
    }
    
    /* In-Content Ad Mobile */
    .in-content-ad .ad-container ins.adsbygoogle {
        height: auto;
        min-height: 60px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
 .post-title-single {
    font-size: 36px;
    padding-left: 5px;
}
    
    .post-subtitle-single {
        font-size: 14px;
    }
    
    .post-card-title {
        font-size: 18px;
    }
    
    .widget-post {
        flex-direction: column;
        text-align: center;
    }
    
    .widget-post-image {
        margin: 0 auto;
    }
    
    .share-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .comment-meta {
        flex-direction: column;
        gap: 5px;
    }
}

/* Desktop Large */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
}

/* Print Styles */
@media print {
    .header, .footer, .sidebar, .social-share-section, .comments-section, 
    .related-posts-section, .random-posts-section, .pagination, .search-form,
    .header-ad, .footer-ad, .in-content-ad, .sidebar-ad, .banner-ad {
        display: none;
    }
    
    .main-content {
        width: 100%;
    }
    
    .post-content-single {
        color: black;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-0 { margin-bottom: 0; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.p-20 { padding: 20px; }
.rounded { border-radius: 12px; }
.shadow { box-shadow: var(--shadow); }
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.post-card, .single-post-article, .sidebar-widget {
    animation: fadeIn 0.5s ease;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}
/* ==================== MOBILE TOGGLE MENU ==================== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 200;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav {
        position: relative;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 20px 30px;
        margin: 0;
        gap: 0;
        transition: left 0.3s ease;
        z-index: 150;
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        border-bottom: 1px solid var(--gray);
        width: 100%;
    }
    
    .nav-menu a {
        padding: 15px 0;
        display: block;
        font-size: 16px;
    }
    
    /* Overlay when menu is open */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 140;
        display: none;
    }
    
    .menu-overlay.active {
        display: block;
    }
    
    /* Dropdown on mobile */
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding-left: 20px;
        display: none;
        background: var(--light);
        width: 100%;
        border-radius: 0;
    }
    
    .menu-item.active > .submenu {
        display: block;
    }
    
    .submenu a {
        padding: 12px 0;
        font-size: 14px;
    }
    
    .submenu .submenu {
        padding-left: 20px;
    }
    
    /* Dropdown arrow indicator */
    .menu-item {
        position: relative;
    }
    
    .menu-item > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .menu-item.has-dropdown > a::after {
        content: '\f078';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 12px;
        transition: transform 0.3s;
    }
    
    .menu-item.has-dropdown.active > a::after {
        transform: rotate(180deg);
    }
    
    .search-form {
        width: 100%;
        margin-top: 20px;
    }
    
    .search-form input {
        width: calc(100% - 50px);
    }
}/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.back-to-top:hover {
    transform: translateY(-3px);
    background: var(--primary-dark);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* COMPLETE ADS CLEAN STYLE */
.ad-container,
.header-ad .ad-container,
.sidebar-ad .ad-container,
.footer-ad .ad-container,
.in-content-ad .ad-container,
.banner-ad .ad-container {
    background: #146ac100; !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

/* Remove parent widget/card shadow if ad inside */
.sidebar-ad,
.header-ad,
.footer-ad,
.in-content-ad,
.banner-ad {
    background: #146ac100; !important;
    box-shadow: none !important;
    border: none !important;
}