/* ============================================
   Events & Workshops Component Styles
   ============================================ */

/* ---- Section Divider Strip ---- */
.section-strip {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    position: relative;
}

.section-strip::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--layer);
}

@media (max-width: 768px) {
    .section-strip {
        height: 180px;
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    .section-strip {
        height: 140px;
    }
}

/* ---- Calendar Component ---- */
.ec-calendar {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 24px;
    max-width: 100%;
}

.ec-calendar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.ec-calendar__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0;
}

.ec-calendar__nav {
    display: flex;
    gap: 8px;
}

.ec-calendar__nav-btn {
    background: var(--bg-lightgrey);
    border: 1px solid var(--border-color-light);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--heading-color);
    transition: all 0.3s ease;
    font-size: 14px;
}

.ec-calendar__nav-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.ec-calendar__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.ec-calendar__weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--font-color);
    padding: 8px 0;
    letter-spacing: 0.5px;
}

.ec-calendar__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.ec-calendar__day {
    position: relative;
    text-align: center;
    padding: 8px 4px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--font-color);
    cursor: default;
    min-height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: background 0.2s ease;
}

.ec-calendar__day--empty {
    cursor: default;
}

.ec-calendar__day--today {
    background-color: #198754;
    color: #fff;
    font-weight: 700;
    border-radius: 6px;
}

.ec-calendar__day--has-event {
    border: 2px solid var(--primary-color);
    cursor: pointer;
    font-weight: 600;
}

.ec-calendar__day--has-event:hover {
    background-color: rgba(245, 32, 41, 0.1);
}

.ec-calendar__day--today.ec-calendar__day--has-event {
    border: 2px solid var(--primary-color);
    background-color: #198754;
    color: #fff;
}

.ec-calendar__day-number {
    font-size: 14px;
    line-height: 1;
}

.ec-calendar__day-event {
    font-size: 9px;
    line-height: 1.2;
    color: var(--primary-color);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.ec-calendar__day--today .ec-calendar__day-event {
    color: #fff;
}

/* Full calendar mode */
.ec-calendar--full .ec-calendar__day {
    min-height: 60px;
    padding: 8px 6px;
}

.ec-calendar--full .ec-calendar__day-number {
    font-size: 16px;
}

.ec-calendar--full .ec-calendar__day-event {
    font-size: 10px;
}

/* Calendar sidebar (full mode) */
.ec-sidebar {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 24px;
    position: sticky;
    top: 100px;
}

.ec-sidebar__placeholder {
    text-align: center;
    color: var(--font-color);
    padding: 40px 20px;
    font-size: 15px;
}

.ec-sidebar__placeholder i {
    font-size: 48px;
    color: var(--border-color-light);
    display: block;
    margin-bottom: 16px;
}

.ec-sidebar__event-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--border-radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.ec-sidebar__event-type--workshop {
    background-color: #0d6efd;
    color: #fff;
}

.ec-sidebar__event-type--event {
    background-color: var(--primary-color);
    color: #fff;
}

.ec-sidebar__event-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 12px;
}

.ec-sidebar__event-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.ec-sidebar__event-meta li {
    font-size: 14px;
    color: var(--font-color);
    padding: 4px 0;
}

.ec-sidebar__event-meta li i {
    color: var(--primary-color);
    width: 20px;
    margin-right: 8px;
}

.ec-sidebar__event-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--font-color);
    margin-bottom: 20px;
}

.ec-sidebar__event-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
}

/* ---- Event Listing Cards (services page) ---- */
.event-listing {
    margin-top: 30px;
}

.event-listing__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.event-listing__back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--bg-lightgrey);
    border: 1px solid var(--border-color-light);
    border-radius: var(--border-radius-full);
    color: var(--heading-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.event-listing__back-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.event-listing__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0;
}

.event-listing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.event-listing__card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: all 0.4s ease;
}

.event-listing__card:hover {
    box-shadow: 0 25px 98px 0 rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.event-listing__card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.event-listing__card-body {
    padding: 20px;
}

.event-listing__card-type {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--border-radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.event-listing__card-type--workshop {
    background-color: #0d6efd;
    color: #fff;
}

.event-listing__card-type--event {
    background-color: var(--primary-color);
    color: #fff;
}

.event-listing__card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 8px;
}

.event-listing__card-title a {
    color: inherit;
    text-decoration: none;
}

.event-listing__card-title a:hover {
    color: var(--primary-color);
}

.event-listing__card-date {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.event-listing__card-date i {
    margin-right: 6px;
}

.event-listing__card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--font-color);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-listing__card-link {
    font-size: 15px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--heading-color);
    font-weight: 600;
    display: inline-block;
    text-transform: capitalize;
    transition: 0.3s ease-in-out;
    text-decoration: none;
}

.event-listing__card-link:hover {
    color: var(--primary-color);
}

/* Category cards on services page */
.services-categories {
    transition: opacity 0.3s ease;
}

.services-categories.hidden {
    display: none;
}

.event-listing-container {
    display: none;
}

.event-listing-container.active {
    display: block;
}

.service-card .btn-style {
    margin: 0 0 24px;
}

/* ---- Post Detail Page ---- */
.post-detail {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 32px;
    margin-bottom: 30px;
}

.post-detail__type {
    display: inline-block;
    padding: 5px 14px;
    border-radius: var(--border-radius-full);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.post-detail__type--workshop {
    background-color: #0d6efd;
    color: #fff;
}

.post-detail__type--event {
    background-color: var(--primary-color);
    color: #fff;
}

.post-detail__title {
    font-size: 32px;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.3;
    margin-bottom: 16px;
}

.post-detail__meta {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.post-detail__meta li {
    font-size: 14px;
    color: var(--font-color);
}

.post-detail__meta li i {
    color: var(--primary-color);
    margin-right: 8px;
}

/* Image Gallery */
.post-gallery {
    margin-bottom: 24px;
}

.post-gallery__main {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    display: block;
    margin-bottom: 12px;
}

.post-gallery__thumbs {
    display: flex;
    gap: 10px;
}

.post-gallery__thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
    opacity: 0.7;
}

.post-gallery__thumb:hover,
.post-gallery__thumb--active {
    border-color: var(--primary-color);
    opacity: 1;
}

/* Post Content */
.post-detail__content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--font-color);
}

.post-detail__content h4 {
    color: var(--heading-color);
    font-weight: 700;
    margin: 24px 0 12px;
    font-size: 20px;
}

.post-detail__content ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.post-detail__content ul li {
    margin-bottom: 6px;
}

.post-detail__content p {
    margin-bottom: 16px;
}

/* Tags */
.post-detail__tags {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color-light);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-detail__tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-lightgrey);
    border-radius: var(--border-radius-full);
    font-size: 12px;
    color: var(--font-color);
    font-weight: 500;
}

/* ---- Comments Section ---- */
.post-comments {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 32px;
}

.post-comments__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 24px;
}

.post-comments__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-comments__item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color-light);
}

.post-comments__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.post-comments__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.post-comments__body {
    flex: 1;
    min-width: 0;
}

.post-comments__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.post-comments__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--heading-color);
}

.post-comments__date {
    font-size: 12px;
    color: var(--font-color);
    opacity: 0.7;
}

.post-comments__text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--font-color);
    margin: 0;
}

/* ---- Related Events Sidebar ---- */
.related-events {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 24px;
    position: sticky;
    top: 100px;
}

.related-events__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 20px;
}

.related-events__item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color-light);
    text-decoration: none;
}

.related-events__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-events__item-img {
    width: 70px;
    height: 55px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.related-events__item-info {
    flex: 1;
    min-width: 0;
}

.related-events__item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 4px;
    line-height: 1.3;
}

.related-events__item:hover .related-events__item-title {
    color: var(--primary-color);
}

.related-events__item-date {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 500;
}

/* ---- Post Not Found ---- */
.post-not-found {
    text-align: center;
    padding: 60px 20px;
}

.post-not-found i {
    font-size: 64px;
    color: var(--border-color-light);
    margin-bottom: 20px;
}

.post-not-found h3 {
    color: var(--heading-color);
    margin-bottom: 12px;
}

.post-not-found p {
    color: var(--font-color);
    margin-bottom: 24px;
}

/* ---- Partner CTA Section ---- */
.partner-cta {
    background: #6C63FF;
    padding: 80px 0;
    text-align: center;
    margin: 40px 0;
}

.partner-cta__title {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 24px;
    line-height: 1.2;
}

.partner-cta__desc {
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    max-width: 720px;
    margin: 0 auto 36px;
}

.partner-cta__btn {
    display: inline-block;
    padding: 16px 52px;
    background: #fff;
    color: #6C63FF;
    font-size: 18px;
    font-weight: 700;
    border-radius: var(--border-radius-full);
    text-decoration: none;
    transition: all 0.3s ease;
}

.partner-cta__btn:hover {
    background: #f0eeff;
    color: #5B52E0;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.3);
}

/* ---- Recent Events Feed Section ---- */
.recent-feed-wrapper {
    position: relative;
    overflow: hidden;
}

.recent-feed__mascot {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    left: -60px;
    top: -30px;
    width: 130px;
}

.recent-feed__strip-decor {
    position: absolute;
    right: -30px;
    top: 0;
    bottom: 0;
    width: 50px;
    background: linear-gradient(180deg, #6C63FF 0%, #a78bfa 50%, #6C63FF 100%);
    border-radius: 25px;
    opacity: 0.12;
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 991px) {
    .partner-cta__title {
        font-size: 36px;
    }

    .recent-feed__mascot {
        left: -30px;
        width: 90px;
    }

    .recent-feed__strip-decor {
        right: -15px;
        width: 35px;
    }
}

@media (max-width: 768px) {
    .partner-cta {
        padding: 60px 0;
    }

    .partner-cta__title {
        font-size: 30px;
    }

    .partner-cta__desc {
        font-size: 15px;
    }

    .recent-feed__mascot,
    .recent-feed__strip-decor {
        display: none;
    }
}

@media (max-width: 480px) {
    .partner-cta {
        padding: 44px 0;
    }

    .partner-cta__title {
        font-size: 24px;
    }

    .partner-cta__btn {
        padding: 12px 36px;
        font-size: 16px;
    }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .ec-calendar {
        padding: 16px;
    }

    .ec-calendar__title {
        font-size: 18px;
    }

    .ec-calendar__day {
        min-height: 36px;
        padding: 6px 2px;
        font-size: 13px;
    }

    .ec-calendar__day-event {
        display: none;
    }

    .ec-calendar--full .ec-calendar__day {
        min-height: 44px;
    }

    .ec-calendar--full .ec-calendar__day-event {
        display: none;
    }

    .event-listing__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .event-listing__grid {
        grid-template-columns: 1fr;
    }

    .post-detail {
        padding: 20px;
    }

    .post-detail__title {
        font-size: 24px;
    }

    .post-detail__meta {
        flex-direction: column;
        gap: 8px;
    }

    .post-gallery__main {
        height: 250px;
    }

    .post-comments {
        padding: 20px;
    }

    .related-events {
        position: static;
    }

    .ec-sidebar {
        position: static;
    }
}

@media (max-width: 480px) {
    .ec-calendar__weekday {
        font-size: 10px;
    }

    .ec-calendar__day {
        min-height: 32px;
        padding: 4px 2px;
        font-size: 12px;
    }

    .ec-calendar__nav-btn {
        width: 30px;
        height: 30px;
    }

    .event-listing__title {
        font-size: 22px;
    }

    .post-detail__title {
        font-size: 20px;
    }

    .post-gallery__main {
        height: 200px;
    }

    .post-gallery__thumb {
        width: 60px;
        height: 45px;
    }

    .post-comments__item {
        gap: 10px;
    }

    .post-comments__avatar {
        width: 32px;
        height: 32px;
    }
}

/* ============================================
   Product Cards & Modals
   ============================================ */

/* ---- Product Card ---- */
.product-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 25px 98px 0 rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.product-card__image {
    overflow: hidden;
}

.product-card__image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card__image img {
    transform: scale(1.05);
}

.product-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 10px;
}

.product-card__desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--font-color);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.product-card__price {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
}

.product-card__buy-btn {
    padding: 8px 20px !important;
    font-size: 14px !important;
    margin: 0 !important;
}

/* ---- Home Products Wrapper ---- */
.home-products__wrapper {
    position: relative;
}

/* ---- Mobile carousel nav buttons ---- */
.home-products__nav {
    display: none;
}

/* ---- Mobile product carousel ---- */
@keyframes slideFromRight {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideFromLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to   { opacity: 1; transform: translateX(0); }
}

@media (max-width: 768px) {
    .home-products__slide {
        display: none;
    }

    .home-products__slide--active {
        display: block;
    }

    .home-products__slide--enter-right {
        animation: slideFromRight 0.35s ease-out;
    }

    .home-products__slide--enter-left {
        animation: slideFromLeft 0.35s ease-out;
    }

    .home-products__nav {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 3;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 1px solid var(--border-color-light);
        background: var(--bg-color);
        color: var(--heading-color);
        font-size: 14px;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
        transition: all 0.3s ease;
    }

    .home-products__nav:hover,
    .home-products__nav:active {
        background: var(--primary-color);
        color: #fff;
        border-color: var(--primary-color);
    }

    .home-products__nav--prev {
        left: 4px;
    }

    .home-products__nav--next {
        right: 4px;
    }
}

/* ---- Product Detail Modal ---- */
.product-detail__badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: var(--border-radius-full);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    background-color: #6C63FF;
    color: #fff;
}

.product-detail__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.3;
    margin-bottom: 8px;
}

.product-detail__price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* ---- Purchase Modal Form ---- */
#purchaseModal .form-control {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color-light);
    color: var(--font-color);
    border-radius: var(--border-radius);
    padding: 10px 14px;
}

#purchaseModal .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(245, 32, 41, 0.15);
}

/* ---- Product Responsive ---- */
@media (max-width: 768px) {
    .product-detail__title {
        font-size: 22px;
    }

    .product-detail__price {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .product-card__image img {
        height: 160px;
    }

    .product-card__price {
        font-size: 18px;
    }

    .product-card__buy-btn {
        padding: 6px 14px !important;
        font-size: 13px !important;
    }

    .product-detail__title {
        font-size: 20px;
    }
}
