/*
Theme Name: News
Description: A modern block-based WordPress theme for Hindi news portals with sticky header, carousel sections, and responsive design.
Version: 1.0.0
Author: AST Consulting
License: GPL v2 or later
Text Domain: news
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

/* Header Styles */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
    padding-top: 0;
    padding-bottom: 0;
}

.site-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    animation: slideDown 0.3s ease-in-out;
}

.site-header.sticky .top-header {
    display: none;
}

.site-header.sticky .main-navigation {
    padding: 15px 0;
    background: #fff;
    /* border-bottom: 1px solid #e9ecef; */
}

.site-header.sticky .wp-block-navigation .wp-block-navigation-item {
    display: flex;
    align-items: center;
    height: 100%;
}

.site-header.sticky .wp-block-navigation .wp-block-navigation-item__content {
    display: flex;
    align-items: center;
    height: 100%;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Top Header Section */
.top-header {
    background: #f8f9fa;
    /* padding: 0px 0; */
    /* border-bottom: 1px solid #e9ecef; */
    padding-top: 8px;
    /* padding-bottom: 8px; */
}

.top-header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo .wp-block-site-logo {
    margin-right: 10px;
}

.site-logo .wp-block-site-title {
    font-size: 24px;
    font-weight: 700;
}

.site-logo .site-url {
    font-size: 12px;
    color: #666;
    text-decoration: none;
}



/* Main Navigation */
.main-navigation {
    background: #fff;
    padding: 3px 0;
    border-bottom: 1px solid #e9ecef;
}

.nav-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Add spacing between menu items in normal header */
.wp-block-navigation__container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}



.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav-menu a:hover {
    background-color: #f8f9fa;
    color: #000;
}

/* --- Submenu overrides: black text, no background/border/shadow --- */
/* Classic menus: containers */
.main-navigation .nav-menu li ul,
.main-navigation .nav-menu li ul.sub-menu,
.main-navigation .nav-menu li ul.children {
	background: #fff !important;
	border: none !important;
	box-shadow: none !important;
}

/* Classic menus: links */
.main-navigation .nav-menu li ul.sub-menu a,
.main-navigation .nav-menu li .sub-menu a,
.main-navigation .nav-menu li ul.children a {
	color: #000 !important;
	background-color: transparent !important;
	border: none !important;
}

.main-navigation .nav-menu li ul.sub-menu a:hover,
.main-navigation .nav-menu li ul.sub-menu a:focus,
.main-navigation .nav-menu li .sub-menu a:hover,
.main-navigation .nav-menu li .sub-menu a:focus,
.main-navigation .nav-menu li ul.children a:hover,
.main-navigation .nav-menu li ul.children a:focus {
	color: #000 !important;
	background-color: transparent !important;
	border: none !important;
}

/* Block navigation: containers */
.wp-block-navigation .wp-block-navigation__submenu-container {
	background: #fff !important;
	border: none !important;
	box-shadow: none !important;
}

/* Block navigation: links */
.primary-menu .wp-block-navigation__submenu-container a,
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	color: #000 !important;
	background-color: transparent !important;
	border: none !important;
}

.primary-menu .wp-block-navigation__submenu-container a:hover,
.primary-menu .wp-block-navigation__submenu-container a:focus,
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus {
	color: #000 !important;
	background-color: transparent !important;
	border: none !important;
}

.nav-menu .dropdown-toggle::after {
    content: '▼';
    margin-left: 5px;
    font-size: 10px;
}

.nav-right {
    display: flex;
    align-items: center;
}

/* Menu Overflow System */
.menu-overflow-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    max-width: 100%;
    overflow: hidden;
}

.menu-overflow-container .wp-block-navigation-item {
    flex-shrink: 0;
}

.menu-overflow-dropdown {
    position: relative;
    display: none;
    flex-shrink: 0;
}

.menu-overflow-toggle {
    padding: 8px 16px;
    cursor: pointer;
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    font-family: inherit;
    font-size: inherit;
    text-decoration: none;
}

.menu-overflow-toggle::after {
    content: '▼';
    font-size: 10px;
    transition: transform 0.3s ease;
}

.menu-overflow-toggle:hover {
    /* Hover effect removed */
}

.menu-overflow-toggle.active::after {
    transform: rotate(180deg);
}

.menu-overflow-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.menu-overflow-dropdown .dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-overflow-dropdown .dropdown-menu li {
    margin: 0;
    padding: 0;
}

.menu-overflow-dropdown .dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.menu-overflow-dropdown .dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: #333;
}

/* Show overflow dropdown on all screen sizes */
.menu-overflow-dropdown {
    display: block;
}

/* Desktop styles (≥1024px) */
@media (min-width: 1024px) {
    /* Sticky header inherits normal header styling */
    .site-header.sticky .nav-container {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    /* Ensure menu overflow stays in first line for sticky header */
    .site-header.sticky .wp-block-navigation {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        overflow: hidden;
    }
    
    .site-header.sticky .wp-block-navigation__container {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 20px;
    }
    
    .site-header.sticky .menu-overflow-dropdown {
        flex-shrink: 0;
        margin-left: auto;
    }
    
    /* Desktop dropdown positioning */
    .menu-overflow-dropdown .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 200px;
    }
}

/* Tablet styles (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .menu-overflow-dropdown .dropdown-menu {
        position: absolute;
        top: 100%;
        right: 0;
        min-width: 180px;
    }
}

/* Mobile styles (≤767px) */
@media (max-width: 767px) {
    /* Hide menu overflow dropdown completely on mobile */
    .menu-overflow-dropdown {
        display: none !important;
    }
    
    /* Ensure all menu items are visible on mobile */
    .primary-menu .wp-block-navigation__container .wp-block-navigation-item {
        display: block !important;
    }
}

.search-input {
    width: 300px;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
}

.search-input:focus {
    border-color: #000;
}

/* Trends Section */
.trends-section {
    background: #fff;
    color: #000;
    padding: 12px 0;
    margin-top: 0;
    margin-bottom: 0;
}

/* Ensure trends section follows same width constraints as other sections */
.trends-section.wp-block-group,
.trends-section.has-dark-gray-background-color {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    background-color: #fff !important;
    color: #000 !important;
}

.trends-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.trends-label {
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    background-color: var(--wp--preset--color--yellow);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.2;
    
}

.trends-list {
    display: flex !important;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    margin-left: 20px;
    flex-wrap: nowrap !important;
    align-items: center;
    flex-direction: row !important;
}

.trends-list .wp-block-post-template {
    gap: 6px;
}

.trends-list .wp-block-post-template > * {
    margin-right: 6px;
    padding-right: 6px;
    border-right: 1px solid #666;
}

.trends-list .wp-block-post-template > *:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

/* Auto-scroll animation */
@keyframes autoScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Pause animation on hover */
.trends-list:hover {
    animation-play-state: paused;
}

.trends-list::-webkit-scrollbar {
    display: none;
}

.trends-item {
    white-space: nowrap;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    line-height: 1.4 !important;
    padding: 4px 0 !important;
    overflow: visible !important;
    font-family: "Noto Sans Devanagari", sans-serif !important;
}



.trends-item:not(:last-child)::after {
    content: '|';
    margin-left: 10px;
    color: #666;
}

/* Override WordPress query block styles for horizontal layout */
.wp-block-query.trends-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
}

.wp-block-query.trends-list .wp-block-post-template {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
}

/* Hindi text rendering fixes */
.trends-item h3 {
    line-height: 1.4 !important;
    padding: 4px 0 !important;
    overflow: visible !important;
    font-family: "Noto Sans Devanagari", sans-serif !important;
    text-rendering: optimizeLegibility;
    -webkit-font-feature-settings: "liga" 1, "kern" 1;
    font-feature-settings: "liga" 1, "kern" 1;
}

/* Responsive auto-scroll for mobile only */
@media (max-width: 768px) {
    .trends-list {
        animation: autoScroll 60s linear infinite;
        animation-play-state: running;
        gap: 4px;
    }
    
    .trends-list:hover {
        animation-play-state: paused;
    }
    
    .trends-list .wp-block-post-template {
        gap: 4px;
    }
    
    .trends-list .wp-block-post-template > * {
        margin-right: 4px;
        padding-right: 4px;
    }
    
    .trends-list .wp-block-post-template > *:last-child {
        margin-right: 0;
        padding-right: 0;
    }
}

/* Disable auto-scroll on larger screens */
@media (min-width: 769px) {
    .trends-list {
        animation: none;
    }
}

/* Responsive styling for trends at 480px */
@media (max-width: 480px) {
    .trends-list {
        gap: 3px;
    }
    
    .trends-list .wp-block-post-template {
        gap: 3px;
    }
    
    .trends-list .wp-block-post-template > * {
        margin-right: 3px;
        padding-right: 3px;
    }
    
    .trends-list .wp-block-post-template > *:last-child {
        margin-right: 0;
        padding-right: 0;
    }
}

/* News Categories Section */
.news-categories-section {
    margin: 40px 0;
}

.news-categories-grid {
    gap: 30px;
}

.news-category-column {
    flex: 1;
    min-width: 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--wp--preset--color--yellow);
}

.category-title {
    margin: 0;
    color: var(--wp--preset--color--primary);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.category-read-more .wp-block-button__link {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.category-read-more .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.featured-post-card {
    margin-bottom: 20px;
}

.featured-post-card .wp-block-post-featured-image {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.featured-post-card .wp-block-post-featured-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-post-card .wp-block-post-featured-image:hover img {
    transform: scale(1.05);
}

.featured-post-title {
    margin: 0;
    color: var(--wp--preset--color--primary);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-post-title a:hover {
    /* Hover color effect removed */
}

.news-list {
    margin-top: 20px;
}

.news-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item .wp-block-post-featured-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 12px;
}

.news-item .wp-block-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item .wp-block-post-featured-image:hover img {
    transform: scale(1.1);
}

.news-item-title {
    margin: 0;
    color: var(--wp--preset--color--text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news-item-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-item-title a:hover {
    /* Hover color effect removed */
}

/* Responsive Design for News Categories */
@media (max-width: 768px) {
    .news-categories-grid {
        flex-direction: column;
        gap: 40px;
    }
    
    .news-category-column {
        width: 100%;
    }
    
    .category-title {
        font-size: 18px;
    }
    
    .featured-post-card .wp-block-post-featured-image img {
        height: 180px;
    }
    
    .featured-post-title {
        font-size: 16px;
    }
    
    .news-item .wp-block-post-featured-image {
        width: 50px;
        height: 50px;
    }
    
    .news-item-title {
        font-size: 13px;
    }
    
    /* Prevent horizontal scrolling */
    .post-grid {
        gap: 15px;
        overflow-x: auto;
    }
    
    .post-card {
        flex: 0 0 250px;
        min-width: 250px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}


    
    .featured-post-card .wp-block-post-featured-image img {
        height: 160px;
    }
    
    .news-item {
        padding: 12px 0;
    }
    
    .news-item .wp-block-post-featured-image {
        width: 45px;
        height: 45px;
        margin-right: 10px;
    }
    
    .news-item-title {
        font-size: 12px;
    }


/* Post Section */
.post-section {
    margin: 40px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--wp--preset--color--yellow);
    padding-bottom: 10px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.read-more-btn {
    display: flex;
    align-items: center;
}

.read-more-btn .wp-block-button__link {
    background: #000;
    color: #fff;
    border-radius: 20px;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.read-more-btn .wp-block-button__link:hover {
    background: #333;
    transform: translateX(5px);
}

/* Mobile Responsive for All Section Headers */
@media (max-width: 768px) {
    .news-categories-section,
    .post-section,
    .dual-category-section {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .section-header,
    .category-header,
    .sidebar-header {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 15px;
    }
    
    .section-title,
    .category-title,
    .sidebar-title {
        font-size: 20px;
        flex: 1;
        text-align: left;
    }
    
    .read-more-btn,
    .category-read-more,
    .sidebar-read-more {
        flex-shrink: 0;
    }
    
    .read-more-btn .wp-block-button__link,
    .category-read-more .wp-block-button__link,
    .sidebar-read-more .wp-block-button__link {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .post-carousel {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .news-categories-section,
    .post-section,
    .dual-category-section {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .section-header,
    .category-header,
    .sidebar-header {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 10px;
    }
    
    .section-title,
    .category-title,
    .sidebar-title {
        font-size: 18px;
        flex: 1;
        text-align: left;
    }
    
    .read-more-btn .wp-block-button__link,
    .category-read-more .wp-block-button__link {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .post-carousel {
        padding-left: 0;
        padding-right: 0;
    }
    
    .news-categories-grid,
    .dual-category-grid {
        gap: 20px;
    }
    
    /* Prevent horizontal scrolling on mobile */
    .post-card {
        flex: 0 0 220px;
        min-width: 220px;
    }
    
    /* Ensure all containers respect viewport width */
    .wp-block-group,
    .wp-block-columns,
    .wp-block-column {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Prevent text overflow */
    .section-title,
    .category-title,
    .post-title,
    .featured-post-title,
    .news-item-title {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Post Carousel */
.post-carousel {
    margin: 0;
}

.post-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 20px;
}

.post-grid::-webkit-scrollbar {
    display: none;
}

.post-card {
    flex: 0 0 280px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    position: relative;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.post-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 15px;
}

.post-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer Styles */
.site-footer {
    background: #fff;
    padding: 40px 0 20px;
    border-top: 1px solid #e9ecef;
    padding-top: 40px;
    padding-bottom: 0px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 10px;
}

.footer-column h3 {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #FFD700;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-column a:hover {
    color: #000;
}

/* Footer Middle Section */
.footer-middle {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.footer-logo {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
}

.footer-url {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.footer-url::before,
.footer-url::after {
    content: '★';
    color: #FFD700;
    margin: 0 10px;
}

.footer-social {
    margin-top: 20px;
}

.footer-social h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-social-icon:hover {
    transform: scale(1.1);
}

/* Remove any background styling from social icons */
.footer-social-icon,
.footer-social-icon:hover,
.footer-social-icon:focus,
.footer-social-icon:active,
.footer-social-icon a,
.footer-social-icon a:hover,
.footer-social-icon a:focus,
.footer-social-icon a:active {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Footer Bottom Section */
.footer-bottom {
    padding-top: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

/* Footer categories display vertically */
.footer-column .footer-links {
    display: block !important;
    flex-direction: column !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
}

.footer-column .footer-links a {
    display: block !important;
    margin-bottom: 5px !important;
    white-space: normal !important;
}

.footer-column .footer-links a:not(:last-child)::after {
    display: none !important;
}

/* WordPress categories block specific styling */
.footer-column .wp-block-categories {
    display: block !important;
}

.footer-column .wp-block-categories ul {
    display: block !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-column .wp-block-categories li {
    display: block !important;
    width: 100% !important;
    margin-bottom: 5px !important;
}

.footer-column .wp-block-categories a {
    display: block !important;
    width: 100% !important;
    margin-bottom: 5px !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-wrap: normal !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

/* Hide categories beyond the first 5 */
.footer-column .wp-block-categories li:nth-child(n+6) {
    display: none !important;
}

/* Show all categories when expanded */
.footer-column.expanded .wp-block-categories li {
    display: block !important;
}

/* Override the nth-child rule when expanded */
.footer-column.expanded .wp-block-categories li:nth-child(n+6) {
    display: block !important;
}

/* Style for the more categories indicator */
.footer-column .more-categories {
    margin-top: 5px !important;
    margin-bottom: 0 !important;
    cursor: pointer !important;
    color: #666 !important;
    font-size: 14px !important;
    transition: color 0.3s ease !important;
}

.footer-column .more-categories:hover {
    color: #000 !important;
}

.footer-column .more-categories.expanded {
    color: #333 !important;
    font-weight: 500 !important;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #000;
}

.footer-links a:not(:last-child)::after {
    content: '|';
    margin-left: 15px;
    color: #ddd;
}

.copyright {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin: 0;
}

/* Dual Category Section */
.dual-category-section {
    background: #fff;
    padding: 30px 0;
}

.dual-category-grid {
    gap: 30px;
}

.category-block {
    flex: 1;
}

.category-block .category-header {
    margin-bottom: 20px;
    align-items: center;
    border-bottom: 2px solid var(--wp--preset--color--yellow);
    padding-bottom: 10px;
}

.category-block .category-title {
    color: #000;
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}



.category-block .category-read-more .wp-block-button__link {
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-block .category-read-more .wp-block-button__link:hover {
    transform: translateX(3px);
}

.category-block .featured-post-card {
    margin-bottom: 20px;
}

.category-block .featured-post-card .wp-block-post-featured-image {
    margin: 0;
    margin-bottom: 15px;
}

.category-block .featured-post-card .wp-block-post-featured-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.category-block .featured-post-title {
    margin: 0;
    color: var(--wp--preset--color--primary);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-block .news-list {
    margin-top: 20px;
}

.category-block .news-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.category-block .news-item:last-child {
    border-bottom: none;
}

.category-block .news-item .wp-block-post-featured-image {
    margin: 0;
    flex-shrink: 0;
}

.category-block .news-item .wp-block-post-featured-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.category-block .news-item-title {
    color: var(--wp--preset--color--text);
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .trends-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .trends-list {
        margin-left: 0;
    }
    

    
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .post-grid {
        gap: 15px;
    }
    
    .post-card {
        flex: 0 0 250px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    /* Dual category responsive */
    .dual-category-grid {
        flex-direction: column;
        gap: 20px;
    }
    
    .category-block {
        flex: none;
        padding: 15px;
    }
    
    .category-block .featured-post-card .wp-block-post-featured-image {
        margin-bottom: 15px;
    }
    
    .category-block .featured-post-card .wp-block-post-featured-image img {
        height: 180px;
    }
    
    .category-block .news-item {
        padding: 8px;
    }
    
    .category-block .news-item .wp-block-post-featured-image img {
        width: 50px;
        height: 50px;
    }
    
    .category-block .news-item-title {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .post-card {
        flex: 0 0 220px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-links a:not(:last-child)::after {
        display: none;
    }
}

/* Utility Classes */
.hidden {
    display: none;
}

.visible {
    display: block;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Margin Utilities */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

/* Categories Section */
.categories-section {
    padding: 20px 0;
    margin: 20px 0;
}

.categories-heading {
    font-weight: 600;
    color: #2c3e50;
    background: linear-gradient(45deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    font-family: 'Noto Sans Devanagari', 'Arial', sans-serif;
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 15px;
    text-align: center;
}

.categories-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: nowrap;
    max-width: 100%;
    width: 100%;
}

.categories-label {
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
    background: linear-gradient(45deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    font-family: 'Noto Sans Devanagari', 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
}

.categories-list {
    flex: 1;
    min-width: 0;
    font-family: 'Noto Sans Devanagari', 'Arial', sans-serif;
}

/* Override WordPress default styles */
.wp-block-categories {
    display: flex !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
}

.wp-block-categories ul {
    display: flex !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
    width: 100% !important;
    gap: 0;
}

.wp-block-categories li {
    display: inline-flex !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 calc(20% - 8px);
    max-width: calc(20% - 8px);
    min-width: 0;
}

.categories-list ul {
    display: flex !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    width: 100%;
}

.categories-list li {
    white-space: nowrap;
    margin: 0;
    padding: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: row !important;
    float: none !important;
    clear: none !important;
    flex: 0 0 calc(20% - 8px);
    max-width: calc(20% - 8px);
    min-width: 0;
}

.categories-list a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Noto Sans Devanagari', 'Arial', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    padding: 4px 8px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.categories-list a:hover {
    color: #c0392b;
    text-shadow: 0 1px 2px rgba(231, 76, 60, 0.2);
}

/* Removed separator styling */

/* Categories Section */
.categories-section {
    padding: 20px 0;
    margin: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.categories-container {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: nowrap;
    max-width: 100%;
}

.categories-label {
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
    background: linear-gradient(45deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    font-family: 'Noto Sans Devanagari', 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
}

.categories-list {
    flex: 1;
    min-width: 0;
}

.categories-list ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.categories-list li {
    margin: 0;
    padding: 0;
}

.categories-list a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    font-family: 'Noto Sans Devanagari', 'Arial', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
}

.categories-list a:hover {
    color: #c0392b;
    border-bottom-color: #e74c3c;
    transform: translateY(-1px);
    text-shadow: 0 2px 4px rgba(231, 76, 60, 0.2);
}

/* Latest News in Hindi Section */
.latest-news-section {
    padding: 20px 0;
    margin: 20px 0;
}

.latest-news-container {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: nowrap;
    max-width: 100%;
}

.latest-news-label {
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
    background: linear-gradient(45deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    font-family: 'Noto Sans Devanagari', 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.4;
    margin-top: 4px;
}

.latest-news-posts {
    flex: 1;
    min-width: 0;
}

.latest-news-posts .wp-block-post-template {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.latest-news-posts .wp-block-post-template > * {
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0f0f0;
}

.latest-news-posts .wp-block-post-template > *:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.latest-news-title {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    word-wrap: break-word;
    hyphens: auto;
    font-family: 'Noto Sans Devanagari', 'Arial', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    padding: 4px 0;
    overflow: visible;
    text-rendering: optimizeLegibility;
    -webkit-font-feature-settings: "liga" 1, "kern" 1;
    font-feature-settings: "liga" 1, "kern" 1;
}

.latest-news-title a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.latest-news-title a:hover {
    /* Hover color effect removed */
}

/* Responsive design for categories and latest news sections */
@media (max-width: 768px) {
    .categories-section {
        padding: 15px 0;
        margin: 15px 0;
    }
    
    .categories-heading {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .categories-container {
        justify-content: flex-start;
        gap: 8px;
    }
    
    .categories-list li {
        flex: 0 0 calc(33.333% - 8px);
        max-width: calc(33.333% - 8px);
        display: inline-flex !important;
        float: none !important;
    }
    
    .wp-block-categories li {
        display: inline-flex !important;
        float: none !important;
        clear: none !important;
        flex: 0 0 calc(33.333% - 8px);
        max-width: calc(33.333% - 8px);
    }
    
    .categories-list a {
        font-size: 13px;
        padding: 3px 6px;
    }
    
    /* Removed separator styling */
    
    .latest-news-section {
        padding: 15px 0;
        margin: 15px 0;
    }
    
    .latest-news-container {
        gap: 15px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .latest-news-label {
        font-size: 15px;
        margin-bottom: 5px;
        margin-top: 0;
    }
    
    .latest-news-posts .wp-block-post-template {
        gap: 4px;
    }
    
    .latest-news-posts .wp-block-post-template > * {
        margin-bottom: 4px;
        padding-bottom: 4px;
    }
    
    .latest-news-posts .wp-block-post-template > *:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .latest-news-title {
        font-size: 14px;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .categories-section {
        padding: 12px 0;
        margin: 12px 0;
    }
    
    .categories-heading {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .categories-list li {
        flex: 0 0 calc(50% - 8px);
        max-width: calc(50% - 8px);
        display: inline-flex !important;
        float: none !important;
    }
    
    .wp-block-categories li {
        display: inline-flex !important;
        float: none !important;
        clear: none !important;
        flex: 0 0 calc(50% - 8px);
        max-width: calc(50% - 8px);
    }
    
    .categories-list a {
        font-size: 12px;
        padding: 2px 4px;
    }
    
    /* Removed separator styling */
    
    .latest-news-section {
        padding: 12px 0;
        margin: 12px 0;
    }
    
    .latest-news-container {
        gap: 8px;
    }
    
    .latest-news-label {
        font-size: 14px;
    }
    
    .latest-news-title {
        font-size: 13px;
    }
    
    .latest-news-posts .wp-block-post-template {
        gap: 3px;
    }
    
    .latest-news-posts .wp-block-post-template > * {
        margin-bottom: 3px;
        padding-bottom: 3px;
    }
    
    .latest-news-posts .wp-block-post-template > *:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
    }
} 

/* Footer Info Section - 3 Column Layout */
.footer-info-section {
    margin: 5px 0;
}

.footer-info-columns {
    gap: 30px;
    align-items: center;
}

.footer-info-left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.footer-brand {
    gap: 15px;
    align-items: center;
}

.footer-logo-img {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.footer-site-title {
    margin: 0;
    color: #333333;
    font-size: 24px;
    font-weight: 700;
}

.footer-info-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-social-section {
    gap: 15px;
    align-items: center;
}

.footer-social-heading {
    margin: 0 0 10px 0;
    color: #333333;
    font-size: 16px;
    font-weight: 600;
}

.footer-social-icons {
    gap: 10px;
}

.footer-social-icon {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.footer-info-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.footer-navigation {
    gap: 20px;
}

/* Force navigation to always show as horizontal list */
.footer-navigation .wp-block-navigation__container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 20px !important;
}

.footer-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-navigation li {
    margin: 0;
}

.footer-navigation a {
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-navigation a:hover {
    color: #007cba;
}

/* Hide hamburger menu button */
.footer-navigation .wp-block-navigation__responsive-container-open,
.footer-navigation .wp-block-navigation__responsive-container-close {
    display: none !important;
}

/* Force responsive container to always be open */
.footer-navigation .wp-block-navigation__responsive-container {
    display: block !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Responsive Design for Footer Info Section */
@media (max-width: 768px) {
    .footer-info-columns {
        gap: 20px;
        flex-direction: column;
    }
    
    .footer-info-left,
    .footer-info-center,
    .footer-info-right {
        justify-content: center;
        width: 100%;
    }
    
    .footer-brand {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-site-title {
        font-size: 20px;
    }
    
    .footer-social-section {
        text-align: center;
    }
    
    .footer-navigation ul {
        justify-content: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .footer-info-section {
        margin: 15px 0;
    }
    
    .footer-info-columns {
        gap: 15px;
        padding: 20px 0;
        flex-direction: row !important;
    }
    
    .footer-info-left,
    .footer-info-center,
    .footer-info-right {
        flex: 1;
        min-width: 0;
    }
    
    .footer-site-title {
        font-size: 18px;
    }
    
    .footer-social-heading {
        font-size: 14px;
    }
    
    .footer-social-icons {
        gap: 8px;
    }
    
    .footer-navigation ul {
        gap: 8px;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        flex-wrap: wrap;
    }
    
    .footer-navigation .wp-block-navigation__container {
        gap: 8px !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        text-align: left !important;
        flex-wrap: wrap !important;
    }
    
    .footer-navigation li {
        font-size: 12px;
    }
}

/* Post Tags Pills Styling */
.post-tags {
    margin-top: 10px;
}

.tag-pills ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-pills li {
    margin: 0;
}

.tag-pills a {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f0f0f0;
    color: #333333;
    text-decoration: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e0e0e0;
}

/* Remove commas between tags */
.tag-pills .wp-block-post-terms__separator {
    display: none !important;
}

/* Single Post Layout with Sidebar */
.single-post-columns {
    display: flex !important;
    gap: 40px !important;
}

.main-content {
    flex: 7 !important;
    min-width: 0 !important;
}

.sidebar {
    flex: 3 !important;
    min-width: 250px !important;
}

/* Sidebar Sections */
.sidebar-section {
    margin-bottom: 40px !important;
    margin-top: 20px !important;
}

.sidebar-section:last-child {
    margin-bottom: 0 !important;
}

/* Apply category-header styling to sidebar sections */
.sidebar-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 20px !important;
    padding-bottom: 10px !important;
    border-bottom: 3px solid var(--wp--preset--color--yellow) !important;
}

.sidebar-read-more .wp-block-button__link {
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
}

.sidebar-read-more .wp-block-button__link:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

.sidebar-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--wp--preset--color--primary) !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

/* Sidebar News Items */
.sidebar-news-list {
    margin: 0 !important;
}

.sidebar-news-item {
    display: flex !important;
    align-items: flex-start !important;
    margin-bottom: 1px !important;
    padding: px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.sidebar-news-item:last-child {
    border-bottom: none !important;
}

.sidebar-thumbnail {
    flex-shrink: 0 !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    margin-right: 12px !important;
}

.sidebar-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.sidebar-thumbnail:hover img {
    transform: scale(1.1) !important;
}

.sidebar-news-title {
    margin: 0 !important;
    color: var(--wp--preset--color--text) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    flex: 1 !important;
}

.sidebar-news-title a {
    color: inherit !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.sidebar-news-title a:hover {
    /* Hover color effect removed */
}

/* Responsive Design for Single Post */
@media (max-width: 768px) {
    .single-post-columns {
        flex-direction: column !important;
        gap: 30px !important;
    }
    
    .main-content {
        flex: 1 !important;
    }
    
    .sidebar {
        flex: 1 !important;
        min-width: auto !important;
    }
    
    .sidebar-section {
        margin-top: 20px !important;
    }
    
    .sidebar-title {
        font-size: 18px !important;
    }
    
    .sidebar-news-item {
        padding: 12px 0 !important;
    }
    
    .sidebar-thumbnail {
        width: 50px !important;
        height: 50px !important;
        margin-right: 10px !important;
    }
    
    .sidebar-news-title {
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .single-post-columns {
        gap: 20px !important;
    }
    
    .sidebar-section {
        margin-bottom: 30px !important;
        margin-top: 15px !important;
    }
    
    .sidebar-title {
        font-size: 16px !important;
    }
    
    .sidebar-news-item {
        padding: 12px 0 !important;
    }
    
    .sidebar-thumbnail {
        width: 45px !important;
        height: 45px !important;
        margin-right: 10px !important;
    }
    
    .sidebar-news-title {
        font-size: 12px !important;
    }
} 

/* Responsive design for tag pills */
@media (max-width: 768px) {
    .tag-pills ul {
        gap: 6px;
    }
    
    .tag-pills a {
        padding: 5px 10px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .tag-pills ul {
        gap: 5px;
    }
    
    .tag-pills a {
        padding: 4px 8px;
        font-size: 10px;
    }
}

/* Post Navigation */
.post-navigation {
    margin-top: 10px;
    padding: 5px 0;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 20px;
}

.post-navigation .wp-block-post-navigation-link {
    flex: 1;
    max-width: 45%;
}

.post-navigation .wp-block-post-navigation-link a {
    display: flex;
    align-items: center;
    padding: 8px 0;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.post-navigation .wp-block-post-navigation-link--previous a {
    justify-content: flex-start;
}

.post-navigation .wp-block-post-navigation-link--next a {
    justify-content: flex-end;
}

/* Responsive Post Navigation */
@media (max-width: 768px) {
    .post-navigation {
        gap: 15px;
        padding: 4px 0;
    }
    
    .post-navigation .wp-block-post-navigation-link a {
        padding: 4px 0;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .post-navigation {
        gap: 10px;
        padding: 3px 0;
    }
    
    .post-navigation .wp-block-post-navigation-link a {
        padding: 3px 0;
        font-size: 13px;
    }
}

/* Related News Section */
.related-news-section {
    margin-top: 40px;
}

.related-news-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--wp--preset--color--yellow);
}

.related-news-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
}

.related-news-grid .wp-block-post-template {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    flex-direction: unset !important;
    flex-wrap: unset !important;
}

.wp-block-query.related-news-grid {
    display: block !important;
}

.wp-block-query.related-news-grid .wp-block-post-template {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    flex-direction: unset !important;
    flex-wrap: unset !important;
}

.related-news-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    width: 100% !important;
}

.related-news-title-text {
    flex: 1 !important;
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.related-news-title-text a {
    color: #333 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

.related-news-thumbnail {
    width: 60px !important;
    height: 40px !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.related-news-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Responsive Related News */
@media (max-width: 768px) {
    .related-news-grid .wp-block-post-template,
    .wp-block-query.related-news-grid .wp-block-post-template {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .related-news-item {
        gap: 10px !important;
        padding: 8px 0 !important;
    }
    
    .related-news-title-text {
        font-size: 13px !important;
    }
    
    .related-news-thumbnail {
        width: 50px !important;
        height: 35px !important;
    }
}

@media (max-width: 480px) {
    .related-news-title {
        font-size: 20px !important;
        margin-bottom: 15px !important;
    }
    
    .related-news-grid .wp-block-post-template,
    .wp-block-query.related-news-grid .wp-block-post-template {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .related-news-item {
        gap: 8px !important;
        padding: 12px 0 !important;
    }
    
    .related-news-title-text {
        font-size: 12px !important;
    }
    
    .related-news-thumbnail {
        width: 45px !important;
        height: 30px !important;
    }
} 

/* 404 Error Page Styles */
.error-404 {
    margin-top: 60px;
    margin-bottom: 60px;
}

.error-404 .wp-block-heading:first-child {
    font-size: 48px;
    font-weight: 700;
}

.error-404 .wp-block-heading:nth-child(2) {
    font-size: 24px;
    font-weight: 600;
}

.error-404 .has-text-align-center {
    font-size: 18px;
    line-height: 1.6;
}

.error-404 .wp-block-button__link {
    padding-top: 15px;
    padding-right: 30px;
    padding-bottom: 15px;
    padding-left: 30px;
}

.error-404 .wp-block-query {
    margin-top: 60px;
}

.error-404 .wp-block-query .wp-block-heading {
    font-size: 24px;
    font-weight: 600;
}

.error-404 .recent-post {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Archive Page Styles */
.archive-page {
    margin-top: 40px;
    margin-bottom: 40px;
}

.archive-page .wp-block-query-title {
    font-size: 32px;
    font-weight: 700;
    padding-left: 0px !important;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--wp--preset--color--yellow);
    display: inline-block;
    margin-bottom: 15px;
}

.archive-post {
    padding-top: 20px;
    padding-bottom: 20px;
}

.archive-page .sidebar-news-item {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.error-404 .sidebar-news-item {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.archive-post .wp-block-columns {
    gap-top: 20px;
    gap-left: 20px;
}

.archive-post .wp-block-column:first-child {
    flex-basis: 30%;
}

.archive-post .wp-block-column:last-child {
    flex-basis: 70%;
}

.archive-post .wp-block-post-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

.archive-post .post-meta .wp-block-post-date,
.archive-post .post-meta .wp-block-post-author {
    font-size: 14px;
    color: #666666;
}

.archive-post .wp-block-post-excerpt {
    font-size: 16px;
    line-height: 1.6;
}

/* Responsive Archive Styles */
@media (max-width: 768px) {
    .archive-post .wp-block-columns {
        flex-direction: column;
        gap: 15px;
    }
    
    .archive-post .wp-block-column:first-child,
    .archive-post .wp-block-column:last-child {
        flex-basis: 100%;
    }
    
    .archive-post .wp-block-post-title {
        font-size: 20px;
    }
    
    .archive-post .wp-block-post-excerpt {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .error-404 .wp-block-heading:first-child {
        font-size: 36px;
    }
    
    .error-404 .wp-block-heading:nth-child(2) {
        font-size: 20px;
    }
    
    .error-404 .has-text-align-center {
        font-size: 16px;
    }
    
    .archive-page .wp-block-query-title {
        font-size: 24px;
    }
    
    .archive-post .wp-block-post-title {
        font-size: 18px;
    }
} 

/* Single Post Page Styles */
.single-post {
    margin-bottom: 40px;
}

.single-post .main-content {
    margin-top: 20px;
}



.single-post .post-category .wp-block-post-terms {
    font-size: 14px;
    color: #666666;
}

.single-post .wp-block-post-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.single-post .post-meta {
    margin-bottom: 30px;
}

.single-post .post-meta .wp-block-post-author,
.single-post .post-meta .wp-block-post-date {
    font-size: 14px;
    color: #666666;
}

.single-post .wp-block-post-featured-image {
    margin-bottom: 30px;
}

.single-post .wp-block-post-content {
    margin-top: 30px;
}

.single-post .post-tags {
    margin-top: 30px;
}

.single-post .post-tags .wp-block-post-terms {
    font-size: 14px;
}

.single-post .post-navigation {
    margin-top: 40px;
}

.single-post .related-news-section {
    margin-top: 40px;
}

.single-post .wp-block-comments {
    margin-top: 40px;
}

/* Sidebar Button Styles */
.sidebar-read-more .wp-block-button__link {
    border-radius: 20px;
    padding-top: 8px;
    padding-right: 16px;
    padding-bottom: 8px;
    padding-left: 16px;
}

/* Related News Item Styles */
.related-news-item .wp-block-post-title {
    font-size: 14px;
    line-height: 1.4;
}

.related-news-item .wp-block-post-featured-image {
    margin-left: 12px;
}

/* Sidebar News Item Styles */
.sidebar-news-item .wp-block-post-featured-image {
    margin-right: 12px;
}

.sidebar-news-item .wp-block-post-title {
    font-size: 14px;
    line-height: 1.4;
}

/* Responsive Single Post Styles */
@media (max-width: 768px) {
    .single-post .wp-block-post-title {
        font-size: 28px;
    }
    
    .single-post .post-meta {
        margin-bottom: 25px;
    }
    
    .single-post .wp-block-post-featured-image {
        margin-bottom: 25px;
    }
    
    .single-post .post-navigation {
        margin-top: 30px;
    }
    
    .single-post .related-news-section {
        margin-top: 30px;
    }
    
    .single-post .wp-block-comments {
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .single-post {
        margin-bottom: 30px;
    }
    
    .single-post .main-content {
        margin-top: 15px;
    }
    
    .single-post .wp-block-post-title {
        font-size: 24px;
    }
    
    .single-post .post-meta {
        margin-bottom: 20px;
    }
    
    .single-post .wp-block-post-featured-image {
        margin-bottom: 20px;
    }
    
    .single-post .post-navigation {
        margin-top: 25px;
    }
    
    .single-post .related-news-section {
        margin-top: 25px;
    }
    
    .single-post .wp-block-comments {
        margin-top: 25px;
    }
} 

/* Page Template Styles */
.page-content {
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-content .wp-block-post-title {
    font-size: 32px;
    font-weight: 700;
}

.page-content .wp-block-post-content {
    margin-top: 30px;
}

/* Responsive Page Styles */
@media (max-width: 768px) {
    .page-content {
        margin-top: 30px;
        margin-bottom: 30px;
    }
    
    .page-content .wp-block-post-title {
        font-size: 28px;
    }
    
    .page-content .wp-block-post-content {
        margin-top: 25px;
    }
}

@media (max-width: 480px) {
    .page-content {
        margin-top: 25px;
        margin-bottom: 25px;
    }
    
    .page-content .wp-block-post-title {
        font-size: 24px;
    }
    
    .page-content .wp-block-post-content {
        margin-top: 20px;
    }
} 

/* Index/Homepage Template Styles */
.trends-section {
    padding-top: 12px;
    padding-bottom: 12px;
}

.trends-label {
    font-weight: 600;
}

.trends-list {
    gap: 10px;
}

.trends-item {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    padding: 4px 0;
}

.news-categories-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.news-categories-grid {
    gap-top: 30px;
    gap-left: 30px;
}

.category-title {
    font-size: 20px;
    font-weight: 700;
}

.category-read-more .wp-block-button__link {
    border-radius: 20px;
    padding-top: 8px;
    padding-right: 16px;
    padding-bottom: 8px;
    padding-left: 16px;
}

.featured-post-card {
    margin-bottom: 20px;
}

.featured-post-card .wp-block-post-featured-image {
    margin-bottom: 15px;
}

.featured-post-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}



.news-item .wp-block-post-featured-image {
    margin-right: 12px;
}

.news-item-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.post-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
}

.read-more-btn .wp-block-button__link {
    border-radius: 20px;
    padding-top: 8px;
    padding-right: 16px;
    padding-bottom: 8px;
    padding-left: 16px;
}

.post-card {
    padding: 0;
}

.post-content {
    padding-top: 15px;
    padding-right: 15px;
    padding-bottom: 15px;
    padding-left: 15px;
}

.post-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.dual-category-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.dual-category-grid {
    gap-top: 30px;
    gap-left: 30px;
}

.dual-category-section .category-title {
    font-size: 22px;
    font-weight: 700;
}

.dual-category-section .featured-post-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

/* Responsive Index Styles */
@media (max-width: 768px) {
    .news-categories-section,
    .post-section,
    .dual-category-section {
        margin-top: 30px;
        margin-bottom: 30px;
    }
    
    .news-categories-grid,
    .dual-category-grid {
        gap-top: 20px;
        gap-left: 20px;
    }
    
    .category-title {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .featured-post-title {
        font-size: 16px;
    }
    
    .post-title {
        font-size: 14px;
    }
    
    .news-item-title {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .news-categories-section,
    .post-section,
    .dual-category-section {
        margin-top: 25px;
        margin-bottom: 25px;
    }
    
    .news-categories-grid,
    .dual-category-grid {
        gap-top: 15px;
        gap-left: 15px;
    }
    
    .category-title {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .featured-post-title {
        font-size: 15px;
    }
    
    .post-title {
        font-size: 13px;
    }
    
    .news-item-title {
        font-size: 12px;
    }
    
    .trends-item {
        font-size: 12px;
    }
} 

/* Header Template Styles */
.site-header {
    padding-top: 0;
    padding-bottom: 0;
}

.top-header {
    padding-top: 8px;
    /* padding-bottom: 8px; */
}

.site-logo .wp-block-site-logo {
    margin-right: 10px;
}

.site-logo .wp-block-site-title {
    font-size: 24px;
    font-weight: 700;
}

/* .main-navigation {
    padding-top: 15px;
    padding-bottom: 15px;
} */

/* Footer Template Styles */
.site-footer {
    padding-top: 40px;
    padding-bottom: 0px;
}

.footer-columns {
    margin-bottom: 10px;
}

.more-categories {
    color: #666;
    font-size: 14px;
}

.footer-info-columns {
    padding-top: 10px;
    padding-bottom: 10px;
}

.footer-site-title {
    font-size: 24px;
    font-weight: 700;
    color: #333333;
}

.footer-social-heading {
    color: #333333;
    font-size: 16px;
    font-weight: 600;
}

.footer-social-icon a {
    text-decoration: none;
}

.footer-social-icon svg {
    width: 45px;
    height: 45px;
}

/* Social Media Icon Colors */
.footer-social-icon.facebook svg {
    fill: #1877F2;
}

.footer-social-icon.instagram svg {
    fill: #E4405F;
}

.footer-social-icon.youtube svg {
    fill: #FF0000;
}

.footer-social-icon.whatsapp svg {
    fill: #25D366;
}

.footer-social-icon.linkedin svg {
    fill: #0077B5;
}

.developer-credit {
    color: #666666;
    font-size: 12px;
}

.developer-credit a {
    color: #007cba;
    text-decoration: none;
}

/* Responsive Header and Footer Styles */
@media (max-width: 768px) {
    .site-logo .wp-block-site-title {
        font-size: 20px;
    }
    
    .main-navigation {
        padding-top: 12px;
        padding-bottom: 12px;
    }
    
    .footer-site-title {
        font-size: 20px;
    }
    
    .footer-social-heading {
        font-size: 14px;
    }
    
    .footer-social-icon svg {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .site-logo .wp-block-site-title {
        font-size: 18px;
    }
    
    .main-navigation {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .top-header {
        padding-top: 6px;
        padding-bottom: 6px;
    }
    
    .site-footer {
        padding-top: 30px;
    }
    
    .footer-site-title {
        font-size: 18px;
    }
    
    .footer-social-heading {
        font-size: 13px;
    }
    
    .footer-social-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .developer-credit {
        font-size: 11px;
    }
}

/* Three Column Layout Styles */
.three-column-layout {
    margin: 40px 0;
    padding: 0 20px;
}

.three-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Left Column - Featured Post + List */
.left-column .featured-post-section {
    margin-bottom: 30px;
}

.left-column .featured-post-card {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.left-column .featured-post-card:hover {
    transform: translateY(-2px);
}

.left-column .featured-post-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.left-column .featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.left-column .featured-post-title {
    margin: 0;
    color: var(--wp--preset--color--primary);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.left-column .featured-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.left-column .featured-post-title a:hover {
    /* Hover color effect removed */
}

.left-column .latest-posts-section {
    padding: 20px 0;
}

.left-column .latest-post-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.left-column .latest-post-item:last-child {
    border-bottom: none;
}

.left-column .latest-post-thumbnail {
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.left-column .latest-post-title {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--wp--preset--color--text);
    font-weight: 500;
}

.left-column .latest-post-title a {
    color: inherit;
    text-decoration: none;
}

/* .left-column .latest-post-title a:hover {
    color: #007cba;
} */

/* Middle Column - Headlines List */
.middle-column .headlines-section {
    padding: 20px 0;
}

.middle-column .headline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.middle-column .headline-item:last-child {
    border-bottom: none;
}

.middle-column .headline-title {
    flex: 1;
    margin: 0 15px 0 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--wp--preset--color--text);
    font-weight: 500;

}

.middle-column .headline-title a {
    color: inherit;
    text-decoration: none;
}

/* .middle-column .headline-title a:hover {
    color: #007cba;
} */

.middle-column .headline-thumbnail {
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}



/* Right Column - Live Updates + Ad */
.right-column .live-updates-section {
    padding: 20px 0;
    margin-bottom: 20px;
}

.right-column .live-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.right-column .live-badge {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    background: #dc3545;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    min-width: 80px;
}

.right-column .live-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: blink 1.5s infinite;
    flex-shrink: 0;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.right-column .live-latest-title {
    margin: 0;
    font-size: 14px;
    color: var(--wp--preset--color--text);
    font-weight: 500;
    line-height: 1.4;
}

.right-column .live-latest-title a {
    color: inherit;
    text-decoration: none;
}

/* .right-column .live-latest-title a:hover {
    color: #007cba;
} */

.right-column .live-updates-list {
    margin-top: 20px;
}

.right-column .live-update-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.right-column .live-update-item:last-child {
    border-bottom: none;
}

.right-column .update-dot {
    width: 6px;
    height: 6px;
    background: #dc3545;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}

.right-column .update-content {
    flex: 1;
}

.right-column .update-date {
    font-size: 11px;
    color: #666666;
    margin-bottom: 4px;
    display: block;
}

.right-column .update-title {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--wp--preset--color--text);
    font-weight: 500;
}

.right-column .update-title a {
    color: inherit;
    text-decoration: none;
}

.right-column .update-title a:hover {
    color: #007cba;
}

.right-column .advertisement-section {
    padding: 20px 0;
}

/* Trends Advertisement Section */
.trends-advertisement-section {
    padding: 15px 0;
    margin: 10px 0;
    background-color: #f8f9fa;
}

.trends-ad {
    width: 100%;
    height: 90px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    margin: 0 auto;
    max-width: 728px;
}

.trends-ad:hover {
    border-color: #007cba;
    color: #007cba;
    background-color: #f0f8ff;
}

/* AdSense Container Styles */
.adsense-container {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adsense-container ins {
    display: block !important;
    margin: 0 auto;
}

/* Ad Placeholder Styles */
.ad-placeholder {
    width: 100%;
    height: 120px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.ad-placeholder:hover {
    border-color: #007cba;
    color: #007cba;
    background-color: #f0f8ff;
}

/* Legacy live-ad class for backward compatibility */
.right-column .live-ad {
    width: 100%;
    height: 120px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    transition: border-color 0.2s ease;
}

.right-column .live-ad:hover {
    border-color: #007cba;
    color: #007cba;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .three-column-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .three-column-layout {
        padding: 0 15px;
        margin: 30px 0;
    }
    
    .trends-advertisement-section {
        padding: 10px 15px;
        margin: 5px 0;
    }
    
    .trends-ad {
        height: 70px;
        font-size: 14px;
        max-width: 100%;
    }
    
    .left-column .featured-post-image {
        height: 200px;
    }
    
    .left-column .featured-post-title {
        font-size: 16px;
        padding: 12px;
    }
    
    .left-column .latest-post-item {
        padding: 10px 0;
    }
    
    .left-column .latest-post-thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .left-column .latest-post-title {
        font-size: 13px;
    }
    
    .middle-column .headline-item {
        padding: 10px 0;
    }
    
    .middle-column .headline-title {
        font-size: 13px;
    }
    
    .middle-column .headline-thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .right-column .live-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .right-column .live-latest-title {
        font-size: 13px;
    }
    
    .right-column .update-title {
        font-size: 12px;
    }
    
    .right-column .live-ad {
        height: 100px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .three-column-layout {
        padding: 0 10px;
        margin: 20px 0;
    }
    
    .left-column .featured-post-image {
        height: 180px;
    }
    
    .left-column .featured-post-title {
        font-size: 15px;
        padding: 10px;
    }
    
    .left-column .latest-posts-section,
    .middle-column .headlines-section,
    .right-column .live-updates-section,
    .right-column .advertisement-section {
        padding: 15px;
    }
    
    .adsense-container {
        min-height: 100px;
    }
    
    .ad-placeholder {
        height: 100px;
        font-size: 14px;
    }
    
    .left-column .latest-post-item {
        gap: 10px;
    }
    
    .left-column .latest-post-thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .middle-column .headline-thumbnail {
        width: 45px;
        height: 45px;
    }
    
    .right-column .live-badge {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .right-column .live-dot {
        width: 6px;
        height: 6px;
    }
    
    .right-column .live-ad {
        height: 80px;
        font-size: 13px;
    }
    
    .category-block .featured-post-card .wp-block-post-featured-image {
        margin-bottom: 15px;
    }
}

/* Local Three Column Section (below Viral) */
.local-three-column-section {
    margin: 40px 0;
}

.local-three-column-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.9fr 1.15fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Extend the yellow line from left column to cover both left and middle columns */
.local-left-column .section-header {
    margin-bottom: 20px;
    border-bottom: 2px solid var(--wp--preset--color--yellow);
    padding-bottom: 10px;
    position: relative;
}

/* Hide the mobile read more button on desktop for local section */
.local-mobile-read-more,
.local-left-column .local-mobile-read-more {
    display: none !important;
}

/* Extend the yellow line to cover the middle column */
.local-left-column .section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 100%;
    width: calc(100% + 30px); /* Extend to cover middle column + gap */
    height: 2px;
    background-color: var(--wp--preset--color--yellow);
}

/* Right column header styling */
.local-right-column .section-header {
    margin-bottom: 20px;
    border-bottom: 2px solid var(--wp--preset--color--yellow);
    padding-bottom: 10px;
}

/* Middle column content spacing - start below the yellow line */
.local-middle-column .local-more-list {
    margin-top: 70px; /* Push content below the yellow line */
}

/* Position the read more button on the right side of middle section */
.local-middle-column {
    position: relative;
}

.local-middle-column .read-more-btn {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
}

/* Ensure button text displays horizontally */
.local-middle-column .read-more-btn .wp-block-button__link {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* Left: featured + two small items */
.local-featured .wp-block-post-featured-image img {
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.local-sub-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.local-sub-item:last-child {
    border-bottom: none;
}

.local-sub-thumb {
    width: 60px !important;
    height: 60px !important;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.local-sub-title {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    color: var(--wp--preset--color--text);
}

/* Middle: more local list (title left, image right) */
.local-more-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.local-more-item:last-child {
    border-bottom: none;
}

.local-more-title {
    flex: 1;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    color: var(--wp--preset--color--text);
}

.local-more-thumb {
    flex-shrink: 0;
    width: 60px !important;
    height: 60px !important;
    border-radius: 6px;
    overflow: hidden;
}

/* Right: politics list */
.politics-list .wp-block-post-template {
    display: block !important;
}

.politics-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.politics-item:last-child {
    border-bottom: none;
}

.politics-thumb {
    width: 60px !important;
    height: 60px !important;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.politics-title {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    color: var(--wp--preset--color--text);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .local-three-column-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .local-three-column-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    /* Match mobile horizontal padding for Local & Politics container */
    .local-three-column-section {
        padding-left: 20px;
        padding-right: 20px;
    }
    .local-middle-column .local-more-list { 
        margin-top: 10px; 
    } 
    
    /* Show the mobile read more button for local section on mobile */
    .local-mobile-read-more,
    .local-left-column .local-mobile-read-more {
        display: block !important;
    }
    
    /* Hide the original read more button in middle column on mobile */
    .local-middle-column .read-more-btn {
        display: none;
    }
    
    .local-featured .wp-block-post-featured-image img {
        height: 200px;
    }
    .local-more-title,
    .local-sub-title,
    .politics-title {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .local-three-column-section {
        padding-left: 15px;
        padding-right: 15px;
    }
    .local-featured .wp-block-post-featured-image img {
        height: 180px;
    }
    .local-sub-thumb,
    .local-more-thumb,
    .politics-thumb {
        width: 50px !important;
        height: 50px !important;
    }
    
    .trends-advertisement-section {
        padding: 8px 10px;
        margin: 3px 0;
    }
    
    .trends-ad {
        height: 60px;
        font-size: 12px;
    }
    
    /* AdSense Mobile Styles */
    .adsense-container {
        min-height: 80px;
    }
    
    .ad-placeholder {
        height: 80px;
        font-size: 12px;
    }
}

/* Local Tabs Navigation Styles */
/* .local-tabs {
    margin: 15px 0 20px 0;
} */

.local-tabs .wp-block-navigation__container {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
}

.local-tabs .wp-block-navigation-item {
    margin: 0;
    border: none;
    flex: 0 1 auto;
}

.local-tabs .wp-block-navigation-item__content {
    display: block;
    padding: 8px 4px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    background: none;
    border-radius: 0;
    margin-bottom: 0;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    text-align: center;
}

.local-tabs .wp-block-navigation-item__content:hover {
    color: #333;
    background: #f8f9fa;
    border-bottom: 2px solid #ffc107;
}

.local-tabs .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content {
    color: #000;
    font-weight: 600;
    border-bottom: 2px solid #ffc107;
    background: #fff;
}

/* Mobile responsive for local tabs */
@media (max-width: 768px) {
    /* Hide WordPress default mobile menu toggle */
    .local-tabs .wp-block-navigation__responsive-container-open,
    .local-tabs .wp-block-navigation__responsive-container-close {
        display: none !important;
    }
    
    /* Force responsive container to always be open */
    .local-tabs .wp-block-navigation__responsive-container {
        display: block !important;
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: auto !important;
        height: auto !important;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    .local-tabs .wp-block-navigation__container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding-bottom: 5px;
        justify-content: flex-start;
        gap: 0;
        margin: 0;
        padding: 0;
    }
    
    .local-tabs .wp-block-navigation-item {
        flex: none;
        margin: 0;
        border: none;
    }
    
    .local-tabs .wp-block-navigation-item__content {
        padding: 6px 4px;
        font-size: 16px;
        white-space: nowrap;
        flex: none;
        min-width: fit-content;
        display: block;
        color: #666;
        text-decoration: none;
        font-weight: 500;
        border-bottom: 2px solid transparent;
        transition: all 0.3s ease;
        background: none;
        border-radius: 0;
        margin-bottom: 0;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .local-tabs .wp-block-navigation-item__content {
        padding: 4px 3px;
        font-size: 16px;
    }
}

/* Dharma Three Column Section (below Viral) */
.dharma-three-column-section {
    margin: 40px 0;
}

.dharma-three-column-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.9fr 1.15fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Extend the yellow line from left column to cover both left and middle columns */
.dharma-left-column .section-header {
    margin-bottom: 20px;
    border-bottom: 2px solid var(--wp--preset--color--yellow);
    padding-bottom: 10px;
    position: relative;
}

/* Hide the mobile read more button on desktop for dharma section */
.dharma-mobile-read-more,
.dharma-left-column .dharma-mobile-read-more {
    display: none !important;
}

/* Extend the yellow line to cover all three columns */
.dharma-left-column .section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 100%;
    width: calc(200% + 60px); /* Extend to cover middle and right columns + gaps */
    height: 2px;
    background-color: var(--wp--preset--color--yellow);
}

/* Right column header styling - no individual yellow line needed */
.dharma-right-column .section-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
}

/* Middle column content spacing - start below the yellow line */
.dharma-middle-column .horoscope-carousel-section {
    margin-top: 70px; /* Push content below the yellow line */
}

/* Position the read more button at the extreme right across all columns */
.dharma-three-column-section {
    position: relative;
}

.dharma-middle-column .read-more-btn {
    position: absolute;
    top: 0;
    right: 80px; /* Move button 80px left from extreme right */
    z-index: 10;
    margin-right: 0; /* Remove any default margin */
    transform: translateY(-2px); /* Position button just above the yellow line */
}

/* Ensure button text displays horizontally */
.dharma-middle-column .read-more-btn .wp-block-button__link {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Left: dharma news list */
.dharma-news-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.dharma-news-item:last-child {
    border-bottom: none;
}

.dharma-news-thumbnail {
    width: 60px !important;
    height: 60px !important;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.dharma-news-title {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    color: var(--wp--preset--color--text);
}

/* Middle: Horoscope Carousel */
.horoscope-carousel-section {
    padding: 20px 0;
}

.horoscope-carousel {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.horoscope-carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>') repeat;
    opacity: 0.1;
    pointer-events: none;
}

.zodiac-icons-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.zodiac-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.zodiac-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.zodiac-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.zodiac-icons-slider {
    flex: 1;
    margin: 0 15px;
    overflow: hidden;
}

.zodiac-icons-track {
    display: flex;
    gap: 8px;
    transition: transform 0.3s ease;
}

.zodiac-icon {
    flex: 0 0 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden; /* Ensure content stays within circle */
}

.zodiac-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.0);
}

.zodiac-icon.active {
    background: #ffc107;
    border-color: #ffc107;
    transform: scale(1.0);
}

.zodiac-symbol {
    font-size: 20px;
    color: white;
    font-weight: bold;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
}

.zodiac-symbol img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.zodiac-icon.active .zodiac-symbol {
    color: #000;
}

.horoscope-display-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.horoscope-content {
    text-align: center;
}

.horoscope-symbol {
    font-size: 48px;
    color: #ffc107;
    margin-bottom: 10px;
    display: block;
}

.horoscope-sign-name {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
    font-family: 'Noto Sans Devanagari', sans-serif;
}

.horoscope-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    font-family: 'Noto Sans Devanagari', sans-serif;
}

/* Right: Advertisement */
.dharma-advertisement-section {
    padding: 20px 0;
    margin-top: 70px; /* Move advertisement box below the yellow line */
}

.dharma-ad {
    width: 100%;
    height: 350px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

/* Ensure dharma ad placeholder maintains 350px height */
.dharma-advertisement-section .ad-placeholder {
    height: 350px !important;
}

.dharma-ad:hover {
    border-color: #007cba;
    color: #007cba;
    background-color: #f0f8ff;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .dharma-three-column-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .dharma-three-column-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Match mobile horizontal padding for Dharma container */
    .dharma-three-column-section {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .dharma-middle-column .horoscope-carousel-section { 
        margin-top: 10px; 
    } 
    
    .dharma-advertisement-section {
        margin-top: 10px; /* Reset margin on mobile */
    }
    
    /* Show the mobile read more button for dharma section on mobile */
    .dharma-mobile-read-more,
    .dharma-left-column .dharma-mobile-read-more {
        display: block !important;
    }
    
    /* Hide the original read more button in middle column on mobile */
    .dharma-middle-column .read-more-btn {
        display: none;
    }
    
    /* Reset positioning for mobile */
    .dharma-three-column-section {
        position: static;
    }
    
    .dharma-news-title {
        font-size: 13px;
    }
    
    .horoscope-carousel {
        padding: 15px;
    }
    
    .zodiac-icon {
        flex: 0 0 45px;
        height: 45px;
    }
    
    .zodiac-symbol {
        font-size: 18px;
    }
    
    .horoscope-symbol {
        font-size: 40px;
    }
    
    .horoscope-sign-name {
        font-size: 20px;
    }
    
    .horoscope-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .dharma-three-column-section {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .dharma-news-thumbnail {
        width: 50px !important;
        height: 50px !important;
    }
    
    .dharma-news-title {
        font-size: 12px;
    }
    
    .horoscope-carousel {
        padding: 12px;
    }
    
    .zodiac-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .zodiac-icon {
        flex: 0 0 40px;
        height: 40px;
    }
    
    .zodiac-symbol {
        font-size: 16px;
    }
    
    .horoscope-symbol {
        font-size: 36px;
    }
    
    .horoscope-sign-name {
        font-size: 18px;
    }
    
    .horoscope-text {
        font-size: 12px;
    }
    
    .dharma-ad {
        height: 100px;
        font-size: 14px;
    }
}

