/* Global & Layout */
html { scroll-behavior: smooth; }

.main-content-container {
    padding: 30px 140px 80px;
    background: transparent;
}

.events-grid-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Hero Banner */
.event-hero {
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

    .hero {
      background: linear-gradient(
        to bottom,
        #eef4fb 0%,
        #e4effa 30%,
        #d6e9fb 65%,
        #c3e0ff 100%
      );
      padding: 100px 140px 120px;
      position: relative;
      text-align: center;
    }

    .hero::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 60%;
      height: 1px;

      background: linear-gradient(
        to right,
        transparent,
        rgba(1,118,211,0.35),
        transparent
      );

      opacity: 0.6;
    }
    
    .hero-content {
      max-width: 900px;
      margin: 0 auto;
      position: relative;
      z-index: 1;
    }
    
    .hero h1 {
      font-size: 58px;
      font-weight: 800;
      line-height: 1.1;
      margin-bottom: 28px;
      
      color: var(--dark-blue);
    }
    
    .hero p {
      text-align: center;
      font-size: 18px;
      color: var(--text-secondary);
      line-height: 1.8;
      max-width: 800px;
      margin: 0 auto;
    }

.hero-content { max-width: 900px; margin: 0 auto; padding: 0 20px;}

.event-label { 
    background: #ff4757; padding: 6px 18px; border-radius: 50px; 
    font-size: 13px; text-transform: uppercase; font-weight: bold;
}
.event-label.past { background: #666 !important; }

.hero-title { font-size: 48px; margin: 20px 0 15px; line-height: 1.2; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }

.hero-meta-info {
    margin-bottom: 30px;
    font-size: 18px;
    display: flex;
    justify-content: center;
    gap: 25px;
    text-align: left;
}
.meta-item i { margin-right: 8px; color: var(--primary-blue); }
.meta-item { min-width: 130px;}

.btn-hero-register {
    display: inline-block; padding: 15px 40px; background: var(--primary-blue); color: var(--white);
    border-radius: 50px; font-weight: bold; text-decoration: none; font-size: 17px;
    transition: 0.3s ease; box-shadow: 0 5px 20px rgba(0,115,170,0.4);
}
.btn-hero-register:hover { background: var(--dark-blue); transform: translateY(-3px); }

/* Main Content Area */
.event-main-detail { flex: 0 0 65%; }

.content-box { 
    background: var(--white); padding: 35px; border-radius: 12px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); 
}

.section-subtitle { 
    border-bottom: 3px solid var(--primary-blue); display: inline-block; 
    margin-bottom: 25px; padding-bottom: 8px; font-size: 24px;
}

.entry-content { text-align: justify;}
.entry-content p { margin-top: 10px;}

.wp-block-image img { margin-top: 20px; margin-bottom: 10px;}

.registration-form-box { 
    margin-top: 40px; background: #f1f4f6; padding: 40px; 
    border-radius: 12px; border: 1px dashed var(--primary-blue); 
}

.registration-form-box h3 {
    font-size: 28px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

/* Sidebar Scroll System */
.event-sidebar-list {
    flex: 1;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-title { margin-bottom: 15px; font-size: 18px; font-weight: 700; color: var(--dark-blue); }

.timeline-list-scroll-box {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.timeline-list-scroll-box::-webkit-scrollbar {
    width: 6px;
}
.timeline-list-scroll-box::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.timeline-list-scroll-box::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
.timeline-list-scroll-box::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

.sidebar-event-card {
    display: flex; gap: 12px; background: var(--white); padding: 12px;
    border-radius: 8px; text-decoration: none; color: var(--dark-blue);
    margin-bottom: 12px; border: 1px solid #eee; transition: 0.3s;
}
.sidebar-event-card:hover { border-color: var(--primary-blue); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

.card-thumb { flex: 0 0 80px; height: 60px; border-radius: 4px; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }

.card-info h4 {
    font-size: 15px;
    margin: 0 0 5px 0;
    line-height: 1.4;
    color: var(--dark-blue);
    font-weight: 400;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;  
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-meta { font-size: 12px; color: #777; display: flex; align-items: center; gap: 8px; }

.badge-upcoming { color: #ff4757; font-weight: bold; font-size: 10px; text-transform: uppercase; }

.empty-event-sidebar { font-size: 13px; color: var(--text-secondary); font-style: italic;}

/* Event Form Styling */
.event-registration-form {
    background: transparent;
    margin-top: 20px;
}

.event-registration-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.event-registration-form .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-registration-form .form-group.full-width {
    width: 100%;
    margin-bottom: 15px;
}

.event-registration-form label {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark-blue);
    margin-bottom: 8px;
}

.event-registration-form input[type="text"],
.event-registration-form input[type="email"],
.event-registration-form input[type="tel"],
.event-registration-form select,
.event-registration-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: var(--white);
}

.event-registration-form input:focus,
.event-registration-form textarea:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.event-registration-form .form-submit {
    text-align: center;
    margin-top: 25px;
}

.event-registration-form input[type="submit"] {
    background: var(--primary-blue);
    color: var(--white);
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.event-registration-form input[type="submit"]:hover {
    background: var(--dark-blue);
}

.wpcf7-response-output {
    border-radius: 8px !important;
    margin: 20px 0 0 0 !important;
    padding: 15px !important;
}

/* Hero Section */
    .hero {
      background: linear-gradient(
        to bottom,
        #eef4fb 0%,
        #e4effa 30%,
        #d6e9fb 65%,
        #c3e0ff 100%
      );
      padding: 100px 140px 120px;
      position: relative;
      text-align: center;
    }

    .hero::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 60%;
      height: 1px;

      background: linear-gradient(
        to right,
        transparent,
        rgba(1,118,211,0.35),
        transparent
      );

      opacity: 0.6;
    }
    
    .hero-content {
      max-width: 900px;
      margin: 0 auto;
      position: relative;
      z-index: 1;
    }
    
    .hero h1 {
      font-size: 58px;
      font-weight: 800;
      line-height: 1.1;
      margin-bottom: 28px;
      
      color: var(--dark-blue);
    }
    
    .hero p {
      text-align: center;
      font-size: 18px;
      color: var(--text-secondary);
      line-height: 1.8;
      max-width: 800px;
      margin: 0 auto;
    }

    .main-content-container2 {
       text-align:center;
       padding: 60px 0;
       min-height: 300px;
    }

/* Responsive */
@media (max-width: 1024px) {
    .main-content-container {
        padding: 40px 30px;
    }

    .event-hero {
        height: 35vh;
        min-height: 300px;
        background-attachment: scroll;
    }

    .section-subtitle {
        font-size: 28px !important;
        margin-bottom: 15px;
    }

    .events-grid-layout {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
    }

    .event-main-detail {
        flex: 0 0 70%;
        width: 70%;
    }

    .event-sidebar-list {
        position: sticky;
        top: 80px;
    }

    .sidebar-event-card {
        padding: 8px;
        gap: 8px;
    }

    .card-thumb {
        flex: 0 0 60px;
        height: 45px;
    }

    .card-info h4 {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .card-meta {
        font-size: 10px;
    }

    .event-registration-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 768px) {
    .event-hero {
        height: 45vh;
    }
    .event-label {
        width: fit-content;
        margin: 0 auto;
    }
    .hero-title {
        font-size: 26px;
    }
    .btn-hero-register {
        padding: 8px 40px;
    }
    .hero-meta-info {
        margin-bottom: 15px;
        flex-direction: column;
    }
    .main-content-container {
        padding: 30px 20px;
    }
    .content-box {
        padding: 25px;
    }
    .section-subtitle {
        font-size: 20px !important;
        margin-bottom: 8px;
    }
    .events-grid-layout {
        flex-direction: column;
    }
    .event-main-detail, .event-sidebar-list {
        width: 100%;
        flex: 0 0 100%;
    }
}