/* IRCTC - Public site styles. Mobile-first, Bootstrap 5. */
:root {
  --irctc-primary: #0d6efd;
  --irctc-primary-dark: #0a58ca;
  --irctc-dark: #212529;
  --irctc-hero-overlay: rgba(13, 110, 253, 0.75);
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--irctc-dark);
}

.main-content {
  min-height: 60vh;
}

/* ========== Admin images: jaha jitna size chahiye utna (mobile alag, PC alag) ========== */

/* Logo – navbar logo size (mobile: chota, PC: logo size) */
.navbar-logo {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}
@media (min-width: 768px) {
  .navbar-logo { height: 44px; max-width: 220px; }
}

/* National emblem – header emblem size (mobile chota, PC thoda bada) */
.navbar-emblem {
  height: 34px;
  width: 34px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .navbar-emblem { height: 46px; width: 46px; }
}

/* PM / Minister image – minister photo size (mobile chota, PC bada), fill & fit */
.gov-figure-img {
  width: 90px;
  height: 110px;
  object-fit: cover;
  border: 1px solid #dee2e6;
  display: block;
  margin: 0 auto;
}
@media (min-width: 576px) {
  .gov-figure-img { width: 120px; height: 150px; }
}
@media (min-width: 992px) {
  .gov-figure-img { width: 160px; height: 200px; }
}

/* Emergency floating button */
.emergency-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1030;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 1rem;
  background: #dc3545;
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}
.emergency-btn:hover {
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(220, 53, 69, 0.5);
}

/* Hero – hero area size (mobile chota, PC bada) */
.hero {
  background: linear-gradient(135deg, var(--irctc-primary) 0%, var(--irctc-primary-dark) 100%);
  position: relative;
  min-height: 220px;
}
.hero.hero-with-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@media (min-width: 768px) {
  .hero { min-height: 320px; }
}
@media (min-width: 992px) {
  .hero { min-height: 400px; }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--irctc-hero-overlay);
  z-index: 0;
}
.hero .container.position-relative { z-index: 1; }
.hero-subtext { opacity: 0.95; }

/* Page banners – banner size (mobile chota, PC bada) */
.page-banner {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  min-height: 140px;
  display: flex;
  align-items: center;
}
@media (min-width: 768px) {
  .page-banner { min-height: 200px; }
}
@media (min-width: 992px) {
  .page-banner { min-height: 260px; }
}
.banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}
.page-banner .container { z-index: 1; }

/* Leadership photos – leadership photo size (mobile chota, PC bada) */
.leadership-photo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .leadership-photo { width: 100px; height: 100px; }
}
.leadership-photo-lg {
  width: 90px;
  height: 90px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .leadership-photo-lg { width: 130px; height: 130px; }
}
@media (min-width: 992px) {
  .leadership-photo-lg { width: 160px; height: 160px; }
}
.leadership-card:hover,
.leadership-page-card:hover {
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.12) !important;
}

/* Footer logo – footer logo size (mobile chota, PC bada) */
.footer-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
@media (min-width: 768px) {
  .footer-logo { height: 52px; max-width: 240px; }
}

/* Footer quick links – visible color and hover */
.footer-quick-links a.footer-quick-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-quick-links a.footer-quick-link:hover {
  color: #fff;
}
.footer-quick-links li { margin-bottom: 0.35rem; }

.card.hover-shadow:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.content-cms { line-height: 1.7; }
.content-cms h2 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
.content-cms p { margin-bottom: 0.75rem; }

.apply-box .btn-lg { min-width: 200px; }

/* Application date over – blinking */
.vacancy-closed-blink {
  animation: vacancy-blink 1.2s ease-in-out infinite;
}
@keyframes vacancy-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Section spacing and cards */
section.py-5 .card { transition: box-shadow 0.2s; }
.list-group-item-action:hover { background-color: rgba(13, 110, 253, 0.06); }

@media (max-width: 767px) {
  .emergency-btn span { display: none; }
  .emergency-btn { padding: 0.75rem; border-radius: 50%; }
  .hero h1.display-5 { font-size: 1.5rem; }
}
