/* ── Applywise Custom Styles ── */

/* Nav links group — keeps Services, Countries, Contact Us together on the right */
.nav-links-group {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.nav-links-group .services-nav-link {
  margin-left: 0 !important;
}

/* Countries dropdown */
.countries-dropdown-wrap {
  position: relative;
}
.countries-nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  padding: 8px 4px;
  margin: 0 22px 0 auto;
  white-space: nowrap;
  transition: color .2s ease;
}
.countries-nav-trigger:hover { color: #f08a3e; }
.countries-nav-trigger svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.countries-dropdown-wrap:hover .countries-nav-trigger svg {
  transform: rotate(180deg);
}
.countries-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #fff;
  border: 1px solid rgba(2,39,89,.1);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(2,39,89,.14);
  min-width: 220px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 9999;
}
.countries-dropdown-wrap:hover .countries-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #022759;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.dropdown-item:hover {
  background: #fff4ec;
  color: #f97316;
}
.dropdown-item .flag { font-size: 17px; line-height: 1; }
.dropdown-item .coming-soon {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #bbb;
}
.dropdown-divider {
  height: 1px;
  background: #f0f0eb;
  margin: 6px 8px;
}

/* ── Blog post styles ── */
.blog-hero {
  background: #022759;
  padding: 56px 0 72px;
}
.blog-hero h1 {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.2;
  max-width: 760px;
}
.blog-hero h1 span { color: #f97316; }
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.blog-meta-item {
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 5px;
}
.blog-meta-item svg {
  width: 13px; height: 13px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.blog-hero p.intro {
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  max-width: 680px;
  margin: 0;
}
.blog-body { font-family: "DM Sans", sans-serif; }
.blog-content { max-width: 780px; margin: 0 auto; }
.blog-content h2 {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  color: #022759;
  margin: 48px 0 14px;
  line-height: 1.25;
}
.blog-content h3 { font-size: 17px; font-weight: 700; color: #022759; margin: 28px 0 10px; }
.blog-content h4 { font-size: 15px; font-weight: 600; color: #444; margin: 20px 0 8px; }
.blog-content p { font-size: 15.5px; color: #444; line-height: 1.75; margin: 0 0 18px; }
.blog-content ul, .blog-content ol { padding-left: 22px; margin: 0 0 20px; }
.blog-content li { font-size: 15px; color: #444; line-height: 1.7; margin-bottom: 8px; }
.blog-content a { color: #f97316; font-weight: 600; }
.blog-content a:hover { text-decoration: underline; }
.blog-content strong { color: #022759; }
.blog-cta-box {
  background: linear-gradient(135deg, #022759 0%, #034a9a 100%);
  border-radius: 16px;
  padding: 32px 36px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.blog-cta-box p { font-family: "DM Sans", sans-serif; font-size: 15px; color: rgba(255,255,255,0.85); line-height: 1.6; margin: 0; max-width: 480px; }
.blog-cta-box p strong { color: #fff; }
.blog-tip { background: #f0f8ff; border-left: 3px solid #022759; border-radius: 0 10px 10px 0; padding: 16px 20px; margin: 24px 0; font-family: "DM Sans", sans-serif; font-size: 14px; color: #334; line-height: 1.65; }
.blog-tip strong { color: #022759; }
.blog-warn { background: #fff8f0; border-left: 3px solid #f97316; border-radius: 0 10px 10px 0; padding: 16px 20px; margin: 24px 0; font-family: "DM Sans", sans-serif; font-size: 14px; color: #554; line-height: 1.65; }
.blog-warn strong { color: #c45d00; }
.blog-steps { margin: 24px 0; }
.blog-step { display: flex; gap: 18px; margin-bottom: 20px; align-items: flex-start; }
.blog-step-num { width: 32px; height: 32px; background: #f97316; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #fff; flex-shrink: 0; margin-top: 2px; }
.blog-step-content h4 { font-size: 15px; font-weight: 700; color: #022759; margin: 0 0 5px; }
.blog-step-content p { font-size: 14px; color: #555; line-height: 1.65; margin: 0; }
.blog-stat-row { display: flex; flex-wrap: wrap; gap: 16px; margin: 24px 0; }
.blog-stat { flex: 1; min-width: 140px; background: #fff; border: 1px solid #e8e8e2; border-radius: 12px; padding: 18px 20px; text-align: center; }
.blog-stat .num { font-size: 26px; font-weight: 800; color: #f97316; display: block; line-height: 1; }
.blog-stat .lbl { font-size: 12px; color: #888; margin-top: 4px; display: block; }
.blog-related { border-top: 1px solid #ebebeb; padding-top: 40px; margin-top: 56px; }
.blog-related h3 { font-size: 18px; font-weight: 800; color: #022759; margin: 0 0 20px; }
.blog-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media(max-width: 640px) { .blog-related-grid { grid-template-columns: 1fr; } }
.blog-related-card { background: #f9f9f7; border: 1px solid #e8e8e2; border-radius: 12px; padding: 18px 20px; text-decoration: none; display: block; transition: border-color 0.2s, background 0.2s; }
.blog-related-card:hover { border-color: #f97316; background: #fff8f3; }
.blog-related-card .rc-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #f97316; margin-bottom: 8px; display: block; }
.blog-related-card .rc-title { font-size: 14px; font-weight: 700; color: #022759; line-height: 1.4; }
/* Blog table */
.blog-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 16px 0 28px; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(2,39,89,.06); }
.blog-table th { background: #022759; color: rgba(255,255,255,0.9); padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.blog-table td { padding: 10px 14px; border-bottom: 1px solid #f0f0eb; color: #333; line-height: 1.5; vertical-align: top; }
.blog-table tr:last-child td { border-bottom: none; }
.blog-table tr:hover td { background: #fafaf8; }

/* ── Country guide pages (shared) ── */
.guide-body { font-family: "DM Sans", sans-serif; color: #333; }
.guide-section { padding: 72px 0; }
.guide-section.alt { background: #f9f9f7; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 24px; }
.breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,0.4); }
.uk-hero { background: #022759; padding: 60px 0 80px; }
.uk-hero h1 { color: #fff; margin: 0 0 16px; }
.uk-hero p { color: rgba(255,255,255,0.75); font-size: 17px; line-height: 1.7; max-width: 560px; margin: 0 0 32px; }
.stats-bar { background: #f97316; padding: 20px 0; }
.stats-bar-inner { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 16px; }
.stat-item { text-align: center; }
.stat-item .num { font-family: "DM Sans", sans-serif; font-size: 26px; font-weight: 800; color: #fff; display: block; line-height: 1; }
.stat-item .lbl { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.85); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; display: block; }
.guide-section .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #f97316; margin-bottom: 10px; display: block; }
.uk-hero .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #f97316; margin-bottom: 10px; display: block; }
.guide-section h2 { font-family: "DM Sans", sans-serif; font-size: clamp(24px, 3.5vw, 36px); font-weight: 800; color: #022759; margin: 0 0 12px; line-height: 1.2; }
.guide-section .lead { font-size: 16px; color: #666; max-width: 640px; line-height: 1.7; margin: 0 0 40px; }
.info-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 8px 0 32px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(2,39,89,.06); }
.info-table th { background: #022759; color: rgba(255,255,255,0.9); padding: 11px 16px; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.info-table td { padding: 11px 16px; border-bottom: 1px solid #f0f0eb; vertical-align: top; line-height: 1.55; color: #333; }
.info-table tr:last-child td { border-bottom: none; }
.info-table tr:hover td { background: #fafaf8; }
.info-table .highlight-row td { background: #fff8f3; font-weight: 600; }
.badge-rank { display: inline-block; background: #f97316; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 20px; letter-spacing: 0.04em; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0; }
@media(max-width: 768px) { .why-grid { grid-template-columns: 1fr; } }
.why-card { background: #fff; border: 1px solid #e8e8e2; border-radius: 14px; padding: 28px 24px; }
.why-card .why-icon { width: 48px; height: 48px; background: #fff4ec; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.why-card .why-icon svg { width: 24px; height: 24px; stroke: #f97316; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.why-card h3 { font-size: 16px; font-weight: 700; color: #022759; margin: 0 0 8px; }
.why-card p { font-size: 14px; color: #666; line-height: 1.65; margin: 0; }
.callout { background: #fff8f3; border-left: 3px solid #f97316; border-radius: 0 10px 10px 0; padding: 18px 22px; margin: 24px 0; font-size: 14px; line-height: 1.7; color: #444; }
.callout strong { color: #022759; }
.callout.blue { background: #f0f4ff; border-left-color: #022759; }
.callout.red { background: #fff3f3; border-left-color: #e53e3e; }
.callout.red strong { color: #c53030; }
.req-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
@media(max-width: 640px) { .req-grid-2 { grid-template-columns: 1fr; } }
.req-box { background: #fff; border: 1px solid #e8e8e2; border-radius: 12px; padding: 22px 24px; }
.req-box h4 { font-size: 14px; font-weight: 700; color: #022759; margin: 0 0 12px; }
.req-box ul { margin: 0; padding-left: 18px; }
.req-box ul li { font-size: 13.5px; color: #555; line-height: 1.65; margin-bottom: 6px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; margin-bottom: 10px; letter-spacing: 0.04em; text-transform: uppercase; }
.tag.green { background: #e6f9ee; color: #2d7a4f; }
.tag.orange { background: #fff0e6; color: #c45d00; }
.tag.red { background: #ffe8e8; color: #c53030; }
.scholarship-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
@media(max-width: 640px) { .scholarship-grid { grid-template-columns: 1fr; } }
.scholarship-card { background: #fff; border: 1px solid #e8e8e2; border-radius: 14px; padding: 24px; position: relative; overflow: hidden; }
.scholarship-card.featured { border-color: #f97316; }
.scholarship-card h4 { font-size: 15px; font-weight: 700; color: #022759; margin: 0 0 6px; }
.scholarship-card .amount { font-size: 20px; font-weight: 800; color: #f97316; margin: 0 0 10px; display: block; }
.scholarship-card p { font-size: 13px; color: #666; line-height: 1.6; margin: 0 0 12px; }
.scholarship-card .sc-meta { font-size: 12px; color: #999; }
.visa-steps { margin: 32px 0; }
.visa-step { display: flex; gap: 20px; margin-bottom: 24px; align-items: flex-start; }
.visa-step-num { width: 36px; height: 36px; background: #022759; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: #fff; flex-shrink: 0; margin-top: 2px; }
.visa-step-content h4 { font-size: 15px; font-weight: 700; color: #022759; margin: 0 0 6px; }
.visa-step-content p { font-size: 14px; color: #555; line-height: 1.65; margin: 0; }
.fee-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 24px 0; }
@media(max-width: 600px) { .fee-row { grid-template-columns: 1fr; } }
.fee-card { background: #fff; border: 1px solid #e8e8e2; border-radius: 12px; padding: 20px 22px; text-align: center; }
.fee-card .fee-location { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #999; margin-bottom: 6px; }
.fee-card .fee-amount { font-size: 26px; font-weight: 800; color: #022759; line-height: 1; margin-bottom: 4px; }
.fee-card .fee-label { font-size: 12px; color: #888; }
.cta-strip { background: linear-gradient(135deg, #022759 0%, #034a9a 100%); border-radius: 20px; padding: 48px 40px; text-align: center; margin: 48px 0; }
.cta-strip h3 { font-size: clamp(20px, 3vw, 28px); font-weight: 800; color: #fff; margin: 0 0 12px; }
.cta-strip p { font-size: 15px; color: rgba(255,255,255,0.75); margin: 0 0 28px; max-width: 500px; margin-left: auto; margin-right: auto; }
.content-col { max-width: 800px; }
.work-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin: 24px 0; }
@media(max-width: 600px) { .work-grid { grid-template-columns: 1fr; } }
.work-card { background: #fff; border: 1px solid #e8e8e2; border-radius: 12px; padding: 20px; text-align: center; }
.work-card .wc-num { font-size: 24px; font-weight: 800; color: #f97316; display: block; }
.work-card .wc-label { font-size: 12px; color: #777; }
.checklist { list-style: none; padding: 0; margin: 16px 0; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: #444; padding: 7px 0; border-bottom: 1px solid #f0f0eb; line-height: 1.55; }
.checklist li:last-child { border-bottom: none; }
.checklist li::before { content: ''; width: 18px; height: 18px; background: #f97316; border-radius: 50%; flex-shrink: 0; margin-top: 1px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); background-size: 11px; background-position: center; background-repeat: no-repeat; }
.faq-list { margin: 24px 0; }
.faq-item { border-bottom: 1px solid #ebebeb; padding: 20px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: 16px; font-weight: 700; color: #022759; margin: 0 0 10px; }
.faq-a { font-size: 14px; color: #555; line-height: 1.7; margin: 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0 32px; }

/* Country guide: card/box/step headings promoted to h3 (keep h4 sizing) */
.scholarship-card h3 { font-size: 15px; font-weight: 700; color: #022759; margin: 0 0 6px; }
.req-box h3 { font-size: 14px; font-weight: 700; color: #022759; margin: 0 0 12px; }
.visa-step-content h3 { font-size: 15px; font-weight: 700; color: #022759; margin: 0 0 6px; }

/* ==== Blog Index / Listing page ==== */
.blog-index-wrap { padding: 48px 0 0; }
.blog-count { font-size: 13px; color: #888; margin: 0 0 20px; }
.blog-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.blog-filter button { font-family: "DM Sans", sans-serif; font-size: 13px; font-weight: 600; color: #022759; background: #f3f3ef; border: 1px solid #e8e8e2; border-radius: 30px; padding: 8px 16px; cursor: pointer; transition: background 0.18s, border-color 0.18s, color 0.18s; }
.blog-filter button:hover { border-color: #f97316; color: #f97316; }
.blog-filter button.active { background: #022759; border-color: #022759; color: #fff; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media(max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e8e8e2; border-radius: 14px; padding: 22px 22px 20px; text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.blog-card:hover { border-color: #f97316; box-shadow: 0 8px 24px rgba(2,39,89,0.08); transform: translateY(-2px); }
.blog-card .bc-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #f97316; margin-bottom: 12px; }
.blog-card .bc-title { font-size: 17px; font-weight: 700; color: #022759; line-height: 1.35; margin: 0 0 10px; }
.blog-card .bc-desc { font-size: 13.5px; color: #555; line-height: 1.6; margin: 0 0 16px; flex: 1; }
.blog-card .bc-meta { font-size: 12px; font-weight: 600; color: #8a8a8a; display: flex; align-items: center; gap: 6px; }
.blog-card .bc-meta svg { width: 14px; height: 14px; stroke: #b0b0b0; fill: none; stroke-width: 2; }
.blog-empty { display: none; text-align: center; color: #888; padding: 48px 0; font-size: 15px; }
