@font-face {
	font-family: 'ESMOD Neue Semi Bold';
	font-display: auto;
	src: url('../fonts/NeueHaasUnica-Bold.ttf') format('truetype');
}

@font-face {
	font-family: 'ESMOD Neue Reguler';
	font-display: auto;
	src: url('../fonts/NeueHaasUnica-Regular.ttf') format('truetype');
}

.container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 60px;
    margin-left: 5vw;
    margin-right: 5vw;
    align-items: stretch;
}

/* hilangkan garis bawah */
.card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.card-link,
.card-link:visited,
.card-link:active {
	text-decoration: none;
	color: inherit;
}

/* hover effect */
.card-link:hover .card {
	transform: scale(1.02); /* zoom IN */
	box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #f5f5f5;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-items: stretch;
    height: 100%;
}

/* IMAGE HOVER */
.image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.image img,
.image video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}

.image video {
    opacity: 0;
}

/* Hover effect */
.image:hover video {
    opacity: 1;
}

.image:hover img {
    opacity: 0;
}
/* END IMAGE HOVER */

.text {
    display: flex;
    flex-direction: column;
	padding: 20px;
}

.text .bottom {
    margin-top: 0;
}

.bottom {
	font-family: 'ESMOD Neue Reguler', sans-serif;
	font-size: 14px;
}

.text h1 {
	font-size: 20px;
	font-weight: 700;
}

.text p {
	font-family: 'ESMOD Neue Reguler', sans-serif;
	font-size: 15px;
}

/* PROGRAM RED BUTTON */
.button-wrapper {
    margin-top: auto;
    padding-top: 40px; /* jarak antara text dan tombol */
    padding-bottom: 20px;
}

.btn-program {
    display: block;
    width: fit-content;
    margin-top: auto;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    padding: 12px 25px;
    background: #CB382A;
    color: #ffffff;
    font-family: 'ESMOD Neue Semi Bold', sans-serif;
    font-size: 13px;
    text-decoration: none;
    text-align: center;
    transition: transform 0.25s ease;
}

.btn-program:hover {
    transform: scale(1.08);
}

.btn-program-black {
    display: block;
    width: fit-content;
    margin-top: auto;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    padding: 12px 25px;
    background: black;
    color: #ffffff;
    font-family: 'ESMOD Neue Semi Bold', sans-serif;
    font-size: 13px;
    text-decoration: none;
    text-align: center;
    transition: transform 0.25s ease;
}

.btn-program-black:hover {
    transform: scale(1.08);
}

/* END PROGRAM RED BUTTON */

/* MOBILE RESPONSIVE */
/* 4K */
@media(max-width: 2560px) {
	
}

/* Laptop L */
@media(max-width: 1440px) {
	
}

/* Laptopku */
@media (max-width: 1366px) {
	
}

/* Laptop */
@media(max-width: 1024px) {
    .container {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 10px;
    }
	
    .card-link {
        display: block;
        height: 100%;
    }
	
    .card {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
	
    .card .image {
        order: 1;
        width: 100%;
        height: 250px;
        flex-shrink: 0;
    }
	
    .card .text {
        order: 2;
        display: flex;
        flex-direction: column;
        flex: 1;
        width: auto;
        padding: 15px;
    }
	
    .text .bottom {
        margin-top: 0;
    }
}

/* Tablet */
@media(max-width: 768px) {
	
}

/* Mobile L */
@media(max-width: 425px) {
	.container {
        grid-template-columns: 1fr;
        margin-top: 25px;
    }
	
    .card {
        display: flex;
        flex-direction: column;
        height: auto;
    }
	
    /* GAMBAR DI ATAS */
    .card .image {
        order: 1;
        width: 100%;
        height: 250px;
    }
	
    /* TEXT DI BAWAH */
    .card .text {
        order: 2;
        width: auto;
        padding: 20px;
    }
	
    .text h1 {
        font-size: 25px;
    }
	
    .text p {
        font-size: 16px;
    }
	
	.bottom {
		font-size: 15px;
	}
}

/* Mobile M */
@media(max-width: 375px) {
	
}

/* Mobile S */
@media(max-width: 320px) {
	
}