/* ==========================================================================
   SkillsVertex Blog System - Enterprise Frontend Styles
   Subdomain: blogs.skillsvertex.in
   ========================================================================== */

:root {
  --sv-blue-primary: #0047BA;
  --sv-blue-dark: #00338A;
  --sv-blue-light: #EBF3FF;
  --sv-blue-border: #BFDBFE;

  --sv-orange-accent: #FF6B00;
  --sv-orange-dark: #D95700;
  --sv-orange-light: #FFF4EC;
  --sv-orange-border: #FED7AA;

  --sv-bg-white: #FFFFFF;
  --sv-bg-subtle: #F8FAFC;
  --sv-bg-elevated: #F1F5F9;
  --sv-bg-card: #FFFFFF;

  --sv-text-title: #0F172A;
  --sv-text-body: #334155;
  --sv-text-muted: #64748B;
  --sv-text-light: #94A3B8;

  --sv-border-light: #E2E8F0;
  --sv-border-medium: #CBD5E1;
  --sv-border-accent: rgba(0, 71, 186, 0.15);

  --sv-shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --sv-shadow-sm: 0 2px 4px 0 rgba(15, 23, 42, 0.05);
  --sv-shadow-md: 0 6px 16px -2px rgba(15, 23, 42, 0.07), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --sv-shadow-lg: 0 16px 32px -4px rgba(0, 71, 186, 0.08), 0 6px 16px -2px rgba(15, 23, 42, 0.04);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

a {
  color: var(--sv-blue-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--sv-blue-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
.blog-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sv-border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--sv-shadow-xs);
}

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

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  height: 38px;
  width: auto;
}

.brand-subdomain-pill {
  background: var(--sv-blue-light);
  color: var(--sv-blue-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid var(--sv-blue-border);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--sv-text-title);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--sv-blue-primary);
}

.nav-link.active {
  color: var(--sv-blue-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-main-site {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sv-text-muted);
  border: 1px solid var(--sv-border-medium);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--sv-bg-white);
  transition: all var(--transition-fast);
}

.btn-main-site:hover {
  border-color: var(--sv-blue-primary);
  color: var(--sv-blue-primary);
}

.btn-admin-portal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sv-orange-dark);
  background: var(--sv-orange-light);
  border: 1px solid var(--sv-orange-border);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.btn-admin-portal:hover {
  background: var(--sv-orange-accent);
  color: #fff;
  border-color: var(--sv-orange-accent);
}

/* Hero Section */
.blog-hero {
  padding: 3.5rem 0 2rem;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--sv-bg-subtle) 100%);
  border-bottom: 1px solid var(--sv-border-light);
}

.hero-headline-wrap {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2.5rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sv-blue-primary);
  background: var(--sv-blue-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--sv-blue-border);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--sv-text-title);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--sv-text-muted);
  max-width: 680px;
  margin: 0 auto;
}

/* Featured Article Card */
.featured-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  background: var(--sv-bg-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--sv-border-light);
  box-shadow: var(--sv-shadow-md);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  margin-bottom: 3.5rem;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sv-shadow-lg);
}

.featured-img-wrap {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  background: #0f172a;
}

.featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-card:hover .featured-img {
  transform: scale(1.03);
}

.featured-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: rgba(0, 71, 186, 0.9);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.featured-content {
  padding: 2.5rem 2.5rem 2.5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--sv-text-light);
  margin-bottom: 0.75rem;
}

.meta-category {
  color: var(--sv-orange-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--sv-text-title);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.featured-excerpt {
  font-size: 0.975rem;
  color: var(--sv-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--sv-border-light);
}

.author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--sv-blue-light);
  color: var(--sv-blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.author-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sv-text-title);
}

.read-time {
  font-size: 0.8rem;
  color: var(--sv-text-light);
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--sv-blue-primary);
}

.btn-read-more:hover {
  color: var(--sv-blue-dark);
}

/* Controls: Category Filter & Search */
.controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.category-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.tab-pill {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sv-text-muted);
  background: var(--sv-bg-white);
  border: 1px solid var(--sv-border-light);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.tab-pill:hover {
  color: var(--sv-blue-primary);
  border-color: var(--sv-blue-border);
}

.tab-pill.active {
  background: var(--sv-blue-primary);
  color: #fff;
  border-color: var(--sv-blue-primary);
}

.search-box-wrap {
  position: relative;
  min-width: 280px;
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--sv-border-medium);
  font-size: 0.9rem;
  background: var(--sv-bg-white);
  color: var(--sv-text-title);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input:focus {
  border-color: var(--sv-blue-primary);
  box-shadow: 0 0 0 3px rgba(0, 71, 186, 0.1);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  fill: var(--sv-text-light);
}

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

.article-card {
  background: var(--sv-bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--sv-border-light);
  overflow: hidden;
  box-shadow: var(--sv-shadow-xs);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sv-shadow-md);
}

.card-img-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #0f172a;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .card-img {
  transform: scale(1.04);
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--sv-text-light);
  margin-bottom: 0.6rem;
}

.card-category {
  color: var(--sv-blue-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--sv-text-title);
  margin-bottom: 0.75rem;
}

.card-excerpt {
  font-size: 0.9rem;
  color: var(--sv-text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--sv-border-light);
  font-size: 0.8rem;
  color: var(--sv-text-light);
}

/* Newsletter CTA */
.newsletter-section {
  background: linear-gradient(135deg, #00338A 0%, #0047BA 50%, #002266 100%);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2.5rem;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sv-shadow-lg);
  margin-bottom: 4rem;
}

.newsletter-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 0 auto;
}

.newsletter-badge {
  display: inline-block;
  background: rgba(255, 107, 0, 0.25);
  border: 1px solid var(--sv-orange-accent);
  color: #FFB380;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.newsletter-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.newsletter-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  border: none;
  font-size: 0.95rem;
  outline: none;
}

.newsletter-btn {
  background: var(--sv-orange-accent);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.newsletter-btn:hover {
  background: var(--sv-orange-dark);
}

/* Footer */
.blog-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3.5rem 0 2rem;
  border-top: 1px solid #1e293b;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid #1e293b;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand-title {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-nav a {
  color: #94a3b8;
  font-size: 0.875rem;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsive */
@media (max-width: 900px) {
  .featured-card {
    grid-template-columns: 1fr;
  }
  .featured-content {
    padding: 1.75rem;
  }
  .featured-img-wrap {
    min-height: 240px;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .header-nav {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .newsletter-section {
    padding: 2.5rem 1.25rem;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
}
