:root {
    --header-height: 192px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 59, 36, 0.58); 
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-jurusan-logo {
    height: 56px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
    transition: transform 0.25s ease;
}

.hero-jurusan-logo:hover {
    transform: scale(1.1);
}

.hero-main-title {
    font-size: clamp(1.65rem, 3.8vw, 3rem);
    font-weight: 800;
    letter-spacing: 0.03em;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

.hero-tagline-sub {
    font-size: clamp(0.85rem, 1.4vw, 1.15rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.hero-jurusan-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem auto 0;
    max-width: 900px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    font-size: clamp(0.75rem, 1.1vw, 0.9rem);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.hero-jurusan-list li {
    position: relative;
    display: flex;
    align-items: center;
}

.hero-jurusan-list li::before {
    content: "•";
    color: #facc15;
    font-size: 1.2rem;
    margin-right: 0.5rem;
    line-height: 1;
}

@media (max-width: 576px) {
    .hero-jurusan-logo {
        height: 40px;
    }
    .hero-jurusan-list {
        gap: 0.35rem 0.85rem;
    }
}


.sambutan-section {
  background-color: #ffffff;
  padding: 4.5rem 0;
  position: relative;
}

.kepsek-profile-card {
  position: relative;
  background: linear-gradient(145deg, #0f3d2e 0%, #165943 100%);
  border-radius: 20px;
  padding: 1.5rem 1.5rem 1.75rem 1.5rem;
  color: #ffffff;
  box-shadow: 0 15px 35px rgba(15, 61, 46, 0.14);
Gunakan kode dengan hati-hati.
text-align: center;
}
.kepsek-profile-card::before {
content: "";
position: absolute;
top: -10px;
left: -10px;
width: 70px;
height: 70px;
border-top: 5px solid #ffc107;
border-left: 5px solid #ffc107;
border-top-left-radius: 22px;
pointer-events: none;
}
.kepsek-photo-frame {
width: 100%;
height: 310px;
border-radius: 14px;
overflow: hidden;
background-color: #e9ecef;
margin-bottom: 1.25rem;
border: 3px solid rgba(255, 255, 255, 0.15);
}
.kepsek-photo-frame img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: top center;
}
.kepsek-name {
font-size: 1.2rem;
font-weight: 700;
margin-bottom: 0.2rem;
color: #ffffff;
}
.kepsek-jabatan {
display: inline-block;
background-color: rgba(255, 193, 7, 0.18);
color: #ffc107;
font-size: 0.78rem;
font-weight: 600;
padding: 4px 12px;
border-radius: 50px;
margin-bottom: 0.4rem;
}
.kepsek-nip {
font-size: 0.82rem;
color: rgba(255, 255, 255, 0.75);
margin-bottom: 0;
}
.sambutan-badge {
display: inline-flex;
align-items: center;
gap: 6px;
background-color: #eef5f0;
color: #156649;
font-weight: 700;
font-size: 0.78rem;
letter-spacing: 1px;
padding: 6px 16px;
border-radius: 50px;
text-transform: uppercase;
margin-bottom: 1rem;
}
.sambutan-heading {
color: #0f3d2e;
font-weight: 800;
font-size: 2rem;
line-height: 1.3;
margin-bottom: 1.25rem;
}
.sambutan-salam {
font-weight: 700;
font-style: italic;
color: #156649;
margin-bottom: 1rem;
font-size: 1.05rem;
}
.sambutan-quote-box {
border-left: 4px solid #ffc107;
padding-left: 1.25rem;
color: #475569;
font-size: 0.98rem;
line-height: 1.75;
margin-bottom: 1.75rem;
}
.btn-sambutan {
background-color: #0f3d2e;
color: #ffffff;
font-weight: 600;
padding: 11px 26px;
border-radius: 50px;
border: none;
transition: all 0.25s ease;
text-decoration: none;
display: inline-block;
}
.btn-sambutan:hover {
background-color: #165943;
color: #ffc107;
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(15, 61, 46, 0.2);
}
.smk-news-sec {
  background-color: #ffffff;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.smk-news-badge-top {
  display: inline-block;
  background-color: #EBF3EF;
  color: #14452F;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 8px;
}

.smk-news-heading {
  color: #14452F;
  font-weight: 800;
  font-size: 28px;
}

.smk-news-btn-all {
  background-color: #14452F;
  color: #ffffff !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 50px;
  transition: 0.2s;
}

.smk-news-btn-all:hover {
  background-color: #0e3322;
}

.smk-headline-card {
    display: flex;
    flex-direction: row;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 4px 16px rgba(14, 58, 54, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.smk-headline-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(14, 58, 54, 0.12);
}

/* Kolom Kiri: Gambar (48% lebar card) */
.smk-headline-img-wrap {
    flex: 0 0 48%;
    max-width: 48%;
    position: relative;
}

.smk-headline-img-box {
    width: 100%;
    height: 100%;
    min-height: 320px;
    position: relative;
    overflow: hidden;
}

.smk-headline-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}
.smk-headline-card:hover .smk-headline-img-box img {
    transform: scale(1.04);
}
.smk-headline-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    background-color: #0E3A36;
    color: #FACC15;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    letter-spacing: 0.3px;
}
.smk-headline-body {
    flex: 1;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.smk-headline-date {
    display: flex;
    align-items: center;
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 0.65rem;
}

.smk-headline-title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.85rem;
}

.smk-headline-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.smk-headline-title a:hover {
    color: #0E3A36;
}

.smk-headline-excerpt {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.smk-headline-footer {
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.smk-headline-readmore {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0E3A36;
    text-decoration: none;
    transition: color 0.2s ease;
}

.smk-headline-readmore:hover {
    color: #16524C;
}
@media (max-width: 767.98px) {
    .smk-headline-card {
        flex-direction: column;
    }
    .smk-headline-img-wrap {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .smk-headline-img-box {
        min-height: 220px;
        max-height: 240px;
    }
    .smk-headline-body {
        padding: 1.25rem;
    }
}
.smk-slider-card {
    position: relative;
    width: 100%;
    height: 420px; 
    overflow: hidden;
    border-radius: 16px;
}

#smkHeroCarousel,
#smkHeroCarousel .carousel-inner,
#smkHeroCarousel .carousel-item {
    height: 100% !important;
}

.smk-slider-img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    display: block;
}

.smk-slider-empty-bg {
    width: 100%;
    height: 100%;
    background-color: #0E3A36;
}

@media (max-width: 991.98px) {
    .smk-slider-card {
        height: 320px;
    }
}

.new-section {
background-color: #f4f6f5;
padding: 4rem 0;
}
.new-subtitle {
color: #156649;
font-weight: 700;
font-size: 0.8rem;
letter-spacing: 1.5px;
text-transform: uppercase;
}
.new-heading {
color: #0f3d2e;
font-weight: 800;
}
.btn-lihat-new {
color: #0f3d2e;
border: 1.5px solid #0f3d2e;
font-weight: 600;
border-radius: 50px;
padding: 8px 20px;
font-size: 0.88rem;
transition: all 0.25s ease;
text-decoration: none;
display: inline-block;
}
.btn-lihat-new:hover {
background-color: #0f3d2e;
color: #ffffff;
}
.new-card {
background-color: #ffffff;
border-radius: 16px;
overflow: hidden;
border: 1px solid rgba(15, 61, 46, 0.06);
box-shadow: 0 8px 24px rgba(15, 61, 46, 0.06);
display: flex;
flex-direction: column;
transition: transform 0.25s ease, box-shadow 0.25s ease;
text-decoration: none;
}
.new-card:hover {
transform: translateY(-6px);
box-shadow: 0 14px 30px rgba(15, 61, 46, 0.12);
}
.new-img-box {
position: relative;
height: 185px;
overflow: hidden;
background-color: #e9ecef;
}
.new-img-box img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.4s ease;
}
.new-card:hover .new-img-box img {
transform: scale(1.06);
}
.new-badge {
position: absolute;
top: 12px;
left: 12px;
background-color: rgba(15, 61, 46, 0.92);
color: #ffc107;
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.5px;
padding: 5px 12px;
border-radius: 50px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.new-body {
padding: 1.25rem;
display: flex;
flex-direction: column;
flex-grow: 1;
}
.new-title {
color: #0f3d2e;
font-weight: 700;
font-size: 1rem;
line-height: 1.45;
margin-bottom: 1rem;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
transition: color 0.2s ease;
}
.new-card:hover .new-title {
color: #156649;
}
.new-footer {
margin-top: auto;
padding-top: 0.85rem;
border-top: 1px dashed #e2e8f0;
display: flex;
align-items: center;
justify-content: space-between;
font-size: 0.78rem;
color: #64748b;
}
.new-read-more {
color: #156649;
font-weight: 700;
display: inline-flex;
align-items: center;
gap: 4px;
}
.agenda-section {
background-color: #eef5f0;
padding: 4rem 0;
}
.agenda-subtitle {
color: #156649;
font-weight: 700;
font-size: 0.8rem;
letter-spacing: 1.5px;
text-transform: uppercase;
}
.agenda-heading {
color: #0f3d2e;
font-weight: 800;
}
.btn-lihat-agenda {
color: #0f3d2e;
border: 1.5px solid #0f3d2e;
font-weight: 600;
border-radius: 50px;
padding: 8px 20px;
font-size: 0.88rem;
transition: all 0.25s ease;
text-decoration: none;
display: inline-block;
}
.btn-lihat-agenda:hover {
background-color: #0f3d2e;
color: #ffffff;
}
.agenda-card {
background-color: #ffffff;
border-radius: 16px;
border: 1px solid rgba(15, 61, 46, 0.06);
border-top: 4px solid #156649;
box-shadow: 0 8px 24px rgba(15, 61, 46, 0.06);
padding: 1.5rem;
display: flex;
flex-direction: column;
justify-content: space-between;
transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.agenda-card:hover {
transform: translateY(-6px);
box-shadow: 0 14px 30px rgba(15, 61, 46, 0.12);
border-top-color: #ffc107;
}
.agenda-date-box {
display: inline-flex;
align-items: center;
gap: 12px;
margin-bottom: 1.15rem;
}
.date-badge {
background-color: rgba(21, 102, 73, 0.08);
border-radius: 12px;
padding: 8px 14px;
text-align: center;
min-width: 68px;
}
.date-day {
display: block;
font-size: 1.65rem;
font-weight: 800;
line-height: 1;
color: #156649;
}
.date-month {
display: block;
font-size: 0.78rem;
font-weight: 700;
text-transform: uppercase;
color: #e69d00;
margin-top: 3px;
}
.date-full-info {
font-size: 0.82rem;
color: #6c757d;
line-height: 1.35;
}
.agenda-title {
font-size: 1.08rem;
font-weight: 700;
color: #1e293b;
line-height: 1.45;
margin-bottom: 1.25rem;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
.agenda-footer {
border-top: 1px dashed #e2e8f0;
padding-top: 0.9rem;
margin-top: auto;
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.agenda-location {
font-size: 0.84rem;
color: #475569;
font-weight: 500;
display: flex;
align-items: center;
gap: 6px;
}
.agenda-location i {
color: #156649;
font-size: 1rem;
}

  .chat-card {
    width: 320px;
    background-color: #eaf6ee; /* Hijau sangat muda */
    border-radius: 16px;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

 /* 1. Samakan tinggi kotak Kiri & Kanan di layar Desktop */
@media (min-width: 992px) {
    .smk-headline-card,
    .smk-slider-card {
        height: 440px !important; /* Sesuaikan tinggi ini dengan kebutuhan */
        overflow: hidden;
    }

    .smk-headline-img-wrap,
    .smk-headline-img-box,
    .smk-headline-img-box img {
        height: 100% !important;
        object-fit: cover;
    }
}

/* 2. Atur kotak Slider Kanan & Gambar agar tidak melar */
.smk-slider-card {
    position: relative;
    border-radius: 16px; /* Menyamakan sudut melengkung dengan card kiri */
    overflow: hidden;
}

#smkHeroCarousel,
#smkHeroCarousel .carousel-inner,
#smkHeroCarousel .carousel-item {
    height: 100%;
}

.smk-slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Memotong gambar agar pas kotak tanpa gepeng */
    object-position: top center; /* Fokus ke bagian atas foto agar kepala/wajah tidak terpotong */
    display: block;
}

/* 3. Rapikan Tombol Panah & Titik Indikator agar mengambang di dalam gambar */
.smk-slider-nav-bar {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: 50px;
}

.smk-slider-arrow {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    cursor: pointer;
}

/* Reset posisi bawaan .carousel-indicators Bootstrap agar sejajar di tengah */
.smk-slider-dots {
    position: static !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 4px;
}

.smk-slider-dots [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 2px;
}
/* 1. Aturan tinggi khusus Layar Desktop */
@media (min-width: 992px) {
    .smk-headline-card,
    .smk-slider-card {
        height: 460px !important;
        overflow: hidden;
    }

    .smk-headline-body {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        padding-bottom: 20px;
    }
}

/* 2. Aturan khusus Layar HP / Tablet (di bawah 992px) */
@media (max-width: 991.98px) {
    .smk-headline-card {
        height: auto !important;
        display: flex;
        flex-direction: column;
    }

    .smk-headline-img-wrap,
    .smk-headline-img-box {
        width: 100% !important;
        height: 230px !important; /* Tinggi gambar proporsional untuk HP */
    }

    .smk-headline-img-box img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }

    .smk-headline-body {
        height: auto !important;
        padding: 20px !important;
        display: block !important;
    }

    .smk-slider-card {
        height: 420px !important; /* Tinggi slider kanan saat pindah ke bawah di HP */
    }
}
.overlay-deskripsi * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1.15 !important;
}
.overlay-deskripsi hr {
    margin-top: 4px !important;
    margin-bottom: 4px !important;
}
.overlay-deskripsi {
    font-size: 0.62rem !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.85);
}
.overlay-deskripsi::first-line {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: #ffffff;
}
