/*
Theme Name: Karavali Bulletin
Theme URI: https://example.com/karavali-bulletin
Author: Chirasvi Media
Description: Professional Kannada coastal news WordPress theme with category sections, breaking-news ticker, social links, comments, and four manageable advertising slots.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: karavali-bulletin
*/
:root{--navy:#082d70;--blue:#087ec1;--red:#d7192d;--ink:#17243b;--muted:#68758b;--line:#e5eaf1;--paper:#f5f7fb;--white:#fff;--radius:12px;--shadow:0 8px 26px rgba(9,37,83,.08)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:"Noto Sans Kannada","Nirmala UI","Tunga",Arial,sans-serif;font-size:16px;line-height:1.75}a{color:var(--navy);text-decoration:none}a:hover{color:var(--red)}img{max-width:100%;height:auto;display:block}.site-shell{max-width:1380px;margin:auto;padding:0 22px}.topline{background:#071e4c;color:#dce7ff;font-size:13px}.topline .site-shell{display:flex;justify-content:space-between;gap:16px;padding-top:7px;padding-bottom:7px;flex-wrap:wrap}.masthead{background:white;border-bottom:1px solid var(--line)}.masthead-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-top:18px;padding-bottom:18px}.brand{display:flex;align-items:center;min-width:0}.custom-logo{width:auto;max-height:112px;max-width:min(100%,760px);object-fit:contain}.brand img.logo-fallback{width:min(100%,760px);max-height:112px;object-fit:contain}.brand-text{font-size:25px;font-weight:900;color:var(--navy)}.brand-tagline{color:var(--muted);font-size:12px;letter-spacing:2px}.header-ad{min-width:220px;max-width:320px;text-align:center;color:#9aa4b5;border:1px dashed #cbd4e2;border-radius:8px;padding:13px;font-size:12px}.main-nav{background:var(--navy);box-shadow:0 4px 12px #082d7020}.main-nav .site-shell{display:flex;align-items:center;gap:22px;min-height:54px}.main-nav ul{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:0}.main-nav li a{display:block;color:white;font-weight:700;font-size:15px;padding:14px 13px}.main-nav li a:hover,.main-nav .current-menu-item>a{background:#0e4d9d;color:white}.mobile-menu{display:none;color:white;background:none;border:0;font:inherit;font-weight:700;padding:12px 0}.breaking{background:white;border-bottom:1px solid var(--line)}.breaking-inner{display:flex;align-items:stretch;min-height:44px;overflow:hidden}.breaking-label{background:var(--red);color:#fff;font-weight:900;padding:8px 15px;white-space:nowrap}.ticker{padding:8px 14px;white-space:nowrap;overflow:hidden;flex:1}.ticker-track{display:inline-block;min-width:100%;animation:tick 42s linear infinite}.ticker:hover .ticker-track{animation-play-state:paused}.ticker a{padding-right:36px;font-weight:700;color:#273b5e}@keyframes tick{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}.page-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:26px;padding-top:28px;padding-bottom:42px}.content-column{min-width:0}.section-heading{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid var(--navy);margin:0 0 18px;gap:12px}.section-heading h2,.section-heading h1{font-size:22px;margin:0;padding:0 0 9px;color:var(--navy);font-weight:900}.section-heading a{font-size:13px;font-weight:700}.lead-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr);gap:18px;margin-bottom:28px}.news-card,.widget,.ad-slot,.article-wrap,.archive-header{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.news-card{min-width:0}.news-card .thumb{display:block;overflow:hidden;background:#e8eef7}.news-card .thumb img{width:100%;height:220px;object-fit:cover;transition:transform .35s}.news-card:hover .thumb img{transform:scale(1.035)}.lead-card .thumb img{height:340px}.news-card .card-body{padding:15px 17px}.category-label{display:inline-block;color:var(--red);font-size:12px;font-weight:900;margin-bottom:5px}.news-card h3{font-size:19px;line-height:1.55;margin:0 0 7px;font-weight:900}.lead-card h3{font-size:25px}.meta{color:var(--muted);font-size:12px;display:flex;gap:12px;flex-wrap:wrap}.excerpt{font-size:14px;color:#526078;margin:8px 0 0}.news-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin-bottom:30px}.news-list .thumb img{height:160px}.category-section{margin:30px 0}.category-section .news-list{margin-bottom:0}.sidebar{min-width:0}.sidebar-title{font-size:18px;color:var(--navy);margin:0 0 12px;font-weight:900}.ad-slot{margin-bottom:17px;padding:10px}.ad-slot-label{font-size:11px;color:#8b96a8;text-transform:uppercase;letter-spacing:1px;text-align:center;margin-bottom:8px}.ad-slot .widget,.ad-slot img{box-shadow:none;border:0;border-radius:6px}.ad-slot img{width:100%;height:auto}.ad-placeholder{min-height:190px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:linear-gradient(145deg,#f4f7fc,#e9eff8);border:1px dashed #c2ccdc;border-radius:7px;color:#7c899d;padding:15px}.ad-placeholder strong{font-size:18px;color:#526078}.widget{padding:17px;margin-bottom:17px}.widget ul{padding-left:19px;margin:0}.widget li{margin:6px 0}.widget-title{font-size:17px;margin:0 0 12px;color:var(--navy);font-weight:900}.category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.category-section .news-card .thumb img{height:145px}.archive-header{padding:20px 23px;margin-bottom:20px}.archive-header h1{margin:0;color:var(--navy);font-size:28px}.pagination,.nav-links{display:flex;gap:8px;flex-wrap:wrap;margin:24px 0}.page-numbers{padding:7px 12px;background:#fff;border:1px solid var(--line);border-radius:7px}.page-numbers.current{background:var(--navy);color:white}.article-wrap{padding:clamp(18px,3vw,36px)}.article-category{color:var(--red);font-weight:900}.article-title{font-size:clamp(27px,3vw,42px);line-height:1.4;color:#102c61;margin:8px 0 12px}.article-featured{margin:20px 0}.article-featured img{width:100%;max-height:600px;object-fit:cover;border-radius:10px}.article-content{font-size:18px;line-height:1.95;overflow-wrap:anywhere}.article-content p{margin:0 0 1.25em}.article-content img{border-radius:8px}.article-content blockquote{border-left:4px solid var(--red);margin:22px 0;padding:12px 20px;background:#f5f7fb}.article-tags{margin-top:22px}.article-tags a{display:inline-block;background:#edf2fa;padding:4px 9px;border-radius:5px;margin:3px;font-size:12px}.comments-area{margin-top:34px;border-top:1px solid var(--line);padding-top:22px}.comments-area h2{color:var(--navy)}.comment-list{padding-left:20px}.comment-body{background:#f6f8fc;border-radius:9px;padding:13px;margin:12px 0}.comment-form input,.comment-form textarea,.search-form input{width:100%;padding:12px;border:1px solid #cbd5e1;border-radius:7px;font:inherit}.comment-form .submit,.search-form button{background:var(--navy);color:white;border:0;border-radius:7px;padding:11px 17px;font:inherit;font-weight:800;cursor:pointer}.comment-form label{display:block;margin:10px 0 5px}.site-footer{background:#071e4c;color:#e2eaff}.footer-main{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:30px;padding-top:35px;padding-bottom:30px}.site-footer h3{color:white;font-size:18px;margin:0 0 12px}.site-footer p{margin:5px 0;color:#c3d1ef}.site-footer a{color:white}.social-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.social-links a{padding:8px 12px;border-radius:6px;background:#123b7c;font-weight:800;font-size:13px}.social-links a.whatsapp{background:#138b51}.footer-bottom{border-top:1px solid #244170;padding:12px 0;color:#aebfe1;font-size:12px}.footer-bottom .site-shell{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.screen-reader-text{position:absolute;left:-9999px}.no-posts{padding:25px;background:white;border-radius:10px}
@media(max-width:1050px){.page-layout{grid-template-columns:minmax(0,1fr) 270px;gap:18px}.lead-grid{grid-template-columns:1fr 1fr}.lead-card .thumb img{height:280px}.header-ad{display:none}.news-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.site-shell{padding-left:14px;padding-right:14px}.masthead-inner{padding-top:12px;padding-bottom:12px}.custom-logo,.brand img.logo-fallback{max-height:76px}.main-nav .site-shell{display:block}.mobile-menu{display:block}.main-nav ul{display:none;padding-bottom:8px}.main-nav ul.is-open{display:block}.main-nav li a{padding:9px 12px}.page-layout{grid-template-columns:1fr;padding-top:17px;gap:24px}.lead-grid{grid-template-columns:1fr}.lead-card .thumb img{height:240px}.news-list,.category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.news-list .thumb img,.category-section .news-card .thumb img{height:130px}.news-card .card-body{padding:11px}.news-card h3{font-size:16px}.lead-card h3{font-size:21px}.footer-main{grid-template-columns:1fr;gap:20px}.topline .site-shell{font-size:11px}.article-content{font-size:16px}.article-title{font-size:28px}}
@media(max-width:430px){.news-list,.category-grid{grid-template-columns:1fr 1fr}.news-list .thumb img{height:110px}.news-card h3{font-size:14px}.meta{font-size:11px}.breaking-label{padding:7px 9px}.ticker{padding:7px 10px}}
