*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: #fff; color: #1e0a3c; line-height: 1.5; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ===== Header ===== */
.event-header { background: #fff; border-bottom: 1px solid #e0e0e0; padding: 0 24px; height: 72px; display: flex; align-items: center; position: sticky; top: 0; z-index: 100; }
.event-header-container { max-width: 1320px; width: 100%; margin: 0 auto; display: flex; align-items: center; gap: 24px; }
.event-logo { display: flex; align-items: center; flex-shrink: 0; }
.event-logo img { height: 36px; width: auto; display: block; }

.event-search-bar { display: flex; align-items: center; border: 1px solid #d0d0d0; border-radius: 4px; overflow: hidden; height: 46px; flex: 1; max-width: 520px; transition: border-color 0.2s; }
.event-search-bar:focus-within { border-color: #a0a0a0; }
.event-search-input-wrapper { display: flex; align-items: center; flex: 1; padding: 0 12px; gap: 8px; }
.event-search-input { border: none; outline: none; font-size: 14px; color: #333; width: 100%; background: transparent; font-family: inherit; }
.event-search-input::placeholder { color: #888; }
.event-search-divider { width: 1px; height: 28px; background: #d0d0d0; flex-shrink: 0; }
.event-location-wrapper { display: flex; align-items: center; flex: 1; padding: 0 12px; gap: 8px; }
.event-location-input { border: none; outline: none; font-size: 14px; color: #333; width: 100%; background: transparent; font-family: inherit; }
.event-location-input::placeholder { color: #888; }
.event-search-btn { width: 46px; height: 46px; background: #d1410c; border: none; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.2s; }
.event-search-btn:hover { background: #b83a0b; }
.event-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; flex-shrink: 0; }
.event-nav-link { font-size: 14px; color: #333; font-weight: 500; transition: color 0.2s; white-space: nowrap; }
.event-nav-link:hover { color: #d1410c; }
.event-nav-link-signin { color: #666; }
.event-nav-link-signin:hover { color: #333; }
.event-nav-dropdown { position: relative; }
.event-nav-dropdown-toggle { display: flex; align-items: center; gap: 4px; }

/* ===== Hero Banner ===== */
.event-hero-section { padding: 24px 24px 0; }
.event-hero-container { max-width: 1320px; margin: 0 auto; }
.event-hero-banner { position: relative; border-radius: 16px; overflow: hidden; min-height: 380px; display: flex; align-items: center; background: url('https://www.vision2030.gov.sa/media/r2dj43kr/inner-banner.webp') center/cover no-repeat; }
.event-hero-banner::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.35); }
.event-hero-content { position: relative; z-index: 1; padding: 48px 64px; max-width: 600px; }
.event-hero-label { display: inline-block; background: #ff8a8a; color: #1e0a3c; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 12px; border-radius: 4px; margin-bottom: 12px; }
.event-hero-title { margin-bottom: 24px; }
.event-hero-line { display: block; font-size: 36px; font-weight: 800; line-height: 1.2; text-transform: uppercase; padding: 4px 16px; width: fit-content; }
.event-hero-line-1 { background: #ff8a8a; color: #1e0a3c; margin-bottom: 4px; }
.event-hero-line-2 { background: #8a9bff; color: #1e0a3c; }
.event-hero-btn { display: inline-block; background: #fff; color: #1e0a3c; font-size: 14px; font-weight: 600; padding: 12px 24px; border-radius: 24px; transition: background 0.2s, transform 0.2s; border: none; }
.event-hero-btn:hover { background: #f5f5f5; transform: translateY(-1px); }

/* ===== Categories ===== */
.event-categories-section { padding: 40px 24px; }
.event-categories-container { max-width: 1320px; margin: 0 auto; }
.event-categories-grid { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.event-category-card { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 16px; border-radius: 12px; transition: background 0.2s; min-width: 100px; flex: 1; }
.event-category-card:hover { background: #f5f5f5; }
.event-category-icon { width: 64px; height: 64px; border-radius: 50%; border: 1px solid #e0e0e0; display: flex; align-items: center; justify-content: center; color: #1e0a3c; transition: border-color 0.2s, color 0.2s; }
.event-category-card:hover .event-category-icon { border-color: #d1410c; color: #d1410c; }
.event-category-name { font-size: 12px; font-weight: 500; color: #1e0a3c; line-height: 1.3; }

/* ===== Events List ===== */
.event-list-section { padding: 0 24px 48px; }
.event-list-container { max-width: 1320px; margin: 0 auto; }
.event-list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.event-list-title { font-size: 24px; font-weight: 700; color: #1e0a3c; }
.event-list-see-all { font-size: 14px; font-weight: 600; color: #3659e3; transition: color 0.2s; }
.event-list-see-all:hover { color: #1e0a3c; }
.event-list-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.event-card { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #eee; transition: box-shadow 0.2s, transform 0.2s; cursor: pointer; }
.event-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
.event-card-image-wrapper { position: relative; height: 160px; overflow: hidden; }
.event-card-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.event-card:hover .event-card-image { transform: scale(1.04); }
.event-card-badge { position: absolute; top: 12px; left: 12px; background: #fff; color: #d1410c; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 4px; text-transform: uppercase; }
.event-card-body { padding: 16px; }
.event-card-title { font-size: 15px; font-weight: 600; color: #1e0a3c; margin-bottom: 8px; line-height: 1.3; }
.event-card-date { font-size: 13px; color: #d1410c; font-weight: 500; margin-bottom: 4px; }
.event-card-location { font-size: 13px; color: #6f7287; margin-bottom: 8px; }
.event-card-price { font-size: 13px; color: #6f7287; }

/* ===== Events Browsing Header ===== */
.events-browsing-header { padding: 24px 24px 0; border-bottom: 1px solid #e0e0e0; }
.events-browsing-container { max-width: 1320px; margin: 0 auto; }
.events-browsing-title { font-size: 24px; font-weight: 700; color: #1e0a3c; display: flex; align-items: center; gap: 8px; }
.events-location-dropdown { font-size: 24px; font-weight: 700; color: #3659e3; background: none; border: none; padding: 0; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; transition: color 0.2s; font-family: inherit; }
.events-location-dropdown:hover { color: #1e0a3c; }
.events-location-dropdown svg { width: 18px; height: 18px; }

/* ===== Date Tabs ===== */
.events-date-tabs { padding: 0 24px; border-bottom: 1px solid #e0e0e0; }
.events-date-tabs-container { max-width: 1320px; margin: 0 auto; display: flex; gap: 0; }
.events-date-tab { padding: 12px 16px; font-size: 14px; font-weight: 500; color: #6f7287; border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s; white-space: nowrap; }
.events-date-tab:hover { color: #1e0a3c; }
.events-date-tab.active { color: #3659e3; border-bottom-color: #3659e3; }

/* ===== Events Section ===== */
.events-section-heading { font-size: 20px; font-weight: 700; color: #1e0a3c; margin-bottom: 20px; }

.event-card-status { font-size: 12px; font-weight: 500; color: #6f7287; text-transform: uppercase; margin-bottom: 4px; letter-spacing: 0.3px; }
.event-card-promoted { font-size: 12px; font-weight: 500; color: #6f7287; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.event-card-promoted svg { color: #6f7287; }

/* ===== Destinations ===== */
.event-destinations-section { padding: 48px 24px 24px; background: #f8f7fa; }
.event-destinations-container { max-width: 1320px; margin: 0 auto; }
.event-destinations-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.event-destinations-title { font-size: 20px; font-weight: 700; color: #1e0a3c; }
.event-destinations-nav { display: flex; gap: 8px; }
.event-destinations-nav-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #dbdae3; background: #fff; display: flex; align-items: center; justify-content: center; color: #1e0a3c; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.event-destinations-nav-btn:hover { border-color: #1e0a3c; background: #1e0a3c; color: #fff; }
.event-destinations-scroll { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
.event-destinations-scroll::-webkit-scrollbar { display: none; }
.event-destination-card { position: relative; flex: 0 0 260px; height: 180px; border-radius: 16px; overflow: hidden; scroll-snap-align: start; display: block; }
.event-destination-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.event-destination-card:hover .event-destination-image { transform: scale(1.05); }
.event-destination-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.25); }
.event-destination-name { position: absolute; bottom: 16px; left: 16px; font-size: 18px; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }

/* ===== Popular Cities ===== */
.event-popular-cities-section { padding: 24px 24px 48px; background: #f8f7fa; }
.event-popular-cities-container { max-width: 1320px; margin: 0 auto; }
.event-popular-cities-title { font-size: 20px; font-weight: 700; color: #1e0a3c; margin-bottom: 24px; }
.event-popular-cities-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.event-popular-city-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: #fff; border: 1px solid #e0e0e0; border-radius: 20px; font-size: 13px; font-weight: 500; color: #1e0a3c; transition: border-color 0.2s, box-shadow 0.2s; }
.event-popular-city-link:hover { border-color: #1e0a3c; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.event-popular-city-link svg { color: #6f7287; }

/* ===== Just Added Section ===== */
.event-just-added-section { padding: 0 24px 48px; }
.event-just-added-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.event-just-added-card { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #eee; transition: box-shadow 0.2s, transform 0.2s; cursor: pointer; text-decoration: none; color: inherit; display: block; }
.event-just-added-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
.event-just-added-image-wrapper { position: relative; height: 180px; overflow: hidden; border-radius: 12px 12px 0 0; }
.event-just-added-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; display: block; }
.event-just-added-card:hover .event-just-added-image { transform: scale(1.04); }
.event-just-added-body { padding: 12px 12px 16px; }
.event-just-added-badge { display: inline-block; background: #00a651; color: #fff; font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 4px; text-transform: uppercase; margin-bottom: 8px; }
.event-just-added-title { font-size: 14px; font-weight: 600; color: #1e0a3c; margin-bottom: 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.event-just-added-meta { font-size: 13px; color: #1e0a3c; font-weight: 500; margin-bottom: 2px; }
.event-just-added-location { font-size: 13px; color: #6f7287; margin-bottom: 2px; }
.event-just-added-price { font-size: 13px; color: #6f7287; margin-bottom: 4px; }
.event-just-added-promoted { font-size: 12px; font-weight: 500; color: #6f7287; display: flex; align-items: center; gap: 4px; }
.event-just-added-promoted svg { color: #6f7287; }

/* ===== Featured Organizers ===== */
.event-organizers-section { padding: 48px 24px; background: #f8f7fa; }
.event-organizers-header { margin-bottom: 24px; }
.event-organizers-title { font-size: 20px; font-weight: 700; color: #1e0a3c; margin-bottom: 4px; }
.event-organizers-subtitle { font-size: 13px; color: #6f7287; }
.event-organizers-slider { position: relative; display: flex; align-items: center; gap: 8px; }
.event-organizers-nav-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #dbdae3; background: #fff; display: flex; align-items: center; justify-content: center; color: #1e0a3c; cursor: pointer; transition: border-color 0.2s, background 0.2s; flex-shrink: 0; z-index: 2; }
.event-organizers-nav-btn:hover { border-color: #1e0a3c; background: #1e0a3c; color: #fff; }
.event-organizers-scroll-wrapper { position: relative; flex: 1; overflow: hidden; }
.event-organizers-scroll { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
.event-organizers-scroll::-webkit-scrollbar { display: none; }
.event-organizer-card { position: relative; flex: 0 0 200px; background: #fff; border-radius: 12px; padding: 20px; text-align: center; scroll-snap-align: start; border: 1px solid #eee; }
.event-organizer-close { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border: none; background: none; color: #9b9b9b; font-size: 16px; cursor: pointer; line-height: 1; padding: 0; }
.event-organizer-close:hover { color: #333; }
.event-organizer-logo { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 24px; font-weight: 700; overflow: hidden; }
.event-organizer-logo svg { width: 32px; height: 32px; }
.event-organizer-name { font-size: 14px; font-weight: 600; color: #1e0a3c; margin-bottom: 4px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.event-organizer-followers { font-size: 12px; color: #6f7287; margin-bottom: 16px; }
.event-organizer-follow-btn { display: inline-block; width: 100%; background: #3659e3; color: #fff; font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 4px; border: none; cursor: pointer; transition: background 0.2s; }
.event-organizer-follow-btn:hover { background: #2a47b8; }

/* ===== Event Details Page ===== */
.event-details-section { padding: 24px; }
.event-details-container { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.event-details-main { min-width: 0; }
.event-details-sidebar { min-width: 0; }
.event-details-image { width: 100%; height: 400px; object-fit: cover; border-radius: 16px; margin-bottom: 24px; }
.event-details-title { font-size: 32px; font-weight: 800; color: #1e0a3c; margin-bottom: 12px; }
.event-details-meta { display: flex; gap: 24px; margin-bottom: 24px; font-size: 14px; color: #6f7287; }
.event-details-meta span { display: flex; align-items: center; gap: 6px; }
.event-details-description { font-size: 16px; line-height: 1.6; color: #39364f; margin-bottom: 32px; }
.event-details-ticket-card { background: #fff; border: 1px solid #eee; border-radius: 16px; padding: 24px; position: sticky; top: 88px; }
.event-details-ticket-price { font-size: 28px; font-weight: 800; color: #1e0a3c; margin-bottom: 16px; }
.event-details-ticket-btn { display: block; width: 100%; background: #d1410c; color: #fff; font-size: 16px; font-weight: 600; padding: 14px; border-radius: 8px; text-align: center; transition: background 0.2s; }
.event-details-ticket-btn:hover { background: #b83a0b; }
.event-details-info-card { background: #f8f7fa; border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.event-details-info-card h3 { font-size: 14px; font-weight: 700; color: #1e0a3c; margin-bottom: 8px; text-transform: uppercase; }
.event-details-info-card p { font-size: 14px; color: #6f7287; }

/* ===== Booking Page ===== */
.booking-section { padding: 40px 24px; }
.booking-container { max-width: 800px; margin: 0 auto; }
.booking-title { font-size: 28px; font-weight: 800; color: #1e0a3c; margin-bottom: 24px; }
.booking-card { background: #fff; border: 1px solid #eee; border-radius: 16px; padding: 32px; margin-bottom: 24px; }
.booking-card h2 { font-size: 20px; font-weight: 700; color: #1e0a3c; margin-bottom: 20px; }
.booking-form-group { margin-bottom: 20px; }
.booking-form-group label { display: block; font-size: 14px; font-weight: 600; color: #1e0a3c; margin-bottom: 8px; }
.booking-form-group input,
.booking-form-group select,
.booking-form-group textarea { width: 100%; padding: 12px 16px; border: 1px solid #dbdae3; border-radius: 8px; font-size: 14px; font-family: inherit; outline: none; transition: border-color 0.2s; }
.booking-form-group input:focus,
.booking-form-group select:focus,
.booking-form-group textarea:focus { border-color: #a0a0a0; }
.booking-form-group textarea { min-height: 100px; resize: vertical; }
.booking-summary { background: #f8f7fa; border-radius: 12px; padding: 20px; margin-bottom: 24px; }
.booking-summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.booking-summary-row.total { font-size: 18px; font-weight: 700; color: #1e0a3c; border-top: 1px solid #dbdae3; padding-top: 12px; margin-top: 12px; }
.booking-submit-btn { display: block; width: 100%; background: #d1410c; color: #fff; font-size: 16px; font-weight: 600; padding: 16px; border-radius: 8px; text-align: center; transition: background 0.2s; border: none; cursor: pointer; }
.booking-submit-btn:hover { background: #b83a0b; }

/* ===== Footer ===== */
.event-footer { background: #1e0a3c; color: #dbdae3; padding: 48px 24px 24px; }
.event-footer-container { max-width: 1320px; margin: 0 auto; }
.event-footer-top { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-bottom: 40px; }
.event-footer-heading { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.event-footer-links li { margin-bottom: 10px; }
.event-footer-links a { font-size: 13px; color: #dbdae3; transition: color 0.2s; }
.event-footer-links a:hover { color: #fff; }
.event-footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); }
.event-footer-copyright { font-size: 13px; color: #6f7287; }
.event-footer-legal { display: flex; gap: 20px; }
.event-footer-legal a { font-size: 13px; color: #dbdae3; transition: color 0.2s; }
.event-footer-legal a:hover { color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 1199px) {
    .event-list-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
    .event-nav { display: none; }
    .event-search-bar { max-width: 100%; }
    .event-hero-line { font-size: 28px; }
    .event-list-grid { grid-template-columns: repeat(2, 1fr); }
    .event-footer-top { grid-template-columns: repeat(2, 1fr); }
    .event-details-container { grid-template-columns: 1fr; }
    .event-details-sidebar { order: -1; }
    .event-details-ticket-card { position: static; }
}
@media (max-width: 767px) {
    .event-hero-content { padding: 32px 24px; }
    .event-hero-line { font-size: 24px; }
    .event-categories-grid { justify-content: center; }
    .event-category-card { min-width: 80px; }
    .event-list-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
    .event-header { padding: 0 16px; height: 64px; }
    .event-header-container { gap: 12px; }
    .event-logo img { height: 28px; }
    .event-search-bar { height: 40px; }
    .event-search-btn { width: 40px; height: 40px; }
    .event-location-wrapper { display: none; }
    .event-search-divider { display: none; }
    .event-hero-section { padding: 16px 16px 0; }
    .event-hero-banner { min-height: 300px; }
    .event-categories-section { padding: 24px 16px; }
    .event-list-section { padding: 0 16px 32px; }
    .event-footer { padding: 32px 16px 16px; }
    .event-footer-top { grid-template-columns: 1fr; gap: 24px; }
    .event-footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .events-browsing-header { padding: 20px 16px 0; }
    .events-browsing-title { font-size: 20px; }
    .events-location-dropdown { font-size: 20px; }
    .events-date-tabs { padding: 0 16px; overflow-x: auto; }
    .events-date-tabs-container { flex-wrap: nowrap; }
    .events-date-tab { padding: 10px 12px; font-size: 13px; }
    .event-just-added-section { padding: 0 16px 32px; }
    .event-just-added-grid { grid-template-columns: 1fr; }
    .event-just-added-image-wrapper { height: 200px; }
    .event-organizers-section { padding: 32px 16px; }
    .event-organizers-slider { gap: 0; }
    .event-organizers-nav-btn { display: none; }
    .event-organizer-card { flex: 0 0 170px; padding: 16px; }
    .event-destinations-section { padding: 32px 16px 16px; }
    .event-destinations-header { margin-bottom: 16px; }
    .event-destinations-title { font-size: 18px; }
    .event-destination-card { flex: 0 0 220px; height: 150px; border-radius: 12px; }
    .event-popular-cities-section { padding: 16px 16px 32px; }
    .event-popular-cities-title { font-size: 18px; }
    .event-popular-city-link { font-size: 12px; padding: 6px 12px; }
    .events-page-title { padding: 24px 16px 12px; }
    .events-page-title h1 { font-size: 24px; }
    .events-filters { padding: 0 16px 16px; }
    .booking-section { padding: 24px 16px; }
    .booking-card { padding: 20px; }
    .event-details-image { height: 250px; }
    .event-details-title { font-size: 24px; }
    .event-details-meta { flex-direction: column; gap: 8px; }
}
