/* =============================================
   IndiaEVisa.us — Supplemental Styles (main.css)
   Extra styles for inner pages, forms, sidebars
   ============================================= */

/* ── Form Box Card ──────────────────────────── */
.box {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
@media (max-width: 767px) {
  .box { padding: 1.2rem 1rem; }
}

/* ── Inner Hero (page banners) ─────────────── */
.inner-hero {
  padding: 25px 0 25px;
  color: #fff;
  background: linear-gradient(120deg, #001540 0%, #002262 60%, #0a3580 100%);
  position: relative;
  overflow: hidden;
}
.inner-hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(254,123,25,0.08);
  pointer-events: none;
}
.inner-hero-content {
  max-width: 760px;
  position: relative;
  z-index: 1;
}
.inner-hero-content h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin: 8px 0 12px;
  line-height: 1.2;
}
.inner-hero-content p {
  font-size: 0.98rem;
  opacity: 0.85;
  margin-bottom: 0;
  max-width: 560px;
  line-height: 1.65;
}
/* Breadcrumb inside inner hero */
.inner-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-top: 14px;
}
.inner-breadcrumb a { color: rgba(255,255,255,0.7); }
.inner-breadcrumb a:hover { color: #fe7b19; }
.inner-breadcrumb .sep { color: rgba(255,255,255,0.35); }
.inner-breadcrumb .current { color: rgba(255,255,255,0.95); }

/* ── Content Grid (main + sidebar) ─────────── */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
}
.content-main h2 {
  font-size: 1.6rem;
  color: var(--navy);
  margin: 1.5rem 0 0.75rem;
}
.content-main h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin: 1.5rem 0 0.6rem;
}
.content-main p { margin-bottom: 1rem; }

/* ── Info List ──────────────────────────────── */
.info-list { margin: 0.5rem 0 1.5rem; padding-left: 1.2rem; }
.info-list li {
  list-style: disc;
  color: var(--gray-800);
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

/* ── Sidebar Card ───────────────────────────── */
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.sidebar-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--orange);
}

/* ── Info Table ─────────────────────────────── */
.info-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.info-table tr { border-bottom: 1px solid var(--gray-200); }
.info-table td { padding: 0.5rem 0; }
.info-table td:first-child { color: var(--gray-600); }
.info-table td:last-child { text-align: right; }

/* ── Sidebar Links ──────────────────────────── */
.sidebar-links { }
.sidebar-links li { border-bottom: 1px solid var(--gray-100); }
.sidebar-links li a {
  display: block;
  padding: 0.5rem 0;
  color: var(--navy);
  font-size: 0.9rem;
}
.sidebar-links li a:hover { color: var(--orange); }

/* ── Apply CTA ──────────────────────────────── */
.apply-cta { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

/* ── Blog Grid ──────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card { display: flex; flex-direction: column; }
.blog-img { height: 200px; overflow: hidden; display: block; }
.blog-img a { display: block; width: 100%; height: 100%; }
.blog-img img { width: 100%; height: 100%; object-fit: fill; display: block; }
.blog-body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.blog-body .btn { margin-top: auto; align-self: flex-start; }
.blog-body h3 { font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: 0.5rem; }
.blog-body p { font-size: 0.85rem; color: var(--gray-600); margin-bottom: 1rem; }

/* ── Alert styles ───────────────────────────── */
.alert {
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger  { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info    { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.alert .close  { float: right; font-size: 1.2rem; background: none; border: none; cursor: pointer; }

/* ── e-Arrival multi-country select ── */
.earrival-country-select-wrap { position: relative; width: 100%; }
.earrival-cs-display { display: flex; align-items: center; justify-content: space-between; border: 1px solid #ced4da; border-radius: 4px; padding: 8px 14px; background: #fff; cursor: pointer; font-size: 14px; color: #495057; min-height: 38px; transition: border-color .2s; flex-wrap: wrap; gap: 4px; }
.earrival-cs-display:hover, .earrival-country-select-wrap.open .earrival-cs-display { border-color: #fe7b19; }
.earrival-cs-display .arrow { font-size: 10px; color: #888; transition: transform .2s; margin-left: auto; }
.earrival-country-select-wrap.open .earrival-cs-display .arrow { transform: rotate(180deg); }
.earrival-cs-tag { background: #002262; color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 3px; display: inline-flex; align-items: center; gap: 4px; }
.earrival-cs-tag .rm { cursor: pointer; font-size: 14px; line-height: 1; }
.earrival-cs-tag .rm:hover { color: #fe7b19; }
.earrival-cs-dropdown { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid #fe7b19; border-top: none; border-radius: 0 0 4px 4px; z-index: 1050; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.earrival-country-select-wrap.open .earrival-cs-dropdown { display: block; }
.earrival-cs-options { max-height: 220px; overflow-y: auto; }
.earrival-cs-option { padding: 7px 14px; cursor: pointer; font-size: 14px; color: #333; }
.earrival-cs-option:hover { background: #f0f9ff; }
.earrival-cs-option.selected { background: #002262; color: #fff; font-weight: 600; }

/* ── Yii2 validation error on custom selects ── */
.has-error .custom-select-display { border-color: #dc3545 !important; }
.has-error .custom-select-display:hover,
.has-error .custom-select-wrap.open .custom-select-display { border-color: #dc3545 !important; }
.form-group.has-error .help-block { display: block; color: #dc3545; font-size: 0.82rem; margin-top: 4px; }

/* ── btn-outline-navy ───────────────────────── */
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: 0.55rem 1.2rem;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

/* =============================================
   Blog pages (moved from BlogList / BlogCategory / BlogDetail views)
   ============================================= */

/* ── Blog list page ────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: 72px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(254,123,25,0.12) 0%, transparent 70%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .section-tag { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9); }
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; color: #fff; margin: 12px 0 14px; line-height: 1.2; }
.page-hero p { font-size: 0.95rem; color: rgba(255,255,255,0.72); max-width: 620px; margin: 0 auto; line-height: 1.7; }

.breadcrumb { background: var(--gray-50); padding: 12px 0; border-bottom: 1px solid var(--gray-200); }
.breadcrumb-inner { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--text-light); flex-wrap: wrap; }
.breadcrumb-inner a { color: var(--navy); font-weight: 500; }
.breadcrumb-inner a:hover { color: var(--orange); }
.breadcrumb-sep { color: var(--gray-400); }
.breadcrumb-current { color: var(--orange); font-weight: 600; }

.blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.blog-layout .blog-grid { grid-template-columns: repeat(2, 1fr); margin-top: 0; }

.info-card { background: var(--white); border-radius: var(--radius-lg); border: 1.5px solid var(--gray-200); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 20px; }
.info-card-header { background: var(--navy); color: var(--white); padding: 14px 20px; }
.info-card-header h3 { font-size: 0.92rem; font-weight: 700; margin: 0; }
.info-card-body { padding: 18px 20px; }
.sidebar-links { display: flex; flex-direction: column; gap: 2px; }
.sidebar-links a {
  font-size: 0.85rem;
  color: var(--gray-800);
  padding: 8px 10px;
  border-radius: 5px;
  display: flex; align-items: center; gap: 8px;
  font-weight: 500;
  transition: var(--transition);
}
.sidebar-links a:hover { background: rgba(254,123,25,0.08); color: var(--orange); }
.sidebar-links a i { color: var(--orange); flex-shrink: 0; }

.search-form { display: flex; gap: 6px; }
.search-form input[type="text"] {
  flex: 1;
  padding: 9px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.85rem;
  outline: none;
}
.search-form input[type="text"]:focus { border-color: var(--orange); }
.search-form button {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 0 14px;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
}
.search-form button:hover { background: var(--navy); }

.pagination {
  display: flex; gap: 6px; justify-content: center; flex-wrap: wrap;
  margin-top: 30px;
}
.pagination a, .pagination span {
  padding: 8px 13px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 600;
  background: var(--white);
  transition: var(--transition);
}
.pagination a:hover { border-color: var(--orange); color: var(--orange); }
.pagination .active { background: var(--orange); color: #fff; border-color: var(--orange); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-light); }
.empty-state i { font-size: 2.5rem; color: var(--gray-400); margin-bottom: 12px; }

@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-layout .blog-grid { grid-template-columns: 1fr; }
}

/* ── Blog category page (extras) ───────────── */
.recent-post { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--gray-100); }
.recent-post:last-child { border-bottom: none; }
.recent-post a { width: 50px; height: 35px; object-fit: fill; border-radius: 6px; flex-shrink: 0; }
.recent-post img { width: 50px; height: 35px; object-fit: fill; border-radius: 6px; flex-shrink: 0; }
.recent-post-info h4 { font-size: 0.82rem; font-weight: 600; color: var(--navy); line-height: 1.35; margin: 0 0 4px; }
.recent-post-info h4 a { color: var(--navy); }
.recent-post-info h4 a:hover { color: var(--orange); }
.recent-post-info span { font-size: 0.72rem; color: var(--gray-600); }

/* ── Blog detail page ──────────────────────── */
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }

.blog-featured {
  width: 100%;
  max-height: 490px;
  object-fit: fill;
  border-radius: var(--radius-lg);
  display: block;
  margin-bottom: 22px;
  border: 1px solid var(--gray-200);
}
.blog-meta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 0.82rem; color: var(--gray-600); margin-bottom: 18px; }
.blog-meta-row i { color: var(--orange); margin-right: 4px; }
.blog-badge {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.blog-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--gray-200);
  padding: 32px;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.8;
}
.blog-content h2 { font-size: 1.4rem; font-weight: 700; color: var(--navy); margin: 28px 0 14px; }
.blog-content h3 { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin: 24px 0 12px; }
.blog-content h4 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin: 20px 0 10px; }
.blog-content h5 { font-size: 0.98rem; font-weight: 700; color: var(--navy); margin: 18px 0 8px; }
.blog-content h6 { font-size: 0.92rem; font-weight: 700; color: var(--navy); margin: 16px 0 8px; }
.blog-content p { margin-bottom: 14px; color: var(--text-light); }
.blog-content ul, .blog-content ol { margin: 12px 0 18px 22px; color: var(--text-light); }
.blog-content li { margin-bottom: 6px; }
.blog-content a { color: var(--orange); font-weight: 600; }
.blog-content a:hover { text-decoration: underline; }
.blog-content img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 14px 0; }
.blog-content blockquote { border-left: 4px solid var(--orange); background: var(--gray-50); padding: 12px 18px; margin: 14px 0; font-style: italic; }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--gray-200);
  overflow: hidden;
  transition: var(--transition);
}
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(254,123,25,0.25); }
.related-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.related-card-body { padding: 16px 18px; }
.related-card-body h4 { font-size: 0.95rem; font-weight: 700; line-height: 1.4; margin: 8px 0; }
.related-card-body h4 a { color: var(--navy); }
.related-card-body h4 a:hover { color: var(--orange); }
.related-card-body .meta { font-size: 0.74rem; color: var(--gray-600); }

@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .blog-content { padding: 22px; }
}

/* Blog detail page hero override (single instance — last loaded wins) */
.detail-layout ~ * .page-hero h1,
body .page-hero h1 { line-height: 1.25; }

/* Related Articles section — full container width, below detail-layout */
.related-section { margin-top: 50px; padding-top: 30px; border-top: 1.5px solid var(--gray-200); }
.related-section .related-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .related-section .related-grid { grid-template-columns: 1fr; } }

/* Related Articles: force 3-col grid using same .blog-card style as home */
.related-blog-grid { grid-template-columns: repeat(3, 1fr) !important; margin-top: 0 !important; }
@media (max-width: 900px) { .related-blog-grid { grid-template-columns: 1fr !important; } }
