/*
Theme Name: Samachara Hakku News
Theme URI: https://samacharahakku.com/
Author: SS Web Solutions
Description: Professional responsive Telugu news theme with white logo header, right-side ad image, breaking ticker, mobile menu, auto featured slider, category widgets, hashtags and share buttons.
Version: 4.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: samacharahakku
*/

:root{--navy:#082b52;--dark:#061d36;--red:#e31b23;--green:#168447;--yellow:#ffd400;--light:#f4f6f9;--text:#17202a;--muted:#6f7b86;--border:#dfe5eb;--white:#fff}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--light);color:var(--text);font-family:"Noto Sans Telugu","Nirmala UI",Arial,sans-serif;font-size:15px;line-height:1.65}
a{color:inherit}img{max-width:100%;height:auto}.container{width:min(1200px,calc(100% - 30px));margin:0 auto}
.top-bar{background:var(--dark);color:#fff;font-size:12px}.top-bar-inner{min-height:34px;display:flex;align-items:center;justify-content:space-between}.top-social{display:flex;gap:14px}.top-social a{color:#fff;text-decoration:none}.top-social a:hover{text-decoration:underline}

/* WHITE LOGO HEADER */
.logo-area{background:#fff;border-bottom:1px solid #e6e6e6}.header-main{min-height:130px;display:flex;align-items:center;justify-content:space-between;gap:35px}.site-logo{flex:1;display:flex;align-items:center}.site-logo>a{display:block}.site-logo .custom-logo-link{display:block}.site-logo img{display:block;max-width:430px;max-height:105px;width:auto;height:auto}.header-ad{width:min(500px,44%);min-height:80px;display:flex;align-items:center;justify-content:flex-end}.header-ad img{display:block;max-width:100%;max-height:105px;width:auto;object-fit:contain}.header-ad-placeholder{width:100%;padding:22px;background:#fafafa;border:1px dashed #c7c7c7;color:#777;text-align:center;border-radius:4px}

/* NAVIGATION */
.main-navigation,.manual-navigation{background:var(--navy);position:relative;z-index:9999;box-shadow:0 2px 6px rgba(0,0,0,.12)}.navigation-inner{display:flex;align-items:center}.main-menu{display:flex;align-items:stretch;list-style:none;margin:0;padding:0}.main-menu>li{position:relative}.main-menu>li>a{display:block;padding:12px 13px;color:#fff;text-decoration:none;font-size:14px;font-weight:700;white-space:nowrap}.main-menu>li>a:hover,.main-menu>li.current-menu-item>a{background:var(--red);color:#fff}
.main-menu li ul{display:none;position:absolute;top:100%;left:0;min-width:210px;margin:0;padding:0;background:#fff;list-style:none;box-shadow:0 8px 24px rgba(0,0,0,.2);border-top:3px solid var(--red)}.main-menu li:hover>ul{display:block}.main-menu li ul li{border-bottom:1px solid #e7e7e7}.main-menu li ul a{display:block;padding:11px 15px;color:#17334f!important;background:#fff;text-decoration:none;font-size:14px;font-weight:700}.main-menu li ul a:hover{background:var(--red);color:#fff!important}.dropdown-arrow{font-size:10px;margin-left:4px}.special-rti>a{background:#c91e27}.special-epaper>a{background:var(--green)}
.menu-toggle{display:none;border:0;background:var(--red);color:#fff;padding:11px 15px;margin:8px 0;font-size:15px;font-weight:800;cursor:pointer;border-radius:3px}

/* BREAKING TICKER */
.breaking-bar{background:#fff;border-bottom:1px solid #d8d8d8;overflow:hidden}.breaking-inner{min-height:43px;display:flex;align-items:center}.breaking-label{flex:0 0 auto;background:var(--red);color:#fff;font-weight:800;padding:8px 18px;position:relative;margin-right:15px}.breaking-label:after{content:"";position:absolute;right:-12px;top:0;border-top:20px solid transparent;border-bottom:20px solid transparent;border-left:12px solid var(--red)}.breaking-viewport{overflow:hidden;flex:1}.breaking-news{display:inline-flex;gap:45px;white-space:nowrap;min-width:max-content;animation:ticker 28s linear infinite}.breaking-news:hover{animation-play-state:paused}.breaking-news a,.breaking-news span{text-decoration:none;color:#222;font-weight:600}.breaking-news a:hover{color:var(--red)}@keyframes ticker{0%{transform:translateX(100%)}100%{transform:translateX(-100%)}}

.site-content{padding:25px 0 45px}.section-title{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid var(--navy);margin:0 0 15px;padding:0 0 7px}.section-title h2{font-size:21px;line-height:1.4;margin:0;background:var(--navy);color:#fff;padding:6px 17px 6px 12px;position:relative}.section-title h2:after{content:"";position:absolute;right:-12px;top:0;border-top:20px solid transparent;border-bottom:20px solid transparent;border-left:12px solid var(--navy)}.view-all{font-size:13px;color:var(--red);font-weight:800;text-decoration:none}

/* HOME FEATURED AUTO SLIDER */
.home-feature{display:grid;grid-template-columns:2fr 1fr;gap:20px;margin-bottom:30px}.hero-slider{position:relative;overflow:hidden;border-radius:7px;background:#111;box-shadow:0 5px 18px rgba(0,0,0,.12)}.hero-slides{position:relative;min-height:440px}.hero-slide{display:none;position:absolute;inset:0}.hero-slide.active{display:block}.hero-image-link{display:block}.hero-slide img{width:100%;height:440px;object-fit:cover;display:block}.hero-overlay{position:absolute;left:0;right:0;bottom:0;padding:80px 28px 28px;background:linear-gradient(transparent,rgba(0,0,0,.92));color:#fff}.hero-overlay .news-category{display:inline-block;background:var(--red);color:#fff;padding:3px 10px;border-radius:3px;font-size:12px;text-decoration:none}.hero-overlay h1{font-size:30px;line-height:1.3;margin:10px 0 6px}.hero-overlay h1 a{color:#fff;text-decoration:none}.hero-overlay p{margin:0;font-size:14px}.slider-btn{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border:0;border-radius:50%;background:rgba(0,0,0,.62);color:#fff;font-size:28px;line-height:1;cursor:pointer;z-index:4}.slider-prev{left:15px}.slider-next{right:15px}.slider-dots{position:absolute;bottom:13px;left:50%;transform:translateX(-50%);display:flex;gap:7px;z-index:5}.slider-dot{width:9px;height:9px;border:0;border-radius:50%;padding:0;background:#fff;opacity:.8;cursor:pointer}.slider-dot.active{background:var(--red);opacity:1}
.side-headlines{display:flex;flex-direction:column;gap:10px}.side-headline{display:flex;gap:10px;background:#fff;border:1px solid var(--border);border-radius:5px;padding:9px}.side-headline img{width:100px;height:75px;object-fit:cover;border-radius:4px}.side-headline h3{font-size:15px;line-height:1.35;margin:0}.side-headline a{text-decoration:none}

/* LATEST */
.latest-home-section{margin:25px 0 35px}.latest-home-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.latest-home-card{display:flex;gap:11px;background:#fff;border:1px solid var(--border);padding:10px;border-radius:5px}.latest-home-card>a{flex:0 0 110px}.latest-home-card img{width:110px;height:78px;object-fit:cover;border-radius:4px}.latest-home-content h3{font-size:15px;line-height:1.4;margin:0}.latest-home-content h3 a{text-decoration:none}.news-meta,.category-article-meta{font-size:11px;color:#8a939c;margin-top:7px}

/* CATEGORY SECTIONS - 4 SIDE BY SIDE */
.category-news-sections{margin-top:25px}.home-category-section{margin-top:25px}.category-section-title{margin-bottom:13px}.category-articles{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.category-article{background:#fff;border:1px solid var(--border);border-radius:6px;overflow:hidden}.category-article-image{display:block}.category-article-image img{display:block;width:100%;height:175px;object-fit:cover}.category-article-content{padding:12px}.category-article-content h3{font-size:16px;line-height:1.4;margin:0 0 7px}.category-article-content h3 a{text-decoration:none}.category-article-excerpt{font-size:13px;color:#68727c}.no-category-news{background:#fff;padding:15px;border:1px solid var(--border);margin:0}

/* SINGLE */
.article-wrapper{background:#fff;border:1px solid var(--border);padding:25px;border-radius:6px}.article-category{display:inline-block;background:var(--red);color:#fff;text-decoration:none;padding:4px 10px;font-size:13px;border-radius:3px}.article-title{font-size:38px;line-height:1.35;margin:12px 0}.article-meta{color:#777;font-size:13px;margin-bottom:20px}.article-featured-image img{width:100%;max-height:700px;object-fit:cover}.article-content{font-size:18px;line-height:1.9;margin-top:22px}.article-content p{margin:0 0 18px}.article-content img{display:block;margin:18px auto}
.article-hashtags{margin:25px 0;padding:15px;background:#f7f9fc;border:1px solid #e1e6ed;border-left:4px solid var(--red);border-radius:6px}.hashtag-title{margin-bottom:10px;color:var(--navy);font-weight:800}.hashtag-list{display:flex;flex-wrap:wrap;gap:8px}.article-hashtag{display:inline-block;padding:6px 12px;background:#eaf1f8;color:#123f70;border-radius:20px;font-size:13px;font-weight:700;text-decoration:none}.article-hashtag:hover{background:var(--navy);color:#fff}
.share-buttons{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:25px 0}.share-buttons strong{margin-right:5px}.share-buttons a{padding:7px 12px;border-radius:4px;color:#fff;text-decoration:none;font-size:13px;font-weight:800}.share-facebook{background:#1877f2}.share-whatsapp{background:#20b954}.share-telegram{background:#229ed9}.share-x{background:#111}
.latest-news{margin-top:30px}.latest-list{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.latest-item{display:flex;gap:12px;background:#fff;border:1px solid var(--border);padding:10px;border-radius:5px}.latest-item img{width:130px;height:90px;object-fit:cover;border-radius:4px}.latest-item h3{font-size:16px;line-height:1.4;margin:0}.latest-item h3 a{text-decoration:none}
.single-category-widgets{margin-top:32px}.single-category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.single-category-widget{background:#fff;border:1px solid var(--border);border-radius:6px;overflow:hidden}.single-widget-header{display:flex;justify-content:space-between;align-items:center;background:var(--navy);color:#fff;padding:9px 12px}.single-widget-header h3{font-size:16px;margin:0}.single-widget-header a{color:#fff;text-decoration:none;font-size:12px}.single-widget-post{display:flex;gap:10px;padding:10px;border-bottom:1px solid #eee}.single-widget-post:last-child{border-bottom:0}.single-widget-image{flex:0 0 90px}.single-widget-image img{width:90px;height:65px;object-fit:cover;border-radius:4px}.single-widget-content h4{font-size:14px;line-height:1.4;margin:0}.single-widget-content h4 a{text-decoration:none}.single-widget-date{font-size:10px;color:#888}.no-widget-posts{padding:10px;margin:0;color:#777}

/* ARCHIVE / PAGES */
.archive-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.archive-card{background:#fff;border:1px solid var(--border);border-radius:6px;overflow:hidden}.archive-card img{width:100%;height:190px;object-fit:cover}.archive-card-content{padding:13px}.archive-card h2{font-size:18px;line-height:1.4;margin:0}.archive-card a{text-decoration:none}.pagination{margin:25px 0;display:flex;gap:8px;justify-content:center}.pagination a,.pagination span{padding:7px 11px;background:#fff;border:1px solid var(--border);text-decoration:none}.pagination .current{background:var(--navy);color:#fff}

/* FOOTER */
.site-footer{background:var(--dark);color:#fff;margin-top:30px}.footer-main{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;padding:35px 0}.footer-main h3,.footer-widget h3{margin:0 0 12px;color:#fff;border-left:3px solid var(--red);padding-left:9px}.footer-main a{color:#fff;text-decoration:none}.footer-bottom{background:#04152a;text-align:center;padding:13px;font-size:12px}

@media(max-width:1000px){.main-menu>li>a{padding-left:9px;padding-right:9px;font-size:13px}.header-main{gap:20px}.category-articles{grid-template-columns:repeat(2,1fr)}.single-category-grid{grid-template-columns:repeat(2,1fr)}.latest-home-grid{grid-template-columns:repeat(2,1fr)}.archive-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:768px){
 .container{width:min(100% - 20px,1200px)}.top-bar-inner{padding:5px 0}.top-social{display:none}
 .header-main{min-height:88px;justify-content:center;padding:8px 0}.site-logo{justify-content:center}.site-logo img{max-width:250px;max-height:72px}.header-ad{display:none}
 .navigation-inner{display:block}.menu-toggle{display:block;width:100%}.main-menu{display:none;flex-direction:column;align-items:stretch;width:100%;padding-bottom:8px}.main-menu.active{display:flex}.main-menu>li{width:100%}.main-menu>li>a{padding:12px 15px;border-bottom:1px solid rgba(255,255,255,.13)}
 .main-menu li ul{position:static;width:100%;box-shadow:none;border-top:0}.main-menu li:hover>ul{display:none}.main-menu li.menu-item-has-children.open>ul{display:block}.main-menu li ul a{padding-left:30px}
 .breaking-inner{min-height:40px}.breaking-label{font-size:12px;padding:8px 12px}.breaking-label:after{border-top-width:18px;border-bottom-width:18px}.breaking-news{gap:30px}.breaking-news a,.breaking-news span{font-size:12px}
 .home-feature{grid-template-columns:1fr}.hero-slides{min-height:330px}.hero-slide img{height:330px}.hero-overlay{padding:70px 16px 28px}.hero-overlay h1{font-size:22px}.side-headlines{margin-top:10px}
 .latest-home-grid{grid-template-columns:1fr}.category-articles{grid-template-columns:1fr 1fr}.single-category-grid{grid-template-columns:1fr 1fr}.latest-list{grid-template-columns:1fr}.article-wrapper{padding:15px}.article-title{font-size:27px}.article-content{font-size:16px}.archive-grid{grid-template-columns:1fr}.footer-main{grid-template-columns:1fr;gap:15px}
}
@media(max-width:520px){
 .section-title h2{font-size:18px}.category-articles{grid-template-columns:1fr}.single-category-grid{grid-template-columns:1fr}.hero-slides{min-height:285px}.hero-slide img{height:285px}.hero-overlay h1{font-size:20px}.slider-btn{width:36px;height:36px;font-size:21px}.article-hashtag{padding:5px 9px;font-size:12px}.latest-item img{width:105px;height:75px}
}


/* =========================================================
   V4 MENU + CATEGORY WIDGET UPDATE
========================================================= */
.main-menu > li > a{display:flex;align-items:center;justify-content:center;gap:5px}
.home-menu .menu-icon{font-size:19px;line-height:1;font-weight:900}
.special-rti > a,.special-epaper > a{padding-left:14px!important;padding-right:14px!important;border-radius:0}
.special-icon{font-size:16px;line-height:1;font-weight:900;margin-right:3px}
.more-menu > a{cursor:pointer}
.main-menu li.more-menu > ul.sub-menu{z-index:10000}
.main-menu li.more-menu > ul.sub-menu a{color:#17334f!important;background:#fff!important}
.main-menu li.more-menu > ul.sub-menu a:hover{color:#fff!important;background:var(--red)!important}

/* HOME: 12 CATEGORY WIDGETS IN 4 COLUMNS */
.home-category-widgets-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;align-items:start}
.home-category-widget{background:#fff;border:1px solid var(--border);border-radius:7px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.05)}
.home-widget-header{display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--navy);padding:9px 11px;border-bottom:3px solid var(--red)}
.home-widget-header h3{margin:0;color:#fff;font-size:16px;line-height:1.35}
.home-widget-header a{color:#fff;font-size:11px;font-weight:800;text-decoration:none;white-space:nowrap}
.home-widget-header a:hover{text-decoration:underline}
.home-widget-post{display:flex;gap:9px;padding:10px;border-bottom:1px solid #edf0f3}
.home-widget-post:last-child{border-bottom:0}
.home-widget-image{flex:0 0 86px;display:block}
.home-widget-image img{width:86px;height:62px;object-fit:cover;border-radius:4px;display:block}
.home-widget-content{min-width:0}
.home-widget-content h4{font-size:13px;line-height:1.4;margin:0}
.home-widget-content h4 a{text-decoration:none}
.home-widget-content h4 a:hover{color:var(--red)}
.home-widget-content span{display:block;color:#8a939c;font-size:10px;margin-top:4px}
.category-news-sections{margin-top:30px}

@media(max-width:1100px){
    .home-category-widgets-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:900px){
    .home-category-widgets-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:768px){
    .main-menu > li > a{justify-content:flex-start}
    .home-category-widgets-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
    .home-widget-image{flex-basis:75px}
    .home-widget-image img{width:75px;height:55px}
    .home-widget-content h4{font-size:12px}
}
@media(max-width:520px){
    .home-category-widgets-grid{grid-template-columns:1fr}
}
