:root {
  --brown: #e9e2e2;
  --light: #fff;
  --dark: #3b2b22;
  --bg: #fefcf9;
  --accent: #8c1515;
  --shadow: rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  background-color: var(--bg);
  color: var(--dark);
  line-height: 1.7;
}

header {
  background: linear-gradient(var(--brown));
  color: var(--light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 10px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: 1.5px;
  animation: slideInLeft 1s ease-out;
}

.btn {
  padding: 10px 20px;
  background-color: var(--accent);
  color: var(--light);
  border: none;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn:hover {
  background-color: var(--light);
  color: var(--accent);
  border: 2px solid var(--accent);
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.banner {
  position: relative;
  height: 90vh;
  background: url("banner-one.jpg") center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  perspective: 1000px;
  overflow: hidden;
}

.confetti-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  opacity: 0.8;
  animation: fall 5s linear infinite;
  transform: rotate(45deg);
}

@keyframes fall {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px #fff6e1, 0 0 20px #a77c5a;
  }

  to {
    text-shadow: 0 0 30px #fff, 0 0 50px #a77c5a;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.card,
.convocation-box {
  background-color: var(--light);
  border: none;
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 18px var(--shadow);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  opacity: 0;
  transform: translateY(40px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card.show,
.convocation-box.show {
  opacity: 1;
  transform: translateY(0);
}

.card:hover,
.convocation-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.card h2,
.convocation-box h3 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--dark);
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 10px;
}

.card h2::after,
.convocation-box h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
}

.convocation-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  flex-wrap: wrap;
}

.convocation-box {
  display: flex;
  flex-direction: column;
}

.convocation-box img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
  height: 200px;
  object-fit: cover;
}

footer {
  text-align: center;
  font-size: 0.95rem;
  padding: 60px 20px;
  border-top: 1px solid #d8cfc5;
  background: linear-gradient(var(--brown));
  color: var(--dark);
}

footer p {
  margin-bottom: 10px;
}

#topBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 20px;
  cursor: pointer;
  display: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

#topBtn:hover {
  background-color: var(--dark);
  transform: translateY(-3px);
}

@media (max-width: 992px) {
  .banner {
    height: 70vh;
  }
}

@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 15px;
  }

  .banner {
    height: 60vh;
  }

  .banner-content h1 {
    font-size: 2.2rem;
  }

  .convocation-boxes {
    grid-template-columns: 1fr;
  }

  .card,
  .convocation-box {
    padding: 20px;
  }

  #topBtn {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

.modal-content {
  width: 1800px;
  max-width: 100%;
  margin: 2% auto;
  padding: 30px;
  border-radius: 10px;
  background-color: #fff;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  animation: fadeInModal 0.3s ease;
}

.modal-content-alert {
  width: 600px;
  max-width: 100%;
  margin: 2% auto;
  padding: 30px;
  border-radius: 10px;
  background-color: #fff;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  animation: fadeInModal 0.3s ease;
}

.modal-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 20px;
  top: 15px;
  cursor: pointer;
}

.close-button:hover {
  color: #000;
}

.modal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  /* Two columns */
  gap: 20px;
  margin-top: 20px;
}

.modal-form-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  /* Two columns */
  gap: 20px;
  margin-top: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 6px;
}

.form-group input,
select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
}

.common-error-msg {
  background-color: #ffe6e6;
  color: #cc0000;
  padding: 10px 15px;
  margin-bottom: 15px;
  border: 1px solid #cc0000;
  border-radius: 4px;
  font-weight: bold;
}

.common-success-msg {
  background-color: #e1e3e3;
  color: #2a743a;
  padding: 10px 15px;
  margin-bottom: 15px;
  border: 1px solid #c0c6be;
  border-radius: 4px;
  font-weight: bold;
}

.checkbox-wrapper {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.checkbox-wrapper input[type="checkbox"] {
  margin: 0;
}

.checkbox-wrapper label {
  margin: 0;
  font-weight: 500;
  font-size: 16px;
  color: #2c1e1e;
}

.checkbox-wrapper label span {
  color: red;
  margin-left: 5px;
}

.checkboxes {
  display: flex;
  gap: 4px;
}

.Undergraduate-heading {
  display: inline-block;
  padding: 10px 15px;
  border-bottom: 4px solid #007bff;
  /* Change color to anything */
  color: #333;
  font-weight: bold;
  font-size: 20px;
}

.Undergraduate-heading {
  display: inline-block;
  padding: 10px 15px;
  border-bottom: 4px solid;
  border-image: linear-gradient(to right, #ff4b2b, #ff416c, #ff6a00) 1;
  color: #333;
  font-weight: bold;
  font-size: 20px;
}

/* Responsive: stack inputs on small screens */
@media (max-width: 600px) {
  .modal-form-grid,
  .modal-form-grid2 {
    grid-template-columns: 1fr;
  }

  .checkbox-wrapper {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@keyframes fadeInModal {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .banner-content h1 {
    font-size: 1.8rem;
  }

  .banner-content p {
    font-size: 1rem;
  }
}

/* Header */
.modal-header {
  background: linear-gradient(to right, #6a5ae0, #8a3ef2);
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
}

.close-btn {
  font-size: 20px;
  cursor: pointer;
}

/* Body */
.modal-body {
  display: flex;
  gap: 15px;
  padding: 20px;
}

/* Payment Option Styles */
.payment-option {
  flex: 1;
  padding: 15px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  transition: transform 0.2s;
}

.payment-option:hover {
  transform: scale(1.05);
}

/* bKash */
.payment-option.bkash {
  background: linear-gradient(to right, #ff4d79, #ff7aa2);
  color: white;
}

.bkash-badge {
  background: #c50048;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

/* Bank */
.payment-option.bank {
  background: white;
  border: 1px solid #ddd;
  color: black;
}

.bank-icon {
  font-size: 18px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .modal-content {
    width: 90%;
    max-width: 400px;
  }

  .modal-body {
    flex-direction: column;
    gap: 10px;
  }

  .payment-option {
    justify-content: center;
    text-align: center;
    padding: 12px;
  }

  .payment-option .bkash-badge,
  .payment-option .bank-icon {
    display: inline-block;
  }
}

@media (max-width: 480px) {
  .modal-header {
    padding: 10px;
  }

  .modal-header h2 {
    font-size: 16px;
  }

  .close-btn {
    font-size: 18px;
  }

  .payment-option {
    font-size: 14px;
    padding: 10px;
  }

  .bkash-badge {
    font-size: 10px;
    padding: 1px 5px;
  }
}
