/* ============================================================
   Internet Recharge Explained — Main Stylesheet
   Colors: White (#FFFFFF), Soft Blue (#3A7BD5 / #EBF3FF), Gray
   Style: Clean editorial / knowledge base
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  background: #FFFFFF;
  color: #2D3748;
  line-height: 1.75;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #3A7BD5; text-decoration: none; transition: color .2s; }
a:hover { color: #2563B0; text-decoration: underline; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #1A2B4A;
  line-height: 1.3;
  font-weight: 700;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .85rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); margin-bottom: .7rem; }
h4 { font-size: 1.1rem; margin-bottom: .5rem; }

p { margin-bottom: 1.25rem; color: #374151; }
ul, ol { margin: 0 0 1.25rem 1.5rem; }
li { margin-bottom: .45rem; color: #374151; }

blockquote {
  border-left: 4px solid #3A7BD5;
  padding: .75rem 1.25rem;
  background: #EBF3FF;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: #1A2B4A;
}

/* ---------- Layout ---------- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 820px; margin: 0 auto; padding: 0 1.5rem; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }

section { padding: 4rem 0; }
section:nth-child(even) { background: #F7FAFF; }

/* ---------- Header / Navigation ---------- */
.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid #E2EAF4;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(58,123,213,.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.2;
}
.logo-main {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1A2B4A;
  letter-spacing: -.5px;
}
.logo-main span { color: #3A7BD5; }
.logo-sub {
  font-size: .72rem;
  color: #6B7280;
  font-weight: 400;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* Nav */
.main-nav { display: flex; align-items: center; gap: .25rem; }
.main-nav a {
  padding: .5rem .85rem;
  font-size: .9rem;
  font-weight: 500;
  color: #374151;
  border-radius: 6px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  background: #EBF3FF;
  color: #3A7BD5;
  text-decoration: none;
}
.main-nav .nav-dropdown { position: relative; }
.main-nav .nav-dropdown > a::after { content: ' ▾'; font-size: .7rem; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  background: #fff;
  border: 1px solid #E2EAF4;
  border-radius: 10px;
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  padding: .5rem;
  z-index: 200;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: .5rem .9rem;
  font-size: .88rem;
  color: #374151;
  border-radius: 6px;
}
.dropdown-menu a:hover { background: #EBF3FF; color: #3A7BD5; }

/* Hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: #374151; margin: 5px 0;
  transition: .3s;
}

/* ---------- Hero / Page Hero ---------- */
.hero {
  background: linear-gradient(135deg, #1A2B4A 0%, #3A7BD5 100%);
  color: #fff;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
  border-radius: 50%;
}
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero p { color: rgba(255,255,255,.88); font-size: 1.1rem; max-width: 640px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.badge {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  padding: .35rem .9rem;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 500;
}

.page-hero {
  background: linear-gradient(135deg, #1A2B4A 0%, #2563B0 100%);
  color: #fff;
  padding: 3.5rem 0 3rem;
}
.page-hero h1 { color: #fff; font-size: clamp(1.5rem, 3.5vw, 2.4rem); }
.page-hero .breadcrumb { margin-bottom: 1rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.breadcrumb a, .breadcrumb span {
  font-size: .82rem;
  color: rgba(255,255,255,.75);
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { color: rgba(255,255,255,.4); }

/* ---------- Buttons / CTAs ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.6rem;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  transition: all .2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: #3A7BD5;
  color: #fff;
  box-shadow: 0 4px 14px rgba(58,123,213,.35);
}
.btn-primary:hover {
  background: #2563B0;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(58,123,213,.45);
  text-decoration: none;
}
.btn-secondary {
  background: #fff;
  color: #3A7BD5;
  border: 2px solid #3A7BD5;
}
.btn-secondary:hover {
  background: #EBF3FF;
  color: #2563B0;
  text-decoration: none;
}
.btn-ghost {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.25);
  color: #fff;
  text-decoration: none;
}
.cta-group { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid #E2EAF4;
  border-radius: 14px;
  padding: 1.75rem;
  transition: box-shadow .25s, transform .25s;
}
.card:hover {
  box-shadow: 0 8px 30px rgba(58,123,213,.12);
  transform: translateY(-3px);
}
.card-icon {
  width: 52px; height: 52px;
  background: #EBF3FF;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.card p { font-size: .92rem; color: #6B7280; margin-bottom: 0; }

/* Info Card */
.info-card {
  background: #EBF3FF;
  border: 1px solid #C7DCFF;
  border-radius: 14px;
  padding: 1.5rem;
}
.info-card h3 { color: #1A2B4A; }

/* Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, #EBF3FF, #DBEAFE);
  border: 1px solid #BFDBFE;
  border-radius: 14px;
  padding: 2rem;
  margin: 2rem 0;
}
.highlight-box h3 { color: #1A2B4A; margin-bottom: .75rem; }

/* Stat Card */
.stat-card {
  background: #fff;
  border: 1px solid #E2EAF4;
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
}
.stat-num { font-size: 2.2rem; font-weight: 800; color: #3A7BD5; line-height: 1; margin-bottom: .35rem; }
.stat-label { font-size: .88rem; color: #6B7280; }

/* ---------- Article Layout ---------- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
.article-body h2 { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid #E2EAF4; }
.article-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.article-body h3 { margin-top: 1.75rem; color: #3A7BD5; }

/* Sidebar */
.sidebar { position: sticky; top: 90px; }
.sidebar-card {
  background: #F7FAFF;
  border: 1px solid #E2EAF4;
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-card h4 {
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #3A7BD5;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid #E2EAF4;
}
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list li { margin-bottom: .5rem; }
.toc-list a {
  font-size: .88rem;
  color: #374151;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.toc-list a::before { content: '›'; color: #3A7BD5; font-weight: 700; flex-shrink: 0; }
.toc-list a:hover { color: #3A7BD5; text-decoration: none; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
thead th {
  background: #1A2B4A;
  color: #fff;
  padding: .85rem 1rem;
  text-align: left;
  font-weight: 600;
}
tbody tr:nth-child(even) { background: #F7FAFF; }
tbody td { padding: .75rem 1rem; border-bottom: 1px solid #E2EAF4; color: #374151; }
tbody tr:hover td { background: #EBF3FF; }

/* ---------- Disclaimer Banner ---------- */
.disclaimer-banner {
  background: #FFF8E6;
  border: 1px solid #F5D87B;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin: 1.5rem 0;
}
.disclaimer-banner .disc-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: .1rem; }
.disclaimer-banner p { margin: 0; font-size: .88rem; color: #78350F; }
.disclaimer-banner strong { color: #92400E; }

/* ---------- Section Headers ---------- */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .kicker {
  display: inline-block;
  background: #EBF3FF;
  color: #3A7BD5;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 20px;
  margin-bottom: .85rem;
}
.section-header h2 { font-size: clamp(1.4rem, 3vw, 2rem); color: #1A2B4A; margin-bottom: .6rem; }
.section-header p { color: #6B7280; max-width: 560px; margin: 0 auto; }

/* ---------- Blog ---------- */
.blog-card {
  background: #fff;
  border: 1px solid #E2EAF4;
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.blog-card:hover { box-shadow: 0 8px 30px rgba(58,123,213,.12); transform: translateY(-3px); }
.blog-card-img {
  height: 200px;
  background: linear-gradient(135deg, #1A2B4A, #3A7BD5);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.blog-card-body { padding: 1.5rem; }
.blog-tag {
  display: inline-block;
  background: #EBF3FF;
  color: #3A7BD5;
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .7rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .75rem;
}
.blog-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.blog-card p { font-size: .88rem; color: #6B7280; margin-bottom: 1rem; }
.blog-meta { font-size: .8rem; color: #9CA3AF; display: flex; gap: .75rem; align-items: center; }
.blog-meta span::before { content: '• '; }
.blog-meta span:first-child::before { content: ''; }

/* ---------- Step/Process Flow ---------- */
.steps { counter-reset: step-counter; list-style: none; padding: 0; margin: 0; }
.step {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
  position: relative;
}
.step::after {
  content: '';
  position: absolute;
  left: 21px; top: 48px;
  width: 2px;
  height: calc(100% - 10px);
  background: #E2EAF4;
}
.step:last-child::after { display: none; }
.step-num {
  width: 44px; height: 44px;
  background: #3A7BD5;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  counter-increment: step-counter;
  position: relative;
  z-index: 1;
}
.step-content h4 { margin-bottom: .35rem; color: #1A2B4A; }
.step-content p { font-size: .92rem; color: #6B7280; margin: 0; }

/* ---------- FAQ / Accordion ---------- */
.faq-list { list-style: none; padding: 0; margin: 0; }
.faq-item {
  border: 1px solid #E2EAF4;
  border-radius: 10px;
  margin-bottom: .75rem;
  overflow: hidden;
}
.faq-q {
  padding: 1.1rem 1.25rem;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  color: #1A2B4A;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: .95rem;
}
.faq-q:hover { background: #F7FAFF; }
.faq-q .icon { color: #3A7BD5; flex-shrink: 0; font-size: 1.2rem; transition: transform .25s; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 1.25rem 1.1rem;
  background: #F7FAFF;
  font-size: .92rem;
  color: #374151;
  border-top: 1px solid #E2EAF4;
}
.faq-item.open .faq-a { display: block; padding-top: 1rem; }

/* ---------- Callout / Tip ---------- */
.callout {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  margin: 1.5rem 0;
}
.callout-info { background: #EBF3FF; border-left: 4px solid #3A7BD5; }
.callout-tip { background: #F0FDF4; border-left: 4px solid #22C55E; }
.callout-note { background: #FFFBEB; border-left: 4px solid #F59E0B; }
.callout-icon { font-size: 1.2rem; flex-shrink: 0; }
.callout-text p { margin: 0; font-size: .92rem; }
.callout-text strong { font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; display: block; margin-bottom: .25rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #1A2B4A;
  color: rgba(255,255,255,.75);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .logo-main { color: #fff; font-size: 1.15rem; }
.footer-brand .logo-main span { color: #60A5FA; }
.footer-brand .logo-sub { color: rgba(255,255,255,.5); }
.footer-brand p { font-size: .88rem; color: rgba(255,255,255,.6); margin-top: 1rem; line-height: 1.7; }
.footer-col h4 {
  color: #fff;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: .6rem; }
.footer-col ul a { color: rgba(255,255,255,.65); font-size: .88rem; }
.footer-col ul a:hover { color: #60A5FA; text-decoration: none; }
.footer-contact p { font-size: .88rem; color: rgba(255,255,255,.65); margin-bottom: .5rem; }
.footer-contact .contact-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: .6rem;
  font-size: .88rem;
  color: rgba(255,255,255,.65);
}
.footer-contact .contact-item .c-icon { font-size: 1rem; flex-shrink: 0; color: #60A5FA; }
.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}
.footer-bottom-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom-links a { color: rgba(255,255,255,.5); font-size: .82rem; }
.footer-bottom-links a:hover { color: #60A5FA; text-decoration: none; }

/* ---------- Internal Links Section ---------- */
.related-links {
  background: #F7FAFF;
  border: 1px solid #E2EAF4;
  border-radius: 14px;
  padding: 1.75rem;
  margin: 2rem 0;
}
.related-links h4 { color: #3A7BD5; margin-bottom: 1rem; font-size: 1rem; }
.related-links ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .5rem; }
.related-links ul a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  background: #fff;
  border: 1px solid #E2EAF4;
  border-radius: 8px;
  font-size: .88rem;
  color: #374151;
  transition: all .2s;
}
.related-links ul a::before { content: '→'; color: #3A7BD5; }
.related-links ul a:hover { background: #EBF3FF; color: #3A7BD5; border-color: #C7DCFF; text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; top: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid #E2EAF4; padding: 1rem; box-shadow: 0 10px 20px rgba(0,0,0,.08); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .7rem 1rem; border-radius: 6px; }
  .hamburger { display: block; }
  .header-inner { position: relative; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-group { flex-direction: column; }
  .btn { justify-content: center; }
}

@media (max-width: 480px) {
  section { padding: 2.5rem 0; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }
  .hero { padding: 3.5rem 0 2.5rem; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-blue { color: #3A7BD5; }
.text-muted { color: #6B7280; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.pt-0 { padding-top: 0 !important; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .sidebar, .cta-group { display: none; }
  body { font-size: 12pt; }
  .container, .container--narrow { max-width: 100%; padding: 0; }
}