/* Home Page Styles (index.html) */

/* Hero Carousel */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #140c36;
}

.hero-slides {
  position: relative;
  height: 500px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.65s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay-cta {
  position: absolute;
  bottom: 28px;
  right: 32px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(17, 3, 77, 0.68);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 10;
}

.hero-arrow:hover {
  background: var(--rk-red);
}

.hero-arrow.prev { left: 16px; }
.hero-arrow.next { right: 16px; }

.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
}

.hero-dot.active {
  background: var(--rk-red);
  transform: scale(1.2);
}

/* Marquee Ticker */
.ticker-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--rk-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ticker-inner {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.ticker-label {
  background: var(--rk-red);
  color: #ffffff;
  padding: 10px 18px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-track-wrap {
  overflow: hidden;
  flex: 1;
  padding: 0 16px;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 48px;
  white-space: nowrap;
  animation: rkMarquee 26s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-track a {
  color: #111111;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ticker-track a:hover {
  color: var(--rk-red);
}

.ticker-new {
  background: var(--rk-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
}

@keyframes rkMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Welcome & Floating Action Cards */
.welcome-band {
  background: var(--rk-bg-soft);
  padding: 46px 0 130px;
  text-align: center;
}

.welcome-band h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: var(--rk-navy);
  margin: 0 0 10px;
}

.welcome-band p {
  font-size: 16.5px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.welcome-band .highlight-stat {
  color: var(--rk-red);
  font-weight: 800;
}

.action-cards-wrap {
  margin-top: -92px;
  position: relative;
  z-index: 5;
}

.action-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.action-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 18px;
  text-align: center;
  border-bottom: 4px solid var(--rk-red);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.action-card:hover {
  transform: translateY(-5px);
}

.action-card img {
  max-height: 92px;
  width: auto;
  object-fit: contain;
}

.action-card span {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--rk-navy);
}

.action-card.red-card {
  background: linear-gradient(135deg, #e13029, #b81d18);
  color: #ffffff;
  border-bottom-color: #031058;
}

.action-card.navy-card {
  background: linear-gradient(135deg, #031058, #1c1252);
  color: #ffffff;
  border-bottom-color: #e13029;
}

.action-card.red-card span,
.action-card.navy-card span {
  color: #ffffff;
}

.action-card.erp-highlight {
  background: linear-gradient(135deg, #1b0f54, #4c1d95);
  color: #ffffff;
  border-bottom-color: #ffd43b;
}

.action-card.erp-highlight span,
.action-card.erp-highlight small {
  color: #ffffff;
}

/* ERP Spotlight Banner */
.erp-banner {
  background: linear-gradient(125deg, #031058 0%, #1d145c 60%, #e13029 135%);
  color: #ffffff;
  border-radius: 16px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.erp-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.erp-pill {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12.8px;
  font-weight: 600;
}

/* About Split */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 44px;
  align-items: center;
}

.about-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.about-collage img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.about-collage img.tall {
  grid-row: span 2;
  height: 434px;
}

.about-content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: var(--rk-navy);
  margin: 0 0 14px;
}

.about-quote {
  background: #fff5f5;
  border-left: 4px solid var(--rk-red);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #222;
  margin-bottom: 16px;
}

.about-pills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 20px 0 24px;
}

.about-pill {
  background: var(--rk-bg-soft);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--rk-navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-pill i {
  color: var(--rk-red);
}

/* Life at RKGITM Dark Band */
.life-band {
  background: #0b0b0f;
  color: #ffffff;
  padding: 64px 0;
}

.life-band .section-title {
  color: #ffffff;
}

.life-band .section-subtitle {
  color: #c7cad1;
}

.life-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.life-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.life-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.life-card:hover img {
  transform: scale(1.06);
}

.life-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  font-size: 13px;
  font-weight: 600;
}

/* Programs Circle Cards */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.program-card {
  background: #ffffff;
  border: 1px solid var(--rk-border);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.program-card:hover {
  transform: translateY(-5px);
  border-color: var(--rk-red);
  box-shadow: var(--shadow-md);
}

.program-card img.emblem {
  width: 128px;
  height: 128px;
  object-fit: contain;
  margin-bottom: 14px;
}

.program-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--rk-navy);
  margin: 0 0 8px;
}

.program-meta {
  font-size: 13.5px;
  color: var(--rk-muted);
  margin: 0 0 14px;
}

/* Home Faculty Preview Cards */
.faculty-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.faculty-mini-card {
  background: #ffffff;
  border: 1px solid var(--rk-border);
  border-radius: var(--radius-md);
  padding: 22px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.faculty-mini-card:hover {
  transform: translateY(-4px);
  border-color: var(--rk-red);
}

.faculty-mini-card img {
  width: 114px;
  height: 114px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  border: 3px solid #eef2ff;
}

.faculty-mini-card h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--rk-navy);
  margin: 0 0 6px;
}

.faculty-qual {
  font-size: 13px;
  font-weight: 600;
  color: var(--rk-red);
  margin: 0 0 4px;
}

.faculty-exp {
  font-size: 12.8px;
  color: var(--rk-muted);
  margin: 0;
}

.hod-tag {
  display: inline-block;
  margin-top: 8px;
  background: #eef2ff;
  color: var(--rk-navy);
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
}

/* Why Choose RKGITM 4-Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature-box {
  background: var(--rk-bg-soft);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: center;
  border-top: 4px solid var(--rk-navy);
}

.feature-box:hover {
  border-top-color: var(--rk-red);
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.feature-box img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  margin: 0 auto 14px;
}

.feature-box h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--rk-navy);
  margin: 0 0 8px;
}

.feature-box p {
  font-size: 13.8px;
  color: var(--rk-muted);
  margin: 0;
}

/* Recruiters Grid */
.recruiters-band {
  background: #ffffff;
  border-top: 1px solid var(--rk-border);
}

.recruiters-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
  align-items: center;
}

.recruiter-tile {
  background: #ffffff;
  border: 1px solid var(--rk-border);
  border-radius: 8px;
  padding: 10px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recruiter-tile img {
  max-height: 52px;
  width: auto;
  object-fit: contain;
}

/* Home Enquiry Split */
.enquiry-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 1060px) {
  .action-cards-grid,
  .programs-grid,
  .features-grid,
  .faculty-preview-grid,
  .life-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .recruiters-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .about-grid,
  .enquiry-split,
  .erp-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .hero-slides {
    height: 320px;
  }
}

@media (max-width: 560px) {
  .action-cards-grid,
  .programs-grid,
  .features-grid,
  .faculty-preview-grid,
  .life-grid {
    grid-template-columns: 1fr;
  }
  .recruiters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-collage img.tall {
    height: 220px;
    grid-row: auto;
  }
}
