/* ─── RESET & BASE ─────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --brand-red: #d4202d;
  --brand-purple: #36183e;
  --brand-gold: #d4af67;
  --brand-gold-light: #d1b16f;
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --text-mid: #444;
  --error-red: #e53e3e;
  --success-green: #276749;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.2);
  --radius: 10px;
}

body {
  overflow-x: hidden;
  font-family: 'DM Sans', Arial, sans-serif;
  color: var(--text-dark);
}

/* ─── HEADER ────────────────────────────────────────────── */
.banner {
  background-color: var(--brand-red);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 105px;
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.banner img {
  max-width: 90%;
  max-height: 80px;
  object-fit: contain;
}

/* ─── HERO ──────────────────────────────────────────────── */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 700px;
  overflow: hidden;
}

/* Full-bleed background image */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right top;
  display: block;
}

/* TOP-LEFT: MBA text block */
.main-text {
  position: absolute;
  top: 44px;
  left: 52px;
  z-index: 10;
  max-width: 340px;
}
.main-text-badge {
  display: inline-block;
  background: var(--brand-gold);
  color: var(--brand-purple);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 13px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.main-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1.05;
  color: var(--brand-purple);
  text-shadow: none;
}
.main-text h3 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--brand-purple);
  opacity: 0.85;
  margin-top: 6px;
}
.hero-cta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}
/* RIGHT: form floats over right empty space */
.hero-form-wrap {
  position: absolute;
  top: 30px;
  right: 40px;
  z-index: 20;
  width: 400px;
}

/* ─── FORM CARD ─────────────────────────────────────────── */
.form-card {
  background: #fff;
  padding: 20px 18px 16px;
  border-radius: 14px;
  box-shadow: 0 8px 48px rgba(54,24,62,0.18), 0 2px 12px rgba(0,0,0,0.08);
  border-top: 4px solid var(--brand-red);
  width: 100%;
}

/* Responsive */
@media (max-width: 1200px) {
  .hero-form-wrap { right: 24px; width: 280px; }
  .main-text h2 { font-size: 3rem; }
}
@media (max-width: 900px) {
  /* Stack: image+text block on top, form below */
  .hero-section {
    position: relative;           /* keep so absolute children work */
    display: block;
    min-height: auto;
    overflow: visible;
  }

  /* Image block becomes a normal flow element with fixed height */
  .hero-bg {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
  }
  .hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
  }

  /* Text overlays the image block — anchored to .hero-bg */
  .main-text {
    position: absolute;
    top: 22px;
    left: 20px;
    max-width: 52%;
    z-index: 10;
  }
  .main-text h2 { font-size: 2rem; }
  .main-text h3 { font-size: 0.8rem; }
  .main-text-badge { font-size: 0.62rem; margin-bottom: 7px; }
  .hero-cta-pills { display: none; }

  /* Form goes below as normal block */
  .hero-form-wrap {
    position: static;
    width: 100%;
    padding: 28px 20px;
    background: #f7f3fb;
    border-top: 2px solid #e4d9f0;
  }
  .form-card {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .hero-bg { height: 300px; }
  .main-text { top: 18px; left: 216px; max-width: 56%; }
  .main-text h2 { font-size: 1.65rem; }
  .main-text h3 { font-size: 0.72rem; }
}

@media (max-width: 420px) {
  .hero-bg { height: 220px; }
  .main-text { top: 14px; left: 222px; max-width: 60%; }
  .main-text h2 { font-size: 1.35rem; }
  .main-text h3 { font-size: 0.65rem; }
  .main-text-badge { font-size: 0.55rem; padding: 3px 9px; }
}

.form-card-top {
  margin-bottom: 14px;
}
.phone-number {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  background-color: var(--brand-red);
  color: #fff;
  padding: 7px 14px;
  border-radius: 6px;
  text-decoration: none;
  animation: floating 3s ease-in-out infinite;
  margin-bottom: 10px;
}
.phone-icon { font-size: 14px; }

@keyframes floating {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

.form-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-purple);
  margin-bottom: 4px;
}
.admissions-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-red);
  letter-spacing: 0.03em;
}


/* ─── FORM FIELDS ────────────────────────────────────────── */
.form-group {
  margin-bottom: 12px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-group label em {
  color: var(--brand-red);
  font-style: normal;
  margin-left: 2px;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #ddd;
  border-radius: 7px;
  font-size: 13px;
  font-family: 'DM Sans', Arial, sans-serif;
  color: var(--text-dark);
  background: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 3px rgba(54,24,62,0.1);
  background: #fff;
}
.form-group input.input-error,
.form-group select.input-error {
  border-color: var(--error-red);
  box-shadow: 0 0 0 3px rgba(229,62,62,0.1);
}
.field-error {
  display: none;
  font-size: 11px;
  color: var(--error-red);
  margin-top: 3px;
  font-weight: 500;
}

.secure-note {
  background: #fffbe8;
  border: 1px solid #f0d96a;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  padding: 6px 10px;
  margin-bottom: 10px;
  color: #7a6000;
}

.submit-btn {
  width: 100%;
  padding: 11px;
  background: var(--brand-red);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  font-family: 'DM Sans', Arial, sans-serif;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s;
}
.submit-btn:hover:not(:disabled) {
  background: #b01c27;
  transform: translateY(-1px);
}
.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-success {
  margin-top: 10px;
  background: #f0fff4;
  border: 1px solid #9ae6b4;
  color: var(--success-green);
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
}
.form-error-global {
  margin-top: 10px;
  background: #fff5f5;
  border: 1px solid #feb2b2;
  color: var(--error-red);
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
}

/* ─── ELEVATE CARD ──────────────────────────────────────── */
.msg-card {
  padding: 20px;
}
.card {
  display: flex;
  box-shadow: var(--shadow-md);
  margin: 40px;
  margin-top: 30px;
  border-radius: var(--radius);
  overflow: hidden;
}
.card img { max-width: 100%; vertical-align: middle; }
.card-photo { width: 28%; float: left; }
.card-text {
  width: 72%;
  float: left;
  padding: 30px 20px;
  background: #fff;
}
.card-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--brand-purple);
  padding-bottom: 8px;
  margin-bottom: 14px;
  margin-left: 10px;
  position: relative;
}
.card-text h1::after {
  content: "";
  display: block;
  width: 50px;
  height: 4px;
  background-color: var(--brand-gold);
  margin-top: 6px;
}
@media (min-width: 1200px) { .card-text h1::after { display: none; } }
.card-text span {
  font-size: 16px;
  color: var(--brand-purple);
  font-weight: 600;
  margin-left: 10px;
}
.card-text p {
  font-size: 13px !important;
  color: var(--brand-purple);
  line-height: 1.65;
  margin-top: 10px;
  margin-left: 10px;
}

@media (max-width: 1200px) {
  .card-photo { display: none; }
  .card-text { width: 100%; padding: 20px; }
  .card { margin: 30px 16px; }
}

/* ─── MBA SPECIALIZATIONS ───────────────────────────────── */
.mba-online {
  background-image: url("Photos/distance_programm_bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  min-height: 100vh;
  padding: 50px 20px;
}
.mba-online h2 {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  color: var(--brand-gold);
  text-transform: uppercase;
  margin: 60px 0 30px;
  text-align: center;
  letter-spacing: 0.05em;
}
.mba-online h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: var(--brand-gold);
  margin: 8px auto 0;
}
.specialization-box {
  color: var(--brand-purple);
  background: #fff;
  padding: 40px 50px 30px;
  width: 70%;
  margin: 60px auto 20px;
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.tab {
  background: var(--brand-purple);
  color: #fff;
  padding: 16px 20px;
  font-weight: 700;
  border-radius: 6px 6px 0 0;
  display: inline-block;
  position: absolute;
  top: -54px;
  left: 0;
  font-size: 14px;
  letter-spacing: 0.03em;
}
.tab::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: var(--brand-purple) transparent transparent transparent;
}
.specialization-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}
.specialization-list li {
  font-size: 17px;
  padding: 10px 0;
  border-bottom: 1px solid #f0eaf5;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--brand-purple);
  transition: padding-left 0.2s;
}
.specialization-list li:hover { padding-left: 8px; }
.specialization-list li:last-child { border-bottom: none; }
.spec-icon { font-size: 1.1rem; }

@media (max-width: 768px) {
  .specialization-box { width: 90%; padding: 20px 24px; }
  .mba-online h2 { font-size: 24px; }
  .tab { font-size: 12px; padding: 14px 16px; width: 100%; top: -18px; }
  .tab::after { display: none; }
  .specialization-list li { font-size: 15px; }
}

/* ─── LEAD THE FUTURE ───────────────────────────────────── */
.h-button {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0 20px;
  position: relative;
}
.h-button img { margin: 0 20px; }
.h-button h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: var(--brand-purple);
  text-align: center;
}
.lead::after {
  content: "";
  display: block;
  width: 50px;
  height: 4px;
  background: var(--brand-gold);
  margin: 6px auto 0;
}

.swiper { padding: 0 16px !important; margin-bottom: 2rem; }
.swiper-wrapper { display: flex; align-items: center; }

.card-carousel {
  height: 300px !important;
  border-radius: 14px;
  overflow: hidden;
  background-color: var(--brand-gold-light);
  box-shadow: var(--shadow-sm);
  cursor: grab;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card-carousel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-carousel-header {
  background-color: var(--brand-purple);
  color: #fff;
  padding: 20px;
  font-size: 14px;
  font-weight: 700;
  position: relative;
  height: 120px;
  line-height: 1.4;
}
.card-carousel-header img {
  width: 28px;
  height: 28px;
  position: absolute;
  right: 10px;
  bottom: 10px;
  opacity: 0.8;
}
.card-carousel-body {
  padding: 18px;
  font-size: 13px;
  color: #2a1a10;
  text-align: left;
  font-weight: 500;
  line-height: 1.5;
}

.custom-navigation.button-icon-1 { position: absolute; right: 0; }
.custom-navigation img { width: 40px; height: 40px; cursor: pointer; transition: opacity 0.2s; }
.custom-navigation img:hover { opacity: 0.7; }

@media (max-width: 900px) {
  .h-button img { display: none; }
  .lead { font-size: 2rem !important; }
  .button-icon-2 { display: flex; justify-content: center; align-items: center; }
  .button-icon-2 img { margin: 0 2rem; }
  .card-carousel-body { padding-bottom: 50px; }
}
@media (min-width: 900px) { .button-icon-2 { display: none; } }

/* ─── ABOUT SECTION ─────────────────────────────────────── */
.about-section {
  background-image: url("Photos/about_nmims_bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  text-align: center;
  padding: 60px 20px;
  color: #fff;
  margin-top: 2rem;
  position: relative;
}
.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(30,10,40,0.4);
  pointer-events: none;
}
.about-content { position: relative; z-index: 1; }
.about-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: var(--brand-gold);
  margin-bottom: 12px;
}
.about-section h2::after,
.about-section h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--brand-gold);
  margin: 6px auto 0;
}
.about-section p {
  max-width: 800px;
  margin: 10px auto;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
}
.about-section h3 {
  margin-top: 35px;
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--brand-gold);
}
.about-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
  gap: 20px;
}
.about-card {
  width: 240px;
  padding: 24px 20px;
  border-radius: 12px;
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s;
}
.about-card:hover { transform: translateY(-4px); }
.about-card img { width: 48px; height: 48px; margin-bottom: 10px; }
.about-card h4 { font-family: 'Playfair Display', serif; font-size: 26px; margin: 6px 0 4px; }
.about-card p { font-size: 13px; }
.purple { background-color: var(--brand-purple); }
.gold   { background-color: #c6a669; }

@media (max-width: 900px) {
  .about-cards { flex-direction: column; align-items: center; }
  .about-card { width: 88%; }
}

/* ─── ADDRESS SECTION ───────────────────────────────────── */
.address-section {
  background-color: #f9f6fb;
  padding: 50px 24px;
}
.address-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.address-text { flex: 1; min-width: 280px; padding: 20px; }
.address-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--brand-purple);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}
.address-text h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 40px;
  height: 3px;
  background: var(--brand-gold);
}
.address-text .address { font-size: 14px; line-height: 1.6; color: #444; }
.disclaimer { font-size: 12px; margin-top: 18px; line-height: 1.6; color: #666; max-width: 1100px; margin-inline: auto; }
.address-image { flex: 1; text-align: center; min-width: 260px; }
.address-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  margin: auto;
}

@media (max-width: 768px) {
  .address-image { width: 80%; margin: 0 auto; }
}

/* ─── ZOHO IFRAME SECTION ───────────────────────────────── */
.zoho-iframe-section {
  background: linear-gradient(135deg, #f5f0fa 0%, #fffef9 100%);
  padding: 50px 24px;
}
.zoho-iframe-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.zoho-iframe-inner h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--brand-purple);
  margin-bottom: 8px;
}
.zoho-iframe-inner p {
  font-size: 14px;
  color: #666;
  margin-bottom: 24px;
}
.iframe-wrapper {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1.5px solid #e8e0f0;
  background: #fff;
}

/* ─── FOOTER ────────────────────────────────────────────── */
.footer {
  background-color: #700d21;
  color: #fff;
  text-align: center;
  padding: 24px;
  font-size: 13px;
}
.footer a { color: #f8d7dc; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ─── WHATSAPP BUTTON ───────────────────────────────────── */
.whatsapp-button {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 54px;
  height: 54px;
  z-index: 1000;
  filter: drop-shadow(2px 4px 12px rgba(0,0,0,0.3));
  transition: transform 0.2s;
}
.whatsapp-button:hover { transform: scale(1.1); }
.whatsapp-button img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(37,211,102,0.5);
}

/* ─── THANK YOU POPUP ───────────────────────────────────── */
.ty-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(30, 10, 40, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ty-overlay.ty-visible {
  display: flex;
  animation: ty-fade-in 0.3s ease;
}
@keyframes ty-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.ty-modal {
  background: #fff;
  border-radius: 20px;
  padding: 44px 36px 36px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(54,24,62,0.25);
  animation: ty-slide-up 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  border-top: 5px solid var(--brand-red);
}
@keyframes ty-slide-up {
  from { transform: translateY(40px) scale(0.95); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

.ty-icon {
  font-size: 3.2rem;
  margin-bottom: 12px;
  line-height: 1;
  animation: ty-bounce 0.6s 0.3s ease both;
}
@keyframes ty-bounce {
  0%   { transform: scale(0.5); opacity: 0; }
  70%  { transform: scale(1.15); }
  100% { transform: scale(1);   opacity: 1; }
}

.ty-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--brand-purple);
  margin-bottom: 8px;
}

.ty-sub {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-red);
  margin-bottom: 10px;
}

.ty-msg {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.65;
  margin-bottom: 20px;
}

.ty-divider {
  width: 50px;
  height: 3px;
  background: var(--brand-gold);
  border-radius: 2px;
  margin: 0 auto 24px;
}

.ty-btn {
  display: inline-block;
  background: var(--brand-red);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px 36px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'DM Sans', Arial, sans-serif;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s;
}
.ty-btn:hover {
  background: #b01c27;
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .ty-modal { padding: 32px 22px 28px; }
  .ty-title { font-size: 1.6rem; }
  .ty-icon  { font-size: 2.6rem; }
}