/*
Theme Name: Cowva Blog
Theme URI: https://blog.cowva.com
Author: Cowva
Description: Official Cowva Blog Theme - Simple, Secure, Efficient. Built for Elementor.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: cowva-blog
Tags: blog, elementor, custom
*/

:root {
  --cowva-teal: #00B4BF;
  --cowva-blue: #1A6EA8;
  --cowva-gradient: linear-gradient(135deg, #00B4BF 0%, #1A6EA8 100%);
  --cowva-dark: #0D2D44;
  --cowva-light-bg: #F4F8FB;
  --cowva-white: #FFFFFF;
  --cowva-text: #2D3748;
  --cowva-muted: #718096;
  --cowva-border: #E2E8F0;
  --font-main: 'Inter','Segoe UI',sans-serif;
  --radius: 8px;
  --shadow: 0 2px 16px rgba(0,90,140,0.08);
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
body{font-family:var(--font-main);font-size:16px;line-height:1.7;color:var(--cowva-text);background:var(--cowva-white)}
a{color:var(--cowva-teal);text-decoration:none;transition:color .2s}
a:hover{color:var(--cowva-blue)}
img{max-width:100%;height:auto;display:block}
h1,h2,h3,h4,h5,h6{font-family:var(--font-main);font-weight:700;line-height:1.3;color:var(--cowva-dark);margin-bottom:.75rem}
p{margin-bottom:1rem}
.site-wrapper{display:flex;flex-direction:column;min-height:100vh}
.site-main{flex:1}
.container{max-width:1200px;margin:0 auto;padding:0 24px}
.site-header{background:var(--cowva-white);border-bottom:1px solid var(--cowva-border);position:sticky;top:0;z-index:1000;box-shadow:var(--shadow)}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:70px;max-width:1200px;margin:0 auto;padding:0 24px}
.site-logo img{height:40px;width:auto}
.site-logo a{display:flex;align-items:center;gap:10px}
.logo-tagline{font-size:11px;font-weight:600;letter-spacing:.15em;text-transform:uppercase;background:var(--cowva-gradient);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.main-nav ul{display:flex;gap:32px;list-style:none}
.main-nav a{font-size:14px;font-weight:500;color:var(--cowva-text);padding:4px 0;border-bottom:2px solid transparent;transition:all .2s}
.main-nav a:hover,.main-nav .current-menu-item a{color:var(--cowva-teal);border-bottom-color:var(--cowva-teal)}
.header-cta .btn-primary{background:var(--cowva-gradient);color:#fff;padding:10px 22px;border-radius:var(--radius);font-size:14px;font-weight:600;transition:opacity .2s,transform .2s}
.header-cta .btn-primary:hover{opacity:.9;transform:translateY(-1px)}
.blog-hero{background:var(--cowva-gradient);padding:80px 24px;text-align:center;color:#fff}
.blog-hero h1{color:#fff;font-size:clamp(2rem,5vw,3.5rem);margin-bottom:16px}
.blog-hero p{font-size:1.2rem;opacity:.9;max-width:600px;margin:0 auto}
.blog-section{padding:64px 0;background:var(--cowva-light-bg)}
.blog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:32px;margin-top:40px}
.post-card{background:var(--cowva-white);border-radius:12px;overflow:hidden;box-shadow:var(--shadow);transition:transform .25s,box-shadow .25s}
.post-card:hover{transform:translateY(-4px);box-shadow:0 8px 32px rgba(0,90,140,.14)}
.post-card-thumbnail{height:200px;overflow:hidden}
.post-card-thumbnail img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.post-card:hover .post-card-thumbnail img{transform:scale(1.04)}
.no-thumb{width:100%;height:100%;background:var(--cowva-gradient);display:flex;align-items:center;justify-content:center}
.post-card-body{padding:24px}
.post-category{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--cowva-teal);margin-bottom:10px}
.post-card-title{font-size:1.1rem;margin-bottom:10px;line-height:1.4}
.post-card-title a{color:var(--cowva-dark)}
.post-card-title a:hover{color:var(--cowva-teal)}
.post-card-excerpt{font-size:14px;color:var(--cowva-muted);margin-bottom:20px}
.post-card-meta{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--cowva-muted);border-top:1px solid var(--cowva-border);padding-top:16px}
.read-more{font-weight:600;color:var(--cowva-teal);font-size:13px}
.read-more:hover{color:var(--cowva-blue)}
.single-post-wrap{max-width:780px;margin:60px auto;padding:0 24px}
.post-header{margin-bottom:32px}
.post-header h1{font-size:clamp(1.8rem,4vw,2.8rem);margin-bottom:16px}
.post-meta{color:var(--cowva-muted);font-size:14px;display:flex;gap:16px;flex-wrap:wrap}
.post-featured-img{border-radius:var(--radius);overflow:hidden;margin-bottom:40px;max-height:480px}
.post-featured-img img{width:100%;object-fit:cover}
.post-content{font-size:17px;line-height:1.8}
.post-content h2{font-size:1.6rem;margin:2rem 0 1rem}
.post-content h3{font-size:1.3rem;margin:1.5rem 0 .75rem}
.post-content p{margin-bottom:1.25rem}
.post-content ul,.post-content ol{padding-left:1.5rem;margin-bottom:1.25rem}
.post-content blockquote{border-left:4px solid var(--cowva-teal);padding:16px 24px;margin:24px 0;background:var(--cowva-light-bg);border-radius:0 var(--radius) var(--radius) 0;font-style:italic;color:var(--cowva-muted)}
.post-content code{background:var(--cowva-light-bg);padding:2px 6px;border-radius:4px;font-size:14px;color:var(--cowva-blue)}
.post-content pre{background:var(--cowva-dark);color:#e2e8f0;padding:20px;border-radius:var(--radius);overflow-x:auto}
.post-content a{color:var(--cowva-teal);text-decoration:underline}
.sidebar-widget{background:var(--cowva-white);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow);margin-bottom:24px}
.widget-title{font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--cowva-muted);margin-bottom:16px;padding-bottom:12px;border-bottom:2px solid var(--cowva-teal)}
.site-footer{background:var(--cowva-dark);color:rgba(255,255,255,.75);padding:48px 0 24px;margin-top:80px}
.footer-inner{max-width:1200px;margin:0 auto;padding:0 24px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:48px;margin-bottom:40px}
.footer-brand p{font-size:14px;line-height:1.6}
.footer-tagline{font-size:11px;letter-spacing:.15em;text-transform:uppercase;color:var(--cowva-teal);margin-top:8px}
.footer-col h4{color:#fff;font-size:14px;margin-bottom:16px}
.footer-col ul{list-style:none}
.footer-col ul li{margin-bottom:10px}
.footer-col ul a{color:rgba(255,255,255,.65);font-size:14px}
.footer-col ul a:hover{color:var(--cowva-teal)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding-top:24px;display:flex;justify-content:space-between;align-items:center;font-size:13px}
.footer-bottom a{color:var(--cowva-teal)}
.pagination{display:flex;justify-content:center;gap:8px;margin:48px 0}
.pagination a,.pagination span{padding:8px 16px;border-radius:var(--radius);font-size:14px;font-weight:500;border:1px solid var(--cowva-border);color:var(--cowva-text)}
.pagination .current,.pagination a:hover{background:var(--cowva-gradient);color:#fff;border-color:transparent}
.cowva-breadcrumbs ol{display:flex;gap:8px;list-style:none;font-size:13px;color:var(--cowva-muted);margin-bottom:20px;flex-wrap:wrap}
.cowva-breadcrumbs li:not(:last-child)::after{content:"/";margin-left:8px}
.cowva-breadcrumbs a{color:var(--cowva-teal)}
@media(max-width:768px){
  .main-nav,.header-cta{display:none}
  .footer-grid{grid-template-columns:1fr;gap:32px}
  .blog-grid{grid-template-columns:1fr}
  .footer-bottom{flex-direction:column;gap:8px;text-align:center}
}
