* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}
body {
  font-family: "Poppins", sans-serif;
  background: #f7f7f7;
}

p {
  font-size: 14px;
}
/* ===================== HEADER 1 ===================== */
#header-top {
  background-color: #f5c518;
  padding: 6px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: #111;
}
#header-top a {
  color: #111;
  text-decoration: none;
  white-space: nowrap;
}
#header-top a:hover {
  text-decoration: underline;
}

.top-contact span {
  margin-right: 18px;
}
.top-contact i {
  margin-right: 4px;
}

.top-nav-links {
  display: none; /* hidden by default, shown on lg+ via media query below */
}
.top-nav-links a {
  margin-left: 16px;
  font-size: 12.5px;
}
.btn-tender,
.btn-fee,
.btn-admissions {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s ease;
}
/* Hamburger for top nav (small/md) */
#topNavToggle {
  background: none;
  border: 1.5px solid #333;
  border-radius: 4px;
  padding: 3px 8px;
  cursor: pointer;
  display: inline-flex; /* visible by default, hidden on lg+ via media query */
  align-items: center;
}
#topNavToggle i {
  font-size: 16px;
}

#topNavCollapse {
  background: #f5c518;
  border-top: 1px solid #e0b000;
}
#topNavCollapse a {
  display: block;
  padding: 7px 16px;
  color: #111;
  text-decoration: none;
  font-size: 13px;
  border-bottom: 1px solid #e0b000;
}
#topNavCollapse a:hover {
  background: #e0b000;
}

/* ===================== HEADER 2 ===================== */
#header-main {
  background: #fff;
  padding: 10px 20px;
  border-bottom: 1px solid #e0e0e0;
}

.full-logo {
  width: 200px;
  height: auto;
}
.code-box {
  border: 1.5px solid #ccc;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #111;
  white-space: nowrap;
}
.code-box span {
  color: #003087;
}

.btn-tender {
  background-color: #003087;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  white-space: nowrap;
}
.btn-tender:hover {
  background-color: #002060;
  color: #fff;
}

.btn-fee {
  background-color: #8b0000;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  white-space: nowrap;
}
.btn-fee:hover {
  background-color: #6b0000;
  color: #fff;
}

.btn-admissions {
  background-color: #c0392b;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  white-space: nowrap;
}
.btn-admissions:hover {
  background-color: #a93226;
  color: #fff;
}

/* Mobile hamburger for main nav (inside header 2) */
#mainNavToggle {
  background: #003087;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 7px 12px;
  cursor: pointer;
  display: none;
}
#mainNavToggle i {
  font-size: 18px;
}

/* ===================== HEADER 3 – NAV ===================== */
#header-nav {
  background-color: #003087;
  position: relative; /* key: desktop dropdowns position relative to this */
}
#header-nav .navbar {
  padding: 0;
}
#header-nav .navbar-nav {
  flex-wrap: nowrap;
  align-items: stretch;
}

/* ── NAV LINK ────────────────────────────────────────────────────────── */
#header-nav .nav-link,
#header-nav .nav-link.dropdown-toggle-custom {
  color: #fff !important;
  font-size: 13px;
  font-weight: 500;
  padding: 13px 11px !important;
  transition: background 0.2s;
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  border: none;
  background: none;
  text-decoration: none;
}
#header-nav .nav-link:hover,
#header-nav .nav-link.dropdown-toggle-custom:hover {
  background: #0052cc;
}
.chevron-icon {
  font-size: 10px;
  transition: transform 0.25s;
}

/* ── MEGA PARENT POSITIONING ─────────────────────────────────────────── */
.mega-parent {
  position: static; /* so dropdown spans full width */
}

/* ── MEGA DROPDOWN PANEL ─────────────────────────────────────────────── */
.mega-dropdown {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 9999;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  animation: fadeDropDown 0.2s ease;
}
@keyframes fadeDropDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* open state toggled by JS */
.mega-parent.open > .mega-dropdown {
  display: block;
}
.mega-parent.open > a .chevron-icon {
  transform: rotate(180deg);
}

/* ── MEGA INNER (image + columns) ────────────────────────────────────── */
.mega-inner {
  display: flex;
  min-height: 260px;
}

/* LEFT image panel */
.mega-left {
  width: 220px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 18px;
  color: #fff;
}
.mega-left p {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 4px 0;
}

/* RIGHT columns wrapper */
.mega-right {
  display: flex;
  flex-grow: 1;
  padding: 24px 20px 20px;
  gap: 0;
}

/* Individual column */
.mega-col {
  flex: 1;
  padding-right: 20px;

  min-width: 160px;
}
.mega-col:last-child {
  border-right: none;
}
.mega-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #003087;
}
.mega-col a {
  display: block;
  font-size: 0.82rem;
  color: #333;
  text-decoration: none;
  padding: 4px 0;
  transition:
    color 0.2s,
    padding-left 0.2s;
}
.mega-col a:hover {
  color: #003087;
  font-weight: 600;
  padding-left: 4px;
}

/* ── SIMPLE DROPDOWN (no image) ──────────────────────────────────────── */
.mega-dropdown.simple-drop {
  position: absolute;
  left: auto; /* don't stretch full width */
  right: auto;
  width: 220px;
  padding: 6px 0;
}
.mega-dropdown.simple-drop a {
  display: block;
  padding: 9px 18px;
  font-size: 13px;
  color: #222;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition:
    background 0.15s,
    color 0.15s;
}
.mega-dropdown.simple-drop a:hover {
  background: #003087;
  color: #fff;
}

/* ─────────────────────────────────────────────────────────────────────
   MOBILE / TABLET  (< 992px)
   ─────────────────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  /* The nav panel itself slides down below header */
  #header-nav.nav-open {
    display: block !important;
  }
  #header-nav .navbar-nav {
    flex-direction: column;
    flex-wrap: wrap;
  }
  #header-nav .nav-link,
  #header-nav .nav-link.dropdown-toggle-custom {
    padding: 12px 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: space-between;
    font-size: 14px;
  }

  /* Mobile mega = accordion style, NOT absolute */
  .mega-parent {
    position: relative;
  }
  .mega-dropdown {
    position: static !important;
    box-shadow: none;
    border-top: 2px solid #0052cc;
    animation: none;
    margin-top: 0 !important;
    top: 100%;
  }
  .mega-dropdown.simple-drop {
    width: 100%;
  }

  /* Mobile: stack image above columns */
  .mega-inner {
    flex-direction: column;
    min-height: unset;
  }
  .mega-left {
    width: 100%;
    min-width: 100%;
    min-height: 100px;
    padding: 16px 20px;
  }
  .mega-right {
    flex-direction: column;
    padding: 12px 16px;
    gap: 12px;
  }
  .mega-col {
    border-right: none;
    border-bottom: 1px solid #eee;
    padding-right: 0;
    padding-bottom: 12px;
    min-width: 100%;
  }
  .mega-col:last-child {
    border-bottom: none;
  }
  .mega-col a {
    font-size: 13px;
    padding: 5px 0;
  }
  .mega-col-title {
    font-size: 14px;
  }

  /* Mobile simple drop links */
  .mega-dropdown.simple-drop a {
    padding: 10px 20px;
    font-size: 13px;
  }
}
/* SUBMENU */

.submenu-item {
  position: relative;
}

.submenu-item > a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* RIGHT SIDE DROPDOWN */

.submenu-dropdown {
  position: absolute;
  top: 0;
  left: 100%;

  width: 220px;
  background: #fff;

  padding: 10px 0;

  opacity: 0;
  visibility: hidden;

  transition: 0.3s ease;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* SHOW ON HOVER */

.submenu-item:hover .submenu-dropdown {
  opacity: 1;
  visibility: visible;
}

/* LINKS */

.submenu-dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  color: #222;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
}

.submenu-dropdown a:hover {
  background: #003087;
  color: #fff;
}

/* MOBILE */

@media (max-width: 991px) {
  .submenu-dropdown {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding-left: 15px;
    display: none;
  }

  .submenu-item.active .submenu-dropdown {
    display: block;
  }
}

/* ===================== HEADER 4 – TICKER ===================== */
#header-ticker {
  background: #ffe174;
  padding: 7px 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  color: #111;
}
.ticker-track {
  display: inline-flex;
  animation: ticker-scroll 28s linear infinite;
  gap: 0;
}
.ticker-track:hover {
  animation-play-state: paused;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 0 30px;
}

.ticker-item img {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 3px;
  margin-right: 6px;
  letter-spacing: 0.5px;
  vertical-align: middle;
}
.ticker-sep {
  color: #888;
  padding: 0 10px;
  font-weight: 400;
}
@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 991.98px) {
  /* Header 1: show only contact, hide nav links inline */
  #topNavToggle {
    display: inline-flex;
    align-items: center;
  }
  .top-nav-links {
    display: none !important;
  }

  /* Header 2: hide code box and buttons, show hamburger */
  .header2-center {
    display: none !important;
  }
  .header2-actions {
    display: none !important;
  }
  #mainNavToggle {
    display: inline-flex;
    align-items: center;
  }

  /* Header 3: hide on small, controlled via header 2 hamburger */
  #header-nav {
    display: none;
  }
}

@media (max-width: 575.98px) {
  #header-top {
    font-size: 12px;
  }
  .top-contact span {
    margin-right: 10px;
    font-size: 12px;
  }
}

/* When main nav toggled open (via JS class) */
#header-nav.nav-open {
  display: block !important;
}
/* On large screens always show nav */
@media (min-width: 992px) {
  #header-nav {
    display: block !important;
  }
  #topNavToggle {
    display: none !important;
  }
  .top-nav-links {
    display: flex !important;
    align-items: center;
  }
  .header2-center {
    display: flex !important;
  }
  .header2-actions {
    display: flex !important;
  }
  #mainNavToggle {
    display: none !important;
  }
}

/* HERO-SECTION */

.hero-section {
  background: url("https://dbit.edu.in/wp-content/uploads/2024/09/dbit-campuz-scaled.jpg")
    center/cover;
  height: 350px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
}

.hero-content h1 {
  font-size: 52px;
  font-weight: 700;
}
@media (min-width: 991px) {
  .admission-section {
    padding: 50px 50px;
  }
}
@media (max-width: 991px) {
  .admission-section {
    padding: 50px 20px;
  }
}
.info-img {
  width: 100%;

  margin-bottom: 25px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #111;
}

.section-text {
  color: rgb(184, 45, 45);
}

.contact-box {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 30px;
}

.forms-contact-icon {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #3b6eb6;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.contact-box h5 {
  margin-bottom: 5px;
  font-weight: 700;
}

.form-label {
  font-size: 14px;
}

.form-card {
  background: #fff;
  padding: 40px;
  border-radius: 22px;
  border: 1px solid #cfcfcf;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-title {
  text-align: center;
  color: #3b6eb6;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 35px;
}

.form-control,
.form-select {
  height: 45px;
  border-radius: 10px;
}

textarea.form-control {
  height: 140px;
  resize: none;
}

.btn-submit {
  width: 100%;
  background: #3b6eb6;
  border: none;
  padding: 14px;
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  transition: 0.3s;
}

.btn-submit:hover {
  background: #1259a0;
}

@media (max-width: 991px) {
  .hero-content h1 {
    font-size: 38px;
  }

  .form-card {
    margin-top: 40px;
  }
}
/* ============================================================
       FOOTER WRAPPER
    ============================================================ */
footer {
  background-color: #0d3a72;
  color: #cdd8f0;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}

/* ============================================================
       SECTION 1 — LOGO + CONTACT
    ============================================================ */
.footer-top {
  padding: 36px 40px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Logo circle */
.footer-logo-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid #f5c518;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.footer-logo-circle svg {
  width: 80px;
  height: 80px;
}

.footer-brand-trust {
  font-size: 10px;
  color: #aab8d8;
  margin-bottom: 2px;
}
.footer-logo {
  width: 300px;
  height: auto;
}
.footer-brand-inst {
  font-size: 13px;
  font-weight: 700;
  color: #e0e8ff;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.footer-brand-addr {
  font-size: 11px;
  color: #aab8d8;
  margin-top: 2px;
}
.footer-brand-badge {
  display: inline-block;
  background: #f5c518;
  color: #111;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 2px;
  margin-top: 5px;
  letter-spacing: 0.5px;
}

/* Contact items */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 15px;
}
.contact-text {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.5;
}

/* ============================================================
       SECTION 2 — QUICK LINKS
    ============================================================ */
.footer-links {
  padding: 32px 40px 24px;
}
.footer-links h5 {
  color: #f5c518;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 22px;
}

.link-col a {
  display: block;
  color: #ffffff;
  text-decoration: none;
  font-size: 13.5px;
  padding: 4px 0;
  transition:
    color 0.2s,
    padding-left 0.2s;
}
.link-col a:hover {
  color: #f5c518;
  padding-left: 6px;
}

/* ============================================================
       SECTION 3 — SOCIAL ICONS
    ============================================================ */
.footer-social {
  padding: 24px 40px;
  text-align: center;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 18px;
  margin: 0 6px;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.social-icon:hover {
  background: #f5c518;
  color: #0d2461;
  border-color: #f5c518;
}

/* ============================================================
       SECTION 4 — COPYRIGHT BAR
    ============================================================ */
.footer-bottom {
  padding: 16px 40px;
  background: #0d3a72;
  font-size: 12.5px;
  color: #ffffff;
}
.footer-bottom a {
  color: #ffffff;
  text-decoration: none;
}
.footer-bottom a:hover {
  color: #f5c518;
}
.footer-bottom strong {
  color: #ffffff;
}

/* ============================================================
       RESPONSIVE — Medium & Small (< 992px)
    ============================================================ */
@media (max-width: 991.98px) {
  .footer-top,
  .footer-links,
  .footer-social,
  .footer-bottom {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Logo block: stacked center */
  .footer-logo-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
  }

  /* Contact block below logo */
  .footer-contact-block {
    margin-top: 0;
  }

  /* Quick links: 2 columns per row */
  .links-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 16px;
  }
  .link-col {
    margin-bottom: 16px;
  }

  /* Copyright: stack vertically */
  .footer-bottom .row > div {
    text-align: center !important;
    margin-bottom: 6px;
  }
}

@media (max-width: 575.98px) {
  .footer-logo-circle {
    width: 80px;
    height: 80px;
  }
  .social-icon {
    width: 38px;
    height: 38px;
    font-size: 16px;
    margin: 0 4px;
  }
}
