/* =============================
   Hero Section
   ============================= */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/images/hero-section/bg-hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.7;
    z-index: 1;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/images/hero-section/stripe.webp');
    background-size: cover;
    background-position: 20%;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: 2;
}

.detail-section{
    background-color: #FFFFFF !important;
}

.overlay-hero {
    z-index: 3;
}

/* =============================
   Typography
   ============================= */
.about-title {
    color: #414651;
}

.gradient-text-ai {
    background: linear-gradient(90deg, #7873F5 0%, #EC77AB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #717680;
    max-width: 700px;
}

/* =============================
   Buttons
   ============================= */
.btn-register {
    opacity: 1;
    border-radius: 4px;
    padding: 8px 16px;
    gap: 10px;
    border: none;
    background: #004EEB;
    box-shadow: 0px 4px 12px 0px #004EEB66;
    color: #FFFFFF;
}

.btn-register:hover {
    background: #0041d6;
    box-shadow: 0px 6px 16px 0px #0041d666;
}

/* =============================
   Responsive
   ============================= */
@media (min-width: 993px) and (max-width: 1146px) {
    .hero-content {
        margin-top: 130px !important;
    }
}

@media (min-width: 1200px) and (max-width: 1440px) {
    .hero-content {
        margin-top: 130px !important;
    }
}

@media (max-width: 1024px) {
    .title1-sophia {
        font-size: 16px !important;
    }
}

@media (max-width: 768px) {
    .h1-nohemi {
        font-size: 28px;
    }

    .hero-texts {
        max-width: 400px;
    }

    .hero-content {
        margin-top: 130px !important;
    }
}

@media (max-width: 414px) {
    .detail-section {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* =============================
   Filter Bar
   ============================= */
.events-filter-bar {
    padding-bottom: 0.5rem;
    /* border-bottom: 1px solid #E5E7EB; */
}

/* ── Sort Tabs ── */
.events-tab {
    opacity: 1;
    border-radius: 4px;
    border-width: 1px;
    padding-top: 8px;
    padding-right: 16px;
    padding-bottom: 8px;
    padding-left: 16px;
    gap: 10px;
    text-decoration: none;

    background: #F9F9FB;
    border: 1px solid #DCDFEA;
    color: #404968;
}

.events-tab:hover {
    border-color: #004EEB;
    color: #004EEB;
}

.events-tab.active {
    background: #EFF4FF;
    border: 1px solid #004EEB;
    color: #004EEB;
}

/* ── Search & Category ── */
.events-search-group {
    flex-wrap: nowrap;
}

.events-search-wrap {
    min-width: 220px;
}

.events-search-input {
    padding-right: 2.4rem;
    border-radius: 6px;
    height: 40px;
    font-size: 0.875rem;
    min-width: 500px;
}

.events-search-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    pointer-events: none;
    font-size: 0.85rem;
}

.events-search-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    background: none;
    border: none;
    padding: 0;
    font-size: 0.85rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s;
}

.events-search-btn:hover {
    color: #004EEB;
}

.events-search-clear {
    position: absolute;
    right: 2.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 0.8rem;
    text-decoration: none;
    line-height: 1;
    transition: color 0.15s;
}

.events-search-clear:hover {
    color: #EF4444;
}

.events-search-input:not(:placeholder-shown) {
    padding-right: 4rem;
}

.events-category-select {
    min-width: 160px;
    height: 40px;
    font-size: 0.875rem;
    border-radius: 6px;
}

/* =============================
   Event Card
   ============================= */
.event-card {
    background: #FAFAFA;
    border: 1px solid #D5D7DA;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s, transform 0.2s;
}

.event-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
    transform: translateY(-2px);
}

/* ── Card Image ── */
.event-card-img-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.event-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.event-card:hover .event-card-img {
    transform: scale(1.03);
}

/* ── Category Badge ── */
.event-category-badge {
    opacity: 1;
    border-radius: 100px;
    border-width: 1px;
    padding-top: 4px;
    padding-right: 8px;
    padding-bottom: 4px;
    padding-left: 8px;
    gap: 8px;
    width: fit-content;

    background: #EFF4FF;
    border: 1px solid #D5D9EB;
    color: #004EEB;
}

.event-category-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #84ADFF;
    display: inline-block;
    flex-shrink: 0;
}

/* ── Card Text ── */
.event-card-title {
    color: #535862;
}

.event-card-desc {
    line-height: 140%;
    color: #717680;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Card Meta ── */
.event-card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-card-meta span{
    color: #717680;
    list-style: 140%;
    font-size:12px;
}

.event-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.78rem;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.event-meta-icon {
    color: #9CA3AF;
    font-size: 0.8rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ── View Details Button ── */
.event-card-link {
    text-decoration: none;
    color: inherit;
}

.btn-event-details {
    border: 1.5px solid #004EEB;
    color: #004EEB;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 8px 0;
    text-align: center;
    background: transparent;
    transition: background 0.15s, color 0.15s;
}

.btn-event-details:hover {
    background: #004EEB;
    color: #fff;
}

/* =============================
   Empty State
   ============================= */
.events-empty-state {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.events-empty-icon {
    font-size: 3.5rem;
    color: #D1D5DB;
}

/* =============================
   Register Event Modal
   ============================= */
.event-modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14);
    text-align: start;
}

#registerEventModalLabel{
    color: #414651;
}

.btn-close{
    position: absolute;
    right: 50px;
    top: 10px;
    color: #404968;
}

.subtitle-modal {
    color: #535862;
    max-width: 470px;
}

.form-label{
    font-family: Sophia Pro;
    font-weight: 500 !important;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0%;
    color: #414651 !important;
}

/* ── Quill editor in event form ── */
#evtDescriptionEditor .ql-editor {
    min-height: 160px;
    font-size: 0.9rem;
}

/* ── Image Upload Zone ── */
.event-upload-zone {
    border: 2px dashed #D1D5DB;
    border-radius: 10px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: #F9FAFB;
    width: 100%;
}

.event-upload-zone:hover,
.event-upload-zone--drag {
    border-color: #004EEB;
    background: #EEF2FF;
}

.event-upload-zone--invalid {
    border-color: #dc3545 !important;
    background: #FFF5F5;
}

.event-upload-icon {
    font-size: 2rem;
    color: #9CA3AF;
}

.event-img-preview {
    max-height: 160px;
    max-width: 100%;
    object-fit: cover;
}

/* ── Image preview wrapper + remove button ── */
.evt-img-preview-wrap {
    position: relative;
    display: inline-block;
}

.evt-img-remove-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: background 0.15s, transform 0.1s;
    backdrop-filter: blur(2px);
}

.evt-img-remove-btn:hover {
    background: #dc3545;
    transform: scale(1.1);
}

/* =============================
   Responsive Adjustments
   ============================= */
@media (max-width: 768px) {
    .events-filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .events-search-group {
        width: 100%;
        flex-wrap: wrap;
    }

    .events-search-wrap,
    .events-category-select {
        flex: 1 1 100%;
        min-width: 0;
    }
}

@media (max-width: 576px) {
    .event-card-img-wrap {
        height: 180px;
    }
}

/* =============================
   Event Detail / Show Page
   ============================= */
.event-show-section {
    background-color: #FFFFFF;
}

.event-show-container {
    max-width: 860px;
}

/* ── Back Link ── */
.event-show-back {
    width: 188px;
    opacity: 1;
    border-radius: 100px;
    border-width: 1px;
    padding-top: 8px;
    padding-right: 12px;
    padding-bottom: 8px;
    padding-left: 8px;
    gap: 4px;

    display: flex;
    justify-content: center;
    align-items: center;
    background: #F9F9FB;
    border: 1px solid #DCDFEA;
    color: #404968;
    text-decoration: none;
}

.event-show-back:hover {
    color: #004EEB;
    border-color: #004EEB;
}

/* ── Banner ── */
.event-show-banner-wrap {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    max-height: 420px;
}

.event-show-banner {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

/* ── Title ── */
.event-show-title {
    font-size: 1.85rem;
    color: #181D27;
    line-height: 1.25;
}

/* ── Posted date ── */
.event-show-updated {
    font-size: 0.875rem;
    color: #717680;
}

/* ── Meta strip ── */
.event-show-meta-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #E5E7EB;
}

.event-show-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #717680;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 500;
    background: #F9F9FB;
    border: 1px solid #DCDFEA;
    border-radius: 100px;
    padding: 4px 12px;
}

.event-show-meta-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ── Body ── */
.event-show-body {
    font-size: 1rem;
    line-height: 1.75;
    color: #414651;
}

.event-show-body p {
    margin-bottom: 1.25rem;
}

.event-show-body h2,
.event-show-body h3 {
    font-family: 'Nohemi', sans-serif;
    font-weight: 600;
    color: #181D27;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

/* ── Prev / Next Nav ── */
.event-show-nav {
    border-top: 1px solid #E5E7EB;
}

.event-show-nav-btn {
    font-size: 0.875rem;
    border: 1px solid #DCDFEA;
    border-radius: 6px;
    padding: 8px 20px;
    color: #404968;
    background: #F9F9FB;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.event-show-nav-btn:hover {
    border-color: #004EEB;
    color: #004EEB;
    background: #EFF4FF;
}

.btn-return{
    opacity: 1;
    padding-top: 8px;
    padding-right: 12px;
    padding-bottom: 8px;
    padding-left: 12px;
    gap: 8px;
    border-radius: 12px;
    border-width: 1px;
    top: 40px;
    left: 120px;

    position: absolute;
    top: 70px;
    z-index: 100;

    background: #F3F4F6;
    border: 1px solid #D9DCE2;
    color: #525459;

    text-decoration: none;
    width: fit-content;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .event-show-title {
        font-size: 1.4rem;
    }

    .event-show-banner-wrap {
        max-height: 260px;
    }

    .event-show-banner {
        max-height: 260px;
    }
}


@media (max-width: 500px) {
    .events-search-input{
        min-width: 100%;
    }

    .hero {
        min-height: 450px !important;
    }

    .hero-content {
        margin-top: 100px!important;
    }

    .btn-return{
        top: 30px;
    }

    .btn-close{
        display: none;
    }
}

@media (max-width: 414px) {
    .btn-return {
        left: 90px;
    }

    .hero {
        min-height: 370px !important;
    }
}

@media (max-width: 390px) {
    .btn-return {
        left: 80px;
    }
}

@media (max-width: 360px) {
    .btn-return {
        left: 60px;
    }
}

/* =============================
   Date Preview Helper
   ============================= */
.evt-date-preview {
    font-size: 0.78rem;
    color: #004EEB;
    font-family: 'Sophia Pro', sans-serif;
    font-weight: 500;
}

/* =============================
   Quill editor in modal
   ============================= */
#evtDescriptionEditor {
    background: #fff;
    border-radius: 0 0 6px 6px;
}

#evtDescriptionEditor.is-invalid-quill {
    border: 1px solid #dc3545;
}

.ql-toolbar.ql-snow {
    border-radius: 6px 6px 0 0;
}

.ql-container.ql-snow {
    border-radius: 0 0 6px 6px;
}

/* =============================
   Review Step
   ============================= */

/* ── Details card ── */
.evt-review-card {
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    overflow: hidden;
}

.evt-review-card-header {
    background: #F9FAFB;
    border-bottom: 1px solid #E5E7EB;
    padding: 10px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #374151;
    font-family: 'Sophia Pro', sans-serif;
}

.evt-review-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 16px;
}

.evt-review-field {
    padding: 12px 0;
    border-bottom: 1px solid #F3F4F6;
}

.evt-review-field:last-child {
    border-bottom: none;
}

.evt-review-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9CA3AF;
    margin-bottom: 4px;
    font-family: 'Sophia Pro', sans-serif;
}

.evt-review-value {
    font-size: 0.9rem;
    color: #374151;
    font-family: 'Sophia Pro', sans-serif;
    line-height: 1.6;
}

.evt-review-tz {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    background: #EFF4FF;
    color: #004EEB;
    border-radius: 4px;
    padding: 1px 6px;
    margin-left: 4px;
}

.evt-review-description {
    font-size: 0.875rem;
    line-height: 1.65;
}

.evt-review-description ul,
.evt-review-description ol {
    padding-left: 1.25rem;
    margin-bottom: 0;
}

.evt-review-banner {
    max-width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

/* =============================
   Register button on show page
   ============================= */
.btn-event-register {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #004EEB;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 12px rgba(0,78,235,.25);
}

.btn-event-register:hover {
    background: #0041d6;
    color: #fff;
    box-shadow: 0 6px 16px rgba(0,78,235,.35);
}

/* =============================
   Review — Notice Boxes
   ============================= */
.evt-review-notice {
    border-radius: 10px;
    padding: 14px 16px;
    font-family: 'Sophia Pro', sans-serif;
}

.evt-review-notice--info {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #1E40AF;
}

.evt-review-notice--warning {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    color: #92400E;
}

.evt-review-notice-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.evt-review-notice-subtitle {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.evt-review-notice-list {
    padding-left: 1.1rem;
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.65;
}

.evt-review-notice-list li + li {
    margin-top: 3px;
}

/* =============================
   Event Submitted Success Modal
   ============================= */
.evt-success-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.evt-success-icon {
    font-size: 3.5rem;
    color: #22C55E;
    filter: drop-shadow(0 4px 12px rgba(34, 197, 94, 0.35));
}