/**
 * Marthoma Church Theme - Recent Office Bearers Widget Styles
 *
 * Side-by-side layout: Year on left, Photo cards on right
 *
 * @package MarthomaChurch
 */

/* Main Container */
.marthoma-recent-officers-widget {
    width: 100%;
}

/* Term Row - Side by Side Layout */
.recent-officers-row {
    display: flex;
    flex-direction: row;
    gap: 40px;
    width: 100%;
}

.recent-officers-row + .recent-officers-row {
    margin-top: 80px;
}

/* Left: Year Column */
.recent-officers-year {
    width: 40%;
    flex-shrink: 0;
}

.recent-officers-year-title {
    font-family: var(--marthoma-font-heading, 'Montserrat', sans-serif);
    font-size: 35px;
    font-weight: 700;
    color: #04141E;
    margin: 0;
    line-height: 1.3;
}

/* Right: Cards Container */
.recent-officers-cards {
    flex: 1;
}

/* Photo Cards Grid */
.recent-officers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Photo Card */
.recent-officer-card {
    display: flex;
    flex-direction: column;
}

/* Photo Image */
.recent-officer-image {
    width: 100%;
    overflow: hidden;
}

.recent-officer-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

/* Placeholder for no image */
.recent-officer-no-image {
    width: 100%;
    height: 260px;
    background-color: #E8E8E8;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999999'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60px;
}

/* Photo Info Box */
.recent-officer-info {
    margin-top: 10px;
    padding: 10px 0 10px 15px;
    border-left: 1.5px solid #04141E;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Position/Role */
.recent-officer-position {
    font-family: var(--marthoma-font-heading, 'Montserrat', sans-serif);
    font-size: 16px;
    font-weight: 700;
    color: #04141E;
    margin: 0;
    line-height: 1.4;
}

/* Name */
.recent-officer-name {
    font-family: var(--marthoma-font-body, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 400;
    color: #04141E;
    margin: 0;
    line-height: 1.4;
}

/* Phone */
.recent-officer-phone {
    font-family: var(--marthoma-font-body, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 400;
    color: #04141E;
    margin: 0;
    line-height: 1.4;
}

/* No Terms Message */
.recent-officers-no-terms {
    padding: 40px;
    text-align: center;
    color: #707070;
    font-family: var(--marthoma-font-body, 'Inter', sans-serif);
}

/* ==========================================
   RESPONSIVE STYLES
   ========================================== */

/* Large Tablet */
@media (max-width: 1200px) {
    .recent-officers-year-title {
        font-size: 30px;
    }

    .recent-officers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .recent-officers-row {
        flex-direction: column;
        gap: 25px;
    }

    .recent-officers-year {
        width: 100%;
    }

    .recent-officers-year-title {
        font-size: 28px;
    }

    .recent-officers-row + .recent-officers-row {
        margin-top: 60px;
    }

    .recent-officer-position {
        font-size: 15px;
    }

    .recent-officer-name,
    .recent-officer-phone {
        font-size: 13px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .recent-officers-year-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .recent-officers-row + .recent-officers-row {
        margin-top: 40px;
    }

    .recent-officers-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .recent-officer-image img,
    .recent-officer-no-image {
        height: 220px;
    }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    .recent-officer-card,
    .recent-officer-image img {
        transition: none;
    }
}

/* ==========================================
   ELEMENTOR EDITOR
   ========================================== */

.elementor-editor-active .marthoma-recent-officers-widget {
    min-height: 150px;
}
