/*
Theme Name: Astra Child
Theme URI: https://diplovera.com/
Description: Custom child theme for Diplovera – secure against parent updates
Author: Diplovera
Author URI: https://diplovera.com/
Template: astra
Version: 1.0
*/

/* ✅ Archive Page Styles */
.diplovera-archive-section .container {
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
}

.archive-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: bold;
  text-align: center;
  color: #222;
}

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

.article-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.article-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}
.article-thumbnail {
  display: block;
  width: 100%;
  overflow: hidden;
}


/* ✅ Fix stretched article preview image */
.article-thumbnail img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

/* 🔁 Optional: reduce height on mobile */
@media (max-width: 768px) {
  .article-thumbnail img {
    height: 160px;
  }
}

.article-info {
  padding: 1.2rem;
}

.article-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #1a1a1a;
}

.article-meta {
  font-size: 0.875rem;
  color: #777;
  margin-bottom: 0.8rem;
}

.article-excerpt {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin-top: 2rem;
  font-weight: bold;
  line-height: 1.4;
}

.article-content h2 {
  font-size: 1.8rem;
}

.article-content h3 {
  font-size: 1.5rem;
}

.article-content p {
  margin: 1.2rem 0;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #222;
}

.article-content ul,
.article-content ol {
  margin: 1.5rem 0 1.5rem 1.5rem;
  padding-left: 1.2rem;
  font-size: 1.1rem;
  color: #333;
}

.article-content ul li,
.article-content ol li {
  margin-bottom: 0.75rem;
}

.article-content blockquote {
  border-left: 4px solid #444;
  padding-left: 1rem;
  margin: 2rem 0;
  font-style: italic;
  color: #555;
  background: #f9f9f9;
}

.article-content a {
  color: #0077cc;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.article-content a:hover {
  color: #005999;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

/* ✅ DIPLOVERA RANKINGS & BREAKDOWN – FINAL STYLED & RESPONSIVE TABLE */
.diplovera-breakdown-wrapper {
  padding: 40px 20px;
  max-width: 1100px;
  margin: 0 auto;
  font-family: 'Segoe UI', sans-serif;
  background: #fffaf6;
}

.diplovera-breakdown-title {
  font-size: 28px;
  color: #1a237e;
  font-weight: 800;
  margin-bottom: 30px;
  text-align: center;
}

.diplovera-ranking-table-wrapper {
  background: #ffffff;
  padding: 25px;
  border-radius: 14px;
  border: 1px solid #e1e5ec;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
  margin-bottom: 50px;
  overflow-x: auto;
  width: 100%;
}

.diplovera-ranking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  table-layout: auto;
}

.diplovera-ranking-table th {
  background: #1a237e;
  color: #ffffff;
  font-weight: 600;
  padding: 14px 16px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  white-space: normal !important;
  word-break: keep-all !important;
}

.diplovera-ranking-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid #eee;
  white-space: normal !important;
  vertical-align: middle;
  font-size: 14px;
  color: #333;
}

.diplovera-ranking-table tr:nth-child(even) {
  background: #f8f9fb;
}

.diplovera-ranking-table tr:hover td {
  background-color: #f1f6ff;
}

.ranking-methodology {
  background: #f4f6fa;
  padding: 20px;
  border-left: 4px solid #1a237e;
  margin-top: 40px;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.7;
}

.ranking-methodology h3 {
  margin-top: 0;
  color: #1a237e;
}

.ranking-signature {
  font-size: 14px;
  color: #777;
  font-style: italic;
  margin-top: 30px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 768px) {
  .diplovera-ranking-table {
    font-size: 13px;
    min-width: 100%;
  }

  .diplovera-ranking-table th,
  .diplovera-ranking-table td {
    padding: 10px 12px;
  }

  .diplovera-ranking-table-wrapper {
    padding: 16px;
  }

  .diplovera-breakdown-title {
    font-size: 22px;
  }
}

/* ✅ General Cleanup */
.site-title {
  display: none !important;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
}

body *, body *:before, body *:after {
  box-sizing: border-box !important;
  max-width: 100%;
  word-wrap: break-word;
}
.ast-site-header-wrap, 
.ast-primary-header-bar {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}
#primary.content-area.primary {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* HERO SECTION STYLING */
.hero-section {
  padding: 80px 20px 60px;
  background: linear-gradient(135deg, #0d1b4c, #1a237e);
  text-align: center;
  border-top: 2px solid #111;
  color: #ffffff;
}

.hero-container {
  max-width: 850px;
  margin: 0 auto;
  padding: 0 16px;
}

.hero-title {
  font-family: 'Segoe UI', Roboto, Helvetica, sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: #fdd835 !important; /* Use ticker yellow */
  margin-bottom: 24px;
  text-shadow: none !important; /* Kill unwanted shadow */
}

.hero-subtext {
  font-family: 'Segoe UI', Roboto, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #e8eaf6;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-button {
  display: inline-block;
  padding: 14px 30px;
  background: #fdd835;
  color: #000;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.hero-button:hover {
  background: #fff176;
  color: #1a237e;
  text-decoration: none;
}

/* Mobile Styling */
@media (max-width: 768px) {
  .hero-section {
    padding: 60px 20px 40px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtext {
    font-size: 16px;
  }

  .hero-button {
    padding: 12px 24px;
    font-size: 15px;
  }
}

/* === Diplovera Premium Article Styling (Refined Editorial Edition) === */

/* Layout */
.diplovera-article-wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px;
  background: #e6edf7; /* Elegant deep-blue-inspired backdrop */
  font-family: 'Georgia', 'Merriweather', serif;
  color: #1c1c1c;
  line-height: 1.75;
}

/* Main Headline */
.article-title {
  font-size: 46px;
  font-weight: 700;
  color: #0a1a38;
  line-height: 1.3;
  margin-bottom: 36px;
  text-align: center;
  font-family: 'Playfair Display', Georgia, serif;
}

/* Section Wrapper with Alternating Backgrounds */
.article-section:nth-of-type(odd) {
  background: #ffffff;
  padding: 40px 36px;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  margin: 30px 0;
}

.article-section:nth-of-type(even) {
  background: #f5f7fa;
  padding: 40px 36px;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  margin: 30px 0;
}

/* Hidden Section Headings */
.article-section h2,
.article-section h3,
.article-section h4 {
  display: none;
}

/* Body Text */
.article-section p {
  font-size: 19px;
  color: #2b2b2b;
  margin-bottom: 24px;
  font-family: 'Georgia', serif;
}

/* Executive Summary */
.article-summary {
  font-size: 18px;
  background: #fff7ec;
  padding: 24px 28px;
  border-left: 5px solid #fb8c00;
  border-radius: 12px;
  margin-bottom: 50px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Quote Block */
.quote-block {
  font-style: italic;
  background-color: #e3ecf9;
  border-left: 5px solid #1a237e;
  padding: 24px 30px;
  margin: 48px 0;
  font-size: 20px;
  color: #0d1a26;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  line-height: 1.7;
}

/* Image Styling */
.article-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  margin: 28px 0;
}

/* References */
.article-section ul,
.article-section p.references {
  background: #f1f1f1;
  padding: 20px;
  border-radius: 12px;
  font-size: 16px;
  margin-top: 30px;
  border-left: 4px solid #bbb;
  color: #3d3d3d;
  font-family: 'Segoe UI', sans-serif;
}

/* Author Signature */
.article-footer {
  font-size: 15px;
  color: #444;
  margin-top: 60px;
  text-align: center;
  border-top: 1px solid #ccc;
  padding-top: 28px;
  font-style: italic;
  letter-spacing: 0.25px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .article-title {
    font-size: 34px;
  }
  .article-section p {
    font-size: 17px;
  }
  .article-summary {
    font-size: 17px;
    padding: 20px;
  }
  .quote-block {
    font-size: 18px;
    padding: 20px;
  }
}

/* ✅ Single Article Card – Wider on Desktop, Centered */
.premium-grid > article:only-child,
.home-articles-section .premium-grid > article:only-child {
  max-width: 860px;
  margin: 0 auto;
}

/* ✅ Single Article Image – Full Width and Height-Aware */
.premium-grid > article:only-child img,
.home-articles-section .premium-grid > article:only-child img {
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: cover;
  border-radius: 8px;
}

/* ✅ Mobile Optimization */
@media (max-width: 768px) {
  .premium-grid > article:only-child,
  .home-articles-section .premium-grid > article:only-child {
    max-width: 100%;
    padding: 0 12px;
  }

  .premium-grid > article:only-child img,
  .home-articles-section .premium-grid > article:only-child img {
    max-height: 280px;
  }
}
/* ✅ Home page article grid */
.home-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* ✅ Fix stretched single card */
.home-articles-grid > article:only-child {
  max-width: 850px;
  margin: 0 auto;
}

/* ✅ Ensure image inside card has fixed height and proper cover */
.home-articles-grid > article:only-child img {
  width: 100%;
  height: 300px; /* Increased for better visibility */
  object-fit: cover;
  border-radius: 12px;
}

/* ✅ Mobile support */
@media (max-width: 768px) {
  .home-articles-grid > article:only-child img {
    height: 200px; /* Slightly reduced for mobile */
  }
}

/* ✅ Fix image height and appearance on both home & archive cards */
.diplovera-article-img {
  width: 100%;
  max-height: 280px;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* Optional mobile tweak */
@media (max-width: 768px) {
  .diplovera-article-img {
    max-height: 200px;
  }
}
