/* Edoobox Plugin Styles */

/* === Event List === */
.edoobox-events {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.edoobox-event-card {
    display: flex;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    border: 1px solid #e8e8e8;
}

.edoobox-event-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.edoobox-event-image {
    flex: 0 0 200px;
    overflow: hidden;
}

.edoobox-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edoobox-event-content {
    flex: 1;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* === Header === */
.edoobox-event-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6366f1;
    background: #eef2ff;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.25rem;
}

.edoobox-event-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a2e;
}

/* === Meta Info === */
.edoobox-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #555;
}

.edoobox-event-date,
.edoobox-event-location,
.edoobox-event-instructor {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.edoobox-event-date svg,
.edoobox-event-location svg,
.edoobox-event-instructor svg {
    flex-shrink: 0;
    color: #6366f1;
}

/* === Description === */
.edoobox-event-description {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === Dates List === */
.edoobox-dates-list {
    margin: 0.75rem 0;
}

.edoobox-dates-heading {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.edoobox-dates {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.35rem;
}

.edoobox-date-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.5rem 0.6rem;
    background: #f9fafb;
    border-radius: 4px;
    font-size: 0.88rem;
    border-left: 3px solid #4a8c3f;
}

.edoobox-date-open {
    border-left-color: #4a8c3f;
}

.edoobox-date-urgent {
    border-left-color: #a47936;
}

.edoobox-date-closed {
    border-left-color: #8b2d2d;
}

.edoobox-date-day {
    font-weight: 600;
    color: #1a1a2e;
    min-width: 130px;
}

.edoobox-date-time {
    color: #555;
}

.edoobox-date-desc {
    color: #888;
    font-size: 0.82rem;
    font-style: italic;
}

/* === Footer === */
.edoobox-event-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.edoobox-price-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
}

.edoobox-event-footer .btn {
    margin-left: auto;
}

a.edoobox-cta,
a.edoobox-cta.external-link,
a.edoobox-cta.external-link.no-image {
    background: #a47936 !important;
    border-color: #a47936 !important;
    color: #fff !important;
    background-image: none !important;
    padding: 0.5rem 1.25rem !important;
    font-weight: 600;
    border-radius: 0.1rem;
    text-decoration: none !important;
}

a.edoobox-cta:hover,
a.edoobox-cta.external-link:hover {
    background: #8a6530 !important;
    border-color: #8a6530 !important;
    color: #fff !important;
}

/* === Badges === */
.edoobox-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.edoobox-badge-available {
    background: #e8f5e3;
    color: #2d5a27;
}

.edoobox-badge-urgent {
    background: #fdf3e3;
    color: #7a5a22;
}

.edoobox-badge-closed {
    background: #f5e3e3;
    color: #6b2222;
}

/* === Grid / Cards Layout === */
.edoobox-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.edoobox-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    border: 1px solid #e8e8e8;
}

.edoobox-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.edoobox-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.edoobox-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edoobox-card-body {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.edoobox-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-top: 1px solid #f0f0f0;
}

/* === Compact Layout === */
.edoobox-events-compact {
    gap: 0;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
}

.edoobox-compact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.15s ease;
}

.edoobox-compact-item:last-child {
    border-bottom: none;
}

.edoobox-compact-item:hover {
    background: #f9fafb;
}

.edoobox-compact-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
    padding: 0.25rem;
    background: #eef2ff;
    border-radius: 6px;
    text-align: center;
    line-height: 1.2;
}

.edoobox-compact-day {
    font-size: 1.25rem;
    font-weight: 700;
    color: #6366f1;
}

.edoobox-compact-month {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    color: #6366f1;
}

.edoobox-compact-year {
    font-size: 0.65rem;
    color: #999;
}

.edoobox-compact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.edoobox-compact-info strong {
    font-size: 0.95rem;
    color: #1a1a2e;
}

.edoobox-compact-location,
.edoobox-compact-price {
    font-size: 0.8rem;
    color: #666;
}

.edoobox-compact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #6366f1;
    transition: background-color 0.15s ease;
}

.edoobox-compact-link:hover {
    background: #eef2ff;
}

/* === Detail View === */
.edoobox-event-detail {
    margin: 2rem 0;
}

.edoobox-detail-hero {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.edoobox-detail-hero img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.edoobox-detail-header {
    margin-bottom: 1.5rem;
}

.edoobox-detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0.5rem 0 0;
}

.edoobox-detail-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.edoobox-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.edoobox-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.edoobox-meta-item strong {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
}

.edoobox-detail-description {
    line-height: 1.7;
    color: #333;
}

/* === Dates Table === */
.edoobox-dates-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.edoobox-dates-table th {
    text-align: left;
    padding: 0.75rem;
    background: #f9fafb;
    border-bottom: 2px solid #e8e8e8;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
}

.edoobox-dates-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

/* === Action === */
.edoobox-detail-action {
    margin: 2rem 0;
    text-align: center;
}

.edoobox-detail-action .btn-lg {
    padding: 0.75rem 2.5rem;
    font-size: 1.1rem;
}

/* === No Events === */
.edoobox-no-events {
    text-align: center;
    padding: 3rem 1rem;
    color: #888;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

/* === Responsive === */
@media (max-width: 639px) {
    .edoobox-event-card {
        flex-direction: column;
    }

    .edoobox-event-footer .btn {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    .edoobox-detail-meta {
        grid-template-columns: 1fr;
    }

    .edoobox-detail-title {
        font-size: 1.4rem;
    }

    .edoobox-dates-table {
        font-size: 0.8rem;
    }

    .edoobox-dates-table th,
    .edoobox-dates-table td {
        padding: 0.5rem;
    }
}

/* === Pricing === */
.pricing-intro {
    padding-top: 2rem;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    align-items: start;
}

.pricing-card {
    position: relative;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: box-shadow 0.2s ease;
}

.pricing-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.pricing-featured {
    border-color: #a47936;
    border-width: 2px;
    box-shadow: 0 4px 20px rgba(164, 121, 54, 0.15);
}

.pricing-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: #a47936;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    white-space: nowrap;
}

.pricing-header {
    text-align: center;
}

.pricing-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #231f20;
}

.pricing-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: #777;
}

.pricing-price {
    text-align: center;
    padding: 0.75rem 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.pricing-old {
    display: block;
    font-size: 1.3rem;
    color: #b44;
    text-decoration: line-through;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.pricing-amount {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #231f20;
    line-height: 1.1;
}

.pricing-note {
    display: block;
    font-size: 0.8rem;
    color: #777;
    margin-top: 0.25rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.pricing-features li {
    position: relative;
    padding-left: 1.4rem;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #444;
}

.pricing-features li p {
    margin: 0 !important;
}

.pricing-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #4a8c3f;
    font-weight: 700;
}

.pricing-action {
    text-align: center;
    margin-top: auto;
}

.pricing-action .btn {
    width: 100%;
    padding: 0.6rem 1rem;
}

.pricing-btn-featured {
    background: #a47936 !important;
    border-color: #a47936 !important;
    color: #fff !important;
}

.pricing-btn-featured:hover {
    background: #8a6530 !important;
    border-color: #8a6530 !important;
}

.pricing-footnote {
    font-size: 0.75rem;
    color: #999;
    text-align: center;
    margin: 0;
}

.pricing-global-footer {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #777;
}

@media (max-width: 639px) {
    .pricing-cards {
        grid-template-columns: 1fr;
    }
}

/* === Testimonial Cards === */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 3px solid #a47936;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.testimonial-card::before {
    content: "\201E";
    font-size: 3rem;
    line-height: 1;
    color: #a47936;
    opacity: 0.5;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    font-style: italic;
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.9);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    font-style: normal;
}

.testimonial-author strong {
    font-size: 0.95rem;
    color: #fff;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 639px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

/* === Header: remove transparency === */
.header-dark.header-transparent #header:not(.scrolled) {
    background: #1A2543 !important;
}

/* === Sticky Mobile CTA === */
.edoobox-sticky-cta {
    display: none;
}

@media (max-width: 768px) {
    .edoobox-sticky-cta {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 999;
        background: #fff;
        border-top: 1px solid #e0e0e0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        padding: 0.6rem 1rem;
        text-align: center;
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }

    .edoobox-sticky-cta.visible {
        transform: translateY(0);
    }

    .edoobox-sticky-cta a {
        display: block;
        background: #a47936 !important;
        border-color: #a47936 !important;
        color: #fff !important;
        padding: 0.7rem 1rem !important;
        font-weight: 700;
        font-size: 1rem;
        border-radius: 0.2rem;
        text-decoration: none;
    }

    .edoobox-sticky-cta a:hover {
        background: #8a6530 !important;
    }
}
/* === Section Spacing === */
.modular-transform-split,
.modular-agenda {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.modular-testimonials-grid {
    padding-top: 4rem !important;
}

.modular-pricing {
    padding-top: 6rem !important;
}

.section.sbs + .section,
.section.modular-sbs + .section {
    padding-top: 5rem !important;
}

.offset-box + .offset-box {
    margin-top: 4rem;
}

/* === Stats Strip === */
.modular-stats-strip {
    position: relative;
    z-index: 2;
    padding-bottom: 5rem !important;
}
.stats-strip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 1.5rem 0;
}
.stats-strip-item {
    text-align: center;
    padding: 12px 48px;
    border-right: 1px solid rgba(0,0,0,0.08);
}
.stats-strip-item:last-child { border-right: none; }
.stats-strip-num {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: #231f20;
}
.stats-strip-label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 2px;
}

/* === Transform Split === */
.transform-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 2rem;
}
.transform-col {
    padding: 2rem;
}
.transform-before { background: #f9fafb; }
.transform-after { background: #fff; border-left: 3px solid #a47936; }
.transform-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.transform-before .transform-label { color: #999; }
.transform-after .transform-label { color: #a47936; }
.transform-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.transform-list li {
    display: flex;
    gap: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
}
.transform-before .transform-list li::before { content: '—'; color: #ccc; }
.transform-after .transform-list li::before { content: '→'; color: #a47936; }

/* === Agenda === */
.agenda-tabs {
    display: flex;
    gap: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.agenda-tab {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    background: #f9fafb;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: all 0.15s;
}
.agenda-tab.active {
    background: #a47936;
    color: #fff;
    border-color: #a47936;
}
.agenda-headline {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.agenda-desc {
    font-size: 0.95rem;
    color: #666;
    margin: 0 auto 1.5rem auto !important;
    max-width: 560px;
    text-align: center;
}
.agenda-flow {
    display: flex;
    flex-direction: column;
    position: relative;
}
.agenda-flow::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: #e0e0e0;
}
.agenda-item {
    display: flex;
    gap: 1.25rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.agenda-item:last-child { border-bottom: none; }
.agenda-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #ccc;
    margin-top: 5px;
    flex-shrink: 0;
    z-index: 1;
    position: relative;
}
.agenda-dot-hot {
    background: #a47936;
    border-color: #a47936;
    box-shadow: 0 0 8px rgba(164,121,54,0.4);
}
.agenda-time {
    font-size: 0.75rem;
    color: #888;
    min-width: 42px;
    padding-top: 3px;
    white-space: nowrap;
}
.agenda-body { flex: 1; }
.agenda-tag {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a47936;
    margin-bottom: 2px;
}
.agenda-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #231f20;
    margin-bottom: 3px;
}
.agenda-text {
    font-size: 0.82rem;
    color: #888;
    line-height: 1.6;
}

/* === Testimonials Grid (reusable) === */
.modular-testimonials-grid .container {
    max-width: 1200px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
    padding-bottom: 3rem;
}

/* === Responsive === */
@media (max-width: 768px) {
    .transform-split-grid { grid-template-columns: 1fr; }
    .transform-after { border-left: none; border-top: 3px solid #a47936; }
    .stats-strip-item { padding: 8px 18px; }
}
