@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800;900&display=swap');

:root {
  /* Premium Color Palette */
  --bg-primary: #ffffff;
  --bg-secondary: #f4f7fb;
  --bg-secondary: #f1f5f9;
  --bg-accent: #eef2f6;
  
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --primary-blue: #0064b4;
  --secondary-blue: #14285a;
  --primary-blue-hover: #0d4d86;
  --primary-blue-light: #e6f2fd;
  
  --accent-green: #14823c;
  --accent-green-hover: #38863a;
  --accent-green-light: #ebf5ec;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  --gradient-accent: linear-gradient(135deg, #14823c, #106b32);
  --gradient-subtle: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: 1px solid rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  
  /* Soft Shadows */
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 25px 50px rgba(16, 97, 168, 0.15);
  
  /* Radii */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-full: 9999px;
  
  /* Spacing */
  --space-2: 0.5rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
}

[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-accent: #334155;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  --primary-blue: #38bdf8;
  --primary-blue-hover: #7dd3fc;
  --secondary-blue: #0ea5e9;
  
  --glass-bg: rgba(15, 23, 42, 0.7);
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .bg-light {
  background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] .bg-white,
[data-theme="dark"] .card {
  background-color: var(--bg-primary) !important;
}

[data-theme="dark"] .text-dark {
  color: var(--text-primary) !important;
}
[data-theme="dark"] .text-muted {
  color: var(--text-muted) !important;
}
[data-theme="dark"] .text-body {
  color: var(--text-secondary) !important;
}

.logo-container {
  display: flex;
  align-items: center;
  border-radius: 8px;
  transition: all 0.3s ease;
}

[data-theme="dark"] .logo-container {
  background-color: #ffffff;
  padding: 4px 12px;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: var(--space-4);
  letter-spacing: normal;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

a { color: inherit; text-decoration: none; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }

/* Utilities */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.section-padding { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.section-title {
  text-align: center;
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 3.5rem;
  color: var(--text-primary);
  position: relative;
  display: block;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  margin: 1rem auto 0;
}

.bg-white { background: var(--bg-primary); }
.bg-light { background: var(--bg-secondary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 97, 168, 0.3);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(16, 97, 168, 0.4);
  color: white;
}
.btn-outline {
  background: var(--bg-accent);
  color: var(--primary-blue);
  border: none;
}
.btn-outline:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-3px) scale(1.02);
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
}

/* Premium Card */
.premium-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}
.premium-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}
.card-img-wrapper {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  color: transparent;
  font-size: 0;
  background-color: var(--bg-secondary);
}
.premium-card:hover .card-img {
  transform: scale(1.1);
}
.card-img-overlay {
  display: none;
}
.card-link {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10;
}
.card-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--gradient-accent);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(70, 167, 72, 0.3);
  z-index: 2;
}

/* Grid System */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: var(--space-4); padding-right: var(--space-4); }
@media (min-width: 768px) { .container { padding-left: var(--space-8); padding-right: var(--space-8); } }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--space-8); }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--space-8); }
@media (min-width: 768px) { 
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); } 
}

/* Footer Makeover */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding-top: var(--space-16);
}
.footer h4 { color: white; margin-bottom: 1.5rem; font-size: 1.25rem; }
.footer .text-muted, .footer p.text-muted { color: #94a3b8 !important; }
.footer a { color: #94a3b8 !important; transition: color 0.3s; }
.footer a:hover { color: white !important; }
.footer .logo { font-family: 'Outfit', sans-serif; color: white !important; }
.footer .logo-accent { color: var(--accent-green) !important; }

/* Old footer classes (kept for compat) */
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-8); padding-bottom: var(--space-12); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: var(--space-6) 0; text-align: center; font-size: 0.875rem; }

/* ============================
   TESTIMONIAL CARDS
   ============================ */
.testimonial-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.testimonial-stars { color: #f59e0b; font-size: 1rem; letter-spacing: 2px; }
.testimonial-text { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.75; font-style: italic; flex-grow: 1; }
.testimonial-author {
  display: flex; align-items: center; gap: 0.875rem;
  padding-top: 1rem; border-top: 1px solid #f1f5f9;
}
.testimonial-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-green));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 1.2rem; flex-shrink: 0;
}
.testimonial-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.testimonial-name { font-weight: 700; font-size: 0.95rem; display: block; }
.testimonial-role { color: var(--text-muted); font-size: 0.82rem; }

/* ============================
   STATS COUNTER SECTION
   ============================ */
.stats-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  padding: 100px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}
.visa-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.contact-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (max-width: 991px) {
  .contact-main-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
@media (max-width: 576px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-item { padding: 2rem 1rem; }
.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
}
.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: white;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label { color: #94a3b8; font-size: 0.95rem; font-weight: 500; }

/* ============================
   FAQ ACCORDION
   ============================ */
.faq-item {
  background: var(--bg-primary);
  border-radius: 1rem;
  border: 1.5px solid #e2e8f0;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.faq-item:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.06); }
.faq-btn {
  width: 100%; padding: 1.25rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  background: none; border: none; cursor: pointer;
  text-align: left; gap: 1rem;
  font-family: 'Outfit', sans-serif;
}
.faq-question {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  border-top: 1px solid #f1f5f9;
  padding-top: 1rem;
}

/* ============================
   WHATSAPP BUTTON STYLES
   ============================ */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #25D366, #1da851);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 8px 20px rgba(37,211,102,0.35);
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
}
.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(37,211,102,0.5);
  color: white;
}

/* ============================
   UTILITY EXTRAS
   ============================ */
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.gap-1 { gap: 0.25rem; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-blue); }

/* Floating WhatsApp button (styles are in footer.php) */

/* =========================================
   TOC & Page Layout (Blog Style)
========================================= */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
.page-sidebar {
  position: relative;
  height: 100%;
}
.sticky-toc {
  position: sticky;
  top: 100px;
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.03);
}
.toc-title {
  font-size: 1.25rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f1f5f9;
}
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc-item {
  margin-bottom: 0.5rem;
}
.toc-item a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.4;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}
.toc-item.toc-h3 a {
  padding-left: 1.5rem;
  font-size: 0.85rem;
}
.toc-item a:hover {
  background: var(--bg-secondary);
  color: var(--primary-blue);
}
.toc-item a.active {
  color: var(--primary-blue);
  font-weight: 600;
  border-left-color: var(--accent-green);
  background: var(--bg-accent);
}

/* Article Typography */
.article-body {
    background: var(--bg-primary);
    padding: 2.5rem 3rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    border: 1px solid var(--bg-accent);
    line-height: 1.7;
    color: var(--text-secondary);
    font-size: 1.1rem;
}
.article-body > *:first-child {
    margin-top: 0 !important;
}
.article-body h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-top: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0;
    border-bottom: none;
    scroll-margin-top: 120px;
}
.article-body h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    scroll-margin-top: 120px;
}
.article-body p {
    margin-bottom: 1rem;
}
.article-body ul, .article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.article-body li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}
.article-body strong {
    color: var(--text-primary);
}
.article-body img {
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  max-width: 100%;
  height: auto;
}
@media (max-width: 1200px) {
    .article-body {
        padding: 2rem;
    }
}
@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }
    .section-title {
        font-size: 2.1rem;
        margin-bottom: 2.5rem;
    }
    .stat-number {
        font-size: 2.25rem;
    }
    .article-body {
        padding: 1.5rem;
        font-size: 1.05rem;
    }
    .article-body h2 { font-size: 1.75rem; }
    .article-body h3 { font-size: 1.35rem; }
}
@media (max-width: 480px) {
  .stat-item { padding: 1.25rem 0.5rem; }
  .stat-icon { font-size: 1.4rem; margin-bottom: 0.85rem; }
  .stat-number { font-size: 1.85rem; }
  .stat-label { font-size: 0.8rem; }
}

@media (max-width: 991px) {
  .page-layout {
    grid-template-columns: 1fr;
  }
  .sticky-toc {
    position: static;
    margin-bottom: 2rem;
  }
}

/* =========================================
   Global Form Control Dark Theme Fixes
========================================= */
.form-control, .form-select {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--bg-accent);
}
.form-control:focus, .form-select:focus {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.25rem rgba(16, 97, 168, 0.25);
}
.form-control::placeholder {
    color: var(--text-muted);
}
[data-theme="dark"] .form-control, 
[data-theme="dark"] .form-select {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--bg-accent);
}
[data-theme="dark"] .form-control:focus, 
[data-theme="dark"] .form-select:focus {
    background-color: var(--bg-primary);
}

