/* TPImain/apply/assets/css/admission.css */

/* Core Variables referencing main theme */
:root {
  --primary-navy: #183153;
  --primary-red: #E62B26;
  --white: #FFFFFF;
  --light-gray: #F5F7FA;
  --border-gray: #E5E7EB;
  --dark-text: #2F2F2F;
}

body {
  color: var(--dark-text);
  background-color: var(--white);
  margin: 0;
  padding: 0;
}

/* Animated Hero Backgrounds */
.hero-bg-layer {
  position: absolute;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroBgFade 16s infinite;
  z-index: 0;
}
.hero-bg-layer::after {
  content: '';
  position: absolute;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  background: linear-gradient(rgba(15, 42, 74, 0.7), rgba(15, 42, 74, 0.7)); 
}
@keyframes heroBgFade {
  0% { opacity: 0; transform: scale(1.0); }
  10% { opacity: 1; transform: scale(1.02); }
  25% { opacity: 1; transform: scale(1.05); }
  35% { opacity: 0; transform: scale(1.07); }
  100% { opacity: 0; transform: scale(1.0); }
}

/* Reused Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--white {
  background-color: var(--white);
  color: var(--primary-navy);
}
.btn--white:hover {
  background-color: #f1f1f1;
}

.btn--outline {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline:hover {
  background-color: var(--white);
  color: var(--primary-navy);
}

.filter-bar button:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* SSCE Details Styling */
.ssce-details h4 {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}
.ssce-subjects-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}
.ssce-subjects-grid .subject-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: center;
}
.ssce-subjects-grid .header-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: -5px;
  color: var(--text-light);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
@media (max-width: 768px) {
  .ssce-subjects-grid .subject-row {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 15px;
  }
  .ssce-subjects-grid .header-row {
    display: none;
  }
}

.subject-input-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.subject-input-group .row-number {
  font-weight: 600;
  color: #64748b;
  min-width: 15px;
  text-align: right;
}
.grade-input-group {
  width: 100%;
}
.plain-select {
  width: 100%;
  padding: 14px 15px;
  font-size: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23183153%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat, repeat;
  background-position: right .7em top 50%, 0 0;
  background-size: .65em auto, 100%;
}
.plain-select:focus {
  outline: none;
  border-color: var(--primary-navy, #183153);
  background-color: var(--white, #ffffff);
  box-shadow: 0 4px 12px rgba(24, 49, 83, 0.08);
}

.btn--primary {
  background-color: var(--primary-navy);
  color: var(--white);
}
.btn--primary:hover {
  background-color: #0f213a;
  box-shadow: 0 4px 12px rgba(24, 49, 83, 0.2);
}


/* Status Banner */
.admission-status {
  background-color: var(--light-gray);
  padding: 15px 0;
  border-bottom: 1px solid var(--border-gray);
}

.status-banner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: var(--primary-red);
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}
.status-banner i {
  margin-right: 8px;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: 2.5rem;
  color: var(--primary-navy);
  margin-bottom: 10px;
}
.section-header p {
  color: #666;
  font-size: 1.1rem;
}

/* Departments Section */
/* Dark Pattern Departments Styling */
.dark-pattern {
  background-color: #060b14; /* Deeper version of the navy color */
  color: #fff;
  padding: 80px 20px;
}

.departments-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: 1200px;
  margin: 0 auto;
}

.dept-nav-area {
  display: flex;
  gap: 15px;
}

.dept-nav-area button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dept-nav-area button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.dept-swiper {
  max-width: 1200px;
  margin: 0 auto;
}

.dept-card-new {
  position: relative;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 30px;
  height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
}

.dept-card-new::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-gold, #cfa85e);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.dept-card-new:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.dept-card-new:hover::after {
  transform: scaleX(1);
}

.dept-number {
  color: var(--primary-gold, #cfa85e);
  font-size: 1.1rem;
  font-weight: 500;
  z-index: 2;
}

.dept-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2;
}

.dept-title {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.dept-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.dept-link-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 10;
}

/* History Section */
.history-section {
  padding: 80px 20px;
  background-color: var(--light-gray, #f8f9fa);
}
.history-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}
.history-text {
  flex: 1;
}
.history-text h2 {
  color: var(--primary-navy, #0f172a);
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.history-text p {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.history-image {
  flex: 1;
  position: relative;
  padding: 12px;
}
.history-image::before {
  content: '';
  position: absolute;
  top: -14px;
  right: -14px;
  width: 70%;
  height: 70%;
  border-radius: 24px;
  background-image: radial-gradient(var(--primary-red, #E62B26) 2px, transparent 2px);
  background-size: 18px 18px;
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}
.history-image::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: -14px;
  width: 55%;
  height: 55%;
  border-radius: 24px;
  background: rgba(15, 42, 74, 0.08);
  z-index: 0;
  pointer-events: none;
}
.history-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(15, 42, 74, 0.15);
  border: 4px solid #ffffff;
}
@media (max-width: 968px) {
  .history-container {
    flex-direction: column;
  }
}

/* Why TPI Section */
.why-tpi-section {
  padding: 80px 20px;
  background-color: var(--white, #fff);
  text-align: center;
}
.why-tpi-header {
  max-width: 700px;
  margin: 0 auto 50px;
}
.why-tpi-header h2 {
  color: var(--primary-navy, #0f172a);
  font-size: 2.5rem;
  margin-bottom: 15px;
}
.why-tpi-header p {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.6;
}
.why-tpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.why-tpi-card {
  padding: 40px 30px;
  background: var(--light-gray, #f8f9fa);
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.why-tpi-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.why-tpi-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background-color: rgba(207, 168, 94, 0.1);
  color: var(--primary-gold, #cfa85e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}
.why-tpi-card h3 {
  color: var(--primary-navy, #0f172a);
  font-size: 1.3rem;
  margin-bottom: 15px;
}
.why-tpi-card p {
  color: #666;
  font-size: 1rem;
  line-height: 1.5;
}

/* Journey Section (Admission Process) */
.journey-section {
  padding: 80px 20px;
  background-color: var(--white);
}

.journey-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.journey-eyebrow {
  color: var(--primary-gold, #cfa85e);
  font-size: 1rem;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 15px;
}

.journey-header h2 {
  color: var(--primary-navy);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.journey-header p {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.6;
}

.journey-timeline-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding-left: 150px; 
}

.journey-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 75px; 
  width: 2px;
  background-color: #e0e0e0;
}

.journey-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 60px;
}

.journey-pill {
  position: absolute;
  left: -75px;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--primary-red);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
  z-index: 2;
  white-space: nowrap;
}

.journey-content {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 40px;
}

.journey-text {
  flex: 1;
}

.journey-text h3 {
  color: var(--primary-navy);
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.journey-text p {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}

.journey-image {
  flex: 1;
  max-width: 400px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.journey-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .journey-timeline-container {
    padding-left: 20px;
    gap: 60px;
  }
  .journey-line {
    left: 20px;
  }
  .journey-step {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 30px;
    gap: 20px;
  }
  .journey-pill {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    margin-bottom: 10px;
  }
  .journey-content {
    flex-direction: column-reverse;
  }
  .journey-image {
    max-width: 100%;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hero-banner__title {
    font-size: 2.5rem;
  }
  .hero-banner__actions {
    flex-direction: column;
  }
}

/* Massive CTA Button */
.cta-btn-huge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: linear-gradient(135deg, var(--primary-red), #b91d19);
  color: var(--white);
  padding: 20px 50px;
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(230, 43, 38, 0.4);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}
.cta-btn-huge::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}
.cta-btn-huge:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(230, 43, 38, 0.6);
  color: var(--white);
}
.cta-btn-huge:hover::before {
  left: 100%;
}
.cta-btn-huge i {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}
.cta-btn-huge:hover i {
  transform: translateX(5px);
}

/* Stats Carousel Section */
.stats-carousel-section {
  padding: 120px 20px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
  color: #fff;
  position: relative;
  border-radius: 20px; 
  margin: 80px 20px;
  overflow: hidden;
}
.stat-text {
  font-size: 2.8rem;
  font-weight: 700;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.4;
  text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
@media (max-width: 768px) {
  .stat-text { font-size: 1.8rem; }
  .stats-carousel-section { margin: 40px 10px; padding: 80px 20px; }
}

/* FAQ Accordion Section */
.faq-accordion-section {
  padding: 80px 20px;
  background-color: var(--white);
}
.faq-header {
  text-align: center;
  margin-bottom: 50px;
}
.faq-header h2 {
  color: var(--primary-navy);
  font-size: 2.5rem;
}
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid #eaeaea;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-navy);
  font-family: inherit;
}
.faq-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-navy);
  transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background-color: var(--primary-red);
  color: var(--white);
  border-color: var(--primary-red);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer p {
  padding-bottom: 25px;
  color: #555;
  line-height: 1.6;
  font-size: 1.05rem;
  margin: 0;
}

/* =========================================================================
   ADMISSION OVERVIEW (MIVA DESIGN PATTERN)
   ========================================================================= */
.admission-overview-wrapper {
  padding: 90px 0;
  background: #ffffff;
}

.admission-overview-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: center;
}

.overview-media-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 42, 74, 0.12);
  background: #0f2a4a;
}

.overview-media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.overview-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-red, #E62B26);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, background 0.3s ease;
}

.overview-media-card:hover .overview-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: #ffffff;
}

.overview-content-area {
  max-width: 820px;
}

.overview-eyebrow {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-red, #E62B26);
  letter-spacing: 1px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.overview-title {
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  font-weight: 800;
  color: var(--primary-navy, #183153);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.overview-desc {
  font-size: 1.08rem;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 20px;
}

.overview-desc strong {
  color: var(--primary-navy, #183153);
  font-weight: 700;
}

@media (max-width: 992px) {
  .admission-overview-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .overview-media-card {
    max-width: 450px;
    margin: 0 auto;
  }
}
