/* ==========================================
   INTERNAL.CSS - SHARED STYLES FOR INTERNAL PAGES
   ========================================== 
   
   This file contains:
   1. Global styles (variables, reset, typography)
   2. Shared components (header, footer, navigation)
   3. Page-specific styles (academy, chi-siamo, faq, vantaggi, etc.)
   
   ========================================== */


/* ==================================================
   GLOBAL STYLES (SHARED ACROSS ALL INTERNAL PAGES)
   ================================================== */

/* ==========================================
   CSS VARIABLES
   ========================================== */

:root {
  /* Primary Colors */
  --primary-color: #097349;
  --primary-dark: #097954;
  --primary-light: #34d399;
  --secondary-color: #6366f1;

  /* Grayscale */
  --dark: #1f2937;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #b8bdc4;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;

  /* Background */
  --background-light: #f0ede7;

  /* Transitions */
  --transition: all 0.3s ease;

  /* Shadows */
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ==========================================
   GLOBAL RESET
   ========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
  color: var(--gray-900);
  background-color: var(--background-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

.text-primary {
  color: var(--primary-color);
}

/* ==================================================
   SHARED COMPONENTS (USED BY MULTIPLE PAGES)
   ================================================== */

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */

#header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: var(--shadow-lg);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  cursor: pointer;
}

.logo-smart {
  color: var(--primary-color);
}

.logo-vue {
  color: var(--gray-900);
}

.footer-logo .logo-vue {
  color: var(--white);
}

.desktop-nav {
  display: none;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
}

.desktop-nav a {
  font-weight: 600;
  color: var(--gray-900);
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--primary-color);
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 8px;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.desktop-nav a:hover::after {
  width: 100%;
}

.cta-button {
  display: none;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  min-height: 44px;
}

@media (min-width: 768px) {
  .cta-button {
    display: inline-flex;
    align-items: center;
  }
}

.cta-button:hover {
  background-color: var(--primary-dark);
  transform: scale(1.05);
}

/* ==========================================
   MOBILE MENU
   ========================================== */

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  z-index: 1100;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--gray-900);
  position: relative;
  transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--gray-900);
  transition: var(--transition);
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

.mobile-menu-btn.active .hamburger {
  background-color: transparent;
}

.mobile-menu-btn.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-menu-btn.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: var(--shadow-lg);
  padding: 1rem 0;
  z-index: 999;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 1rem;
  color: var(--gray-900);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.mobile-nav a:hover {
  color: var(--primary-color);
  background-color: var(--gray-100);
}

.mobile-nav-cta {
  background-color: var(--primary-color);
  color: var(--white) !important;
  text-align: center;
  margin: 1rem;
  border-radius: 9999px;
}

.mobile-nav-cta:hover {
  background-color: var(--primary-dark);
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
  background-color: var(--gray-900);
  color: var(--gray-400);
  padding: 2rem 0 1rem;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: 2.5rem;
  }
}

.footer-column h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-column p,
.footer-column a {
  color: var(--gray-400);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: var(--transition);
  line-height: 1.5;
}

.footer-column a:hover {
  color: var(--primary-light);
}

.footer-logo {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--gray-700);
}

.footer-bottom p {
  font-size: 0.875rem;
}

/* ==========================================
   FOOTER DROPDOWN MENUS - MOBILE
   ========================================== */

.footer-dropdown {
  position: relative;
}

.footer-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding-bottom: 0.5rem;
  min-height: 44px;
}

@media (min-width: 768px) {
  .footer-dropdown-header {
    cursor: default;
  }
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0;
}

.dropdown-arrow {
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .dropdown-arrow {
    display: none;
  }
}

.footer-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.footer-dropdown-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.footer-dropdown.active .footer-dropdown-menu {
  max-height: 300px;
}

@media (min-width: 768px) {
  .footer-dropdown-menu {
    max-height: none !important;
  }
}

.footer-dropdown-menu li {
  margin-bottom: 0.5rem;
}

.footer-dropdown-menu a {
  color: var(--gray-400);
  text-decoration: none;
  transition: var(--transition);
  display: block;
  padding: 0.25rem 0;
  min-height: auto;
}

.footer-dropdown-menu a:hover {
  color: var(--primary-light);
}

/* Footer Links Without Bullets */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  transition: var(--transition);
  display: block;
  padding: 0.25rem 0;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.email-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.email-icon {
  flex-shrink: 0;
  color: var(--primary-light);
}

/* ==========================================
   SHARED RESPONSIVE ADJUSTMENTS
   ========================================== */

@media (max-width: 768px) {
  .cta-box .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }

  .email-link {
    gap: 0.75rem;
    font-size: 1rem;
    padding: 0.75rem 0;
  }

  .email-icon {
    width: 20px;
    height: 20px;
    transform: translateY(0.1px);
  }
}


/* ==================================================
   PAGE-SPECIFIC STYLES
   ================================================== */

/* ==========================================
   ACADEMY PAGE
   ========================================== */

/* Academy Hero */
.academy-hero {
  padding: 8rem 0 4rem;
  text-align: center;
  background: linear-gradient(135deg, #f0ede7 0%, #e0e7ff 100%);
}

.academy-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

@media (min-width: 768px) {
  .academy-title {
    font-size: 3rem;
  }
}

.academy-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .academy-subtitle {
    font-size: 1.25rem;
  }
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  background: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.blog-image {
  height: 200px;
  background-color: var(--gray-200);
  background-size: cover;
  background-position: center;
}

.blog-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--gray-100);
  color: var(--primary-color);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.blog-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .blog-title {
    font-size: 1.5rem;
  }
}

.blog-excerpt {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  font-size: 0.95rem;
  line-height: 1.5;
}

.read-more {
  color: var(--primary-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.read-more:hover {
  gap: 0.75rem;
}


/* ==========================================
   CHI SIAMO PAGE
   ========================================== */

/* Main Content */
.main-content {
  margin-top: 100px;
  padding: 3rem 0;
}

/* Page Header */
.page-header {
  text-align: center;
  margin-bottom: 4rem;
  padding: 3rem 0;
}

.page-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 1rem;
  font-family: 'Outfit', 'DM Sans', sans-serif;
  letter-spacing: -0.01em;
}

.page-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  max-width: 700px;
  margin: 0 auto;
}

/* Content Sections */
.content-section {
  background-color: var(--white);
  border-radius: 1rem;
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-lg);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  font-family: 'Outfit', 'DM Sans', sans-serif;
  letter-spacing: -0.01em;
}

.section-text {
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  text-align: center;
  padding: 2rem;
  background-color: var(--gray-100);
  border-radius: 0.75rem;
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.value-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  color: var(--primary-color);
}

.value-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  font-family: 'Outfit', 'DM Sans', sans-serif;
  letter-spacing: -0.01em;
}

.value-description {
  font-size: 1rem;
  color: var(--gray-600);
}

/* CTA Section */
.cta-section {
  background-color: var(--primary-color);
  padding: 4rem 0;
  text-align: center;
  color: var(--white);
  margin-top: 4rem;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  font-family: 'Outfit', 'DM Sans', sans-serif;
  letter-spacing: -0.01em;
}

.cta-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn-cta {
  padding: 1rem 2.5rem;
  background-color: var(--white);
  color: var(--primary-color);
  border: none;
  border-radius: 9999px;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
}

.btn-cta:hover {
  background-color: var(--gray-100);
  transform: scale(1.05);
}

/* Chi Siamo Responsive */
@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .content-section {
    padding: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-text {
    font-size: 1rem;
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-description {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 1.75rem;
  }

  .content-section {
    padding: 1.5rem;
  }

  .main-content {
    padding: 2rem 0;
  }
}


/* ==========================================
   FAQ PAGE
   ========================================== */

/* FAQ Container */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

/* FAQ Item */
.faq-item {
  background-color: var(--white);
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* FAQ Question */
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  user-select: none;
  transition: var(--transition);
}

.faq-question:hover {
  background-color: var(--gray-50);
}

.faq-question.active {
  color: var(--primary-color);
  background-color: var(--gray-50);
}

/* FAQ Icon */
.faq-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-question.active .faq-icon {
  transform: rotate(180deg);
}

/* FAQ Answer */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-content {
  padding: 0 2rem 1.5rem 2rem;
  color: var(--gray-700);
  line-height: 1.8;
  font-size: 1rem;
}

.faq-answer-content strong {
  color: var(--gray-900);
}

.faq-answer-content a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}

.faq-answer-content a:hover {
  text-decoration: underline;
}

/* FAQ Responsive */
@media (max-width: 768px) {
  .faq-question {
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
  }

  .faq-answer-content {
    padding: 0 1.5rem 1.25rem 1.5rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .faq-question {
    padding: 1rem;
  }

  .faq-answer-content {
    padding: 0 1rem 1rem 1rem;
  }
}

/* ==========================================
   CALCOLA RISPARMIO PAGE
   ========================================== */

.calcolatore-risparmio {
  padding: 140px 0 40px;

}

.calcolatore-risparmio .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.calcolatore-risparmio h1 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 28px;
}

.calcolatore-risparmio .descrizione {
  text-align: center;
  margin-bottom: 30px;
  color: var(--gray-600);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.form-calcolatore {
  background-color: var(--white);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.form-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  margin-right: 10px;
  min-width: 200px;
}

.form-group:last-child {
  margin-right: 0;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--gray-800);
}

.form-group select,
.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
}

#btn-calcola {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  display: block;
  margin: 10px auto 0;
  transition: background-color 0.3s;
  width: 100%;
  max-width: 250px;
}

#btn-calcola:hover {
  background-color: var(--primary-dark);
}

.risultati-calcolatore {
  margin-top: 30px;
}

.risultati-calcolatore h3 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-size: 24px;
}

.grid-risultati {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.box-risultato {
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.box-risultato h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--gray-800);
  font-size: 16px;
}

.box-risultato p {
  margin: 0 0 15px;
  color: var(--gray-600);
  font-size: 12px;
}

.valore-risultato {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.avviso-legale {
  font-size: 0.8em;
  color: var(--gray-500);
  margin-top: 20px;
  text-align: left;
  line-height: 1.5;
}

.uvalue-selector {
  display: none;
  margin-top: 10px;
  padding: 10px;
  background-color: var(--gray-50);
  border-radius: 4px;
}

.uvalue-selector.show {
  display: block;
}

.uvalue-selector p {
  font-weight: 600;
  margin-bottom: 8px;
}

.uvalue-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.uvalue-options label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.uvalue-options label:hover {
  background-color: var(--gray-200);
}

.uvalue-options input[type="radio"] {
  margin-right: 8px;
  width: auto;
}

/* Classi per stili inline convertiti */
.risultati-hidden {
  display: none;
}

.box-rosso {
  background-color: #ffcdd2;
}

.box-verde {
  background-color: #c8e6c9;
}

.box-blu {
  background-color: #bbdefb;
}

.box-viola {
  background-color: #d1c4e9;
}

.grid-risultati-spacing {
  margin-top: 20px;
}

/* Calcola Risparmio Responsive */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }

  .form-group {
    margin-right: 0;
    margin-bottom: 15px;
    width: 100%;
  }

  .grid-risultati {
    grid-template-columns: 1fr;
  }

  .calcolatore-risparmio h1 {
    font-size: 24px;
  }

  .risultati-calcolatore h3 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .form-calcolatore {
    padding: 15px;
  }

  #btn-calcola {
    padding: 10px 20px;
    font-size: 14px;
  }

  .calcolatore-risparmio h1 {
    font-size: 20px;
  }
}
/* ==========================================
   BLOG ARTICLE STYLES
   ========================================== */

/* Article Header */
.article-header {
  padding: 4rem 0 2rem;
  text-align: center;
}

.article-tag {
  background: #e0f2fe;
  color: #0369a1;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-block;
}

.article-title {
  font-size: 2.5rem;
  margin: 1rem 0;
  line-height: 1.2;
  color: var(--gray-900);
}

.article-meta {
  color: var(--gray-600);
  font-size: 0.9rem;
}

/* Article Body */
.article-body {
  background: var(--white);
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 4rem;
}

.article-body h2 {
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.article-body p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--gray-600);
}

.article-body ul,
.article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
  color: var(--gray-600);
}

/* Article Image */
.article-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Highlight Box */
.highlight-box {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0.5rem;
}

/* Responsive Adjustments for Articles */
@media (max-width: 768px) {
  .article-title {
    font-size: 2rem;
  }

  .article-body {
    padding: 2rem;
  }

  .article-body h2 {
    font-size: 1.5rem;
  }

  .article-body p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .article-title {
    font-size: 1.75rem;
  }

  .article-body {
    padding: 1.5rem;
  }
}


/* ==========================================
   ARTICLE / BLOG POST PAGE
   ========================================== */

/* Breadcrumb Navigation */
.breadcrumb {
  display: none;
  background-color: var(--white);
  padding: 1rem 0;
  margin-top: 70px;
  border-bottom: 1px solid var(--gray-200);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
  align-items: center;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.breadcrumb-item a {
  color: var(--gray-600);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb-item a:hover {
  color: var(--primary-color);
}

.breadcrumb-item:not(:last-child)::after {
  content: '›';
  margin-left: 0.5rem;
  color: var(--gray-400);
  font-size: 1rem;
}

.breadcrumb-item.active {
  color: var(--gray-900);
  font-weight: 500;
}

/* Article Hero Section - MOBILE FIRST */
.article-hero {
  background-color: var(--white);
  padding: 2rem 0 1.5rem;
  margin-top: 60px;
}

.article-category {
  margin-bottom: 1rem;
}

.category-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--primary-light);
  color: var(--white);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-hero .article-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.article-hero .article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.article-date {
  font-weight: 500;
}

.article-separator {
  color: var(--gray-400);
}

.article-reading-time {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.reading-icon {
  color: var(--primary-color);
}

.article-author {
  font-weight: 500;
  color: var(--gray-700);
}

/* Article Hero - Tablet & Desktop */
@media (min-width: 768px) {
  .article-hero {
    padding: 3rem 0 2rem;
    margin-top: 70px;
  }

  .article-category {
    margin-bottom: 1.25rem;
  }

  .article-hero .article-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .article-hero .article-meta {
    font-size: 0.9375rem;
  }
}

@media (min-width: 1024px) {
  .article-hero {
    padding: 4rem 0 3rem;
  }

  .article-hero .article-title {
    font-size: 2.5rem;
  }
}

/* Featured Image */
.article-featured-image {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.article-featured-image img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

/* Article Content Layout */
.article-content-wrapper {
  background-color: var(--background-light);
  padding: 3rem 0;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .article-layout {
    grid-template-columns: 280px 1fr;
    gap: 4rem;
  }
}

/* Sidebar - Table of Contents */
.article-sidebar {
  display: none;
}

@media (min-width: 1024px) {
  .article-sidebar {
    display: block;
  }
}

.table-of-contents {
  position: sticky;
  top: 100px;
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.toc-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 0.75rem;
}

.toc-link {
  display: block;
  color: var(--gray-600);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: var(--transition);
  padding-left: 1rem;
  border-left: 2px solid var(--gray-200);
  line-height: 1.5;
}

.toc-link:hover {
  color: var(--primary-color);
  border-left-color: var(--primary-light);
}

.toc-link.active {
  color: var(--primary-color);
  border-left-color: var(--primary-color);
  font-weight: 600;
}

/* Article Main Content */
.article-main {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .article-main {
    padding: 1.5rem;
  }
}

/* Article Typography */
.article-section {
  margin-bottom: 3rem;
}

.article-section:last-of-type {
  margin-bottom: 2rem;
}

.article-lead {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.article-main p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 1.25rem;
}

.article-main h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.015em;
}

.article-main h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.article-main h2:first-child,
.article-section:first-child h2 {
  margin-top: 0;
}

.article-main ul,
.article-main ol {
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}

.article-main li {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 0.75rem;
}

.article-main li strong {
  color: var(--gray-900);
  font-weight: 600;
}

.article-main strong {
  color: var(--gray-900);
  font-weight: 600;
}

.article-main a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.article-main a:hover {
  color: var(--primary-dark);
}

/* Callout Boxes */
.callout-box {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
  border-left: 4px solid;
}

.callout-icon {
  flex-shrink: 0;
}

.callout-icon svg {
  width: 24px;
  height: 24px;
}

.callout-content h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.callout-content p {
  margin-bottom: 0.75rem;
}

.callout-content p:last-child {
  margin-bottom: 0;
}

.callout-content ul {
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.callout-content li {
  margin-bottom: 0.5rem;
}

/* Callout Variants */
.callout-info {
  background-color: #eff6ff;
  border-left-color: #3b82f6;
}

.callout-info .callout-icon svg {
  color: #3b82f6;
}

.callout-success {
  background-color: #f0fdf4;
  border-left-color: #10b981;
}

.callout-success .callout-icon svg {
  color: #10b981;
}

.callout-warning {
  background-color: #fffbeb;
  border-left-color: #f59e0b;
}

.callout-warning .callout-icon svg {
  color: #f59e0b;
}

.callout-error {
  background-color: #fef2f2;
  border-left-color: #ef4444;
}

.callout-error .callout-icon svg {
  color: #ef4444;
}

/* Article CTA Section */
.article-cta {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  margin: 3rem 0 2rem;
  color: var(--white);
}

.article-cta-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
  margin-top: 0;
}

.article-cta-content p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
  color: var(--white);
}

.btn-article-cta {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--white);
  color: var(--primary-color);
  font-weight: 700;
  border-radius: 9999px;
  text-decoration: none;
  transition: var(--transition);
  font-size: 1.125rem;
}

.btn-article-cta:hover {
  background-color: var(--gray-100);
  transform: scale(1.05);
  color: var(--primary-dark);
}

/* Share Buttons */
.article-share {
  padding: 2rem 0;
  border-top: 2px solid var(--gray-200);
  margin-top: 2rem;
}

.share-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: var(--white);
}

.share-btn svg {
  width: 20px;
  height: 20px;
}

.share-facebook {
  background-color: #1877f2;
}

.share-facebook:hover {
  background-color: #166fe5;
}

.share-twitter {
  background-color: #1da1f2;
}

.share-twitter:hover {
  background-color: #1a94da;
}

.share-linkedin {
  background-color: #0077b5;
}

.share-linkedin:hover {
  background-color: #006399;
}

.share-copy {
  background-color: var(--gray-700);
}

.share-copy:hover {
  background-color: var(--gray-800);
}

/* Related Articles Section */
.related-articles {
  background-color: var(--white);
  padding: 4rem 0;
}

.related-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2rem;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.related-card {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.related-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.related-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--gray-200);
}

.related-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.related-tag {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background-color: var(--primary-light);
  color: var(--white);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  width: fit-content;
}

.related-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.related-excerpt {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.related-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}

.related-link:hover {
  color: var(--primary-dark);
  gap: 0.5rem;
}

/* Article Responsive Adjustments */
@media (max-width: 768px) {
  .article-lead {
    font-size: 1.125rem;
  }

  .article-main h2 {
    font-size: 1.5rem;
  }

  .article-main h3 {
    font-size: 1.25rem;
  }

  .article-cta {
    padding: 2rem 1.5rem;
  }

  .article-cta-content h3 {
    font-size: 1.5rem;
  }

  .article-cta-content p {
    font-size: 1rem;
  }

  .btn-article-cta {
    font-size: 1rem;
    padding: 0.875rem 1.75rem;
  }

  .share-buttons {
    flex-direction: column;
  }

  .share-btn {
    width: 100%;
    justify-content: center;
  }

  .related-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .article-featured-image {
    padding: 0;
  }

  .article-featured-image img {
    border-radius: 0;
  }

  .callout-box {
    flex-direction: column;
    padding: 1.25rem;
  }

  .article-main h2 {
    font-size: 1.375rem;
  }

  .article-main h3 {
    font-size: 1.125rem;
  }
}