/* ==========================================================================
   RJ Study Abroad -- Public Site Stylesheet
   Palette: deep navy (trust/education) + warm gold accent (opportunity),
   deliberately distinct from a generic travel-agency look: clean,
   editorial, international, premium-but-approachable.
   ========================================================================== */

:root {
  --navy-900: #0a2f52;
  --navy-800: #0f4c81;
  --navy-700: #15619f;
  --navy-100: #e8f1f9;
  --navy-50: #f4f8fc;
  --gold-500: #d4a017;
  --gold-600: #b8860f;
  --gold-100: #fdf3dd;
  --teal-600: #0f9d8f;
  --teal-100: #e3f7f4;
  --ink-900: #14202e;
  --ink-700: #3c4a5c;
  --ink-500: #647287;
  --ink-300: #a3b0c2;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --danger: #c8402c;
  --success: #1f8a4c;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 18px rgba(15, 47, 82, 0.08);
  --shadow-lg: 0 18px 48px rgba(15, 47, 82, 0.14);
  --container: 1180px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Segoe UI', 'Noto Sans', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-800); text-decoration: none; }
a:hover { color: var(--navy-700); }
h1, h2, h3, h4 { font-family: inherit; line-height: 1.25; margin: 0 0 .5em; color: var(--navy-900); font-weight: 700; }
h1 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-700); }
ul, ol { color: var(--ink-700); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: linear-gradient(135deg, var(--navy-900), var(--navy-800)); color: #fff; }
.section-navy h1, .section-navy h2, .section-navy h3, .section-navy p { color: #fff; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--gold-600); background: var(--gold-100); padding: 4px 12px; border-radius: 100px; margin-bottom: 14px; }
.section-navy .eyebrow { background: rgba(255,255,255,.12); color: var(--gold-500); }
.lead { font-size: 1.1rem; color: var(--ink-700); }
.text-center { text-align: center; }
.muted { color: var(--ink-500); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 100px; font-weight: 600; font-size: .95rem; border: 2px solid transparent; cursor: pointer; transition: all .15s ease; }
.btn-primary { background: var(--gold-500); color: var(--navy-900); }
.btn-primary:hover { background: var(--gold-600); color: var(--navy-900); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--navy-800); color: var(--navy-800); }
.btn-ghost:hover { background: var(--navy-100); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--navy-900); }
.brand img { height: 40px; width: auto; }
.brand small { display: block; font-weight: 500; font-size: .68rem; color: var(--ink-500); letter-spacing: .03em; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { font-weight: 600; font-size: .93rem; color: var(--ink-700); position: relative; }
.main-nav a:hover, .main-nav a.active { color: var(--navy-800); }
.main-nav .dropdown { position: relative; }
.main-nav .dropdown-menu { display: none; position: absolute; top: 130%; left: 0; background: #fff; box-shadow: var(--shadow-lg); border-radius: var(--radius-sm); min-width: 220px; padding: 10px; border: 1px solid var(--line); }
.main-nav .dropdown:hover .dropdown-menu { display: block; }
.main-nav .dropdown-menu a { display: block; padding: 9px 12px; border-radius: 6px; font-weight: 500; }
.main-nav .dropdown-menu a:hover { background: var(--navy-50); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--navy-900); cursor: pointer; }

@media (max-width: 960px) {
  .main-nav { position: fixed; inset: 64px 0 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: 20px; gap: 4px; overflow-y: auto; transform: translateX(100%); transition: transform .2s ease; }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { padding: 12px 6px; border-bottom: 1px solid var(--line); }
  .main-nav .dropdown-menu { display: block; position: static; box-shadow: none; border: none; padding-left: 12px; }
  .nav-toggle { display: block; }
  .header-cta .btn-navy span.full { display: none; }
}

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-stats { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-size: 1.5rem; color: var(--gold-500); }
.hero-stats .stat span { font-size: .82rem; color: rgba(255,255,255,.75); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-card { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-lg); color: var(--ink-900); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--navy-100); color: var(--navy-800); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 16px; }
.card-flag { font-size: 2.4rem; margin-bottom: 10px; }
.card ul.feature-list { list-style: none; padding: 0; margin: 14px 0 0; }
.card ul.feature-list li { padding-left: 24px; position: relative; margin-bottom: 8px; font-size: .92rem; }
.card ul.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--teal-600); font-weight: 700; }

.country-card { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.country-card .banner { background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); color: #fff; padding: 22px; }
.country-card .body { padding: 20px; }

.badge { display: inline-block; padding: 4px 12px; border-radius: 100px; font-size: .76rem; font-weight: 700; }
.badge-info { background: #e3edf9; color: var(--navy-800); }
.badge-warn { background: #fdf1d8; color: #935e0c; }
.badge-primary { background: var(--teal-100); color: var(--teal-600); }
.badge-success { background: #e3f6ea; color: var(--success); }
.badge-danger { background: #fbe6e2; color: var(--danger); }
.badge-muted { background: #eef0f3; color: var(--ink-500); }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--ink-900); }
.field { margin-bottom: 18px; }
.field .hint { font-size: .8rem; color: var(--ink-500); margin-top: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], input[type=password], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-size: .95rem; font-family: inherit; background: #fff; color: var(--ink-900);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 3px var(--navy-100); }
textarea { resize: vertical; min-height: 110px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input { margin-top: 4px; }
.checkbox-row label { font-weight: 500; font-size: .87rem; margin: 0; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.check-grid label { font-weight: 500; display: flex; gap: 8px; align-items: center; }
.file-drop { border: 2px dashed var(--line); border-radius: var(--radius-sm); padding: 20px; text-align: center; color: var(--ink-500); font-size: .88rem; }

/* Multi-step form */
.steps-nav { display: flex; gap: 6px; margin-bottom: 30px; flex-wrap: wrap; }
.steps-nav .step { flex: 1; min-width: 90px; text-align: center; padding: 10px 6px; border-radius: var(--radius-sm); background: var(--bg-soft); font-size: .78rem; font-weight: 700; color: var(--ink-500); border: 1px solid var(--line); }
.steps-nav .step.active { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.steps-nav .step.done { background: var(--teal-100); color: var(--teal-600); border-color: var(--teal-100); }
.form-step { display: none; }
.form-step.active { display: block; animation: fadein .25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.step-actions { display: flex; justify-content: space-between; margin-top: 26px; gap: 12px; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .92rem; }
.alert-success { background: #e3f6ea; color: var(--success); border: 1px solid #b7e4c7; }
.alert-error { background: #fbe6e2; color: var(--danger); border: 1px solid #f3bdb1; }
.alert-notice { background: var(--navy-100); color: var(--navy-800); border: 1px solid #cfe0f2; }

.disclaimer-box { background: var(--gold-100); border: 1px solid #ecd396; border-radius: var(--radius-sm); padding: 18px 20px; font-size: .87rem; color: #6b4c07; }
.disclaimer-box strong { color: #4a3405; }

/* Table (used on scholarship/university listings) */
table.data-table { width: 100%; border-collapse: collapse; background: #fff; }
table.data-table th, table.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: .9rem; }
table.data-table th { background: var(--bg-soft); font-weight: 700; color: var(--navy-900); }

/* Breadcrumb / filter bar */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; background: var(--bg-soft); border: 1px solid var(--line); padding: 16px; border-radius: var(--radius-sm); margin-bottom: 28px; }
.filter-bar select, .filter-bar input { width: auto; min-width: 160px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--ink-700); }
.pagination .active { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

/* Process steps */
.process-list { counter-reset: step; list-style: none; padding: 0; }
.process-list li { position: relative; padding: 20px 0 20px 60px; border-left: 2px solid var(--line); margin-left: 20px; }
.process-list li:last-child { border-left-color: transparent; }
.process-list li::before { counter-increment: step; content: counter(step); position: absolute; left: -22px; top: 16px; width: 44px; height: 44px; border-radius: 50%; background: var(--navy-800); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* CEO section */
.ceo-block { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }
.ceo-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; background: var(--navy-100); }
@media (max-width: 800px) { .ceo-block { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.82); padding: 56px 0 24px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; font-size: .88rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .8rem; color: rgba(255,255,255,.55); }
.social-icons { display: flex; gap: 10px; }
.social-icons a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }

.whatsapp-float { position: fixed; bottom: 22px; right: 22px; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); z-index: 90; font-size: 1.6rem; }

.blog-card img { border-radius: var(--radius-sm); aspect-ratio: 16/10; object-fit: cover; margin-bottom: 14px; background: var(--bg-soft); }
.blog-meta { font-size: .78rem; color: var(--ink-500); margin-bottom: 6px; }
.prose { font-size: 1.02rem; line-height: 1.8; color: var(--ink-700); }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose img { border-radius: var(--radius-sm); margin: 20px 0; }

.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--navy-900); }
.faq-item p { margin-top: 10px; }
