/* ===============================
   EVENT VIEW PAGE CSS
   File: event_view.css
   =============================== */

/* -------------------------------
   General Wrap
---------------------------------*/
.event-view-wrap {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #222;
}

/* Event Container: two columns */
.event-container {
  display: grid;
  grid-template-columns: 1fr 360px; /* main content left, sidebar fixed width */
  gap: 30px;
  align-items: start;
}

/* -------------------------------
   MAIN CONTENT (LEFT)
---------------------------------*/
.event-main-box {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Event Title */
.event-title {
  font-size: 26px;
  color: #324776;
  margin-bottom: 20px;
}

/* Event Image */
.event-image-wrap {
  margin-bottom: 20px;
}

.event-image-wrap img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  max-height: 450px;
  border: 1px solid #324776;
}

/* Event Description */
.event-description {
  line-height: 1.7;
  font-size: 16px;
  color: #222;
  white-space: pre-line;
}

/* -------------------------------
   SIDEBAR (RIGHT)
---------------------------------*/
.event-sidebar {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  align-self: start;
}

/* Sidebar Event Widget */
.event-detail-widget h3 {
  font-size: 25px;
  margin-bottom: 12px;
  color: #324776;
}

.event-sidebar .meta {
  font-size: 15px;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.5;
}

/* Sidebar buttons */
.view-btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.view-btn:hover {
  opacity: 0.9;
}

.open-registration {
  background: #324776;
  margin-bottom: 10px;
}

.share-btn {
  margin-right: 7px;
  margin-top: 6px;
  font-size: 13px;
  display: inline-block;
  text-align: center;
  color: #fff;
}

/* Divider between widgets */
.sidebar-widget-divider {
  height: 1px;
  background: rgba(0,0,0,0.06);
  border-radius: 2px;
  margin: 20px 0;
}

/* -------------------------------
   MODAL REGISTRATION FORM
---------------------------------*/
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-box {
  background: #fff;
  width: 100%;
  max-width: 480px;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  position: relative;
  animation: fadeInUp 0.35s ease-out;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 28px;
  cursor: pointer;
  color: #666;
}

.modal-close:hover {
  color: #000;
}

.registration-form label {
  font-size: 14px;
  font-weight: 600;
  margin: 10px 0 4px;
  display: block;
}

.registration-form input,
.registration-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 15px;
}

.register-btn {
  background: #324776;
  color: #fff;
  width: 100%;
  padding: 10px 0;
  border-radius: 6px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.register-btn:hover {
  background: #005dc1;
}

/* Registration message feedback */
#registrationMessage {
  font-weight: 600;
  margin-top: 12px;
  text-align: center;
  line-height: 1.4;
}

#registrationMessage.success {
  color: green;
}

#registrationMessage.error {
  color: red;
}

/* Fade in animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -------------------------------
   RESPONSIVE
---------------------------------*/
@media (max-width: 1100px) {
  .event-container {
    grid-template-columns: 1fr 300px;
  }
}

@media (max-width: 992px) {
  .event-container {
    grid-template-columns: 1fr;
  }

  .event-main-box,
  .event-sidebar {
    padding: 16px;
    margin-bottom: 20px;
  }

  .event-sidebar {
    order: 2;
  }

  .event-title {
    text-align: center;
    font-size:20px;
  }
  
  .event-detail-widget h3{
    font-size:18px;
  }
}