:root {
    --primary-color: #2E7D32;
    --primary-hover-color: #256228;
    --secondary-color: #795548;
    --secondary-hover-color: #5d4037;
    --text-dark: #212529;
    --text-light: #f8f9fa;
    --text-muted: #6c757d;
    --text-muted-dark-bg: #ced4da;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    --font-display: 'Alegreya', serif;
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1.25rem;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.06);
    --shadow-md: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 1rem 2.5rem rgba(0, 0, 0, 0.1);
    --bg-card: #ffffff;
    --page-main-bg: #ffffff;
    --page-accent-color: var(--primary-color);
    --page-side-accent-width-desktop: 50px;
    --page-side-accent-width-tablet: 30px;
    --page-side-accent-width-mobile: 0px;
    /* Aksen dihilangkan di mobile */
    --bg-light-card-section: #f8f9fa;
    /* Warna untuk section berbackground di dalam kartu putih */
    --padding-kartu-horizontal: 3.5rem;
    /* Variabel baru untuk padding kartu */
    --padding-kartu-bawah: 3.5rem;
}

/* CSS UMUM YANG MUNGKIN ADA DI TEMPLATE.PHP ATAU GLOBAL CSS */
body.has-side-accents {
    background-color: var(--page-accent-color);
    position: relative;
    overflow-x: hidden;
}

body.has-side-accents::before,
body.has-side-accents::after {
    content: '';
    position: fixed;
    top: 0;
    bottom: 0;
    width: var(--page-side-accent-width-desktop);
    background-color: var(--page-accent-color);
    z-index: 0;
}

body.has-side-accents::before {
    left: 0;
}

body.has-side-accents::after {
    right: 0;
}

#main-content-area {
    position: relative;
    z-index: 1;
    background-color: var(--page-main-bg);
    padding-left: var(--page-side-accent-width-desktop);
    padding-right: var(--page-side-accent-width-desktop);
}

/* END CSS UMUM */

/* --- SLIDER (full width, di atas .main-content-card) --- */
.homepage-slider .single-slider {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
    position: relative;
    background-size: cover;
    background-position: center;
    text-align: center;
    width: calc(100% + (2 * var(--page-side-accent-width-desktop)));
    margin-left: calc(-1 * var(--page-side-accent-width-desktop));
    margin-right: calc(-1 * var(--page-side-accent-width-desktop));
}

.homepage-slider .slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.homepage-slider .container {
    position: relative;
    z-index: 2;
}

.homepage-slider .slider-cont h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--text-light);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    line-height: 1.3;
    font-weight: 700;
    font-family: var(--font-primary);
    margin-bottom: 1rem;
}

.homepage-slider .slider-cont p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #e0e0e0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-family: var(--font-secondary);
}

/* KARTU KONTEN UTAMA */
.page-content-container-for-card {
    margin-left: auto;
    margin-right: auto;
}

.main-content-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 0;
    margin-top: -100px;
    position: relative;
    z-index: 5;
    overflow: hidden;
    max-width: 1450px;
    margin-left: auto;
    margin-right: auto;
}

.main-content-card>section {
    padding: 2rem var(--padding-kartu-horizontal, 3.5rem);
}

.main-content-card>section:first-child {
    padding-top: 3.5rem;
}

.main-content-card>section:last-child:not(.contact-info-section-revamped) {
    padding-bottom: 3.5rem;
}

.main-content-card>section .section-inner-container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

.section-title {
    margin-bottom: 3rem;
    text-align: center;
}

.section-title h2 {
    font-weight: 700;
    color: var(--text-dark);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 0.75rem;
    font-family: var(--font-primary);
}

.section-title .section-subtitle {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: var(--text-muted);
    line-height: 1.7;
    font-family: var(--font-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-modern {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.8rem;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    border: none;
    box-shadow: var(--shadow-sm);
}

.btn-modern:hover {
    background-color: var(--primary-hover-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* STYLING SECTION INDIVIDU */
.profile-section .profile-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-section .profile-logo-container {
    margin-bottom: 1.5rem;
}

.profile-section .profile-logo {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    padding: 6px;
    background-color: #fff;
    box-shadow: var(--shadow-lg);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.profile-section .profile-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.25);
}

.profile-section .profile-title-box {
    margin-bottom: 1.5rem;
}

.profile-section .main-profile-title {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--text-dark);
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 0.5rem;
}

.profile-section .highlighted-title-segment {
    background-color: var(--primary-color);
    color: white;
    display: inline-block;
    padding: 0.5rem 1rem;
    line-height: 1.3;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-primary);
    font-size: clamp(1.1rem, 3.5vw, 1.4rem);
    font-weight: 600;
    margin: 0.25rem 0.15rem;
    box-shadow: var(--shadow-sm);
}

.profile-section p.profile-description {
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 400;
    font-family: var(--font-secondary);
    color: var(--text-dark);
}

.instagram-media {
    border-radius: var(--border-radius-lg) !important;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    background: #f0f0f0;
}

.hmj-section .hmj-title-box {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 0.75rem;
}

.hmj-section .hmj-title-box span {
    background-color: var(--primary-color);
    color: white;
    display: inline-block;
    padding: 0.6rem 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-primary);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.hmj-section p.hmj-description {
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 400;
    font-family: var(--font-secondary);
    color: var(--text-dark);
}

.hmj-section .hmj-logo {
    max-width: 280px;
    border-radius: var(--border-radius-md);
}

.hmj-gallery-img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

.hmj-gallery-img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.hmj-insta-link img {
    transition: transform 0.2s ease, filter 0.2s ease;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.hmj-insta-link:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

p.hmj-insta-caption {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--primary-color);
}

.bg-light-inside-card {
    background-color: var(--bg-light-card-section);
    margin-left: calc(-1 * var(--padding-kartu-horizontal, 3.5rem));
    margin-right: calc(-1 * var(--padding-kartu-horizontal, 3.5rem));
    padding-left: var(--padding-kartu-horizontal, 3.5rem) !important;
    padding-right: var(--padding-kartu-horizontal, 3.5rem) !important;
    border-radius: 0;
}

#program-studi-part.bg-light-inside-card {
    padding-top: 3rem !important;
    padding-bottom: 1rem !important;
    margin-bottom: 0;
    border-radius: 0;
}

#program-studi-part .section-title {
    margin-bottom: 2rem;
}

.program-studi-card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.program-studi-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.program-studi-card .card-img-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-left-radius: var(--border-radius-lg);
    border-top-right-radius: var(--border-radius-lg);
}

.program-studi-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.25s ease;
    display: block;
    padding: 10px;
}

.program-studi-card:hover img {
    transform: scale(1.05);
}

.program-studi-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.program-studi-card .card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s ease;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.program-studi-card a:hover .card-title {
    color: var(--primary-color);
}

.program-studi-card .card-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.65;
    font-family: var(--font-secondary);
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

.program-studi-card .card-body .card-link-wrapper {
    margin-top: auto;
    display: block;
}

.program-studi-card .card-body .card-link-wrapper .small {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease, letter-spacing 0.2s ease;
    font-size: 0.875rem;
}

.program-studi-card .card-body .card-link-wrapper .small:hover {
    color: var(--primary-hover-color);
    letter-spacing: 0.5px;
}

.pmb-ribbon-revamped {
    position: relative;
    margin: 3.5rem calc(-1 * var(--padding-kartu-horizontal, 3.5rem)) 0 calc(-1 * var(--padding-kartu-horizontal, 3.5rem));
    overflow: hidden;
    box-shadow: none;
    display: flex;
    align-items: stretch;
    background-color: var(--primary-color);
}

.pmb-ribbon-revamped .pmb-text-column {
    flex: 1 1 60%;
    background-image: linear-gradient(to right, var(--primary-color) 0%, var(--primary-hover-color) 100%);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: var(--text-light);
    position: relative;
    z-index: 2;
}

.pmb-ribbon-revamped .pmb-image-column {
    flex: 1 1 40%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 350px;
}

.pmb-ribbon-revamped .pmb-image-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.pmb-ribbon-revamped .pmb-text-content .pmb-main-title {
    font-size: clamp(1.8rem, 4.5vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.25rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    color: var(--text-light);
}

.pmb-ribbon-revamped .pmb-text-content .pmb-campus-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #FFEB3B;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.pmb-ribbon-revamped .btn-pmb-daftar {
    background-color: #fff;
    color: var(--primary-color);
    padding: 0.9rem 2.2rem;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    text-align: center;
    border: 2px solid transparent;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.pmb-ribbon-revamped .btn-pmb-daftar:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    border-color: #fff;
}

#news-part {
    background-color: transparent;
}

/* === BAGIAN BERITA (NEWS SECTION) === */
.news-card {
    background-color: #fff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.news-card-img-wrapper {
    height: 200px; 
    overflow: hidden;
}

.news-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-img-wrapper img {
    transform: scale(1.05);
}

.news-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Membuat body card mengisi ruang tersisa */
}

.news-card .news-category {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 0.75rem;
    border: 1px solid;
}

.news-card .news-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    /* [PENYESUAIAN] Batasi judul hanya 2 baris */
    height: calc(1.4em * 2); /* line-height * jumlah baris */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 2; /* Jumlah baris yang diinginkan */
    -webkit-box-orient: vertical;
}

.news-card .news-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card .news-title a:hover {
    color: var(--primary-color);
}

.news-card .news-excerpt {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1rem;
    flex-grow: 1;
    /* [PENYESUAIAN] Batasi deskripsi hanya 3 baris */
    min-height: calc(1.65em * 3); /* line-height * jumlah baris */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Jumlah baris yang diinginkan */
    line-clamp: 3; /* Standard property for compatibility */
    -webkit-box-orient: vertical;
}

.news-card .news-read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.85rem;
    margin-top: auto; /* Mendorong link ini ke bagian paling bawah */
}

.news-card .news-read-more:hover {
    color: var(--primary-hover-color);
}


.contact-info-section-revamped {
    background-size: cover;
    background-position: center;
    position: relative;
    margin: 0 calc(-1 * var(--padding-kartu-horizontal, 3.5rem)) calc(-1 * var(--padding-kartu-bawah, 3.5rem));
    padding-top: 4rem;
    padding-bottom: 4rem;
    padding-left: var(--padding-kartu-horizontal, 3.5rem);
    padding-right: var(--padding-kartu-horizontal, 3.5rem);
    color: var(--text-light);
    border-bottom-left-radius: var(--border-radius-xl);
    border-bottom-right-radius: var(--border-radius-xl);
    overflow: hidden;
}

.main-content-card>section:last-child.contact-info-section-revamped {
    padding-bottom: 4rem !important;
    margin-bottom: calc(-1 * var(--padding-kartu-bawah, 3.5rem)) !important;
}

.contact-info-section-revamped::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 98, 40, 0.92) 0%, rgba(46, 125, 50, 0.88) 100%);
    z-index: 1;
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
}

.contact-info-section-revamped .section-inner-container {
    position: relative;
    z-index: 2;
    padding: 0;
}

.contact-info-section-revamped .section-title {
    margin-bottom: 3rem;
}

.contact-info-section-revamped .section-title h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: var(--text-light) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.contact-info-section-revamped .section-title .sub-title {
    font-size: 1.1rem;
    opacity: 0.95;
    color: #e0e0e0 !important;
}

.contact-info-section-revamped .contact-block {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-info-section-revamped .contact-block .icon-wrapper {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact-info-section-revamped .contact-block:hover .icon-wrapper {
    background-color: var(--primary-color);
    transform: scale(1.08);
}

.contact-info-section-revamped .contact-block h4.info-title {
    font-family: var(--font-primary);
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.6rem;
    font-size: 1.25rem;
}

.contact-info-section-revamped .contact-block p,
.contact-info-section-revamped .contact-block a,
.contact-info-section-revamped .contact-block li {
    color: #dadada;
    text-decoration: none;
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.contact-info-section-revamped .contact-block a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.contact-info-section-revamped .contact-block ul {
    padding-left: 0;
    list-style: none;
    margin-bottom: 0;
}

.contact-info-section-revamped .contact-block ul li {
    margin-bottom: 0.25rem;
}

.contact-info-section-revamped .contact-block ul.social-links-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.contact-info-section-revamped .contact-block ul.social-links-contact li a {
    padding: 0.3rem 0.5rem;
    border-radius: var(--border-radius-sm);
    background-color: rgba(255, 255, 255, 0.08);
    transition: background-color 0.3s ease;
}

.contact-info-section-revamped .contact-block ul.social-links-contact li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    text-decoration: none;
}

@media (max-width: 991.98px) {
    /* === Tata Letak Global === */
    body.has-side-accents::before,
    body.has-side-accents::after {
        width: 30px; /* Lebar aksen hijau dikurangi */
    }

    #main-content-area {
        padding-left: 30px;
        padding-right: 30px;
    }

    /* === Slider & Kartu Utama === */
    .homepage-slider .single-slider {
        /* PENTING: Menambahkan padding atas untuk menghindari tabrakan dengan navbar */
        padding-top: 70px; /* Sesuaikan dengan tinggi navbar Anda */
        min-height: 60vh;
        width: calc(100% + 60px);
        margin-left: -30px;
        margin-right: -30px;
    }
    
    .main-content-card {
        margin-top: -80px; /* Kartu naik sedikit */
    }

    /* === Padding Bagian dalam Kartu === */
    .main-content-card > section {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .bg-light-inside-card,
    .pmb-ribbon-revamped,
    .contact-info-section-revamped {
        margin-left: -2rem;
        margin-right: -2rem;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }

    /* === Penyesuaian Jarak Lainnya === */
    .section-title h2 {
        font-size: clamp(1.6rem, 4vw, 2.2rem); /* Perkecil sedikit judul section */
    }

    .program-studi-card,
    .news-card {
        /* Menambahkan jarak bawah jika kartu sejajar di tablet */
        margin-bottom: 1.5rem;
    }

    .pmb-ribbon-revamped {
        flex-direction: column; /* Ini perlu untuk layout yang benar */
        text-align: center;
    }

    .pmb-ribbon-revamped .pmb-text-column {
        align-items: center;
    }
}


/* Untuk Ponsel (lebar layar di bawah 768px) */
@media (max-width: 767.98px) {
    /* === Tata Letak Global === */
    body.has-side-accents::before,
    body.has-side-accents::after {
        display: none; /* Hilangkan aksen hijau di mobile */
    }
    
    #main-content-area {
        padding-left: 0;
        padding-right: 0;
    }
    
    /* === Slider & Kartu Utama === */
    .homepage-slider .single-slider {
        padding-top: 60px; /* Sesuaikan dengan tinggi navbar mobile */
        min-height: 50vh;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .homepage-slider .slider-cont h1 {
        font-size: clamp(1.8rem, 5vw, 2.2rem);
    }

    .homepage-slider .slider-cont p {
        font-size: clamp(0.9rem, 3vw, 1rem);
    }
    
    .main-content-card {
        margin-top: -50px;
        margin-left: 10px;
        margin-right: 10px;
        border-radius: var(--border-radius-lg);
    }
    
    /* === Padding Bagian dalam Kartu === */
    .main-content-card > section {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .bg-light-inside-card,
    .pmb-ribbon-revamped,
    .contact-info-section-revamped {
        margin-left: -1.25rem;
        margin-right: -1.25rem;
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    /* === Penyesuaian Jarak Kartu & Gambar === */
    .profile-section .row.align-items-center {
        /* Membalik urutan agar teks di atas video/gambar */
        flex-direction: column-reverse;
    }
    
    .profile-section .profile-content-wrapper {
        margin-top: 2rem; /* Jarak antara video dan konten profil */
    }
    
    .hmj-section .row {
        /* Memberi jarak antar gambar di galeri HMJ */
        margin-bottom: 1rem;
    }

    .hmj-section .hmj-gallery-img {
        margin-bottom: 1rem; /* Jarak antar gambar jika ditumpuk */
    }

    .program-studi-card,
    .news-card {
        /* Pastikan ada jarak antar kartu di mobile */
        margin-bottom: 2rem;
    }

    /* Supaya kartu terakhir tidak ada margin bawah yg berlebih */
    #program-studi-part .row.g-4 > div:last-child .program-studi-card,
    #news-part .row.g-4 > div:last-child .news-card {
        margin-bottom: 0;
    }
    
    .pmb-ribbon-revamped .pmb-text-column,
    .contact-info-section-revamped .contact-block {
        padding: 1.5rem; /* Perkecil padding di mobile */
    }
}