/*
Theme Name: Modern Corporate
Author: WordPress Expert Designer
Description: A clean, versatile theme suitable for business and professional blogs.
Version: 11.0
*/

:root {
  /* Colors */
  --color-primary: #2563eb; /* Royal Blue */
  --color-primary-dark: #1d4ed8;
  --color-text-main: #1f2937; /* Gray 900 */
  --color-text-muted: #6b7280; /* Gray 500 */
  --color-bg-body: #f3f4f6; /* Gray 100 */
  --color-bg-card: #ffffff;
  --color-border: #e5e7eb; /* Gray 200 */
  
  /* Spacing & Layout */
  --container-width: 1200px;
  --header-height: 80px;
  --radius-md: 12px;
  --radius-sm: 6px;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

ul { list-style: none; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text-main);
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; letter-spacing: -0.025em; }
h2 { font-size: 2rem; letter-spacing: -0.025em; }
h3 { font-size: 1.5rem; }

/* Utility */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-primary);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s;
  border: none;
  cursor: pointer;
}

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

/* HEADER */
.site-header {
  background: #fff;
  height: var(--header-height);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

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

.site-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}

.main-navigation ul {
  display: flex;
  gap: 2rem;
}

.main-navigation a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

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

/* HERO SECTION */
.hero-section {
  background: #fff;
  padding: 5rem 0 6rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 4rem;
}

.hero-subtitle {
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 3.5rem;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  font-weight: 800;
  color: #111827;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* GRID */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

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

.post-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-4px);
  border-color: #d1d5db;
}

.post-thumbnail {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
}

.post-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.5s ease;
}

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

.post-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.post-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-tag {
  background: #eff6ff;
  color: var(--color-primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.post-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
}

.post-excerpt {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.read-more-link:hover {
  color: var(--color-primary-dark);
}

/* PAGINATION */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 5rem;
}

.pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-weight: 600;
  transition: all 0.2s;
}

.pagination .page-numbers:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text-main);
}

.pagination .current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* SINGLE POST */
.single-wrapper {
  background: #fff;
  max-width: 800px;
  margin: -4rem auto 4rem; /* Pull up over hero */
  padding: 3rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 10;
  border: 1px solid var(--color-border);
}

.single-header-bg {
  background: #111827; /* Dark bg for header area */
  color: #fff;
  padding: 6rem 0 8rem;
  text-align: center;
}

.single-title {
  color: #fff;
  font-size: 3rem;
  max-width: 900px;
  margin: 0 auto 1.5rem;
}

.single-meta-info {
  color: #9ca3af;
  font-size: 1rem;
}

.single-image {
  margin-bottom: 2.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.entry-content {
  font-size: 1.125rem;
  color: #374151;
}

.entry-content p {
  margin-bottom: 1.75rem;
}

.entry-content h2 {
  margin-top: 2.5rem;
  font-size: 1.75rem;
  color: #111827;
}

/* FOOTER */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding: 4rem 0;
  color: var(--color-text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: #111827;
  margin-bottom: 1rem;
  display: block;
}

.footer-desc {
  max-width: 300px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #111827;
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}

.footer-menu li {
  margin-bottom: 0.75rem;
}

.footer-menu a {
  font-size: 0.95rem;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .single-wrapper { padding: 1.5rem; margin-top: -2rem; }
  .single-title { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .site-header { padding: 0 1rem; }
}
