/**
 * Marthoma Church Theme - Vicar Generals Widget Styles
 *
 * Bordered card grid layout with sections for each vicar type
 * Design: Border 1.5px solid #B8B8B8, border-radius 17px, padding 30px
 *
 * @package MarthomaChurch
 */

/* Main Container */
.marthoma-vicar-generals-widget {
    width: 100%;
}

/* Section */
.vicar-section {
    width: 100%;
}

.vicar-section + .vicar-section {
    margin-top: 60px;
}

/* Section Title */
.vicar-section-title {
    font-family: var(--marthoma-font-heading, 'Montserrat', sans-serif);
    font-size: 35px;
    font-weight: 700;
    color: #04141E;
    margin: 0 0 30px 0;
    line-height: 1.3;
}

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

/* Card - Bordered Design */
.vicar-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    border: 1.5px solid #B8B8B8;
    border-radius: 17px;
    padding: 30px;
    background: transparent;
    border-style: solid;
}

/* Hidden cards for Load More */
.vicar-card-hidden {
    display: none;
}

/* Animation for newly shown cards */
.vicar-card-animate-in {
    animation: vicarCardFadeIn 0.4s ease-out;
}

@keyframes vicarCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Name */
.vicar-name {
    font-family: var(--marthoma-font-heading, 'Montserrat', sans-serif);
    font-size: 16px;
    font-weight: 700;
    color: #04141E;
    margin: 0;
    line-height: 1.5;
}

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

/* No Posts/Types Message */
.vicar-no-posts,
.vicar-no-types {
    padding: 40px;
    text-align: center;
    color: #707070;
    font-family: var(--marthoma-font-body, 'Inter', sans-serif);
}

/* ==========================================
   LOAD MORE SECTION
   ========================================== */

/* Load More Container - Horizontal layout with line on left, button on right */
.vicar-load-more {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
}

/* Separator Line - Flexible, fills remaining space */
.vicar-load-more-line {
    flex: 1 1 auto;
    min-width: 50px;
    height: 2px;
    background-color: #D0D5DD;
}

.vicar-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    margin: 0;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    cursor: pointer;
    font-family: var(--marthoma-font-body, 'Inter', sans-serif);
    font-size: 16px;
    font-weight: 700;
    color: #072538;
    transition: color 0.3s ease;
    flex-shrink: 0;
    box-shadow: none !important;
}

.vicar-load-more-btn:hover {
    background: transparent !important;
    background-color: transparent !important;
}

.vicar-load-more-btn:focus {
    outline: none;
    background: transparent !important;
    box-shadow: none !important;
}

.vicar-load-more-btn:active {
    background: transparent !important;
}

.vicar-load-more-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease, color 0.3s ease;
    color: inherit;
}

.vicar-load-more-btn:hover .vicar-load-more-arrow {
    transform: translate(2px, -2px);
}

.vicar-load-more-arrow svg {
    width: 9px;
    height: 9px;
}

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

/* Tablet */
@media (max-width: 1024px) {
    .vicar-section-title {
        font-size: 28px;
    }

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

    .vicar-section + .vicar-section {
        margin-top: 50px;
    }

    .vicar-card {
        padding: 25px;
    }

    .vicar-name {
        font-size: 15px;
    }

    .vicar-phone {
        font-size: 15px;
    }

    .vicar-load-more {
        margin-top: 30px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .vicar-section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .vicar-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .vicar-section + .vicar-section {
        margin-top: 40px;
    }

    .vicar-card {
        padding: 20px;
        border-radius: 12px;
    }

    .vicar-name {
        font-size: 14px;
    }

    .vicar-phone {
        font-size: 14px;
    }

    .vicar-load-more {
        margin-top: 25px;
        gap: 15px;
    }

    .vicar-load-more-btn {
        font-size: 14px;
    }
}

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

@media (prefers-reduced-motion: reduce) {
    .vicar-card,
    .vicar-load-more-btn,
    .vicar-load-more-arrow {
        transition: none;
    }

    .vicar-card-animate-in {
        animation: none;
    }
}

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

.elementor-editor-active .marthoma-vicar-generals-widget {
    min-height: 150px;
}

/* Show hidden cards in editor */
.elementor-editor-active .vicar-card-hidden {
    display: flex;
    opacity: 0.5;
}
