.feature-event{
    background-color: $lightPrimary;
}

.feature-event-wrapper{
  padding-top: 40px;
}
.feature-event-item{
    margin-bottom: 20px;
    .event-img{
        width: 100%;
        max-height: 200px;
        border-radius: 6px;
        overflow: hidden;
        img{
            height: 100%;
            width: 100%;
            object-fit: cover;
        }
    }
    h4{
        color: #fff;
        font-size: 18px;
        font-weight: 400;
        font-family: $secondaryFont;
        margin-top: 5px;
        @include text-ellips-2 ;
        &:hover{
           text-decoration: underline;
        }
    }
    h6{
        color: #f3f3f3;
        margin-top: 10px;
        font-size: 13px;
        
    }
    p{
        color: #efefef;
        font-weight: 400;
        font-size: 14px;
        font-style: italic;
        @include text-ellips-2 ;
        span{
            color: #fff;
        }
    }
}



.events-hero {
  background: linear-gradient(120deg, #05468b 0%, #0c2988 100%);
  color: white;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;

  &::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  }
}

.events-title {
  font-size: 40px;
  font-weight: 500;
  margin-bottom: 16px;
  position: relative;
  color: #fff;
  font-family: $secondaryFont;
}

.events-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 600px;
  color: #fff;
}

/* Events Search Section */
.events-search {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-top: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);

  .view-switch {
    display: flex;
    gap: 10px;

    .view-btn {
      width: 40px;
      height: 40px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(255, 255, 255, 0.1);
      color: white;
      cursor: pointer;
      transition: all 0.3s ease;

      &.active {
        background: white;
        color: $primaryColor;
      }
    }
  }

  .filter-grid {
    // display: grid;
    // grid-template-columns: repeat(1, 1fr);
    // gap: 16px;
    .filter-select {
      width: 100%;
      padding: 14px 16px;
      border: 1px solid rgba(255, 255, 255, 0.3);
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.1);
      color: white;
      font-size: 1rem;

      option {
        color:  $blackColor;
      }
    }
  }

  /* Search Button */
  .events-search-btn {
    background: white;
    color: $primaryColor;
    border: none;
    border-radius: 10px;
    padding: 14px 28px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;

    &:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }
  }
}


.event-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  @include custom-shade;
  margin-bottom: 20px; 
  
  &:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);

    .event-image img {
      transform: scale(1.05);
    }
  }

  /* Event Image */
  .event-image {
    height: 220px;
    overflow: hidden;
    position: relative;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
    }

    /* Badge */
    .event-badge {
      position: absolute;
      top: 16px;
      right: 16px;
      background: $primaryColor;
      color: white;
      padding: 6px 14px;
      border-radius: 20px;
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.5px;
      max-width: fit-content;

      &.upcoming {
        background: rgb(89, 154, 240);
      }

      &.past {
        background: $secondaryColor;
      }
    }
  }

  /* Event Content */
  .event-content {
    padding: 20px;
    .type{
        padding: 6px 16px;
        background-color: #e5ebf3;
        display: inline;
        border-radius: 35px;
        font-size: 14px;
        color: $primaryColor;
    }
    .event-date {
      display: flex;
      align-items: center;
      gap: 8px;
      color:$primaryColor;
      font-weight: 600;
      margin-bottom: 12px;
      font-size: 0.9rem;
    }

    .event-title {
      font-size: 1.25rem;
      font-weight: 500;
      color: $blackColor;
      margin: 6px 0 5px 0;
      line-height: 1.4;
      font-family: $secondaryFont;
      @include text-ellips-2;

      &:hover {
             text-decoration: underline;
          color: $primaryColor;
        } 
    }
    h6{
        color: $blackColor;
        font-size: 16px;
    }

    .event-excerpt {
      color: #475569;
      line-height: 1.6;
      flex: 1;
      font-size: 15px;
      color: $textColor;
      @include text-ellips-2;
      font-style: italic;
    }
  }
}

 
 
// Event Detail
.event-detail-container {
  .event-title-section {
    position: relative;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
  }

  .event-title {
    font-size: 44px;
    font-weight: 500;
    color: #333;
    margin-bottom: 1rem;
    font-family: $secondaryFont;
    line-height: 54px;
  }

  .event-subtitle {
    font-size: 1.25rem;
    color: #05468b;
    font-weight: 500;
    margin-bottom: 15px;
    max-width: 800px;
  }

  .event-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 1rem;
    margin-bottom: 1rem;
  }

  .tag-upcoming {
    background-color: rgba(56, 161, 105, 0.1);
    color: #38a169;
  }

  .tag-past {
    background-color: rgba(229, 62, 62, 0.1);
    color: #e53e3e;
  }

  .tag-conference {
    background-color: rgba(128, 90, 213, 0.1);
    color: #805ad5;
  }

  .event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #212529;
  }

  .meta-item i {
    color: #4299e1;
    font-size: 1rem;
    width: 20px;
    text-align: center;
  }

  /* Event Content Layout */
  .event-content {
    // display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
  }

  .event-main {
    flex: 2;
  }

  .event-sidebar {
    flex: 1;
  }
.event-section-title{
      font-size: 26px;
      font-family: $secondaryFont;
      font-weight: 500;
      line-height: 36px;
      margin-bottom: 14px;
    }
  /* Event Description */
  .event-description {
    margin-bottom: 3rem;
    
    p {
      margin-bottom: 1.5rem;
      color: $textColor;
      line-height: 1.8;
      font-weight: 300;
    }
  }

  /* Event Schedule */
  .schedule-section {
    margin-bottom: 3rem;
  }

  .schedule-item {
    background-color: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
    transition: all 0.3s ease;

    &:hover {
      border-color: #63b3ed;
      transform: translateY(-3px);
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    }
  }

  .schedule-time {
    font-weight: 600;
    color: #4299e1;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .schedule-title {
    font-weight: 600;
    color: #0f1a2e;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-family: $secondaryFont;
  }

  .schedule-speaker {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;

    i {
      color: #4299e1;
    }
  }

  .schedule-description {
    color: #212529;
    font-size: 15px;
    line-height: 1.7;
    font-weight: 300;
  }

  /* Speakers Section */
  .speakers-section {
    margin-bottom: 3rem;
  }

  .speaker-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: all 0.3s ease;

    &:hover {
      border-color: #63b3ed;
      transform: translateY(-3px);
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    }
  }

  .speaker-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #63b3ed;
  }

  .speaker-info {
    flex: 1;
  }

  .speaker-name {
    font-weight: 600;
    color: #0f1a2e;
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
  }

  .speaker-title {
    font-size: 0.95rem;
    color: #3182ce;
    margin-bottom: 0.5rem;
  }

  .speaker-bio {
    font-size: 15px;
    line-height: 1.7;
    font-weight: 300;
    color: $textColor;
  }

  /* Gallery Section */
  .gallery-section {
    margin-bottom: 3rem;
  }

  .gallery-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
  }

  .gallery-tab {
    padding: 0.75rem 1.5rem;
    border-radius: 8px 8px 0 0;
    background-color: #f8f9fa;
    color: #4a5568;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;

    &.active {
      background-color: #4299e1;
      color: #fff;
    }
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    transition: transform 0.3s ease;

    &:hover {
      transform: translateY(-5px);
    }

    .gallery-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s ease;
    }

    &:hover .gallery-image {
      transform: scale(1.05);
    }

    .gallery-caption {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
      color: #fff;
      padding: 1rem;
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    &:hover .gallery-caption {
      opacity: 1;
    }
  }

  /* Sidebar */
  .sidebar-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
  }

  .sidebar-title {
    font-weight: 600;
    color: #0f1a2e;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;

    &::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      width: 40px;
      height: 2px;
      background: linear-gradient(90deg, #4299e1, #63b3ed);
    }
  }

  .organizer-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .organizer-item {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .organizer-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    padding: 0.5rem;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
  }

  .organizer-name {
    font-weight: 500;
    color: #212529;
  }

  .document-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .document-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background-color: #ced3d82f;
    transition: all 0.3s ease;
    color: #212529;
    text-decoration: none;

    &:hover {
      background-color: #4299e1;
      color: #fff;
    }

    i {
      font-size: 1.25rem;
    }
  }

  .document-info {
    flex: 1;

    .document-name {
      font-weight: 500;
      margin-bottom: 0.25rem;
    }

    .document-size {
      font-size: 0.8rem;
      opacity: 0.7;
    }
  }

  /* Buttons */
  .btn-primary {
    background-color: #4299e1;
    border-color: #4299e1;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;

    &:hover {
      background-color: #3182ce;
      border-color: #3182ce;
      transform: translateY(-2px);
      box-shadow: 0 4px 6px rgba(66, 153, 225, 0.3);
    }
  }

  .btn-outline {
    background-color: transparent;
    border: 1px solid #4299e1;
    color: #4299e1;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;

    &:hover {
      background-color: #4299e1;
      color: #fff;
      transform: translateY(-2px);
      box-shadow: 0 4px 6px rgba(66, 153, 225, 0.3);
    }
  }
}
