/* =============================================
   EPA Events — frontend styles
   ============================================= */

/* Archive banner */
.epa-archive-banner {
    background: #0b5b20;
    padding: 130px 0 80px;
}
.epa-archive-banner h1 {
    margin: 0;
    font-size: 42px;
    font-weight: 800;
    color: #fff;
}

/* Type filter buttons */
.epa-type-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0 35px;
}
.epa-filter-btn {
    padding: 8px 20px;
    border: 2px solid #2c6e2c;
    border-radius: 30px;
    color: #2c6e2c;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all .2s;
}
.epa-filter-btn:hover,
.epa-filter-btn.active {
    background: #2c6e2c;
    color: #fff;
    text-decoration: none;
}

/* Events grid */
.epa-events-archive { padding: 50px 0; }
.epa-events-grid    { margin-top: 0; }

/* Event card */
.epa-event-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow .2s, transform .2s;
}
.epa-event-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.14);
    transform: translateY(-3px);
}
.epa-card-image-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    height: 200px;
}
.epa-card-img,
.epa-card-image-wrap img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.epa-event-card:hover .epa-card-img { transform: scale(1.04); }
.epa-card-img-placeholder {
    width: 100%;
    height: 200px;
    background: #e8f0e8;
}

/* Type badge */
.epa-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #2c6e2c;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .5px;
    z-index: 1;
}

.epa-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.epa-card-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
}
.epa-card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.epa-card-meta span svg { display: none; }
.epa-card-meta i { font-size: 14px; color: #2c6e2c; }
.epa-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.4;
}
.epa-card-title a { color: #1a1a1a; text-decoration: none; }
.epa-card-title a:hover { color: #2c6e2c; }
.epa-card-intro {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 15px;
}
.epa-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

/* Buttons */
.epa-btn {
    display: inline-block;
    background: #2c6e2c;
    color: #fff;
    padding: 9px 22px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background .2s;
    border: none;
    cursor: pointer;
}
.epa-btn:hover  { background: #1f501f; color: #fff; text-decoration: none; }
.epa-btn-full   { width: 100%; box-sizing: border-box; }

/* Status badges */
.epa-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}
.epa-status-open   { background: #e6f4e6; color: #2c6e2c; }
.epa-status-closed { background: #f4f4f4; color: #888; }
.epa-status-full   { background: #fdecea; color: #c62828; }

/* Pagination */
.epa-pagination {
    margin-top: 30px;
    text-align: center;
}
.epa-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
}
.epa-pagination .page-numbers.current { background: #2c6e2c; color: #fff; border-color: #2c6e2c; }

/* =============================================
   Single event
   ============================================= */

/* Hero banner */
.epa-single-banner {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.epa-single-banner-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.epa-single-banner-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}
.epa-single-banner-content {
    position: relative;
    z-index: 1;
    padding: 40px 0;
    width: 100%;
}
.epa-single-banner-content .epa-type-badge {
    position: static;
    display: inline-block;
    margin-bottom: 12px;
}
.epa-single-banner-content h1 {
    color: #fff;
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 15px;
    line-height: 1.25;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.epa-banner-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: rgba(255,255,255,.9);
    font-size: 15px;
}
.epa-banner-meta span {
    display: flex;
    align-items: center;
    gap: 7px;
}

/* Single content */
.epa-single-event { padding: 50px 0 60px; }

.epa-single-intro {
    background: #f7faf7;
    border-left: 4px solid #2c6e2c;
    padding: 18px 22px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.epa-single-agenda {
    margin-bottom: 40px;
}
.epa-single-agenda h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8f0e8;
}

/* Sidebar */
.epa-single-sidebar {
    background: #f7faf7;
    border-radius: 8px;
    padding: 25px;
    position: sticky;
    top: 100px;
}
.epa-sidebar-item {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    border-bottom: 1px solid #e0eae0;
}
.epa-sidebar-item:last-of-type { border-bottom: none; }
.epa-sidebar-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #888;
    margin-bottom: 4px;
}
.epa-sidebar-value {
    font-size: 15px;
    color: #222;
    font-weight: 500;
}

/* Registration form */
.epa-registration-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #e8f0e8;
}
.epa-registration-section h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}
.epa-form { max-width: 580px; }
.epa-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.epa-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}
.epa-form-group label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}
.epa-form-group input {
    padding: 10px 14px;
    border: 1.5px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color .2s;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}
.epa-form-group input:focus {
    outline: none;
    border-color: #2c6e2c;
    box-shadow: 0 0 0 3px rgba(44,110,44,.1);
}
.epa-capacity-note {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}
.epa-submit-btn {
    background: #2c6e2c;
    color: #fff;
    border: none;
    padding: 13px 35px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background .2s;
    font-family: inherit;
}
.epa-submit-btn:hover { background: #1f501f; }

/* Notices */
.epa-notice {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 500;
}
.epa-notice-success { background: #e6f4e6; color: #1b5e1b; border: 1px solid #b2d8b2; }
.epa-notice-error   { background: #fdecea; color: #b71c1c; border: 1px solid #f5c6c6; }

.epa-reg-status {
    font-size: 15px;
    color: #666;
    padding: 15px 0;
}

/* Responsive */
@media (max-width: 767px) {
    .epa-form-row { grid-template-columns: 1fr; }
    .epa-single-banner { min-height: 260px; }
    .epa-single-banner-content h1 { font-size: 26px; }
    .epa-archive-banner h1 { font-size: 30px; }
}

/* Calendar box */
.epa-calendar-box {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0eae0;
}
.epa-calendar-box h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #888;
    margin: 0 0 12px;
}
.epa-cal-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 8px;
    color: #222;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.epa-cal-btn:hover {
    border-color: #2c6e2c;
    box-shadow: 0 2px 8px rgba(44,110,44,.1);
    color: #222;
    text-decoration: none;
}
.epa-cal-btn svg, .epa-cal-btn img {
    flex-shrink: 0;
    border-radius: 4px;
}

/* =============================================
   EKSPONENDID — Archive list
   ============================================= */
.epa-exhibitors-archive { padding: 48px 0 80px; }

.epa-alpha-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 32px 0 40px;
}
.epa-alpha-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 2px solid #0b5b20;
    border-radius: 4px;
    color: #0b5b20;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.epa-alpha-btn:hover {
    background: #0b5b20;
    color: #fff;
}

.epa-alpha-group { margin-bottom: 40px; }

.epa-alpha-heading {
    font-size: 26px;
    font-weight: 800;
    color: #0b5b20;
    border-bottom: 3px solid #0b5b20;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.epa-exhibitor-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 16px;
    border-bottom: 1px solid #e8e8e8;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
    border-radius: 6px;
}
.epa-exhibitor-row:hover {
    background: #f4f9f4;
    color: inherit;
    text-decoration: none;
}

.epa-ex-logo-wrap {
    flex: 0 0 80px;
    width: 80px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    border-radius: 4px;
    overflow: hidden;
}
.epa-ex-logo {
    max-width: 80px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.epa-ex-logo-placeholder {
    width: 80px;
    height: 60px;
    background: #e8e8e8;
}

.epa-ex-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.epa-ex-name {
    font-weight: 700;
    font-size: 16px;
    color: #1a1a1a;
}
.epa-ex-stand {
    font-size: 13px;
    color: #666;
}
.epa-ex-stand i { color: #0b5b20; margin-right: 4px; }

.epa-ex-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.epa-ex-arrow {
    color: #0b5b20;
    font-size: 18px;
    flex: 0 0 24px;
}

/* =============================================
   EKSPONENDID — Single page
   ============================================= */
.epa-ex-banner { background: #0b5b20; }
.epa-ex-banner .epa-single-banner-img { display: none; }

.epa-single-exhibitor { padding: 48px 0 80px; }

.epa-ex-logo-display {
    margin-bottom: 32px;
    padding: 24px;
    background: #f8f8f8;
    border-radius: 8px;
    display: inline-block;
}
.epa-ex-logo-img {
    max-height: 120px;
    width: auto;
    display: block;
}

.epa-ex-description {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.epa-badge-sidebar {
    display: inline-block;
    margin-bottom: 4px;
}

@media (max-width: 767px) {
    .epa-exhibitor-row { flex-wrap: wrap; }
    .epa-ex-badges { order: 3; width: 100%; }
    .epa-ex-arrow { display: none; }
    .epa-alpha-nav { margin: 20px 0 28px; }
}

/* Exhibitor banner with logo on right */
.epa-ex-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.epa-ex-banner-text { flex: 1; }
.epa-ex-banner-logo {
    flex: 0 0 auto;
    background: #fff;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 200px;
}
.epa-ex-banner-logo-img {
    max-height: 80px;
    max-width: 180px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}
@media (max-width: 767px) {
    .epa-ex-banner-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
    .epa-ex-banner-logo { max-width: 140px; }
}

/* =============================================
   EKSPONENT — Cover + Profile bar (new layout)
   ============================================= */

/* Cover image / green fallback */
.epa-ex-cover {
    background: #0b5b20;
    height: 280px;
    position: relative;
    margin-top: 0;
}
.epa-ex-cover--image {
    background-size: cover;
    background-position: center;
}
.epa-ex-cover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

/* Profile bar */
.epa-ex-profile-bar {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    position: relative;
    z-index: 10;
}
.epa-ex-profile-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 24px 0;
}
.epa-ex-profile-logo {
    flex: 0 0 auto;
    width: 140px;
    min-height: 90px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-top: -50px; /* overlap up into cover */
}
.epa-ex-profile-logo-img {
    max-width: 116px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.epa-ex-profile-info { flex: 1; }
.epa-ex-profile-name {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 8px;
    color: #1a1a1a;
}
.epa-ex-profile-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.epa-ex-profile-stand {
    font-size: 14px;
    color: #555;
}
.epa-ex-profile-stand i { color: #0b5b20; margin-right: 4px; }

/* Main content spacing */
.epa-single-exhibitor { padding: 40px 0 80px; }

@media (max-width: 767px) {
    .epa-ex-cover { height: 180px; }
    .epa-ex-profile-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
    .epa-ex-profile-logo { margin-top: -40px; width: 100px; min-height: 70px; }
    .epa-ex-profile-name { font-size: 22px; }
}

/* =============================================
   EKSPONENT — Profile bar v2 (clean)
   ============================================= */
.epa-badge-header {
    display: inline-block;
    margin-bottom: 10px;
}

.epa-ex-profile-bar {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.epa-ex-profile-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
}
.epa-ex-profile-logo {
    flex: 0 0 auto;
    width: 120px;
    height: 80px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.epa-ex-profile-logo-img {
    max-width: 100px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.epa-ex-profile-info { flex: 1; }
.epa-ex-profile-name {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}
.epa-ex-profile-stand {
    font-size: 14px;
    color: #555;
}
.epa-ex-profile-stand i { color: #0b5b20; margin-right: 4px; }

/* Banner image inside content */
.epa-ex-cover-image-wrap {
    margin: 32px 0;
    border-radius: 8px;
    overflow: hidden;
}
.epa-ex-cover-img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    display: block;
}

.epa-single-exhibitor { padding: 0 0 80px; }

@media (max-width: 767px) {
    .epa-ex-profile-inner { gap: 16px; }
    .epa-ex-profile-logo { width: 80px; height: 60px; }
    .epa-ex-profile-name { font-size: 18px; }
}

/* Banner image in profile bar (right side) */
.epa-ex-profile-banner {
    flex: 0 0 auto;
    max-width: 320px;
    border-radius: 6px;
    overflow: hidden;
    margin-left: auto;
}
.epa-ex-profile-banner-img {
    width: 320px;
    max-width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}
@media (max-width: 991px) {
    .epa-ex-profile-banner { display: none; }
}

/* Banner image in left content column */
.epa-ex-cover-image-wrap {
    margin-bottom: 28px;
    border-radius: 8px;
    overflow: hidden;
}
.epa-ex-cover-img {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    display: block;
}

/* Fix profile bar logo size */
.epa-ex-profile-logo {
    width: 100px !important;
    height: 70px !important;
    min-height: unset !important;
    padding: 8px !important;
}
.epa-ex-profile-logo-img,
.epa-ex-profile-logo img {
    max-width: 84px !important;
    max-height: 54px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}
.epa-ex-profile-inner {
    padding: 16px 0 !important;
}

/* Align banner image top with sidebar top */
.epa-single-exhibitor .row {
    align-items: flex-start;
}
.epa-single-exhibitor .col-lg-8,
.epa-single-exhibitor .col-lg-4 {
    padding-top: 32px;
}
.epa-ex-cover-image-wrap {
    margin-top: 0 !important;
    margin-bottom: 24px;
}

/* Logo in sidebar */
.epa-sidebar-logo {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
.epa-sidebar-logo-img,
.epa-sidebar-logo img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Reduce top whitespace on exhibitor page */
.epa-single-exhibitor { padding-top: 0 !important; }
.epa-single-exhibitor .col-lg-8,
.epa-single-exhibitor .col-lg-4 { padding-top: 20px !important; }

/* +20px top padding on exhibitor columns */
.epa-single-exhibitor .col-lg-8,
.epa-single-exhibitor .col-lg-4 { padding-top: 40px !important; }
