/* BOVC Management Public CSS */

:root {
    --bovc-primary: #2a7cbd;
    --bovc-primary-hover: #1f5e8f;
    --bovc-card-radius: 16px;
    --bovc-transition: all 0.3s ease;
}


.bovc-archive-team-container .bovc-team-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: inherit;
}

/* Grid Layout (Mobile First) */
.bovc-team-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile default */
    gap: 30px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .bovc-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .bovc-team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Team Card */
.bovc-team-card {
    background: #fff;
    border-radius: var(--bovc-card-radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--bovc-transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    outline: none;
}

.bovc-team-card:hover, .bovc-team-card:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.bovc-team-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bovc-archive-team-container .bovc-team-image-wrap {
    width: 100%;
    aspect-ratio: 3/4;
    background: #f8f9fa;
    overflow: hidden;
}

.bovc-archive-team-container .bovc-team-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--bovc-transition);
}

.bovc-team-card:hover .bovc-team-image-wrap img {
    transform: scale(1.02);
}

.bovc-archive-team-container .bovc-team-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(359deg, #0000003d, #00000054);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    box-sizing: border-box;
}

.bovc-archive-team-container .bovc-team-name {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.bovc-archive-team-container .bovc-team-designation {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Load More Button */
.bovc-team-load-more-wrap {
    text-align: center;
    margin-top: 30px;
}



.bovc-team-load-more {
    background: var(--bovc-primary);
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--bovc-transition);
}

.bovc-team-load-more:hover {
    background: var(--bovc-primary-hover);
}

.bovc-team-load-more.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Modal CSS */
.bovc-team-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bovc-team-modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.bovc-team-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.bovc-team-modal-content-wrap {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 950px;
    height: 85vh;
    border-radius: var(--bovc-card-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bovc-team-modal.active .bovc-team-modal-content-wrap {
    transform: translateY(0) scale(1);
}

.bovc-team-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fff;
    color: #666;
    border: 1px solid #eaeaea;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: var(--bovc-transition);
}

.bovc-team-modal-close:hover {
    background: #f9f9f9;
    color: #111;
}

.bovc-team-modal-inner {
    height: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.bovc-team-modal-inner.loading {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bovc-team-modal-inner.loading::after {
    content: "";
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--bovc-primary);
    border-radius: 50%;
    animation: bovc-spin 1s linear infinite;
}

@keyframes bovc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Layout (Mobile First) */
.bovc-team-modal-layout {
    display: flex;
    flex-wrap: nowrap;
    flex: 1;
    overflow: hidden;
    flex-direction: column;
    min-height: 0;
}

.bovc-team-modal-left {
    flex: 0 0 auto;
    max-width: 100%;
    height: auto;
    padding: 25px 25px 0 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bovc-team-modal-left img {
    max-height: 200px;
    width: auto;
    max-width: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.bovc-team-modal-right {
    flex: 1;
    width: 100%;
    padding: 20px 25px 25px 25px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.bovc-team-modal-name {
    margin: 0 0 5px 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: #111;
}

.bovc-team-modal-designation {
    font-size: 1rem;
    color: #999;
    margin: 0 0 15px 0;
    font-weight: 400;
}

.bovc-team-modal-cta {
    margin-bottom: 20px;
}

.bovc-team-modal-content {
    line-height: 1.6;
    color: #666;
    font-size: 0.95rem;
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 15px;
    padding-bottom: 20px;
    min-height: 0;
}

/* Custom Scrollbar for Modal Content */
.bovc-team-modal-content::-webkit-scrollbar {
    width: 6px;
}
.bovc-team-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 10px;
}
.bovc-team-modal-content::-webkit-scrollbar-thumb {
    background: #bbb; 
    border-radius: 10px;
}
.bovc-team-modal-content::-webkit-scrollbar-thumb:hover {
    background: #999; 
}

.bovc-team-btn {
    display: inline-block;
    background: #0b69c7;
    color: #fff;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--bovc-transition);
    align-self: flex-start;
}

.bovc-team-btn:hover {
    background: #09509a;
    color: #fff;
}

/* Tablet & Desktop Modal Layout */
@media (min-width: 768px) {
    .bovc-team-modal-content-wrap {
        height: 75vh;
        max-height: none;
    }
    .bovc-team-modal-inner {
        max-height: none;
    }
    .bovc-team-modal-layout {
        flex-direction: row;
        overflow: hidden;
    }
    .bovc-team-modal-left {
        flex: 0 0 45%;
        max-width: 45%;
        padding: 50px;
    }
    .bovc-team-modal-left img {
        width: 100%;
        height: auto;
        max-height: none;
    }
    .bovc-team-modal-right {
        flex: 0 0 55%;
        max-width: 55%;
        padding: 50px 50px 50px 10px;
        overflow: hidden;
    }
    .bovc-team-modal-designation {
        margin: 0 0 25px 0;
    }
    .bovc-team-modal-cta {
        margin-bottom: 35px;
    }
    .bovc-team-modal-content {
        overflow-y: auto;
        padding-right: 20px;
        padding-bottom: 20px;
    }
}

body.bovc-modal-open {
    overflow: hidden;
}

/* --- Blog Grid Styles --- */

.bovc-archive-blog-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: inherit;
}

.bovc-blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .bovc-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .bovc-blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.bovc-blog-card {
    background: #fff;
    border-radius: var(--bovc-card-radius);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: var(--bovc-transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bovc-blog-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.bovc-blog-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bovc-blog-image-wrap {
    width: 100%;
    aspect-ratio: 3/2;
    overflow: hidden;
    display: block;
}

.bovc-blog-image-wrap img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: var(--bovc-transition);
}


.bovc-blog-image-wrap {
    position: relative;
    overflow: hidden;
}

.bovc-blog-image-wrap::after {
    display: block;
    content: "";
    background-image: linear-gradient(
        0deg,
        rgba(0, 0, 0, .35),
        transparent 75%
    );
    height: 100%;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    opacity: 1;
    pointer-events: none;
	transition: var(--bovc-transition);
}

.bovc-blog-card:hover .bovc-blog-image-wrap::after {
    opacity: .5;
}

.bovc-blog-card .bovc-blog-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bovc-blog-card .bovc-blog-title {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
}

.bovc-blog-card .bovc-blog-title a {
    color: #111;
    text-decoration: none !important;
    transition: var(--bovc-transition);
}

.bovc-blog-card:hover .bovc-blog-title a {
    color: var(--bovc-primary);
}

.bovc-blog-card .bovc-blog-excerpt {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}


button.bovc-blog-load-more {
    margin: auto;
    display: block;
}
.bovc-blog-card .bovc-blog-read-more {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--bovc-transition);
    align-self: flex-start;
}

.bovc-blog-card .bovc-blog-read-more:hover {
    color: var(--bovc-primary);
}
