/*
Theme Name: DMA Marketing 2026
Theme URI: https://www.dma.marketing/
Author: Digital Marketing Associates
Author URI: https://www.dma.marketing/
Description: A clean, modern, professional, and SEO-optimized theme for Digital Marketing Associates. Focused on high-performance blog reading with a 2026 design aesthetic, including glassmorphism and dark mode support.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dma-marketing
*/

:root {
  --primary-color: #0d3081; /* Deep blue from original */
  --primary-color-hover: #1545b7;
  --bg-color: #f7f9fc;
  --surface-color: #ffffff;
  --text-color: #1a202c;
  --text-muted: #4a5568;
  --border-color: #e2e8f0;
  
  --font-heading: 'Outfit', 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(13, 48, 129, 0.05);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #0f172a;
    --surface-color: #1e293b;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  }
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-color-hover);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Glassmorphism Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 15px 0;
  box-shadow: var(--glass-shadow);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-branding a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.main-navigation a {
  color: var(--text-color);
  font-weight: 600;
  font-size: 1rem;
  position: relative;
}

.main-navigation a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.main-navigation a:hover:after,
.main-navigation li.current-menu-item a:after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  padding: 120px 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(13, 48, 129, 0.08) 0%, rgba(13, 48, 129, 0) 100%);
  border-bottom: 1px solid var(--border-color);
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-color) 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.8;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(13, 48, 129, 0.2);
}

.btn:hover {
  background-color: var(--primary-color-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13, 48, 129, 0.3);
  color: #fff;
}

.btn-outlined {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  box-shadow: none;
}

.btn-outlined:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* Blog Layout */
.site-main {
  padding: 60px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.post-card {
  background: var(--surface-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--glass-shadow);
}

.post-thumbnail {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-thumbnail {
  transform: scale(1.05);
}

.post-thumbnail-wrapper {
  overflow: hidden;
}

.post-thumbnail-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--primary-color), #2b5bc7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  font-weight: 800;
  opacity: 0.9;
  text-transform: uppercase;
}

.post-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.post-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  line-height: 1.4;
}

.post-title a {
  color: var(--text-color);
}

.post-title a:hover {
  color: var(--primary-color);
}

.post-excerpt {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 25px;
  flex-grow: 1;
}

.read-more {
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.3s ease;
  margin-top: auto;
}

.read-more:hover {
  opacity: 0.8;
}

.read-more svg {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.post-card:hover .read-more svg {
  transform: translateX(6px);
}

/* Single Post */
.single-post-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
}

.single-post-thumbnail {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 50px;
  box-shadow: var(--glass-shadow);
}

.single-post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.single-post-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.8;
}

.single-post-content p {
  margin-bottom: 1.8em;
}

.single-post-content h2, 
.single-post-content h3 {
  margin-top: 2.2em;
  margin-bottom: 1em;
}

.single-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 2.5em 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.single-post-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 20px 30px;
  margin: 2.5em 0;
  background: rgba(13, 48, 129, 0.03);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-color);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Pagination */
.pagination {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--surface-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  font-weight: 600;
  transition: all 0.3s ease;
}

.page-numbers.current,
.page-numbers:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 4px 10px rgba(13, 48, 129, 0.2);
}

/* Footer */
.site-footer {
  background: var(--surface-color);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px;
  margin-top: 80px;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px;
  margin-bottom: 60px;
}

.widget-title {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: var(--text-color);
  font-weight: 700;
}

.widget ul {
  list-style: none;
}

.widget ul li {
  margin-bottom: 12px;
}

.widget ul li a {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.widget ul li a:hover {
  color: var(--primary-color);
}

.site-info {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .main-navigation {
    display: none; /* Add JS mobile menu later if needed */
  }
  
  .site-header {
    padding: 20px 0;
  }
}
