/*--------------------------------------------------------------
# Custom Alert Modal Styles
--------------------------------------------------------------*/
.modal-content {
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  margin: 15px;
}

.modal-header {
  background: linear-gradient(135deg, #0d83fd, #409dfd);
  color: white;
  border-radius: 15px 15px 0 0;
  border: none;
  padding: 15px 20px;
}

.modal-header .btn-close {
  filter: brightness(0) invert(1);
  margin: 0;
}

.modal-header .modal-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-body {
  padding: 20px;
}

.modal-body img {
  width: auto;
  max-width: 90%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  margin-bottom: 25px;
  background: #f8f9fa;
  padding: 10px;
  border: 2px solid #e9ecef;
}

.modal-body h6 {
  color: #0d83fd;
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: 15px;
}

.modal-body h6:first-child {
  margin-top: 0;
}

/* Responsive styles for modal image */
@media (max-width: 768px) {
  .modal-body img {
    max-height: 280px;
    padding: 8px;
    margin-bottom: 20px;
  }
  
  .modal-dialog {
    margin: 10px;
  }
  
  .modal-content {
    margin: 0;
  }
}

@media (max-width: 576px) {
  .modal-body img {
    max-height: 250px;
    padding: 6px;
    border-radius: 8px;
  }
  
  .modal-body {
    padding: 15px;
  }
  
  .modal-header {
    padding: 12px 15px;
  }
}

.modal-body ul {
  padding-left: 20px;
  margin-bottom: 0;
}

.modal-body ul li {
  margin-bottom: 4px;
}

.modal-body p {
  margin-bottom: 10px;
  color: black;
}

.modal-footer {
  border: none;
  padding: 15px 20px 20px;
  justify-content: space-between;
}

.modal-footer .btn {
  border-radius: 25px;
  padding: 10px 25px;
  font-weight: 500;
}

/* Mobile Modal Styles */
@media (max-width: 768px) {
  .modal-dialog {
    margin: 10px;
    max-width: calc(100% - 20px);
  }
  
  .modal-content {
    margin: 0;
  }
  
  .modal-header {
    padding: 12px 15px;
  }
  
  .modal-header .modal-title {
    font-size: 1.1rem;
  }
  
  .modal-body {
    padding: 15px;
  }
  
  .modal-body img {
    max-height: 250px;
  }
  
  .modal-footer {
    padding: 10px 15px 15px;
    flex-direction: column;
    gap: 10px;
  }
  
  .modal-footer .btn {
    width: 100%;
    margin: 0;
  }
}

/* Extra small screens */
@media (max-width: 576px) {
  .modal-dialog {
    margin: 5px;
    max-width: calc(100% - 10px);
  }
  
  .modal-header .modal-title {
    font-size: 1rem;
  }
  
  .modal-body img {
    max-height: 200px;
  }
  
  .modal-footer .btn {
    padding: 8px 20px;
    font-size: 14px;
  }
}
/* Alert OVER */

/* Hackathon Button Group Styles */
.hackathon-btn-group {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.hackathon-btn {
  display: inline-block;
  padding: 0.75rem 2.2rem;
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: 32px;
  box-shadow: 0 2px 12px rgba(13,131,253,0.12);
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.2s;
  margin-bottom: 0.5rem;
}
.hackathon-btn-primary {
  background: linear-gradient(90deg, #0d83fd 60%, #409dfd 100%);
  color: #fff;
  border: none;
}
.hackathon-btn-primary:hover {
  background: linear-gradient(90deg, #409dfd 60%, #0d83fd 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(13,131,253,0.18);
  transform: scale(1.07);
}
.hackathon-btn-outline {
  background: #fff;
  color: #0d83fd;
  border: 2px solid #0d83fd;
}
.hackathon-btn-outline:hover {
  background: #0d83fd;
  color: #fff;
  box-shadow: 0 4px 16px rgba(13,131,253,0.18);
  transform: scale(1.07);
}
.hackathon-btn-success {
  background: linear-gradient(90deg, #28a745 60%, #5be584 100%);
  color: #fff;
  border: none;
}
.hackathon-btn-success:hover {
  background: linear-gradient(90deg, #5be584 60%, #28a745 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(40,167,69,0.18);
  transform: scale(1.07);
}

/*--------------------------------------------------------------
# Hackathon Section - Glassmorphism, Gradients, Interactive Effects, Responsive
--------------------------------------------------------------*/
.hackathon-card {
  border-radius: 28px;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 8px 32px rgba(13, 131, 253, 0.18), 0 1.5px 8px rgba(0,0,0,0.09);
  border: 1.5px solid rgba(13, 131, 253, 0.12);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.4s, transform 0.4s, background 0.4s;
  overflow: hidden;
  position: relative;
}
.hackathon-card::before {
  content: "";
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  z-index: 0;
  border-radius: 30px;
  background: linear-gradient(270deg, #0d83fd, #409dfd, #e3f0ff, #0d83fd);
  background-size: 600% 600%;
  animation: gradientMove 8s ease infinite;
  opacity: 0.18;
}
@keyframes gradientMove {
  0% {background-position:0% 50%}
  50% {background-position:100% 50%}
  100% {background-position:0% 50%}
}
.hackathon-card:hover {
  box-shadow: 0 16px 48px rgba(13, 131, 253, 0.28), 0 2px 12px rgba(0,0,0,0.13);
  transform: translateY(-6px) scale(1.02);
  background: rgba(240,248,255,0.98);
}
.hackathon-header {
  background: linear-gradient(120deg, #0d83fd 60%, #409dfd 100%);
  color: #fff;
  border-radius: 28px 28px 0 0;
  padding: 36px 48px 28px 48px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(13, 131, 253, 0.10);
  position: relative;
}
.hackathon-header h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin: 0;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.10);
  background: linear-gradient(90deg, #fff 10%, #e3f0ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
}
.hackathon-body {
  padding: 48px 48px 36px 48px;
  background: transparent;
  border-radius: 0 0 28px 28px;
  position: relative;
}
.hackathon-body h4 {
  color: #0d83fd;
  font-weight: 800;
  margin-top: 36px;
  font-size: 1.35rem;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  position: relative;
}
.hackathon-body h4::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #0d83fd 60%, #409dfd 100%);
  border-radius: 2px;
  margin: 8px 0 0 0;
}
.hackathon-body ul, .hackathon-body ol {
  margin-bottom: 24px;
  padding-left: 26px;
}
.hackathon-body ul li, .hackathon-body ol li {
  margin-bottom: 10px;
  font-size: 1.12rem;
  position: relative;
  padding-left: 10px;
  transition: color 0.3s;
}
.hackathon-body ul li::before {
  content: "";
  color: #409dfd;
  position: absolute;
  left: -18px;
  font-size: 1.2em;
  transition: color 0.3s;
}
.hackathon-body ul li:hover {
  color: #0d83fd;
}
.hackathon-body ol li {
  font-weight: 600;
}
.hackathon-table {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: 0 2px 12px rgba(13, 131, 253, 0.10);
  transition: box-shadow 0.3s;
}
.hackathon-table th {
  background: linear-gradient(90deg, #0d83fd 80%, #409dfd 100%);
  color: #fff;
  font-weight: 800;
  border: none;
  font-size: 1.12rem;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}
.hackathon-table td {
  border: none;
  font-size: 1.08rem;
  background: #f8faff;
  transition: background 0.2s;
}
.hackathon-table tr:hover td {
  background: #e3f0ff;
}
.hackathon-body hr {
  border: none;
  border-top: 2px dashed #0d83fd33;
  margin: 36px 0;
}
.hackathon-body p {
  font-size: 1.12rem;
  color: #222;
  margin-bottom: 22px;
  line-height: 1.7;
}
@media (max-width: 991px) {
  .hackathon-header, .hackathon-body {
    padding: 20px 10px;
  }
  .hackathon-header h2 {
    font-size: 1.6rem;
  }
}
@media (max-width: 576px) {
  .hackathon-card {
    border-radius: 14px;
  }
  .hackathon-header, .hackathon-body {
    padding: 8px 3px;
  }
  .hackathon-header h2 {
    font-size: 1.1rem;
  }
  .hackathon-body h4 {
    font-size: 1rem;
    margin-top: 10px;
  }
  .hackathon-table th, .hackathon-table td {
    font-size: 0.9rem;
    padding: 5px;
  }
}