/*
Theme Name: test4
Theme URI: https://liberateai.com
Author: Liberate AI Marketing Management
Description: Custom WordPress theme for Blog / Magazine — inspired by Newspaper — generated by Liberate AI.
Version: 1.0.0
Text Domain: test4
*/

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

:root {
  --color-primary: #1e293b;
  --color-secondary: #334155;
  --color-accent: #dc2626;
  --font-heading: 'Playfair Display', sans-serif;
  --font-body: 'Merriweather', sans-serif;
  --max-width: 1200px;
  --border-radius: 8px;
  --transition: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body { font-family: var(--font-body); color: #333; background: #fff; line-height: 1.7; }

h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: #1a1a1a; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
p { margin-bottom: 1rem; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.content-wrap { width: 100%; }

.site-header {
  background: var(--color-primary);
  padding: 1rem 0;
  
  
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.site-logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: #fff; }
.site-nav ul { list-style: none; display: flex; gap: 2rem; }
.site-nav a { color: #fff; font-weight: 500; }
.site-nav a:hover { color: var(--color-accent); }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }



.magazine-bar { background: var(--color-primary); padding: 0.5rem 0; }
.magazine-bar .container { display: flex; gap: 1.5rem; }
.magazine-bar a { color: rgba(255,255,255,0.8); font-size: 0.85rem; }
.magazine-bar a:hover { color: #fff; }
.magazine-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.magazine-featured { position: relative; }
.magazine-sidebar-posts { display: flex; flex-direction: column; gap: 1rem; }
.magazine-sidebar-post { display: flex; gap: 0.75rem; padding-bottom: 1rem; border-bottom: 1px solid #eee; }

.btn { display: inline-block; padding: 0.875rem 2rem; background: var(--color-primary); color: #fff !important; border-radius: var(--border-radius); font-weight: 600; border: 2px solid transparent; cursor: pointer; transition: all var(--transition); text-decoration: none !important; }
.btn:hover { background: var(--color-accent); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.btn-outline { background: transparent !important; border-color: var(--color-primary); color: var(--color-primary) !important; }
.btn-outline:hover { background: var(--color-primary) !important; color: #fff !important; }



.posts-list article { border-bottom: 1px solid #eee; padding: 2rem 0; }
.posts-list article:last-child { border-bottom: none; }
.post-meta { font-size: 0.85rem; color: #888; margin-bottom: 0.75rem; }
.entry-summary { margin: 0.75rem 0 1rem; }

section { padding: 5rem 0; }
.bg-light { background: #f8f9fa; }

.site-footer { background: #1a1a1a; color: #ccc; padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 3rem; }
.footer-col h4 { color: #fff; font-family: var(--font-heading); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col a { color: #aaa; font-size: 0.9rem; }
.footer-col a:hover { color: var(--color-accent); }
.footer-bottom { border-top: 1px solid #333; padding-top: 2rem; text-align: center; font-size: 0.85rem; color: #666; }

.newsletter-section { background: var(--color-primary); color: #fff; text-align: center; padding: 4rem 0; }
.newsletter-form { display: flex; max-width: 500px; margin: 2rem auto 0; gap: 0.75rem; }
.newsletter-form input { flex: 1; padding: 0.875rem 1.25rem; border-radius: var(--border-radius); border: none; font-size: 1rem; }
.newsletter-form button { background: var(--color-accent); color: #fff; border: none; padding: 0.875rem 1.5rem; border-radius: var(--border-radius); font-weight: 600; cursor: pointer; }

.contact-form { max-width: 700px; margin: 0 auto; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.form-group input, .form-group textarea { width: 100%; padding: 0.875rem 1.25rem; border: 2px solid #e5e7eb; border-radius: var(--border-radius); font-size: 1rem; transition: border-color var(--transition); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--color-primary); outline: none; }
.form-group textarea { min-height: 150px; resize: vertical; }

/* Single post */
.single-post { max-width: 780px; margin: 0 auto; padding: 2rem 0; }
.single-post h1 { margin-bottom: 1rem; }
.post-navigation { display: flex; justify-content: space-between; padding: 2rem 0; border-top: 1px solid #eee; margin-top: 2rem; }

@media (prefers-color-scheme: dark) { body { background: #0f0f0f; color: #e5e5e5; } h1,h2,h3,h4,h5,h6 { color: #f5f5f5; } .card { background: #1e1e1e; } .bg-light { background: #1a1a1a; } }


@media (max-width: 768px) {
  .site-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--color-primary); padding: 1rem; }
  .site-nav.nav-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.75rem; }
  .hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  
  .newsletter-form { flex-direction: column; }
  .magazine-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
