/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/
:root {
    --lux-green: #0f3d2e;
    --lux-gold: #c6a75e;
    --lux-grey: #6c757d;
    --lux-border: rgba(0,0,0,0.05);
}

.info-card {
    padding: 35px;
    border-radius: 3px;
    text-align: center;
    position: relative;
    -webkit-transition: all .3s linear;
    transition: all .3s linear;
    border: 1px solid #e1e1e1
}

.info-card:hover {
    /* background-color: #fff; */
    -webkit-box-shadow: 0 11px 61.1px 3.9px rgba(34, 34, 34, .09);
    box-shadow: 0 11px 61.1px 3.9px rgba(34, 34, 34, .09)
}

.info-card:hover .info-card-image {
    opacity: 1
}

.info-card-image {
    position: absolute;
    top: 15px;
    right: 15px;
    -webkit-transition: all .3s linear;
    transition: all .3s linear;
    opacity: 0
}

.info-card-text h3 {
    /* font-family: nunito, sans-serif; */
    font-size: 40px;
    font-weight: 600;
    color:#1abc9c;
    margin-bottom: 7px
}

.info-card-text h4 {
    font-size: 15px;
    font-weight: 500;
    /* font-family: nunito, sans-serif; */
    color: #515151;
    margin-bottom: 10px;
    line-height: 1
}

.info-card-text h4:last-child {
    margin-bottom: 0
}

.section .section-head {
    border-bottom: 2px solid #1ABC9C
}

.section .section-head .title {
    height: 30px;
    line-height: 30px;
    padding: 0 15px;
    background-color: #13a774;
    color: #fff;
    /* font-family: "Open Sans","Helvetica","Arial",sans-serif; */
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: -1px;
    text-transform: uppercase;
    margin-top: 0
}

.section .section-head .title a {
    color: #fff!important
}

.a-view-all {
    border: 0 none;
    color: #999;
    font-size: 13px;
    font-weight: 400;
    line-height: 22px;
    padding: 0;
    float: right
}

.bg-categories { background-color:  #13a774 !important; }

.entry-categories {
	position: absolute;
	bottom: 10px;
	left: 10px;
	text-transform: capitalize;
}

.bg-overlay .entry-categories {
	position: relative;
	left: auto;
	bottom: auto;
	margin-bottom: 12px;
	z-index: 2;
}

.entry-categories a {
	color: #FFF !important;
	padding: 3px 5px;
	font-size: 10px;
	border-radius: 2px;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 400;
	/* font-family: 'roboto', sans-serif; */
}

.footer-logo-pmd {
	/* display: inline-flex; */
	margin-bottom: 10px;
}

.widget .section-head {
    border-bottom: 2px solid #1ABC9C;
}

.widget .section-head .title {
    height: 30px;
    line-height: 30px;
    padding: 0 15px;
    background-color: #13a774;
    color: #fff;    
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: -1px;
    text-transform: uppercase;
    margin-top: 0;
}

.widget .section-head .title a {
    color: #fff!important
}

.widget .a-view-all {
    border: 0 none;
    color: #999;
    font-size: 13px;
    font-weight: 400;
    line-height: 22px;
    padding: 0;
    float: right
}

.entry-image-beranda { margin-bottom: 30px; }

.posts-md .entry-image-beranda,
.posts-sm .entry-image-beranda {
	margin-bottom: 0;
}

.entry-image-beranda,
.entry-image-beranda > a,
.entry-image-beranda .slide a,
.entry-image-beranda img {
	display: block;
	position: relative;
	width: 100%;
	/* height: auto; */
	height: 150px;
	overflow: hidden;
}

.entry-image-beranda img { border-radius: 3px; }

.posts-md .entry-image-beranda + .entry-title {
	margin-top: 0.875rem;
}

.berita-terbaru-container,
.berita-terbaru-container > a,
.berita-terbaru-container .slide a,
.berita-terbaru-container img {
    display: block;
    position: relative;
    width: 100%;
    height: 250px; /* Misal mau ubah jadi lebih tinggi */
    overflow: hidden;
}

.berita-terbaru-container img {
    border-radius: 8px; /* Mau beda radius misalnya */
    object-fit: cover;
    transition: transform 0.5s ease;
}

.berita-terbaru-container:hover img {
    transform: scale(1.05);
}

.posts-md .berita-terbaru-container + .entry-title {
	padding: 15px;
}

.posts-sm .entry-image img {
	width: 64px;
	height: 64px;
}

.entry-image-related { margin-bottom: 30px; }

.posts-md .entry-image-related,
.posts-sm .entry-image-related {
	margin-bottom: 0;
}

.entry-image-related,
.entry-image-related > a,
.entry-image-related .slide a,
.entry-image-related img {
	display: block;
	position: relative;
	width: 100%;
	/* height: auto; */
	height: 75px;
	overflow: hidden;
}

.entry-image-related img { border-radius: 3px; }

.line-berita,
.double-line {
	clear: both;
	position: relative;
	width: 100%;
	margin-bottom: 2rem;
	border-top: 1px solid #EEE;
}


.info-desa-box {
    -webkit-box-shadow: 0 11px 61.1px 3.9px rgba(34, 34, 34, .09);
    box-shadow: 0 11px 61.1px 3.9px rgba(34, 34, 34, .09);
    border-radius: 3px;
    overflow: hidden;
    background-color: #fff;
    padding-bottom: 50px;
}

.info-desa-iframe iframe {
    border: 0;
    width: 100%;
    height: 210px
}

.info-desa-inner {
    padding: 30px
}

.info-desa-list {
    margin-bottom: 20px
}

.info-desa-list:last-child {
    margin-bottom: 0
}

.info-desa-list-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-top: -5px;
    padding-bottom: 15px;
    border-bottom: 1px solid #c8c8c8;
    margin-bottom: 15px
}

.info-desa-list-item:last-child {
    margin-bottom: 0
}

.info-desa-label {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    color: #0d0d0d;
    margin-top: 5px
}

.info-desa-label i {
    color: #1ABC9C;
    margin-right: 10px;
    font-weight: 400
}

.info-desa-option {
    font-size: 16px;
    font-weight: 400;
    color: #515151;
    margin-top: 5px
}

.info-desa-option a {
    color: #515151
}

.info-desa-option a:hover {
    color: #1ABC9C
}

.info-desa-social-share  {
    margin-bottom: 20px;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center
}

.grid-inner {
	height: 100%;	
}

.course-categories .card a span {
	display: block;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	position: absolute;
	top: 50%;
	left: 50%;
	text-align: center;
	color: #FFF;
	text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
	-webkit-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	-o-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
}

.course-categories .card a span i {
	display: block;
	margin-bottom: 5px;
	font-size: 20px;
}

.btn i {
  margin-right: 8px; /* add spacing between logo and label button */
}

/* 
    Taxonomy Berita 
*/
.news-thumbnail {
    width: 100%; /* Full width of parent container */
    max-width: 800px; /* Set a reasonable max size */
    height: 250px; /* Increase height */
    object-fit: cover; /* Ensures no distortion */
    border-radius: 8px; /* Optional rounded corners */
    display: block;
    margin-bottom: 15px; /* Adds spacing */
}

/* 
    Section Berita Eskul Populer
*/
/* Base Rank Style (for list items) */
.popular-rank {
    width: 32px;
    height: 32px;
    background: linear-gradient(145deg, #c9a227, #f5d76e);
    color: #fff;
    border-radius: 50%;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}
/* Featured Version */
.popular-featured .popular-rank {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 44px;
    height: 44px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: inset 0 1px 3px rgba(255,255,255,0.5);
}
.popular-rank:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255,255,255,0.5);
}

/* 
    Profil Sekolah Page
*/
.school-hero {
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}
.card-luxury {
    border: none;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}
.card-luxury:hover {
    transform: translateY(-5px);
}

/* 
    Program Pemerintah Section di halaman profil sekolah
*/
.program-section {
    background: linear-gradient(to bottom, #f9fafb, #ffffff);
}

.section-label {
    font-size: 12px;
    letter-spacing: 2px;
    color: #b89c4c;
    font-weight: 600;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-top: 10px;
}

.section-subtitle {
    font-size: 15px;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

.program-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    transition: all 0.4s ease;
}

.program-card:hover {
    transform: translateY(-6px);
}

.program-image-wrapper {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 16 / 9;
}

.program-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.program-card:hover img {
    transform: scale(1.05);
}

.program-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 60%);
}

.program-date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    font-size: 12px;
    color: #fff;
    letter-spacing: 1px;
}

.program-content {
    padding: 15px 5px 5px 5px;
}

.program-title a {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    transition: color 0.3s ease;
}

.program-title a:hover {
    color: #b89c4c;
}

/* ================================
   Berita Eskul Section
================================ */
.berita-section {
    padding-top: 90px;
    padding-bottom: 90px;
}

.berita-section h2 {
    position: relative;
    display: inline-block;
}

.berita-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--lux-gold);
    margin: 12px auto 0;
}

/* Card */
.berita-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    transition: all .35s ease;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    border: 1px solid var(--lux-border);
    height: 100%;
}

.berita-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 70px rgba(0,0,0,0.08);
}

/* Image */
.berita-image-wrapper {
    position: relative;
    display: block;
    overflow: hidden;
}

.berita-image-wrapper img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform .45s ease;
}

.berita-card:hover .berita-image-wrapper img {
    transform: scale(1.06);
}

/* Luxury subtle overlay */
.berita-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.05),
        rgba(0,0,0,0.35)
    );
    opacity: 0;
    transition: opacity .35s ease;
}

.berita-card:hover .berita-image-wrapper::after {
    opacity: 1;
}

/* Category badge */
.berita-category {
    position: absolute;
    top: 18px;
    left: 18px;
    background: var(--lux-green);
    color: #fff;
    font-size: 11px;
    padding: 7px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: .7px;
    font-weight: 600;
    transition: all .3s ease;
}

.berita-card:hover .berita-category {
    background: var(--lux-gold);
    color: #000;
}

/* Content */
.berita-content {
    padding: 28px;
}

/* Meta */
.berita-meta {
    color: var(--lux-grey);
    font-size: 13px;
    letter-spacing: .3px;
}

/* Title */
.berita-title {
    line-height: 1.4;
}

.berita-title a {
    color: #111;
    text-decoration: none;
    transition: color .3s ease;
}

.berita-title a:hover {
    color: var(--lux-gold);
}

/* Read more link */
.berita-content a.text-uppercase {
    letter-spacing: 1px;
    font-size: 12px;
    transition: all .3s ease;
}

.berita-content a.text-uppercase:hover {
    color: var(--lux-gold) !important;
}

/* ================================
   Mobile Optimization
================================ */

@media (max-width: 768px) {
    .berita-image-wrapper img {
        height: 200px;
    }

    .berita-content {
        padding: 22px;
    }

    .berita-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}