/* ===============================
   SINGLE EVENT PAGE
================================ */

/* Single Event Page */
.single-event-page {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
  background-color: #ffffff; /* White background */
  box-sizing: border-box;
}

.event-meta {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.event-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.event-description {
  background: #f9f9f9;
  padding: 40px 20px;
}

.event-description .container {
  max-width: 1000px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.8;
}

/* ===============================
   TABS SECTION
================================ */

/* Tabs */
.event-tabs-container {
  padding: 0px 0px;
}

.event-tabs-container .container {
  margin: 80px !important;
}

/* Wrapper for tabs + sidebar */
.tabs-wrapper {
    display: flex;
    gap: 30px;               /* space between tabs and sidebar */
}

/* Tabs Section (70%) */
.tabs-section {
    flex: 0 0 70%;           /* 70% width */
}

/* Sidebar Section (30%) */
.sidebar-section {
    flex: 0 0 30%;           /* 30% width */
    background: #f9f9f9;     /* optional background */
    padding: 20px;
    box-sizing: border-box;
}

/* Responsive: stack vertically on smaller screens */
@media (max-width: 992px) {
    .tabs-wrapper {
        flex-direction: column;
    }
    .tabs-section,
    .sidebar-section {
        flex: 1 1 100%;
    }
}


.tabs-navigation {
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

/* Tab buttons */
.tab-btn {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 150%;
    text-transform: uppercase;
    color: #173E83;

    background: #ffffff;
    border: none;
    outline: none;
    box-shadow: none;
    border-radius: 0;
    appearance: none;

    padding: 15px 0;
    cursor: pointer;

    border-bottom: 2px solid transparent;
    transition: none;

    text-align: left;
    white-space: nowrap; /* prevents breaking into multiple lines */

    margin-left: 90px;   /* space between buttons */
}

/* Remove left margin from first button */
.tab-btn:first-child {
    margin-left: 0;
}



/* Hover & focus — keep flat */
.tab-btn:hover,
.tab-btn:focus {
    color: #173E83;
    background: #ffffff;
    border-bottom-color: transparent;
    outline: none;
    box-shadow: none;
    border-radius: 0;
}

/* Active tab indicator — straight line */
.tab-btn.active {
    border-bottom: 2px solid #173E83; /* 2px straight line */
    border-radius: 0;                  
    color: #173E83;
}



.tab-content {
  display: none;
  animation: fadeIn 0.5s;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ===============================
   ABOUT CONTENT TAB
================================ */

/* About Content */
/* About Content */
.about-content {
    font-family: 'Inter', sans-serif; /* updated font */
    font-weight: 400;                 /* Regular */
    font-style: normal;               /* Regular style */
    font-size: 16px;
    line-height: 150%;                /* updated line height */
    letter-spacing: 0;
    color: #000000;                   /* text color black */
}


/* ===============================
   GALLERY GRID
================================ */

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 245px); /* fixed width */
    gap: 20px;
}

/* Gallery Item */
.gallery-item {
    width: 245px;
    position: relative;
    overflow: hidden;
    border-radius: 20px; /* radius 20px */
    box-shadow: none;   /* optional: remove shadow */
    cursor: default;    /* no pointer */
    transition: none;   /* remove animation */
}

/* Remove hover effect */
.gallery-item:hover {
    transform: none;
}

/* Image */
.gallery-item img {
    width: 100%;
    width: 245px;
    height: 269px;          /* updated height */
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

/* Remove caption text completely */
.gallery-caption {
    display: none;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}


/* ===============================
   GALLERY LIGHTBOX
================================ */

/* Lightbox */
.gallery-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  padding: 20px;
}

.gallery-lightbox img {
  max-width: 90%;
  max-height: 80vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 50px;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
}

.lightbox-caption {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 18px;
  text-align: center;
}

/* ===============================
   LOCATION DETAILS
================================ */

/* Location Details */
.location-details h3 {
  font-size: 28px;
  color: #0073aa;
  margin-bottom: 15px;
}

.location-details .address {
  font-size: 18px;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
}

.map-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: 0;
}

/* ===============================
   BACK BUTTON
================================ */

/* Back Button */
.back-to-events {
  padding: 40px 20px;
  background: #f9f9f9;
}

.back-to-events .container {
  max-width: 1200px;
  margin: 0 auto;
}

.btn-back {
  display: inline-block;
  padding: 12px 30px;
  background: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-back:hover {
  background: #005a87;
}

/* ===============================
   SIDEBAR STYLES
================================ */
/* Sidebar section container */
.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
    background: white;
}

/* Base sidebar box */
.sidebar-box {
    padding: 24px;
    border-radius: 12px;
}

/* Details box styling */
.sidebar-section .sidebar-box.details-box {
    height: auto;
    min-height: 200px;
    background: linear-gradient(148.31deg, #F0F6FF 0%, #FFFFFF 100%) !important;
    border: 1px solid #C1DDF3 !important;
    box-sizing: border-box;
    padding: 24px;
}

/* Section title - LEFT ALIGNED */
.sidebar-section .sidebar-title {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 150%;
    letter-spacing: 0;
    text-align: left; /* Changed to left */
    color: #173E83;
    display: inline-block;
    margin: 0 0 20px 0;
    position: relative;
}

/* Underline below title - ONLY UNDER TEXT */
.sidebar-section .sidebar-title::after {
    content: "";
    display: block;
    width: 100%; /* Only under the text width */
    height: 0.5px;
    background-color: #173E83;
    margin-top: 2px;
}

/* Section title - LEFT ALIGNED */
.sidebar-section .sidebar-title_join {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 150%;
    letter-spacing: 0;
    text-align: left; /* Changed to left */
    color: #E31E24;
    display: inline-block;
    margin: 0 0 20px 0;
    position: relative;
}

/* Underline below title - ONLY UNDER TEXT */
.sidebar-section .sidebar-title_join::after {
    content: "";
    display: block;
    width: 100%; /* Only under the text width */
    height: 0.5px;
    background-color: #E31E24;
    margin-top: 2px;
}

/* Company name */
.sidebar-section .company-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 150%;
    letter-spacing: 0;
    color: #173E83;
    margin-bottom: 12px;
}

/* Combined event info with line breaks */
.sidebar-section .event-info {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
    letter-spacing: 0;
    color: #000000;
    margin: 0;
}

/* Details box styling */
.sidebar-section .sidebar-box.join-box {
    height: auto;
    min-height: 200px;
    background: linear-gradient(148.31deg, #FEF5F4 0%, #FFFFFF 100%) !important;
    border: 1px solid #FCE3E3 !important;
    box-sizing: border-box;
    padding: 24px;
}

/* Join box */
.sidebar-section .join-box {
    background: #FFFFFF;
    border: 1px solid #C1DDF3;
    border-radius: 12px;
    padding: 24px;
}

/* Join image */
.sidebar-section .sidebar-box.join-image img {
    width: 185%;
    height: 80%;
    border-radius: 12px;
    margin: 16px 0;
    display: block;
}

/* Join link */
.sidebar-section .join-link {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    margin: 16px 0;
    color: #E31E24;
    display: inline-flex;
    gap: 6px;
}

.sidebar-section .join-link:hover {
    text-decoration: underline;
}

.no-gallery-text {
    grid-column: 1 / -1;   /* spans across all columns */
    text-align: center;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 16px;
    padding: 60px 20px;
    color: #000000;
}


/* ===============================
   RESPONSIVE DESIGN
================================ */

/* Responsive */
@media (max-width: 768px) {
  .banner-content h1 {
    font-size: 32px;
  }

  .event-banner {
    height: 300px;
  }

  .banner-overlay h1 {
    font-size: 28px;
  }

  .event-meta {
    flex-direction: column;
    gap: 10px;
  }

  .tabs-navigation {
    flex-direction: column;
  }

  .tab-btn {
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }

  .events-table {
    font-size: 16px;
  }

  .events-table th,
  .events-table td {
    padding: 12px 10px;
  }
  
}
