/*
Theme Name: Ar Studios
Theme URI: https://janamnews.in
Author: Your Name
Author URI: https://janamnews.in
Description: Custom news theme for Janam News websites
Version: 1.0
License: GPL v2 or later
Text Domain: janam-news
*/
/* ======================
   COMPLETE LOGO CENTERING CODE
   ====================== */

/* Logo Container - Centers everything */
.logo-container {
    text-align: center;
    width: 100%;
    display: block;
    padding: 10px 0;
    margin: 0 auto;
}

/* Logo Link */
.custom-logo-link {
    display: inline-block;
    text-align: center;
}

/* ======================
   LOGO WITH MINIMAL TOP SPACE
   ====================== */

/* Logo Container - Reduced top padding */
.logo-container {
    text-align: center;
    width: 100%;
    display: block;
    padding: 0 0 5px 0;     /* top:0, right:0, bottom:5px, left:0 */
    margin: 0 auto;
}

/* Logo Link */
.custom-logo-link {
    display: inline-block;
    text-align: center;
}

/* Logo Image */
.logo-container img,
.custom-logo-link img,
.mobile-logo {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 180px !important;
    max-width: 180px !important;
    height: auto !important;
}

/* Remove space above header */
.site-header {
    text-align: center;
    width: 100%;
    padding: 0;
    margin: 0;
    background: #ffffff;
}
/* ======================
   HEADER WITH SEARCH & MENU BUTTONS
   ====================== */

/* Header container - Flex layout for left, center, right */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: #ffffff;
    position: relative;
}

/* Left side - Search button */
.header-left {
    width: 50px;
    text-align: left;
}

/* Right side - Menu button */
.header-right {
    width: 50px;
    text-align: right;
}

/* Center - Logo */
.logo-container {
    flex: 1;
    text-align: center;
}

/* Search Button Style */
.search-btn,
.menu-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    color: #333;
}

.search-btn:hover,
.menu-btn:hover {
    color: #dd3333;
}

/* Logo image inside flex layout */
.logo-container img,
.custom-logo-link img,
.mobile-logo {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 200px !important;
    max-width: 200px !important;
    height: auto !important;
}

/* ======================
   SEARCH OVERLAY (Hidden by default)
   ====================== */
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.search-overlay.active {
    display: flex;
}

.search-container {
    width: 90%;
    max-width: 500px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
}

.search-submit {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 20px;
    background: #dd3333;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.close-search {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

/* ======================
   MOBILE MENU OVERLAY (Hidden by default)
   ====================== */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100%;
    background: #ffffff;
    z-index: 9998;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

.mobile-menu-overlay.active {
    display: block;
    right: 0;
}

.mobile-menu-container {
    padding: 20px;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.close-menu {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    margin: 15px 0;
}

.mobile-nav li a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    display: block;
    padding: 8px 0;
}

.mobile-nav li a:hover {
    color: #dd3333;
}

/* Body overlay when menu open */
body.menu-open {
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .header-container {
        padding: 8px 12px;
    }
    
    .search-btn,
    .menu-btn {
        font-size: 20px;
    }
    
    .logo-container img,
    .custom-logo-link img,
    .mobile-logo {
        width: 150px !important;
        max-width: 150px !important;
    }
}.
/* ======================
   CATEGORY BUTTONS - RED BACKGROUND + WHITE BOLD
   ====================== */

.category-buttons-container {
    background: #f5f5f5;
    padding: 10px 0;
    overflow-x: hidden;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.category-buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0 10px;
}

/* BUTTON STYLE - RED BACKGROUND, WHITE BOLD TEXT */
.category-btn {
    display: inline-block;
    padding: 6px 12px;
    background: #dd3333;        /* ← Red background */
    color: #ffffff !important;   /* ← White text */
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;           /* ← Bold text */
    border-radius: 25px;
    border: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Hover effect - Darker red */
.category-btn:hover {
    background: #aa2222;         /* ← Darker red on click/tap */
    color: #ffffff;
}

/* Active/Current category - Even darker */
.category-btn.current-category {
    background: #881111;
    color: #ffffff;
}

@media (max-width: 768px) {
    .category-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .category-btn {
        padding: 4px 8px;
        font-size: 10px;
    }
}
/* ======================
   NEWS TICKER - WITH BLINKING TEXT
   ====================== */

.news-ticker-container {
    background: #222222;
    color: #ffffff;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 2px solid #dd3333;
    margin-top: 5px;        /* ← Small gap from buttons */
}

.ticker-label {
    background: #dd3333;
    color: #ffffff;
    font-weight: bold;
    padding: 8px 15px;
    font-size: 12px;
    white-space: nowrap;
    letter-spacing: 1px;
    z-index: 2;
    text-transform: uppercase;
}

/* Blinking text animation */
.blink-text {
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.ticker-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ticker-content {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.ticker-list {
    display: inline-block;
    margin: 0;
    padding: 0;
    list-style: none;
    animation: scrollTicker 20s linear infinite;
    white-space: nowrap;
}

.ticker-list li {
    display: inline-block;
    padding: 10px 30px;
    font-size: 14px;
}

.ticker-list li a {
    color: #ffffff;
    text-decoration: none;
}

.ticker-list li a:hover {
    color: #dd3333;
    text-decoration: underline;
}

@keyframes scrollTicker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.ticker-content:hover .ticker-list {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .ticker-label {
        padding: 5px 10px;
        font-size: 10px;
    }
    
    .ticker-list li {
        padding: 8px 20px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .ticker-label {
        padding: 4px 8px;
        font-size: 9px;
    }
    
    .ticker-list li {
        padding: 6px 15px;
        font-size: 11px;
    }
}
/* ======================
   IMAGE SLIDER - 2 BOXES, MEDIUM SIZE, ROUND CORNERS
   ====================== */

.posts-slider-container {
    position: relative;
    padding: 20px 0;
    background: #ffffff;
    border-bottom: 1px solid #eee;
    overflow: hidden;
}

.slider-header {
    padding: 0 15px 15px 15px;
}

.slider-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    border-left: 4px solid #dd3333;
    padding-left: 12px;
}

.slider-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 10px;
}

.slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    will-change: transform;
}

/* 2 boxes - Medium size */
.slider-card {
    flex: 0 0 calc(50% - 10px);  /* Exactly 2 boxes */
    background: #fff;
    border-radius: 16px;         /* Round corners */
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.slider-card a {
    text-decoration: none;
    color: #333;
    display: block;
}

/* Medium size image */
.slider-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.slider-card:hover .slider-img {
    transform: scale(1.05);
}

/* Title styling */
.slider-title {
    padding: 15px;
    background: #fff;
}

.slider-title h4 {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Navigation Buttons */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav:hover {
    background: #dd3333;
}

.slider-nav.prev {
    left: 5px;
}

.slider-nav.next {
    right: 5px;
}

/* Dots/Indicators */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    width: 25px;
    border-radius: 10px;
    background: #dd3333;
}

/* ======================
   MOBILE RESPONSIVE
   ====================== */

/* Tablet: Still 2 boxes */
@media (max-width: 768px) {
    .slider-card {
        flex: 0 0 calc(50% - 10px);
    }
    
    .slider-image {
        height: 180px;
    }
    
    .slider-title h4 {
        font-size: 15px;
    }
}

/* Mobile: 1 box only */
@media (max-width: 550px) {
    .slider-card {
        flex: 0 0 100%;  /* 1 box on mobile */
    }
    
    .slider-image {
        height: 200px;
    }
    
    .slider-title h4 {
        font-size: 15px;
    }
    
    .slider-nav {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

/* ======================
   HOMEPAGE CATEGORY LAYOUT - LIST STYLE
   ====================== */

.homepage-category-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

/* Category Section */
.category-section {
    margin-bottom: 35px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f9f9f9;
    border-bottom: 2px solid;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    padding-left: 10px;
    border-left: 4px solid;
}

.section-title.viral {
    border-left-color: #ff4444;
    color: #ff4444;
}

.section-title.crime {
    border-left-color: #333333;
    color: #333333;
}

.section-title.national {
    border-left-color: #ff9933;
    color: #ff9933;
}

.section-title.cinema {
    border-left-color: #9b59b6;
    color: #9b59b6;
}

.section-title.ap {
    border-left-color: #00a32a;
    color: #00a32a;
}

.section-title.ts {
    border-left-color: #ff9933;
    color: #ff9933;
}

.view-all {
    text-decoration: none;
    font-size: 12px;
    color: #666;
    padding: 4px 10px;
    background: #fff;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.view-all:hover {
    background: #dd3333;
    color: white;
}

/* POSTS LIST - One after another (not grid) */
.posts-list {
    padding: 0;
    margin: 0;
}

/* Each post as a list item */
.post-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease;
}

.post-item:hover {
    background: #fafafa;
}

.post-item:last-child {
    border-bottom: none;
}

/* Thumbnail - Small image on left */
.post-item-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    overflow: hidden;
    border-radius: 5px;
}

.post-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Title - On right side */
.post-item-title {
    flex: 1;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.post-item-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.post-item-title a:hover {
    color: #dd3333;
}

/* ======================
   MOBILE RESPONSIVE
   ====================== */

@media (max-width: 768px) {
    .post-item-thumbnail {
        width: 70px;
        height: 55px;
    }
    
    .post-item-title {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .post-item-thumbnail {
        width: 60px;
        height: 50px;
    }
    
    .post-item-title {
        font-size: 13px;
    }
    
    .post-item {
        gap: 10px;
        padding: 10px 12px;
    }
}
/* ======================
   PROFESSIONAL DESKTOP VIEW (1024px and above)
   ====================== */

@media (min-width: 1024px) {
    
    /* Container max width for better readability */
    .homepage-category-container,
    .category-page,
    .single-news,
    .about-page,
    .privacy-page,
    .terms-page,
    .contact-page {
        max-width: 1200px;
        margin: 0 auto;
        padding: 40px 20px;
    }
    
    /* Header - Desktop Styling */
    .header-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px 20px;
    }
    
    /* Logo - Slightly larger on desktop */
    .logo-container img,
    .custom-logo-link img,
    .mobile-logo {
        width: 220px !important;
        max-width: 220px !important;
    }
    
    /* Category Buttons - Better spacing */
    .category-buttons-container {
        padding: 15px 0;
    }
    
    .category-buttons-wrapper {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        gap: 12px;
    }
    
    .category-btn {
        padding: 10px 20px;
        font-size: 15px;
        font-weight: 600;
        border-radius: 30px;
        transition: all 0.3s ease;
    }
    
    .category-btn:hover {
        transform: translateY(-2px);
        background: #aa2222;
    }
    
    /* News Ticker - Desktop */
    .news-ticker-container {
        max-width: 1200px;
        margin: 10px auto 0;
        border-radius: 8px;
    }
    
    .ticker-label {
        padding: 10px 20px;
        font-size: 14px;
        border-radius: 8px 0 0 8px;
    }
    
    .ticker-list li {
        padding: 12px 35px;
        font-size: 15px;
    }
    
    /* Image Slider - Desktop (2 boxes, professional) */
    .posts-slider-container {
        padding: 30px 0;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .slider-header h3 {
        font-size: 22px;
        border-left-width: 5px;
        padding-left: 15px;
    }
    
    .slider-card {
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
    }
    
    .slider-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }
    
    .slider-image {
        height: 220px;
    }
    
    .slider-title {
        padding: 15px;
    }
    
    .slider-title h4 {
        font-size: 16px;
        font-weight: 600;
    }
    
    .slider-nav {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
    
    .slider-nav.prev {
        left: -10px;
    }
    
    .slider-nav.next {
        right: -10px;
    }
    
    /* Category Posts Grid - Desktop */
    .category-posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .category-post-card {
        border-radius: 12px;
        transition: all 0.3s ease;
    }
    
    .category-post-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    }
    
    .category-post-thumbnail {
        height: 200px;
    }
    
    .category-post-title {
        font-size: 18px;
        font-weight: 700;
    }
    
    /* Homepage Category Sections - Desktop */
    .category-section {
        border-radius: 12px;
        margin-bottom: 40px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .section-header {
        padding: 15px 20px;
    }
    
    .section-title {
        font-size: 22px;
        font-weight: 700;
    }
    
    .view-all {
        font-size: 13px;
        padding: 6px 15px;
        border-radius: 6px;
    }
    
    .post-item {
        padding: 15px 20px;
        gap: 20px;
    }
    
    .post-item-thumbnail {
        width: 100px;
        height: 75px;
        border-radius: 8px;
    }
    
    .post-item-title {
        font-size: 16px;
        font-weight: 600;
    }
    
    .post-item-title a:hover {
        color: #dd3333;
    }
    
    /* Single Post Page - Desktop */
    .single-news {
        max-width: 850px;
        padding: 40px;
        border-radius: 16px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    
    .single-title {
        font-size: 38px;
        line-height: 1.3;
    }
    
    .single-meta {
        font-size: 15px;
        padding-bottom: 20px;
    }
    
    .single-image img {
        border-radius: 12px;
    }
    
    .single-content {
        font-size: 18px;
        line-height: 1.8;
    }
    
    /* Footer - Desktop */
    .footer-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 50px 20px;
        gap: 40px;
    }
    
    .footer-title {
        font-size: 20px;
        margin-bottom: 25px;
    }
    
    .footer-about-text {
        font-size: 14px;
        line-height: 1.7;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 20px;
    }
    
    .footer-links li a,
    .footer-contact li {
        font-size: 14px;
    }
    
    .footer-bottom {
        padding: 25px;
    }
    
    /* Floating ePaper - Desktop */
    .floating-epaper {
        bottom: 30px;
        right: 30px;
    }
    
    .floating-epaper img {
        width: 90px;
        height: 90px;
        border-width: 4px;
    }
    
    .floating-epaper:hover {
        transform: scale(1.08);
    }
    
    /* Search Overlay - Desktop */
    .search-container {
        max-width: 600px;
    }
    
    .search-input {
        padding: 18px;
        font-size: 20px;
    }
    
    .search-submit {
        padding: 0 30px;
        font-size: 16px;
    }
    
    /* Mobile Menu Button - Hide on desktop (optional) */
    .menu-btn {
        display: none;
    }
    
    /* Desktop Navigation Menu (optional - add if you want horizontal menu) */
    .desktop-nav {
        display: block;
    }
}

/* ======================
   DESKTOP DARK/HOVER EFFECTS
   ====================== */

@media (min-width: 1024px) {
    /* Smooth transitions on all cards */
    .slider-card,
    .category-post-card,
    .post-card,
    .category-btn {
        transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    }
    
    /* Professional box shadows on hover */
    .slider-card:hover,
    .category-post-card:hover,
    .post-card:hover {
        box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    }
    
    /* Subtle zoom on images */
    .slider-card:hover .slider-img,
    .category-post-card:hover .category-post-thumbnail img {
        transform: scale(1.05);
    }
    
    /* Reading content improvement */
    .single-content p {
        margin-bottom: 28px;
    }
    
    .single-content h2 {
        margin-top: 40px;
        margin-bottom: 20px;
        font-size: 28px;
    }
    
    .single-content h3 {
        margin-top: 30px;
        margin-bottom: 15px;
        font-size: 24px;
    }
}