/* ===============================
   Base setup
================================== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  overflow: hidden; /* Prevent page scroll */
  background: url('../images/nstupen.jpg') center center/cover no-repeat fixed;
}

body {
  display: flex;
  flex-direction: column;
}

/* ===============================
   HEADER
================================== */
.header-section {
  background: rgba(255, 255, 255, 0.7); /* semi-transparent white */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  position: relative;
  width: 100%;
  z-index: 1000;
  padding: 10px 0;
  flex-shrink: 0;
}

.header-section .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo img {
  height: 60px;
  transition: 0.3s;
}

.university-name h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.university-name small {
  font-size: 0.9rem;
}

.download-btn {
  background-color: #fff;
  border: 1px solid #007bff;
  color: #007bff;
  transition: all 0.3s ease;
}

.download-btn:hover {
  background-color: #007bff;
  color: #fff;
}

/* ===============================
   HERO SECTION
================================== */
.hero-section {
  background: transparent; /* let the page background show through */
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
  padding: 20px;
  overflow: hidden;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  width: 100%;
  padding: 20px;
}

.hero-content h2 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 1.2rem;
  margin: 15px 0 25px;
  line-height: 1.6;
}

.primary-btn {
  background-color: #007bff;
  color: #fff;
  padding: 12px 35px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}

.primary-btn:hover {
  background-color: #0056b3;
  color: #fff;
}

/* ===============================
   COUNTDOWN
================================== */
.countdown-container {
  margin-top: 30px;
  padding: 15px 10px;
  /* background: rgba(0, 0, 0, 0.45); */
  /* backdrop-filter: blur(5px); */
  border-radius: 15px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cd-timer {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cd-item {
  background: rgba(255, 255, 255, 0.274);
  padding: 10px 18px;
  border-radius: 10px;
  text-align: center;
  min-width: 70px;
  /* backdrop-filter: blur(5px); */
}

.cd-item span {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}

.cd-item p {
  margin: 0;
  font-size: 0.9rem;
  color: #ddd;
}

/* ===============================
   FOOTER
================================== */
.footer-section {
  /*background-color: rgba(13, 110, 253, 0.7);  semi-transparent blue */
  background-color: rgba(18, 18, 18, 0.436);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  padding: 2px 0;
  text-align: center;
  flex-shrink: 0;
}

.footer-section p {
  margin-bottom: 5px;
}

.footer-section a {
  color: #fff;
  transition: 0.3s;
}

.footer-section a:hover {
  color: #dfe6ff;
}

/* ===============================
   MEDIA QUERIES - TABLETS
================================== */
@media (max-width: 992px) {
  .header-section .container {
    flex-direction: row;
    align-items: center;
    text-align: left;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .header-section {
    padding: 8px 0;
  }

  /* Left section with logo and university name */
  .header-section .d-flex.align-items-center {
    flex: 1;
    margin-bottom: 0 !important;
  }

  .logo {
    margin-right: 10px !important;
  }

  .logo img {
    height: 50px;
  }

  .university-name {
    flex: 1;
  }

  .university-name h4 {
    font-size: 1.1rem;
    text-align: left;
  }

  .university-name small {
    font-size: 0.85rem;
    text-align: left;
  }

  /* Download button on the right */
  nav {
    flex-shrink: 0;
  }

  .download-btn {
    margin-top: 0;
    padding: 8px 20px;
    font-size: 0.9rem;
  }

  .hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 12px;
  }

  .hero-content p {
    font-size: 1rem;
    margin: 12px 0 20px;
  }

  .primary-btn {
    padding: 10px 28px;
    font-size: 0.95rem;
  }

  .countdown-container {
    margin-top: 25px;
    padding: 12px 8px;
  }

  .cd-timer {
    gap: 15px;
  }

  .cd-item {
    padding: 8px 15px;
    min-width: 65px;
  }

  .cd-item span {
    font-size: 1.4rem;
  }

  .cd-item p {
    font-size: 0.85rem;
  }

  .footer-section {
    padding: 2px 0;
  }

  .footer-section p {
    font-size: 0.85rem;
    margin-bottom: 3px;
  }
}

/* ===============================
   MEDIA QUERIES - MOBILE
================================== */
@media (max-width: 576px) {
  .header-section {
    padding: 8px 0;
  }

  .header-section .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 10px;
  }

  /* Left section with logo and university name */
  .header-section .d-flex.align-items-center {
    flex: 1;
    margin-bottom: 0 !important;
    text-align: left;
  }

  .logo {
    margin-right: 8px !important;
  }

  .logo img {
    height: 40px;
  }

  /* University name styling for mobile - multiline with smaller text */
  .university-name {
    flex: 1;
  }

  .university-name h4 {
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1px;
    text-align: left;
  }

  .university-name small {
    font-size: 0.6rem;
    display: block;
    text-align: left;
  }

  /* Download button on the right */
  nav {
    flex-shrink: 0;
  }

  .download-btn {
    margin-top: 0;
    padding: 6px 12px;
    font-size: 0.7rem;
    white-space: nowrap;
  }

  .hero-content {
    padding: 10px;
  }

  .hero-content h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }

  .hero-content p {
    font-size: 0.85rem;
    margin: 10px 0 15px;
    line-height: 1.4;
  }

  .primary-btn {
    padding: 8px 22px;
    font-size: 0.85rem;
  }

  .countdown-container {
    margin-top: 18px;
    padding: 10px 5px;
  }

  .cd-timer {
    gap: 10px;
  }

  .cd-item {
    padding: 6px 10px;
    min-width: 55px;
  }

  .cd-item span {
    font-size: 1.1rem;
  }

  .cd-item p {
    font-size: 0.65rem;
  }

  .footer-section {
    padding: 2px 0;
  }

  .footer-section p {
    font-size: 0.7rem;
    margin-bottom: 2px;
  }

  .footer-section .small {
    font-size: 0.65rem;
  }
}

/* ===============================
   MEDIA QUERIES - EXTRA SMALL
================================== */
@media (max-width: 400px) {
  .logo img {
    height: 35px;
  }

  .logo {
    margin-right: 6px !important;
  }

  .university-name h4 {
    font-size: 0.6rem;
  }

  .university-name small {
    font-size: 0.55rem;
  }

  .download-btn {
    padding: 5px 10px;
    font-size: 0.65rem;
  }

  .hero-content h2 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 0.75rem;
  }

  .primary-btn {
    padding: 7px 18px;
    font-size: 0.75rem;
  }

  .cd-item {
    padding: 5px 8px;
    min-width: 50px;
  }

  .cd-item span {
    font-size: 1rem;
  }

  .cd-item p {
    font-size: 0.6rem;
  }
}