/* YouTube Video Grid Styling */
.ytc-wrapper {
    position: relative;
    max-width: 1200px;
}

/* Header row */
.ytc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

/* change the color */
.ytc-heading {
    font-size: 28px;
    font-weight: 800;
    color: #5eac3e;
    margin: 0;
}

/* Grid: 4 columns x 3 rows on desktop */
.ytc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 10px 0 20px;
}

.ytc-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ytc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.ytc-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.ytc-thumb img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

.ytc-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.ytc-title {
    font-weight: 600;
    font-size: 14px;
    color: #1a2b6d;
    padding: 10px 12px 0;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ytc-date {
    display: block;
    font-size: 12px;
    color: #8a7a3c;
    padding: 6px 12px 12px;
}

/* See All Videos button */
.ytc-see-all-wrap {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

/* remove the border-radius  */
.ytc-see-all-btn {
    display: inline-block;
    background: #5eac3e !important;
    color: #fff !important;
	
    padding: 12px 32px;
    border-radius: 0px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.ytc-see-all-btn:hover {
    background: #084298;
    color: #fff !important;
}

/* Modal (click-to-play) */
.ytc-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
	padding-top: 60px;
}

.ytc-modal.active {
    display: flex;
}

/* Hide background page scrollbar when modal is open */
body.ytc-modal-open {
    overflow: hidden !important;
}

.ytc-modal-inner {
    width: 90%;
    max-width: 900px;
}

.ytc-modal-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 8px;
}

.ytc-modal-close {
    display: block;
    text-align: right;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    margin-bottom: 8px;
}

/* Responsive: fewer columns on smaller screens, still stacks into rows */
@media (max-width: 992px) {
    .ytc-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .ytc-grid { grid-template-columns: repeat(2, 1fr); }
    
    .ytc-wrapper{
		padding: 0 20px;
	}
}

@media (max-width: 480px) {
    .ytc-wrapper { padding: 0 20px; }
    .ytc-grid { grid-template-columns: 1fr; }
}