/*

Template 2098 Health

http://www.tooplate.com/view/2098-health

*/

@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600');

:root {
    --primary-red: #d80000;
    /* Merah utama PMR */
    --dark-red: #b80000;
    /* Merah lebih gelap untuk hover */
    --light-gray: #f5f5f5;
    /* Latar belakang terang */
    --medium-gray: #ccc;
    /* Border dan garis */
    --dark-gray: #333;
    /* Teks utama */
    --white: #ffffff;
    --text-light: #fff8f8;
    /* Teks di atas background gelap */
    --custom-red: #BF3131;
    /* Mengganti --red- menjadi --custom-red agar lebih deskriptif */
    --accent-color: #a5c422;
    /* Warna aksen asli template (Hijau) */
    --hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

body {
    background: #ffffff;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}


/*---------------------------------------
TYPOGRAPHY
-----------------------------------------*/

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: inherit;
}

h1,
h2,
h3,
h4 {
    letter-spacing: -1px;
}

h5 {
    font-weight: 500;
}

h1 {
    color: #252525;
    font-size: 5em;
}

h2 {
    color: #272727;
    font-size: 3em;
    padding-bottom: 10px;
}

h3 {
    font-size: 1.8em;
    line-height: 1.2em;
    margin-bottom: 0;
}

h4 {
    color: #454545;
    font-size: 1.8em;
    padding-bottom: 2px;
}

h6 {
    letter-spacing: 0;
    font-weight: normal;
}

p {
    color: #757575;
    font-size: 14px;
    font-weight: normal;
    line-height: 24px;
}


/*---------------------------------------
GENERAL
-----------------------------------------*/

html {
    -webkit-font-smoothing: antialiased;
}

a {
    color: #252525;
    -webkit-transition: 0.5s;
    transition: 0.5s;
    text-decoration: none !important;
}

a:hover,
a:active,
a:focus {
    color: var(--dark-red);
    outline: none;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    cursor: pointer;
    background: #000000;
}

.section-title {
    padding-bottom: 20px;
}

.section-title h2 {
    margin-top: 0;
}

.section-btn {
    background: var(--primary-red);
    border: 0;
    border-radius: 3px;
    color: #ffffff;
    font-size: inherit;
    font-weight: 500;
    padding: 14px 20px;
    transition: transform 0.1s ease-in;
    transform: translateX(0);
}

.section-btn:hover {
    transform: translateY(-5px);
}

.text-align-right {
    text-align: right;
}

.text-align-center {
    text-align: center;
}

.border-top {
    border-top: 1px solid #f2f2f2;
    margin-top: 4em;
    padding-top: 2.5em;
}

.btn-gray {
    background: var(--primary-red);
}

.btn-blue {
    background: var(--custom-red);
    /* Menggunakan variabel baru */
}

.news-thumb {
    background: #ffffff;
    border-radius: 10px;
}

.news-thumb img {
    border-radius: 10px 10px 0 0;
}

.news-info {
    padding: 30px;
    text-align: left;
}

.news-info span {
    display: block;
    letter-spacing: 0.5px;
}

.news-info h3 {
    margin-top: 10px;
    margin-bottom: 10px;
}

.author {
    border-top: 1px solid #f0f0f0;
    padding-top: 1.5em;
    margin-top: 2em;
}

.author img,
.author .author-info {
    display: inline-block;
    vertical-align: top;
}

.author-info h5 {
    margin-bottom: 0;
}

.author img {
    border-radius: 100%;
    width: 50px;
    height: 50px;
    margin-right: 10px;
}


#about,
#team,
#news,
#news-detail {
    position: relative;
    padding-top: 100px;
    padding-bottom: 100px;
}

#news,
#service {
    text-align: center;
}

#google-map {
    line-height: 0;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 350px;
}

#google-map iframe,
#google-map .map-container {
    width: 100%;
    height: 100%;
    display: block;
}


/*---------------------------------------
PRE LOADER
-----------------------------------------*/

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    background: none repeat scroll 0 0 #ffffff;
    pointer-events: auto;
    /*perubashan*/
}

.spinner {
    border: 1px solid transparent;
    border-radius: 3px;
    position: relative;
}

.spinner:before {
    content: '';
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 45px;
    height: 45px;
    margin-top: -10px;
    margin-left: -10px;
    border-radius: 50%;
    border: 1px solid #575757;
    border-top-color: #ffffff;
    animation: spinner .9s linear infinite;
}

@-webkit-keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}


/*---------------------------------------
MENU
-----------------------------------------*/

header {
    background: #ffffff;
    border-bottom: 1px solid #f2f2f2;
    display: flex;
    height: 45px;
}

header .col-md-8 {
    padding-right: 0;
}

header p,
header span {
    font-size: 12px;
    line-height: 24px;
    padding-top: 12px;
}

header a,
header span {
    color: #747474;
}

header span {
    font-weight: 500;
    display: inline-block;
    padding: 11px 15px;
}

header span.date-icon {
    border-left: 1px solid #f2f2f2;
    border-right: 1px solid #f2f2f2;
    padding-right: 19px;
    padding-left: 19px;
}

header span i {
    color: var(--primary-red);
    margin-right: 5px;
}





/*---------------------------------------
MENU
-----------------------------------------*/

.navbar-default {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .075);
    border: none;
    margin-bottom: 0;
    padding: 10px;
}



.navbar-default .navbar-brand {
    color: #393939;
    font-weight: 500;
}

/* Tambahkan class ini untuk mengatur logo */
.navbar-brand .navbar-logo {
    /* Mengatur tinggi logo agar sesuai dengan navbar */
    height: 35px;

    /* Menggeser logo sedikit ke atas agar lebih sejajar dengan teks */
    margin-top: -5px;

    /* Memberi jarak antara logo dan teks di sebelahnya */
    margin-right: 8px;

    /* Memastikan perataan vertikal agar gambar sejajar dengan teks */
    vertical-align: middle;
}

.navbar-default .navbar-brand .fa {
    color: var(--primary-red);
}

.navbar-default .navbar-nav li.appointment-btn {
    margin: 3px 0 0 20px;
}

.navbar-default .navbar-nav li.appointment-btn a {
    background: var(--primary-red);
    border-radius: 3px;
    color: #ffffff;
    font-weight: 600;
    padding-top: 12px;
    padding-bottom: 12px;
    /* Pastikan tombol tidak terpengaruh efek underline */
    text-decoration: none !important;
}

.navbar-default .navbar-nav li.appointment-btn a:hover {
    background: var(--dark-red);
    color: #ffffff !important;
}

/* --- Bagian yang perlu diubah: .navbar-default .navbar-nav li a --- */

.navbar-default .navbar-nav li a {
    color: #555555;
    font-size: 12px;
    font-weight: 500;
    padding-right: 20px;
    padding-left: 20px;
    -webkit-transition: all ease-in-out 0.4s;
    transition: all ease-in-out 0.4s;

    /* Menonaktifkan underline secara default */
    text-decoration: none;

    /* PENTING: Tambahkan relative untuk menempatkan ::after */
    position: relative;
}

/* --- Hapus atau Ganti Bagian Hover yang Lama --- */

.navbar-default .navbar-nav>li a:hover {
    color: #393939 !important;

    /* Hapus total text-decoration yang lama */
    text-decoration: none !important;
}

/* --- Tambahkan Pseudo-element untuk Garis Transisi --- */

.navbar-default .navbar-nav>li a::after {
    content: '';
    position: absolute;
    width: 0;
    /* Mulai dengan lebar 0 */
    height: 1px;
    /* Tebal garis */
    bottom: 0;
    /* Sesuaikan posisi vertikal garis (di bawah teks) */
    left: 20px;
    /* Sesuaikan dengan padding kiri, agar garis rata dengan teks */

    /* Gunakan warna yang Anda inginkan saat hover */
    background-color: var(--dark-red);

    /* Transisi untuk efek muncul perlahan */
    transition: width 0.3s ease-out;
}

.navbar-default .navbar-nav>li a:hover::after {
    /* Saat hover, lebar garis menjadi 100% dari ruang teks */
    /* Kita gunakan calc() untuk menyesuaikan dengan padding horizontal */
    width: calc(100% - 40px);
    /* 100% dikurangi total padding kiri (20px) dan kanan (20px) */
}

/* --- Perbaiki Bagian Fokus dan Aktif --- */
/* Terapkan efek transisi yang sama saat fokus atau aktif */

.navbar-default .navbar-nav>li>a:focus {
    color: #555555;
    background-color: transparent;
    text-decoration: none;
    /* Hapus underline bawaan */
}

.navbar-default .navbar-nav>li>a:focus::after {
    width: calc(100% - 40px);
    background-color: var(--dark-red);
}

.navbar-default .navbar-nav>.active>a,
.navbar-default .navbar-nav>.active>a:hover,
.navbar-default .navbar-nav>.active>a:focus {
    color: #393939;
    background-color: transparent;
    text-decoration: none;
    /* Hapus underline bawaan */
}

/* Tambahkan garis untuk link aktif */
.navbar-default .navbar-nav>.active>a::after {
    content: '';
    position: absolute;
    width: calc(100% - 40px);
    /* Garis langsung 100% untuk link aktif */
    height: 1px;
    bottom: 0;
    left: 20px;
    background-color: var(--primary-red);
}

.navbar-default .navbar-toggle {
    border: none;
    padding-top: 10px;
}

.navbar-default .navbar-toggle .icon-bar {
    background: #393939;
    border-color: transparent;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
    background-color: transparent;
}


/*---------------------------------------
HOME
-----------------------------------------*/

#home h1 {
    color: #ffffff;
    padding-bottom: 10px;
    margin-top: 0;
}

#home h3 {
    color: #ffffff;
    font-size: 14px;
    font-weight: normal;
    line-height: inherit;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
}

.slider .container {
    width: 100%;
}

.slider .owl-dots {
    position: absolute;
    top: 575px;
    width: 100%;
    justify-content: center;
}

.owl-theme .owl-dots .owl-dot span {
    width: 8px;
    height: 8px;
    margin: 5px 7px;
    border: 2px solid #d9d9d9;
    background: transparent;
    display: block;
    -webkit-backface-visibility: visible;
    transition: opacity 200ms ease;
    border-radius: 30px;
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
    background-color: #ffffff;
    border-color: transparent;
}

.slider .caption {
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    background-color: rgba(20, 20, 20, 0.2);
    height: 100%;
    color: #fff;
    cursor: e-resize;
}

.slider .item {
    /* MODIFIKASI: Mengubah 'inherit' menjadi 'center' agar gambar selalu berada di tengah, memastikan tampilan optimal di layar besar. */
    background-position: center center;
    background-repeat: no-repeat;
    /* TIPS: Jika Anda ingin efek Parallax (gambar latar belakang tetap saat konten scroll), ubah 'local' menjadi 'fixed'.
        Untuk saat ini, saya biarkan 'local' seperti permintaan asli. */
    background-attachment: local;
    background-size: cover;
    height: 650px;
}

.slider .item-first {
    background-image: url(../images/slide2.jpg);
}

.slider .item-second {
    background-image: url(../images/slide4.jpg);
}

.slider .item-third {
    background-image: url(../images/pmr15.jpg);
}

.slider .item-fourth {
    background-image: url(../images/slide3.jpg);
}



/*---------------------------------------
    ABOUT
    -----------------------------------------*/

#about {
    background: url('../images/') no-repeat top right;
    background-size: cover;
    padding-top: 150px;
    padding-bottom: 150px;
}

.profile img,
.profile figcaption {
    display: inline-block;
    vertical-align: top;
    margin-top: 1em;
}

.profile img {
    border-radius: 100%;
    width: 65px;
    height: 65px;
    margin-right: 1em;
}

.profile figcaption h3 {
    margin-top: 0;
}

#about h6 {
    color: #858585;
    margin: 0;
}

/*---------------------------------------
    history
    -----------------------------------------*/
/* Perbaikan: Menghapus URL kosong */
#history {
    /* background: url('../images/') no-repeat top center; */
    background-color: var(--white);
    background-size: cover;
    padding-top: 150px;
    padding-bottom: 150px;
}

.profile img,
.profile figcaption {
    display: inline-block;
    vertical-align: top;
    margin-top: 1em;
}

.profile img {
    border-radius: 100%;
    width: 65px;
    height: 65px;
    margin-right: 1em;
}

.profile figcaption h3 {
    margin-top: 0;
}

#about h6 {
    color: #858585;
    margin: 0;
}

/*---------------------------------------
          ABSENSI SECTION              
      -----------------------------------------*/
#absensi {
    position: relative;
    /* Menambahkan ini untuk konsistensi dengan section lain */
    padding-top: 100px;
    padding-bottom: 100px;
    background: var(--light-gray);
    /* Background sesuai root */
}

#absensi .absensi-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .075);
}

#absensi .absensi-table th,
#absensi .absensi-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--medium-gray);
    /* Border sesuai root */
}

#absensi .absensi-table th {
    background: var(--primary-red);
    color: var(--white);
    font-weight: 600;
}

#absensi .absensi-table tr:hover {
    background-color: var(--light-gray);
    /* Hover sesuai root */
}

/*---------------------------------------
          INVENTARIS SECTION              
      -----------------------------------------*/
#inventaris {
    position: relative;
    /* Menambahkan ini untuk konsistensi dengan section lain */
    padding-top: 100px;
    padding-bottom: 100px;
    background: var(--white);
    /* Background sesuai root */
}

#inventaris .inventaris-item {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .075);
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.3s ease-in-out;
}

#inventaris .inventaris-item:hover {
    transform: translateY(-5px);
}

#inventaris .inventaris-item h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--dark-gray);
    font-size: 1.5em;
}

#inventaris .inventaris-item p {
    color: #757575;
    margin-bottom: 5px;
}

#inventaris .inventaris-item .stock-info {
    font-weight: 500;
    font-size: 14px;
}

#inventaris .inventaris-item .stock-info.low {
    color: var(--primary-red);
    font-weight: 600;
}

/*---------------------------------------
    DATA PANTI
    -----------------------------------------*/
#data-panti {
    /* position: relative;  */
    /* Menambahkan ini untuk konsistensi dengan section lain */
    padding-top: 100px;
    padding-bottom: 100px;
    background: var(--light-gray);
}

#data-panti .card-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.3s ease-in-out;
}

#data-panti .card-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

#data-panti .table-responsive {
    margin-top: 20px;
}

#data-panti .table-striped>tbody>tr:nth-of-type(odd) {
    background-color: #f8f9fa;
}

/* Perbaikan: Mengganti warna header tabel agar sesuai dengan primary-red */
#data-panti .table thead th {
    background-color: var(--primary-red);
    color: var(--white);
    text-align: center;
    border-radius: 5px 5px 0 0;
    border: none;
}

#data-panti .table-bordered,
#data-panti .table-bordered th,
#data-panti .table-bordered td {
    border: 1px solid #dee2e6;
}

#data-panti .text-center {
    color: #333;
    font-weight: bold;
}

/*---------------------------------------
    KEGIATAN-GALLERY
    -----------------------------------------*/
/* Gaya untuk section galeri
        Mengatur padding, perataan teks, dan warna latar belakang.
    */
#kegiatan-gallery {
    position: relative;
    padding-top: 100px;
    padding-bottom: 100px;
    text-align: center;
    background-color: var(--white);
    /* Warna latar belakang ringan */
    font-family: 'Poppins', sans-serif;
}

#kegiatan-gallery h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2rem;
    font-weight: 700;
}

#kegiatan-gallery .team-thumb {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

#kegiatan-gallery .team-thumb:hover {
    transform: scale(1.05);
    /* Gambar membesar sedikit */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    /* Menambah bayangan agar menonjol */
}

#kegiatan-gallery .team-thumb img {
    transition: transform 0.4s ease;
    /* Transisi agar efek halus */
}


/* Container untuk galeri
        Menggunakan CSS Grid untuk tata letak responsif.
    */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
    margin: 0 auto;
    max-width: 1200px;
}

/* Gaya untuk setiap item galeri
        Menambahkan bayangan dan efek transisi.
    */
.gallery-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    cursor: pointer;
    /* Menandakan bahwa item bisa diklik */
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-info {
    padding: 1rem;
}

.gallery-info h3 {
    font-size: 1.25rem;
    color: #333;
    /* Mengubah warna agar lebih terbaca */
    margin-bottom: 0.5rem;
}

.gallery-info p {
    font-size: 0.9rem;
    color: #757575;
    /* Menggunakan warna teks standar */
    line-height: 1.4;
}

/* Gaya untuk Modal
        Menampilkan modal di atas konten lain saat aktif.
    */
.modal {
    display: none;
    /* Sembunyikan modal secara default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    /* Latar belakang semi-transparan */
    display: flex;
    /* Menggunakan flexbox untuk memposisikan di tengah */
    justify-content: center;
    align-items: center;
}

.modal-body {
    text-align: center;
    /* Memastikan konten modal berada di tengah */
    max-width: 90%;
    /* Menambah max-width untuk konten */
    background-color: var(--white);
    /* Latar belakang modal content */
    border-radius: 10px;
    padding: 20px;
}

.modal-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    /* Sudut sedikit membulat */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* Efek bayangan halus */
    margin-bottom: 15px;
}

.modal-description {
    text-align: left;
    /* Mengubah ke left agar lebih mudah dibaca */
    padding: 0 15px;
    white-space: pre-wrap;
    /* Memastikan format baris di deskripsi (dari nl2br) tetap terjaga */
    color: var(--dark-gray);
}

.modal-body .img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
    margin: auto;
}

/* Konten di dalam modal */
.modal-content {
    /* Margin auto tidak perlu jika menggunakan flexbox di .modal */
    display: block;
    width: 90%;
    /* Lebar gambar di modal */
    max-width: 700px;
    /* Menambah max-width agar gambar lebih besar di desktop */
    animation-name: zoom;
    animation-duration: 0.6s;
    border-radius: 10px;
    background-color: transparent;
    /* Pastikan ini transparan untuk menampilkan .modal-body */
}

/* Efek animasi saat modal muncul */
@keyframes zoom {
    from {
        transform: scale(0.8);
        /* Mengubah skala awal agar lebih halus */
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Tombol Tutup */
.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: var(--white);
    /* Mengubah warna menjadi putih agar terlihat di latar belakang gelap */
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: var(--primary-red);
    /* Hover berwarna merah */
    text-decoration: none;
    cursor: pointer;
}

/*
        Responsif untuk layar yang lebih kecil
    */
@media (max-width: 768px) {
    #kegiatan-gallery h2 {
        font-size: 2rem;
    }

    .gallery-container {
        grid-template-columns: 1fr;
    }
}





/*---------------------------------------
    TEAM MEMBERS
    -----------------------------------------*/
#team .team-thumb {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

#team .team-thumb:hover {
    transform: scale(1.05);
    /* Foto membesar sedikit saat di-hover */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    /* Menambah bayangan agar menonjol */
    z-index: 10;
    /* Pastikan gambar yang di-hover muncul di atas */
}

#team .team-thumb img {
    /* Pastikan gambar di dalam .team-thumb tidak terdistorsi */
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    /* Transisi agar efek halus */
}

.team-thumb {
    background-color: #f9f9f9;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 30px;
    /* Tambahkan tinggi tetap untuk kontainer agar gambar seragam */
    height: 300px;
    /* Sesuaikan nilai ini sesuai keinginan Anda */
    /* Tambahkan transisi pada team-thumb itu sendiri */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    /* PENTING */
}

/* MENAMBAHKAN EFEK HOVER: Foto menjadi lebih menonjol */
.team-thumb:hover {
    transform: translateY(-10px);
    /* transform: scale(1.05); */
    /* Skala membesar 5% */
    box-shadow: var(--hover-shadow);
    /* box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); */
    /* Bayangan untuk efek menonjol */
    z-index: 10;
    /* Pastikan di atas elemen lain */
}

.team-thumb img {
    /* ... kode yang sudah ada ... */
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Tambahkan transisi juga pada gambar untuk mencegah kedipan */
    transition: transform 0.4s ease;
    /* PENTING */
}

.team-thumb img {
    /* Atur border-radius pada gambar agar pojoknya ikut melengkung */
    border-radius: 10px;
    /* **PENTING: Pengaturan untuk keseragaman gambar** */
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ini akan memastikan gambar menutupi area tanpa terdistorsi dan memotong bagian yang tidak perlu */

}



.team-info {
    padding: 20px 30px 0 30px;
}

.team-contact-info {
    border-top: 1px solid #e9e9e9;
    padding-top: 1.2em;
    margin-top: 1.5em;
}

.team-contact-info .fa {
    margin-right: 5px;
    display: inline-block;
}

.team-contact-info p {
    margin-bottom: 2px;
}

.team-contact-info a {
    color: #757575;
}

.team-thumb .social-icon li {
    font-weight: 500;
}

.team-thumb .social-icon li a {
    background: #ffffff;
    border-radius: 100%;
    font-size: 20px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    margin: 0 2px 0 2px;
}

.team-thumb .social-icon {
    opacity: 0;
    transform: translateY(100%);
    transition: 0.5s 0.2s;
    text-align: center;
    position: relative;
    top: 0;
}

.team-thumb:hover .social-icon {
    opacity: 1;
    transition-delay: 0.3s;
    transform: translateY(0px);
    /* Perlu penyesuaian posisi agar terlihat. Nilai 22em terlalu besar */
    top: -140px;
    /* Nilai yang lebih masuk akal */
}



/*---------------------------------------
    SERVICE
    -----------------------------------------*/
/* Perbaikan: Mengganti warna background dan icon agar konsisten dengan primary-red */
#service {
    background: var(--primary-red);
}

#service h2,
#service h4 {
    color: #ffffff;
}

#service p {
    color: var(--text-light);
    /* Menggunakan variabel yang lebih terang */
}

#service .service-thumb {
    padding: 0 22px;
}

#service .fa {
    font-size: 50px;
    margin-bottom: 10px;
    background: #ffffff;
    color: var(--primary-red);
    /* Mengganti warna icon menjadi primary-red */
    width: 120px;
    height: 120px;
    line-height: 120px;
    border-radius: 100%;
}


/*---------------------------------------
    NEWS
    -----------------------------------------*/

#news,
#news-detail {
    background: #f9f9f9;
}

#news-detail blockquote {
    margin: 30px 0;
}

.news-detail-thumb .news-image img {
    border-radius: 10px;
}

.news-detail-thumb h3 {
    margin-bottom: 8px;
}

.news-image {
    margin-bottom: 30px;
    position: relative;
}

.news-image img {
    width: 100%;
}

.news-detail-thumb ul {
    margin: 32px 12px 22px 0px;
}

.news-detail-thumb ul li {
    list-style: circle;
    font-weight: normal;
    padding: 6px 12px 6px 0px;
}

.news-sidebar {
    margin-top: 16px;
}

.news-social-share {
    text-align: center;
    padding-top: 22px;
}

.news-social-share .btn {
    border-radius: 100px;
    border: none;
    font-size: 10px;
    font-weight: 600;
    margin: 2px 6px;
    padding: 8px 14px;
}

.news-social-share .btn-primary {
    background: #3b5998;
}

.news-social-share .btn-success {
    background: #1da1f2;
}

.news-social-share .btn-danger {
    background: #dd4b39;
}

.news-social-share a .fa {
    padding-right: 4px;
}

.recent-post {
    padding-top: 2px;
    padding-bottom: 18px;
}

.recent-post .media img {
    border-radius: 100%;
    width: 80px;
    height: 80px;
    margin-right: 5px;
}

.recent-post .media-heading {
    font-size: 16px;
    font-weight: 500;
    line-height: inherit;
    margin-top: 5px;
}

.news-categories {
    margin-top: 8px;
}

.news-categories li a {
    color: #2b2b2b;
}

.news-ads {
    background: #ffffff;
    border-right: 4px solid #2b2b2b;
    padding: 42px;
    text-align: center;
    margin: 26px 0 26px 0;
}

.news-ads.sidebar-ads {
    border-left: 4px solid #2b2b2b;
    border-right: 0px;
}

.news-ads h4 {
    font-size: 18px;
}

.news-tags h4 {
    padding-bottom: 6px;
}

.news-categories li,
.news-tags li {
    list-style: none;
    display: inline-block;
    margin: 4px;
}

.news-tags li a {
    background: #393939;
    border-radius: 50px;
    color: #ffffff;
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    float: left;
    min-width: 30px;
    padding: 6px 12px;
    -webkit-transition: all ease-in-out 0.4s;
    transition: all ease-in-out 0.4s;
}

.news-tags li a:hover {
    background: #4267b2;
}



/*---------------------------------------
    APPOINTMENT
    -----------------------------------------*/

#appointment {
    padding-top: 100px;
}

#appointment label {
    color: #393939;
    font-weight: 500;
}

#appointment .form-control {
    background: #f9f9f9;
    border: none;
    border-radius: 3px;
    box-shadow: none;
    font-size: 14px;
    font-weight: normal;
    margin-bottom: 15px;
    transition: all ease-in-out 0.4s;
}

#appointment input,
#appointment select {
    height: 45px;
}

/* Perbaikan: Mengganti warna tombol appointment */
#appointment button#cf-submit {
    background: var(--primary-red);
    color: #ffffff;
    font-weight: 600;
    height: 55px;
}

#appointment button#cf-submit:hover {
    background: var(--dark-red);
    color: #ffffff;
}


/*---------------------------------------
    FOOTER
    -----------------------------------------*/

footer {
    padding-top: 80px;
    padding-bottom: 40px;
}

footer h4 {
    padding-bottom: 5px;
}

footer a {
    color: #757575;
}

footer a:hover {
    color: var(--dark-red);
}

.contact-info {
    padding-top: 10px;
}

.contact-info .fa {
    background: #393939;
    border-radius: 100%;
    color: #ffffff;
    font-size: 15px;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    margin-right: 5px;
    margin-bottom: 2px;
}

.latest-stories {
    margin-bottom: 20px;
}

.stories-image,
.stories-info {
    display: inline-block;
    vertical-align: top;
}

.stories-image img {
    border-radius: 100%;
    width: 65px;
    height: 65px;
}

.stories-info {
    margin-left: 15px;
}

.stories-info h5 {
    margin-bottom: 2px;
}

.stories-info span {
    color: #858585;
    font-size: 12px;
}

.opening-hours p {
    line-height: 18px;
}

.opening-hours span {
    font-weight: 500;
    display: inline-block;
    padding-left: 10px;
}

.copyright-text p,
.footer-link a {
    color: #858585;
    font-size: 12px;
    font-weight: 500;
}

.footer-link a {
    font-size: 12px;
    display: inline-block;
    padding: 0 10px;
    margin-top: 4px;
}

.angle-up-btn {
    position: relative;
    bottom: 4em;
    display: block;
}

.angle-up-btn a {
    background: #ffffff;
    border: 1px solid #f2f2f2;
    border-radius: 3px;
    font-size: 20px;
    color: #393939;
    display: inline-block;
    text-align: center;
    width: 40px;
    height: 40px;
    line-height: 38px;
    transition: transform 0.1s ease-in;
    transform: translateX(0);
}

.angle-up-btn a:hover {
    background: var(--primary-red);
    /* Mengganti warna hover */
    color: #ffffff;
    transform: translateY(-5px);
}


/*---------------------------------------
    SOCIAL ICON
    -----------------------------------------*/

.social-icon {
    position: relative;
    padding: 0;
    margin: 0;
}

.social-icon li {
    display: inline-block;
    list-style: none;
}

.social-icon li a {
    border-radius: 100px;
    color: var(--dark-gray);
    font-size: 15px;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-decoration: none;
    text-align: center;
    transition: all 0.4s ease-in-out;
    position: relative;
}

.social-icon li a:hover {
    background: var(--dark-red);
    color: #ffffff;
}

/*---------------------------------------
        LOGIN PAGE STYLES          
      -----------------------------------------*/
#login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: var(--light-gray);
    padding: 20px;
}

.login-form-box {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    text-align: center;
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-form-box h3 {
    color: var(--primary-red);
    /* Menggunakan primary-red */
    font-weight: 600;
    margin-bottom: 25px;
}

.login-form-box .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.login-form-box .form-group label {
    color: var(--dark-gray);
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.login-form-box .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    font-size: 16px;
    background: #f9f9f9;
    transition: all 0.3s ease;
}

.login-form-box .form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 5px rgba(216, 0, 0, 0.3);
    outline: none;
}

.login-form-box .btn-block {
    background: var(--primary-red);
    color: var(--white);
    font-weight: 600;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    width: 100%;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-form-box .btn-block:hover {
    background: var(--dark-red);
}

.login-form-box .alert {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    font-weight: 500;
}

.login-form-box .alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.login-form-box .links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.login-form-box .links a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-form-box .links a:hover {
    color: var(--dark-red);
}

/*---------------------------------------
         RESPONSIVE LOGIN FORM              
      -----------------------------------------*/
@media (max-width: 480px) {
    .login-form-box {
        padding: 30px 20px;
    }

    .login-form-box h3 {
        font-size: 1.8em;
    }
}


/*---------------------------------------
    RESPONSIVE STYLES
    -----------------------------------------*/
@media only screen and (max-width: 1600px) {
    header {
        height: auto;
    }
}

@media only screen and (max-width: 1200px) {
    h1 {
        font-size: 4em;
    }

    h2 {
        font-size: 2.5em;
    }

    h3 {
        font-size: 1.5em;
    }

    header {
        height: inherit;
    }

    header span.date-icon {
        border: 0;
        padding-right: 0;
        padding-left: 0;
    }

    header span.email-icon {
        padding-top: 0;
    }

    .navbar-default .navbar-nav li a {
        padding-right: 15px;
        padding-left: 15px;
    }
}

@media only screen and (max-width: 992px) {
    .slider .item {
        background-position: center;
    }

    header {
        padding-bottom: 10px;
    }

    header .text-align-right {
        text-align: left;
    }

    header span {
        padding-top: 0;
        padding-left: 0;
        padding-bottom: 0;
    }
}

@media only screen and (max-width: 767px) {

    .navbar-default .navbar-collapse,
    .navbar-default .navbar-form {
        border-color: transparent;
    }

    .navbar-default .navbar-nav li.appointment-btn {
        margin-left: 15px;
    }

    .navbar-default .navbar-nav li a {
        display: inline-block;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    #inventaris .inventaris-item {
        padding: 20px;

    }

    #inventaris .inventaris-item h4 {
        font-size: 1.4em;
    }

    /* Perbaikan Responsif Tabel Absensi */
    #absensi .absensi-table {
        border: 0;
    }

    #absensi .absensi-table thead tr {
        /* Membuat thead tersembunyi namun tetap bisa diakses screen reader */
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    #absensi .absensi-table tr {
        border: 1px solid var(--medium-gray);
        margin-bottom: 10px;
        border-radius: 10px;
    }

    #absensi .absensi-table td {
        border: none;
        border-bottom: 1px solid #eee;
        /* Mengubah ke warna yang lebih terang */
        position: relative;
        padding-left: 50%;
        text-align: right;
    }

    #absensi .absensi-table td:last-child {
        border-bottom: 0;
        /* Menghilangkan border bawah pada elemen terakhir */
    }

    #absensi .absensi-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: calc(50% - 30px);
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: 600;
        color: var(--dark-gray);
        /* Warna teks sesuai root */
    }

    /* Akhir Perbaikan Responsif Tabel Absensi */


    /* Perbaikan: Modal tidak menggunakan modal-dialog Bootstrap secara default */
    /* .modal-dialog  */
    /* Hapus atau jadikan komentar karena modal yang Anda buat custom */
    /* width: 95% !important; */
    /* margin: 10px auto; */


    /* Menghilangkan margin-bottom pada gambar yang paling bawah di daftar mobile */
    /* Karena di mobile hanya 1 kolom */
    #team .row>.col-sm-6 .team-thumb {
        margin-bottom: 30px;
    }

    #team .row>.col-sm-6:last-child .team-thumb {
        margin-bottom: 0;
    }
}


.news-sidebar {
    margin-top: 2em;
}

#appointment-form {
    padding-top: 4em;
    padding-bottom: 4em;
}

footer {
    padding-top: 60px;
    padding-bottom: 0;
}

.footer-thumb {
    padding-bottom: 10px;
}

.border-top {
    text-align: center;
}

.copyright-text {
    margin-top: 10px;
}

.angle-up-btn {
    bottom: 10em;
}

#google-map {
    height: 50vh;
    /* Tinggi lebih adaptif di mobile */
    min-height: 300px;
    /* Tinggi minimum untuk usability */
}

/* Pastikan iframe/container map di dalamnya mengikuti */
#google-map iframe,
#google-map .map-container {
    width: 100%;
    height: 100%;
}


@media only screen and (max-width: 639px) {
    h1 {
        font-size: 3em;
        line-height: 1.2em;
    }

    h2 {
        font-size: 2.1em;
    }

    h4 {
        font-size: 1.4em;
    }

    #home h3 {
        font-size: 11px;
        letter-spacing: 1px;
    }

}

/* Penyesuaian untuk Tampilan Tablet (SM - 768px ke atas) */
@media (min-width: 768px) and (max-width: 991px) {

    /* Perbaikan: Menghitung ulang untuk 2 kolom. */
    /* Menghilangkan margin-bottom untuk gambar di baris terakhir, agar footer tidak terlalu jauh */
    #team .col-sm-6 .team-thumb {
        margin-bottom: 30px;
    }

    /* Memastikan hanya 2 item terakhir yang margin-bottom-nya 0 */
    #team .row>.col-sm-6:nth-last-child(-n+2) .team-thumb {
        margin-bottom: 0;
    }

    /* Jika jumlah item ganjil, item terakhir harus 0 */
    #team .row>.col-sm-6:last-child:nth-child(odd) .team-thumb {
        margin-bottom: 0;
    }
}


@media (min-width: 768px) and (max-width: 991px) {

    /* Perbaikan: Menghitung ulang untuk 2 kolom. */
    /* Menghilangkan margin-bottom untuk gambar di baris terakhir, agar footer tidak terlalu jauh */
    #team .col-sm-6 .team-thumb {
        margin-bottom: 30px;
    }

    /* Memastikan hanya 2 item terakhir yang margin-bottom-nya 0 */
    #team .row>.col-sm-6:nth-last-child(-n+2) .team-thumb {
        margin-bottom: 0;
    }

    /* Jika jumlah item ganjil, item terakhir harus 0 */
    #team .row>.col-sm-6:last-child:nth-child(odd) .team-thumb {
        margin-bottom: 0;
    }
}