/**
 * IdomaUSA Elementor Addon - Frontend Styles
 * Recreates the 3-column Upcoming Events, Featured Projects Slider, and Latest News Showcase
 */

/* Container & Grid */
.idomausa-showcase-container {
    --idoma-primary: #5c0b16;
    --idoma-primary-dark: #42060e;
    --idoma-gold: #c89535;
    --idoma-gold-hover: #b5832a;
    --idoma-text-dark: #1f1f1f;
    --idoma-text-muted: #6b6b6b;
    --idoma-border-light: #ececec;
    --idoma-card-radius: 14px;
    --idoma-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);

    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

.idomausa-showcase-container *,
.idomausa-showcase-container *::before,
.idomausa-showcase-container *::after {
    box-sizing: border-box;
}

.idomausa-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
    width: 100%;
}

/* Base Card */
.idomausa-card {
    border-radius: var(--idoma-card-radius);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Card Headers */
.idomausa-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.idomausa-card-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
}

.idomausa-card-header-link {
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.idomausa-card-header-link:hover {
    opacity: 0.85;
    transform: translateX(2px);
}

.idomausa-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.idomausa-card-header-link:hover .idomausa-arrow {
    transform: translateX(3px);
}

/* ===================================================
   COLUMN 1: UPCOMING EVENTS (Maroon Theme)
   =================================================== */
.idomausa-events-card {
    background: linear-gradient(145deg, #5b0a15 0%, #460710 50%, #35030a 100%);
    color: #ffffff;
    box-shadow: 0 12px 32px rgba(66, 6, 14, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.idomausa-events-card .idomausa-card-title {
    color: #ffffff;
}

.idomausa-events-card .idomausa-card-header-link {
    color: rgba(255, 255, 255, 0.85);
}

.idomausa-events-card .idomausa-card-header-link:hover {
    color: #ffffff;
}

.idomausa-events-list {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.idomausa-event-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.idomausa-event-item:first-child {
    padding-top: 4px;
}

.idomausa-event-item:last-child {
    border-bottom: none;
}

.idomausa-event-item:hover {
    transform: translateX(3px);
}

/* Date Badge */
.idomausa-date-badge {
    width: 54px;
    height: 56px;
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    text-align: center;
    padding: 4px 2px;
}

.idomausa-date-month {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #444444;
    line-height: 1.1;
}

.idomausa-date-day {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    color: #111111;
    margin-top: 2px;
}

/* Event Details */
.idomausa-event-details {
    flex: 1;
    min-width: 0;
}

.idomausa-event-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 3px 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.idomausa-event-location {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 3px 0;
    line-height: 1.2;
}

.idomausa-event-meta {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    line-height: 1.2;
}

/* Gold Button for Calendar */
.idomausa-events-btn-wrapper {
    margin-top: 22px;
}

.idomausa-btn-gold {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(180deg, #d3a13d 0%, #bf8d2a 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
}

.idomausa-btn-gold:hover {
    background: linear-gradient(180deg, #dfad47 0%, #cd9a33 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
    color: #ffffff;
}

.idomausa-btn-gold:hover .idomausa-arrow {
    transform: translateX(4px);
}

/* ===================================================
   COLUMN 2: FEATURED PROJECT (White Card + Slider)
   =================================================== */
.idomausa-project-card {
    background: #ffffff;
    box-shadow: var(--idoma-shadow);
    border: 1px solid var(--idoma-border-light);
    text-align: left;
}

.idomausa-project-card .idomausa-card-header {
    justify-content: center;
    margin-bottom: 16px;
}

.idomausa-project-card .idomausa-card-title {
    color: var(--idoma-text-dark);
    text-align: center;
}

/* Slider Track and Slides */
.idomausa-project-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.idomausa-slider-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.idomausa-project-slide {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.idomausa-project-image-wrap {
    width: 100%;
    height: 195px;
    border-radius: 8px;
    overflow: hidden;
    background: #f4f4f4;
    position: relative;
    margin-bottom: 16px;
}

.idomausa-project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.idomausa-project-slide:hover .idomausa-project-image {
    transform: scale(1.03);
}

.idomausa-project-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.idomausa-project-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--idoma-text-dark);
    margin: 0 0 8px 0;
    line-height: 1.35;
}

.idomausa-project-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.idomausa-project-title a:hover {
    color: var(--idoma-primary);
}

.idomausa-project-excerpt {
    font-size: 13px;
    color: var(--idoma-text-muted);
    line-height: 1.5;
    margin: 0 0 18px 0;
    flex: 1;
}

/* Maroon Learn More Button */
.idomausa-btn-maroon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 10px 20px;
    background: #5b0a15;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
}

.idomausa-btn-maroon:hover {
    background: #42060e;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(91, 10, 21, 0.25);
}

.idomausa-btn-maroon:hover .idomausa-arrow {
    transform: translateX(3px);
}

/* Slider Pagination Dots */
.idomausa-slider-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 4px 0;
}

.idomausa-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e2d2d4;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: all 0.3s ease;
}

.idomausa-dot.active {
    background: #5b0a15;
    transform: scale(1.25);
}

.idomausa-dot:hover:not(.active) {
    background: #bfa1a5;
}

/* ===================================================
   COLUMN 3: LATEST NEWS (White Card + Post List)
   =================================================== */
.idomausa-news-card {
    background: #ffffff;
    box-shadow: var(--idoma-shadow);
    border: 1px solid var(--idoma-border-light);
}

.idomausa-news-card .idomausa-card-title {
    color: var(--idoma-text-dark);
}

.idomausa-news-card .idomausa-card-header-link {
    color: #5b0a15;
}

.idomausa-news-card .idomausa-card-header-link:hover {
    color: #3b050d;
}

.idomausa-news-list {
    display: flex;
    flex-direction: column;
    flex: 1;
    /* justify-content: space-between; */
}

.idomausa-news-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--idoma-border-light);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.idomausa-news-item:first-child {
    padding-top: 2px;
}

.idomausa-news-item:last-child {
    border-bottom: none;
    padding-bottom: 2px;
}

.idomausa-news-item:hover {
    transform: translateX(3px);
}

.idomausa-news-thumb-wrap {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f4f4f4;
}

.idomausa-news-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.idomausa-news-item:hover .idomausa-news-thumb {
    transform: scale(1.08);
}

.idomausa-news-details {
    flex: 1;
    min-width: 0;
}

.idomausa-news-headline {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--idoma-text-dark);
    margin: 0 0 6px 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.idomausa-news-item:hover .idomausa-news-headline {
    color: #5b0a15;
}

.idomausa-news-date {
    font-size: 12px;
    color: var(--idoma-text-muted);
    margin: 0;
    line-height: 1.2;
}

/* ===================================================
   RESPONSIVE DESIGN
   =================================================== */
@media (max-width: 1024px) {
    .idomausa-showcase-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .idomausa-card {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .idomausa-event-item {
        gap: 12px;
    }

    .idomausa-date-badge {
        width: 48px;
        height: 50px;
    }

    .idomausa-date-day {
        font-size: 19px;
    }

    .idomausa-news-thumb-wrap {
        width: 64px;
        height: 64px;
    }
}