@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@400;700&display=swap');

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root{
  --primary:#1a56db;
  --primary-dark:#1e429f;
  --dark:#111827;
  --text:#1f2937;
  --muted:#6b7280;
  --light:#f9fafb;
  --border:#e5e7eb;
  --white:#ffffff;
  --accent:#7e3af2;
  --radius:12px;
  --shadow:0 1px 3px rgba(0,0,0,.07),0 4px 16px rgba(0,0,0,.05);
  --shadow-lg:0 8px 32px rgba(0,0,0,.10);
}

body{font-family:'Inter',sans-serif;color:var(--text);background:#f3f4f6;font-size:16px;line-height:1.65}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}

/* HEADER */
header{background:var(--white);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:100}
.header-inner{max-width:1200px;margin:0 auto;padding:0 24px;height:66px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.logo{font-family:'Playfair Display',serif;font-size:22px;font-weight:700;color:var(--primary);letter-spacing:-.3px;white-space:nowrap}
.logo span{color:var(--dark)}
nav{display:flex;align-items:center;gap:2px}
nav a{padding:7px 13px;border-radius:8px;font-size:14px;font-weight:500;color:var(--muted);transition:all .15s}
nav a:hover,nav a.active{background:var(--light);color:var(--primary)}
.menu-toggle{display:none;background:none;border:none;cursor:pointer;padding:6px;flex-direction:column;gap:5px}
.menu-toggle span{display:block;width:22px;height:2px;background:var(--text);border-radius:2px;transition:.3s}

/* HERO */
.hero{background:linear-gradient(135deg,#0f172a 0%,#1e3a5f 55%,#1a56db 100%);color:var(--white);padding:88px 24px;text-align:center}
.hero h1{font-family:'Playfair Display',serif;font-size:clamp(28px,5vw,54px);font-weight:700;line-height:1.15;margin-bottom:18px}
.hero p{font-size:clamp(15px,2vw,19px);opacity:.82;max-width:580px;margin:0 auto 32px}
.hero-btns{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.btn-primary{background:var(--white);color:var(--primary);padding:14px 28px;border-radius:10px;font-weight:700;font-size:15px;transition:all .2s}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,.18)}
.btn-outline{background:transparent;color:var(--white);border:2px solid rgba(255,255,255,.4);padding:14px 28px;border-radius:10px;font-weight:600;font-size:15px;transition:all .2s}
.btn-outline:hover{border-color:var(--white);background:rgba(255,255,255,.1)}

/* LAYOUT */
.container{max-width:1200px;margin:0 auto;padding:0 24px}
.layout{display:grid;grid-template-columns:1fr 310px;gap:40px;padding:56px 24px;max-width:1200px;margin:0 auto}

/* SECTION TITLES */
.section-header{margin-bottom:28px}
.section-header h2{font-size:24px;font-weight:700;color:var(--dark);margin-bottom:5px}
.section-header p{color:var(--muted);font-size:14px}
.section-line{width:44px;height:4px;background:var(--primary);border-radius:2px;margin-top:10px}

/* CARDS */
.cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:22px}
.card{background:var(--white);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:transform .2s,box-shadow .2s;border:1px solid var(--border)}
.card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg)}
.card-img{width:100%;height:195px;object-fit:cover}
.card-body{padding:18px 20px}
.card-category{display:inline-block;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.7px;color:var(--primary);background:#eff6ff;padding:3px 10px;border-radius:20px;margin-bottom:9px}
.card-title{font-size:16px;font-weight:700;line-height:1.35;margin-bottom:9px;color:var(--dark)}
.card-title a:hover{color:var(--primary)}
.card-excerpt{font-size:13px;color:var(--muted);line-height:1.6;margin-bottom:14px}
.card-meta{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted)}
.card-meta img{width:26px;height:26px;border-radius:50%;object-fit:cover}
.read-more{color:var(--primary);font-size:13px;font-weight:600;display:inline-flex;align-items:center;gap:4px;margin-top:10px}
.read-more:hover{gap:8px}

/* FEATURED */
.card-featured{display:grid;grid-template-columns:1fr 1fr;background:var(--white);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-lg);border:1px solid var(--border);margin-bottom:36px;transition:transform .2s}
.card-featured:hover{transform:translateY(-3px)}
.card-featured .card-img{height:100%;min-height:270px}
.card-featured .card-body{padding:32px 28px;display:flex;flex-direction:column;justify-content:center}
.card-featured .card-title{font-size:20px}
.card-featured .card-excerpt{font-size:14px}

/* SIDEBAR */
.sidebar{display:flex;flex-direction:column;gap:24px}
.widget{background:var(--white);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow);border:1px solid var(--border)}
.widget-title{font-size:15px;font-weight:700;margin-bottom:14px;color:var(--dark);padding-bottom:10px;border-bottom:2px solid var(--primary)}
.widget-post{display:flex;gap:11px;margin-bottom:13px;padding-bottom:13px;border-bottom:1px solid var(--border)}
.widget-post:last-child{margin-bottom:0;padding-bottom:0;border-bottom:none}
.widget-post img{width:60px;height:60px;object-fit:cover;border-radius:8px;flex-shrink:0}
.widget-post-title{font-size:13px;font-weight:600;line-height:1.4;color:var(--dark);margin-bottom:3px}
.widget-post-title a:hover{color:var(--primary)}
.widget-post-date{font-size:11px;color:var(--muted)}
.tag-cloud{display:flex;flex-wrap:wrap;gap:7px}
.tag{font-size:12px;padding:5px 11px;border-radius:20px;background:var(--light);color:var(--muted);border:1px solid var(--border);transition:all .15s}
.tag:hover{background:var(--primary);color:var(--white);border-color:var(--primary)}
.about-widget{text-align:center}
.about-widget img{width:76px;height:76px;border-radius:50%;object-fit:cover;margin:0 auto 11px;border:3px solid var(--primary)}
.about-widget p{font-size:13px;color:var(--muted);line-height:1.6}

/* ARTICLE */
.article-hero{background:var(--dark);color:var(--white);padding:56px 24px 36px}
.article-hero .container{max-width:800px}
.article-hero .cat-badge{display:inline-block;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.7px;background:var(--primary);color:var(--white);padding:4px 13px;border-radius:20px;margin-bottom:14px}
.article-hero h1{font-family:'Playfair Display',serif;font-size:clamp(22px,4vw,38px);font-weight:700;line-height:1.2;margin-bottom:18px}
.article-meta{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.article-meta img{width:38px;height:38px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,.3)}
.article-meta-text{font-size:14px;opacity:.82}
.article-featured-img{width:100%;height:400px;object-fit:cover}
.article-layout{display:grid;grid-template-columns:1fr 295px;gap:44px;max-width:1200px;margin:0 auto;padding:44px 24px}
.article-content{max-width:720px}
.article-content h2{font-family:'Playfair Display',serif;font-size:21px;font-weight:700;color:var(--dark);margin:34px 0 12px}
.article-content h3{font-size:17px;font-weight:700;color:var(--dark);margin:26px 0 9px}
.article-content p{font-size:17px;line-height:1.88;color:#374151;margin-bottom:18px}
.article-content ul,.article-content ol{margin:0 0 18px 22px}
.article-content li{font-size:17px;line-height:1.8;color:#374151;margin-bottom:7px}
.article-content strong{color:var(--dark);font-weight:600}
.article-content blockquote{border-left:4px solid var(--primary);padding:14px 18px;background:#eff6ff;border-radius:0 8px 8px 0;margin:24px 0;font-style:italic;color:#1e429f}
.article-content .highlight-box{background:linear-gradient(135deg,#eff6ff,#f0f9ff);border:1px solid #bfdbfe;border-radius:12px;padding:18px 22px;margin:24px 0}
.article-content .highlight-box p{margin-bottom:0}
.article-tags{display:flex;flex-wrap:wrap;gap:7px;margin:32px 0;padding-top:24px;border-top:1px solid var(--border)}
.article-tags span{font-size:13px;color:var(--muted);margin-right:4px}

/* CATEGORY PAGE */
.page-hero{background:linear-gradient(135deg,#1e3a5f,#1a56db);color:var(--white);padding:52px 24px}
.page-hero h1{font-family:'Playfair Display',serif;font-size:34px;font-weight:700;margin-bottom:7px}
.page-hero p{opacity:.83;font-size:16px}

/* STATIC PAGES */
.page-content{max-width:800px;margin:56px auto;padding:0 24px 80px}
.page-content h1{font-family:'Playfair Display',serif;font-size:34px;font-weight:700;margin-bottom:7px;color:var(--dark)}
.page-content .lead{font-size:17px;color:var(--muted);margin-bottom:36px;padding-bottom:28px;border-bottom:1px solid var(--border)}
.page-content h2{font-size:20px;font-weight:700;margin:32px 0 10px;color:var(--dark)}
.page-content p{font-size:16px;line-height:1.82;color:#374151;margin-bottom:14px}
.page-content ul{margin:0 0 14px 22px}
.page-content li{font-size:16px;line-height:1.8;color:#374151;margin-bottom:5px}
.contact-form{background:var(--white);border:1px solid var(--border);border-radius:16px;padding:32px;margin-top:28px}
.form-group{margin-bottom:18px}
.form-group label{display:block;font-size:14px;font-weight:600;margin-bottom:5px;color:var(--dark)}
.form-group input,.form-group textarea,.form-group select{width:100%;padding:11px 15px;border:1px solid var(--border);border-radius:8px;font-size:15px;font-family:inherit;color:var(--text);background:var(--white);transition:border .2s}
.form-group input:focus,.form-group textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px #dbeafe}
.form-group textarea{min-height:130px;resize:vertical}
.btn-submit{background:var(--primary);color:var(--white);border:none;cursor:pointer;padding:12px 30px;border-radius:8px;font-size:15px;font-weight:600;font-family:inherit;transition:background .2s}
.btn-submit:hover{background:var(--primary-dark)}

/* NEWSLETTER */
.newsletter{background:linear-gradient(135deg,#1e3a5f,#1a56db);color:var(--white);padding:56px 24px;text-align:center;margin-top:56px}
.newsletter h2{font-family:'Playfair Display',serif;font-size:26px;font-weight:700;margin-bottom:9px}
.newsletter p{opacity:.83;margin-bottom:24px;font-size:15px}
.newsletter-form{display:flex;gap:10px;max-width:460px;margin:0 auto}
.newsletter-form input{flex:1;padding:12px 16px;border-radius:8px;border:none;font-size:15px;font-family:inherit}
.newsletter-form button{background:var(--white);color:var(--primary);border:none;cursor:pointer;padding:12px 22px;border-radius:8px;font-weight:700;font-size:14px;font-family:inherit;white-space:nowrap}

/* BREADCRUMB */
.breadcrumb{background:var(--white);border-bottom:1px solid var(--border);padding:11px 24px}
.breadcrumb-inner{max-width:1200px;margin:0 auto;font-size:13px;color:var(--muted);display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.breadcrumb-inner a{color:var(--primary)}
.breadcrumb-inner a:hover{text-decoration:underline}

/* PAGINATION */
.pagination{display:flex;gap:7px;justify-content:center;margin-top:44px}
.page-btn{width:38px;height:38px;display:flex;align-items:center;justify-content:center;border-radius:8px;border:1px solid var(--border);font-size:14px;font-weight:500;background:var(--white);color:var(--muted);transition:all .15s}
.page-btn:hover,.page-btn.active{background:var(--primary);color:var(--white);border-color:var(--primary)}

/* FOOTER */
footer{background:var(--dark);color:rgba(255,255,255,.65);margin-top:auto}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px;max-width:1200px;margin:0 auto;padding:56px 24px 36px}
.footer-brand .logo{color:var(--white);margin-bottom:11px;font-size:20px}
.footer-brand p{font-size:13px;line-height:1.7}
.footer-col h4{color:var(--white);font-size:13px;font-weight:700;margin-bottom:14px;text-transform:uppercase;letter-spacing:.7px}
.footer-col ul{list-style:none}
.footer-col li{margin-bottom:9px}
.footer-col a{font-size:13px;transition:color .15s}
.footer-col a:hover{color:var(--white)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);max-width:1200px;margin:0 auto;padding:18px 24px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;font-size:12px}

/* RESPONSIVE */
@media(max-width:900px){
  .layout{grid-template-columns:1fr}
  .sidebar{display:none}
  .article-layout{grid-template-columns:1fr}
  .card-featured{grid-template-columns:1fr}
  .card-featured .card-img{height:210px}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  nav{display:none}
  nav.open{display:flex;flex-direction:column;position:fixed;top:66px;left:0;right:0;background:var(--white);border-bottom:1px solid var(--border);padding:14px;z-index:99}
  .menu-toggle{display:flex}
  .footer-grid{grid-template-columns:1fr}
  .newsletter-form{flex-direction:column}
}
