/* =========================
   Dental-SC Minimal CSS
   ========================= */

/* ---- CSS Reset (Light) ---- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

/* ---- Layout ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

.section.alt {
  background-color: #f8fafc;
}

/* ---- Header ---- */
.site-header {
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
}

.logo {
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  color: #1e293b;
}

.main-nav a {
  margin-left: 20px;
  text-decoration: none;
  font-weight: 500;
  color: #475569;
}

.main-nav a:hover {
  color: #0f172a;
}

/* ---- Hero ---- */
.hero {
  padding: 80px 0 72px;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 20px;
  font-weight: 500;
  color: #475569;
  margin-bottom: 24px;
}

.intro {
  max-width: 700px;
  font-size: 17px;
  color: #334155;
  margin-bottom: 28px;
}

.trust-points {
  list-style: none;
}

.trust-points li {
  margin-bottom: 8px;
  font-size: 15px;
  color: #166534;
}

/* ---- Headings ---- */
h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

p {
  margin-bottom: 16px;
  font-size: 16px;
  color: #334155;
}

/* ---- Lists ---- */
ul.topics,
ul.audience {
  list-style: disc;
  padding-left: 20px;
}

ul.topics li,
ul.audience li {
  margin-bottom: 10px;
  font-size: 15px;
}

/* ---- Process ---- */
.process {
  counter-reset: step;
  list-style: none;
}

.process li {
  counter-increment: step;
  margin-bottom: 24px;
  padding-left: 36px;
  position: relative;
}

.process li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  background: #2563eb;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.note {
  font-size: 14px;
  color: #475569;
  margin-top: 12px;
}

/* ---- Buttons & Links ---- */
a {
  color: #2563eb;
}

a:hover {
  text-decoration: underline;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  background: #2563eb;
  color: #ffffff;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.btn:hover {
  background: #1d4ed8;
  text-decoration: none;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid #e2e8f0;
  padding: 40px 0;
  text-align: center;
  background: #ffffff;
}

.site-footer p {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 8px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 24px;
  }

  .main-nav {
    display: none;
  }

  .section {
    padding: 48px 0;
  }
}
:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    --spacing-1: 8px;
    --spacing-2: 16px;
    --spacing-3: 24px;
    --spacing-4: 32px;
    --spacing-5: 40px;
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* === Container === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-2);
}

/* === Header === */
.site-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: var(--spacing-2) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .logo img {
    height: 56px;
    width: auto;
}

.main-nav {
    display: flex;
    gap: var(--spacing-3);
    align-items: center;
}

.main-nav a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.main-nav a:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

/* === Breadcrumbs === */
.breadcrumb-section {
    background: var(--bg-secondary);
    padding: var(--spacing-2) 0;
    border-bottom: 1px solid var(--border);
}

.breadcrumb-list {
    display: flex;
    gap: 12px;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumb-list li:not(:last-child)::after {
    content: '›';
    color: var(--text-muted);
    font-size: 16px;
}

.breadcrumb-list a {
    color: var(--text-secondary);
}

.breadcrumb-list a:hover {
    color: var(--primary);
}

/* === Page Header === */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: var(--spacing-5) 0;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

/* === Hero Section === */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: var(--spacing-5) 0;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* === Sections === */
.articles-section,
.blog-listing-section,
.category-articles-section {
    padding: var(--spacing-5) 0;
}

.section-heading {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: var(--spacing-4);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-heading i {
    color: var(--primary);
}

/* === Article Grid === */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-3);
}

.article-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.article-card-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.article-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-card-image img {
    transform: scale(1.05);
}

.card-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: white;
    box-shadow: var(--shadow-md);
}

.article-card-content {
    padding: var(--spacing-3);
}

.article-card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.article-card-title a {
    color: var(--text-primary);
}

.article-card-title a:hover {
    color: var(--primary);
}

.article-card-excerpt {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.article-card-footer {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--text-muted);
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.article-card-footer span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-card-footer i {
    color: var(--primary);
}

/* === Category Header === */
.category-header {
    padding: var(--spacing-5) 0;
    color: white;
    text-align: center;
}

.category-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.category-header p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.category-stats {
    display: flex;
    gap: var(--spacing-3);
    justify-content: center;
}

.category-stats span {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
}

/* === Article Page === */
.article-page {
    padding: var(--spacing-4) 0;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: var(--spacing-4);
}

.category-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.article-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-3);
    color: var(--text-primary);
}

.article-meta {
    margin-bottom: var(--spacing-3);
}

.author-info-inline {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 20px;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
}

.article-meta-info {
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    align-items: center;
}

.article-meta-info i {
    color: var(--primary);
}

.meta-dot {
    color: var(--text-muted);
}

/* ==========================================
   FEATURED IMAGE - FIXED (NO CROPPING)
   ========================================== */

.featured-image-wrapper {
    margin-bottom: var(--spacing-4);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    width: 100%;
    aspect-ratio: 1200 / 630; // Maintains 1200x630 ratio
    background: #f3f4f6; // Background for letterboxing
}

.featured-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain; // Shows full image with letterboxing if needed
    object-position: center;
}
*/

/* ==========================================
   RESPONSIVE - Mobile Optimization
   ========================================== */

@media (max-width: 768px) {
    .featured-image-wrapper {
        margin-bottom: var(--spacing-3);
        border-radius: var(--radius-md);
    }
    
    .featured-image {
        /* Image remains responsive */
        width: 100%;
        height: auto;
    }
}

/* ==========================================
   ARTICLE CARD IMAGES (Different from featured)
   ========================================== */

.article-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Standard for card thumbnails */
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #e5e7eb;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ✅ Cover for cards is OK */
    display: block;
    transition: transform 0.3s ease;
}

.article-card:hover .article-card-image img {
    transform: scale(1.05);
}

/* ==========================================
   RELATED ARTICLES THUMBNAILS
   ========================================== */

.related-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    background: #f3f4f6;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ✅ Cover for thumbnails is OK */
    display: block;
}

/* === Article Body === */
.article-body {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: var(--spacing-4);
}

/* === Video Container === */
.video-container {
    margin: var(--spacing-4) 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

lite-youtube {
    background-color: #000;
    position: relative;
    display: block;
    contain: content;
    background-position: center center;
    background-size: cover;
    cursor: pointer;
    max-width: 100%;
}

lite-youtube::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAADGCAYAAAAT+OqFAAAAdklEQVQoz42QQQ7AIAgEF/T/D+kbq/RWAlnQyyazA4aoAB4FsBSA/bFjuF1EOL7VbrIrBuusmrt4ZZORfb6ehbWdnRHEIiITaEUKa5EJqUakRSaEYBJSCY2dEstQY7AuxahwXFrvZmWl2rh4JZ07z9dLtesfNj5q0FU3A5ObbwAAAABJRU5ErkJggg==);
    background-position: top;
    background-repeat: repeat-x;
    height: 60px;
    padding-bottom: 50px;
    width: 100%;
    transition: all 0.2s cubic-bezier(0, 0, 0.2, 1);
}

lite-youtube::after {
    content: '';
    display: block;
    padding-bottom: calc(100% / (16 / 9));
}

lite-youtube > iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border: 0;
}

lite-youtube > .lty-playbtn {
    width: 68px;
    height: 48px;
    position: absolute;
    cursor: pointer;
    transform: translate3d(-50%, -50%, 0);
    top: 50%;
    left: 50%;
    z-index: 1;
    background-color: transparent;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 68 48"><path d="M66.52 7.74c-.78-2.93-2.49-5.41-5.42-6.19C55.79.13 34 0 34 0S12.21.13 6.9 1.55c-2.93.78-4.63 3.26-5.42 6.19C.06 13.05 0 24 0 24s.06 10.95 1.48 16.26c.78 2.93 2.49 5.41 5.42 6.19C12.21 47.87 34 48 34 48s21.79-.13 27.1-1.55c2.93-.78 4.64-3.26 5.42-6.19C67.94 34.95 68 24 68 24s-.06-10.95-1.48-16.26z" fill="red"/><path d="M45 24 27 14v20" fill="white"/></svg>');
    filter: grayscale(100%);
    transition: filter 0.1s cubic-bezier(0, 0, 0.2, 1);
    border: none;
}

lite-youtube:hover > .lty-playbtn,
lite-youtube .lty-playbtn:focus {
    filter: none;
}

lite-youtube.lyt-activated {
    cursor: unset;
}

lite-youtube.lyt-activated::before,
lite-youtube.lyt-activated > .lty-playbtn {
    opacity: 0;
    pointer-events: none;
}

.lyt-visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* === Article Body === */
.article-body {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: var(--spacing-4);
}

.article-body h2 {
    font-size: 32px;
    font-weight: 700;
    margin: var(--spacing-4) 0 var(--spacing-2) 0;
    color: var(--text-primary);
}

.article-body h3 {
    font-size: 24px;
    font-weight: 600;
    margin: var(--spacing-3) 0 var(--spacing-2) 0;
    color: var(--text-primary);
}

.article-body p {
    margin-bottom: var(--spacing-2);
}

.article-body strong {
    font-weight: 600;
    color: var(--text-primary);
}

.article-body ul,
.article-body ol {
    margin-bottom: var(--spacing-2);
    padding-left: var(--spacing-3);
}

.article-body li {
    margin-bottom: 8px;
}

/* === Tags Section === */
.article-tags-section {
    margin-bottom: var(--spacing-4);
    padding: var(--spacing-3);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.tag:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* === Social Sharing === */
.social-sharing-section {
    margin-bottom: var(--spacing-4);
    padding: var(--spacing-3);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.social-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.social-btn {
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.social-btn.facebook {
    background: #1877f2;
}

.social-btn.twitter {
    background: #1da1f2;
}

.social-btn.linkedin {
    background: #0a66c2;
}

.social-btn.copy {
    background: var(--text-secondary);
}

/* === Author Box === */
.author-box-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-4);
    margin-bottom: var(--spacing-4);
}

.author-box-header {
    display: flex;
    gap: var(--spacing-2);
    margin-bottom: var(--spacing-2);
}

.author-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 32px;
    flex-shrink: 0;
}

.author-box-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.author-box-title {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.eeat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--success);
    color: white;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.author-box-bio {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-2);
}

.author-credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: var(--spacing-2);
    padding: var(--spacing-2) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.credential-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.credential-item i {
    color: var(--primary);
    font-size: 18px;
    margin-top: 2px;
}

.credential-item strong {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.credential-item span {
    color: var(--text-secondary);
    font-size: 14px;
}

.btn-view-profile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.2s;
}

.btn-view-profile:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* === Related Posts === */
.related-posts-section {
    margin-bottom: var(--spacing-4);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-3);
}

.related-article-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s;
}

.related-article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.related-card-image {
    position: relative;
    padding-top: 60%;
    background: var(--bg-tertiary);
}

.related-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-card-content {
    padding: var(--spacing-2);
}

.related-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.related-card-title a {
    color: var(--text-primary);
}

.related-card-excerpt {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

.related-card-footer {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.related-card-footer i {
    color: var(--primary);
}

/* === Footer === */
.site-footer {
    background: #1f2937;
    color: #9ca3af;
    padding: var(--spacing-5) 0 var(--spacing-3) 0;
    margin-top: var(--spacing-5);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-4);
    margin-bottom: var(--spacing-4);
}

.footer-section h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-section p {
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #9ca3af;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

/* === Buttons === */
.btn-primary-large {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s;
}

.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* === Scroll to Top === */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
}

/* === Utilities === */
.text-center {
    text-align: center;
}

/* === Search & Mobile Menu === */
.search-toggle,
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.search-toggle:hover,
.mobile-menu-toggle:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.search-toggle {
    display: block;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-nav.active {
    display: flex;
    max-height: 300px;
}

.mobile-nav a {
    padding: 16px var(--spacing-2);
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    font-weight: 500;
}

.mobile-nav a:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    width: 100%;
    max-width: 700px;
    padding: var(--spacing-3);
}

.search-container h2 {
    color: white;
    font-size: 28px;
    margin-bottom: var(--spacing-3);
    text-align: center;
}

.search-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s;
}

.search-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.search-box {
    position: relative;
    margin-bottom: var(--spacing-3);
}

.search-box input {
    width: 100%;
    padding: 18px 60px 18px 20px;
    font-size: 18px;
    border: none;
    border-radius: var(--radius-lg);
    background: white;
    color: var(--text-primary);
}

.search-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 20px;
}

.search-results {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-3);
    max-height: 60vh;
    overflow-y: auto;
}

.search-hint,
.search-no-results,
.search-error {
    text-align: center;
    color: var(--text-secondary);
    padding: var(--spacing-3);
}

.search-loading {
    text-align: center;
    padding: var(--spacing-3);
    color: var(--text-secondary);
}

.search-count {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 600;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-result-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: all 0.2s;
    text-decoration: none;
}

.search-result-item:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.search-result-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.search-result-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.search-result-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* === Author Profile Page === */
.author-profile-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: var(--spacing-5) 0;
}

.author-profile-content {
    display: flex;
    gap: var(--spacing-3);
    align-items: center;
    margin-bottom: var(--spacing-3);
}

.author-avatar-xl {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 48px;
    flex-shrink: 0;
    box-shadow: var(--shadow-xl);
}

.author-profile-info h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.author-profile-title {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.eeat-badge-large {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.author-stats {
    display: flex;
    gap: var(--spacing-2);
    flex-wrap: wrap;
}

.author-stats span {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.author-bio-section,
.author-specialties {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-3);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-2);
}

.author-bio-section h3,
.author-specialties h3 {
    font-size: 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-bio-section p {
    line-height: 1.6;
    opacity: 0.9;
}

.specialty-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.specialty-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
}

.author-articles-section {
    padding: var(--spacing-5) 0;
}

.no-articles {
    text-align: center;
    color: var(--text-secondary);
    padding: var(--spacing-5) 0;
    font-size: 18px;
}

/* === Tag Page === */
.tag-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: var(--spacing-5) 0;
    text-align: center;
}

.tag-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.tag-header p {
    font-size: 18px;
    opacity: 0.9;
}

.tag-articles-section {
    padding: var(--spacing-5) 0;
}

/* === Utilities === */
.text-center {
    text-align: center;
}

/* === Responsive === */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .site-header .container {
        gap: 12px;
    }
    
    .search-container {
        padding: var(--spacing-2);
    }
    
    .search-container h2 {
        font-size: 22px;
    }
    
    .author-profile-content {
        flex-direction: column;
        text-align: center;
    }
    
    .author-profile-info h1 {
        font-size: 28px;
    }
    
    .author-avatar-xl {
        margin: 0 auto;
    }
    
    .author-stats {
        justify-content: center;
    }
    .hero-title {
        font-size: 32px;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .section-heading {
        font-size: 24px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .main-nav {
        display: none; /* Mobile menu would go here */
    }
    
    .author-box-header {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar-large {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .social-buttons-grid {
        grid-template-columns: 1fr;
    }
}

.site-footer a:hover {
  color: #ffffff !important;
}
