@charset "UTF-8";
/*
Theme Name: new theme
Theme URI: 
Author: SaturationLight
Author URI: 
Description: Optimized additional css for saturationlight website.
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 5.7
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: new-theme
Tags: 
*/

/* ========== Header dan Navigasi ========== */

/* Membuat header sticky dan responsif */
header {
    position: fixed; 
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.wp-block-cover {
    z-index: 1000 !important;
}

/* Mengubah warna latar belakang header saat digulir */
header.scrolled {
    background-color: #161008 !important; 
    opacity: 1; 
}

/* Hover efek pada label navigasi */
.navbar-hover a:hover .wp-block-navigation-item__label {
    color: #fff;
}

/* Warna untuk navbar aktif */
.nav-link.active .wp-block-navigation-item__label, 
.wp-block-navigation-item.current-menu-item.wp-block-navigation-link {
    color: #fff !important;
}

/* ========== Tombol dan Hover ========== */

/* Hover efek untuk tombol hero */
.hover-button a:hover {
    border-color: #666666;
    background-color: #fff;
    color: #181818; 
}

/* button style navigation about us */
.type--A {
    --line_color: #555555;
}

.button {
    position: relative;
    z-index: 0;
    width: 240px;
    height: 56px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    color: var(--line_color);
    letter-spacing: 2px;
    transition: all .3s ease;
}

.button__text {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.button::before,
.button::after,
.button__text::before,
.button__text::after {
    content: '';
    position: absolute;
    height: 3px;
    border-radius: 2px;
    background: var(--line_color);
    transition: all .5s ease;
}

.button::before {
    top: 0;
    left: 54px;
    width: calc(100% - 56px * 2 - 16px);
}

.button::after {
    top: 0;
    right: 54px;
    width: 8px;
}

.button__text::before {
    bottom: 0;
    right: 54px;
    width: calc(100% - 56px * 2 - 16px);
}

.button__text::after {
    bottom: 0;
    left: 54px;
    width: 8px;
}

.button__line {
    position: absolute;
    top: 0;
    width: 56px;
    height: 100%;
    overflow: hidden;
}

.button__line::before {
    content: '';
    position: absolute;
    top: 0;
    width: 150%;
    height: 100%;
    box-sizing: border-box;
    border-radius: 300px;
    border: solid 3px var(--line_color);
}

.button__line:nth-child(1),
.button__line:nth-child(1)::before {
    left: 0;
}

.button__line:nth-child(2),
.button__line:nth-child(2)::before {
    right: 0;
}

.button:hover {
    letter-spacing: 6px;
}

.button:hover::before,
.button:hover .button__text::before {
    width: 8px;
}

.button:hover::after,
.button:hover .button__text::after {
    width: calc(100% - 56px * 2 - 16px);
}

.container {
    width: 100%;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.button:not(:last-child) {
    margin-bottom: 64px;
}

/* Mengubah background dan warna tulisan untuk button partner active */
.wp-block-uagb-buttons-child.active .uagb-buttons-repeater {
    border-bottom-width: 2px !important;
    border-bottom-color: #18384e !important;
    font-weight: 700 !important;

}

/* ========== Formulir dan Tombol Submit ========== */

/* Menghilangkan konten kosong sebelum formulir */
.nf-before-form-content, .wp-block-uagb-container p:empty {
    display: none !important;
}

/* Gaya untuk tombol submit pada Ninja Forms */
#nf-field-4 {
    background-color: #9b7d61;
    font-size: 15px;
    color: #fff;
    padding: 12px 21px;
    border: solid 1px #624635;
}

/* Hover efek untuk tombol submit */
#nf-field-4:hover {
    background-color: #E9D7C0; 
    color: #624635;
}

/* ========== Layout Post ========== */

/* Tata letak untuk post dalam grid dengan efek hover */
.post-layout {
    display: block !important;
    -webkit-columns: 3;
    -moz-columns: 3;
    columns: 3;
    column-gap: 1.5rem;
}

.post-layout .post-item {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 1.5rem;
    break-inside: avoid;
    overflow: hidden;
    border-radius: 5px;
}

.post-layout img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease-in-out;
}

/* Hover Effects */
.post-layout .post-item:hover img {
    transform: scale(1.05);
}

.post-layout .hover-title {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    pointer-events: none;
}

.post-layout .post-item:hover .hover-title {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Navigasi Post ========== */

/* Layout untuk navigasi post sebelumnya dan berikutnya */
.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    /* Allow items to wrap on small screens */
}

.post-navigation .post-item {
    width: 280px;
    /* Fixed width for cropped image */
    text-align: center;
    /* Center-align the text under the image */
    flex-shrink: 0;
}

.post-navigation img {
    width: 280px;
    height: 190px;
    object-fit: cover;
    display: block;
    border-radius: 5px;
    transition: transform 0.3s ease-in-out;
}

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

.post-navigation h2 {
    margin: 0.5rem 0 0;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* ========== Media Queries untuk Tampilan Responsif ========== */

/* Mengatur ukuran kolom pada resolusi kecil */
@media (max-width: 599px) {
  .wp-block-column:first-child {
    flex-basis: 90% !important;
  }
  
  .wp-block-column:last-child {
    flex-basis: 10% !important;
  }
}

/* Menyesuaikan ukuran font pada judul situs */
@media (max-width: 483px) {
    h1.wp-block-site-title {
        font-size: 15px !important;
    }
}

/* Mengatur ukuran font heading berdasarkan resolusi */
@media (max-width: 780px) {
    .uagb-block-214c8c84 .uagb-heading-text {
        font-size: 40px !important;
    }
    .uagb-block-d7606775 .uagb-heading-text {
        font-size: 34px !important;
    }
}

/* Penyesuaian tata letak pada resolusi tertentu */
@media (max-width: 1024px) {
    .post-layout {
        columns: 2;
    }
    .post-navigation {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .post-layout {
        columns: 1;
    }
}
