/* public/css/news.css */
/* Visby Bold */
@font-face {
    font-family: "Visby";
    src: url("../vendor/font/visby-cufonfonts/VisbyBold.otf") format("opentype");
    font-weight: bold;
    font-style: normal;
}

/* Visby Bold Italic */
@font-face {
    font-family: "Visby";
    src: url("../vendor/font/visby-cufonfonts/VisbyBoldItalic.otf")
        format("opentype");
    font-weight: bold;
    font-style: italic;
}

/* Visby Extrabold */
@font-face {
    font-family: "Visby";
    src: url("../vendor/font/visby-cufonfonts/VisbyExtrabold.otf")
        format("opentype");
    font-weight: 800;
    font-style: normal;
}

/* Visby Extrabold Italic */
@font-face {
    font-family: "Visby";
    src: url("../vendor/font/visby-cufonfonts/VisbyExtraboldItalic.otf")
        format("opentype");
    font-weight: 800;
    font-style: italic;
}

/* Visby Heavy */
@font-face {
    font-family: "Visby";
    src: url("../vendor/font/visby-cufonfonts/VisbyHeavy.otf")
        format("opentype");
    font-weight: 900;
    font-style: normal;
}

/* Visby Heavy Italic */
@font-face {
    font-family: "Visby";
    src: url("../vendor/font/visby-cufonfonts/VisbyHeavyItalic.otf")
        format("opentype");
    font-weight: 900;
    font-style: italic;
}

/* Visby Italic */
@font-face {
    font-family: "Visby";
    src: url("../vendor/font/visby-cufonfonts/VisbyItalic.otf")
        format("opentype");
    font-weight: normal;
    font-style: italic;
}

/* Visby Light */
@font-face {
    font-family: "Visby";
    src: url("../vendor/font/visby-cufonfonts/VisbyLight.otf")
        format("opentype");
    font-weight: 300;
    font-style: normal;
}

/* Visby Light Italic */
@font-face {
    font-family: "Visby";
    src: url("../vendor/font/visby-cufonfonts/VisbyLightItalic.otf")
        format("opentype");
    font-weight: 300;
    font-style: italic;
}

/* Visby Medium */
@font-face {
    font-family: "Visby";
    src: url("../vendor/font/visby-cufonfonts/VisbyMedium.otf")
        format("opentype");
    font-weight: 500;
    font-style: normal;
}

/* Visby Medium Italic */
@font-face {
    font-family: "Visby";
    src: url("../vendor/font/visby-cufonfonts/VisbyMediumItalic.otf")
        format("opentype");
    font-weight: 500;
    font-style: italic;
}

/* Visby Regular */
@font-face {
    font-family: "Visby";
    src: url("../vendor/font/visby-cufonfonts/VisbyRegular.otf")
        format("opentype");
    font-weight: normal;
    font-style: normal;
}

/* Visby Semibold */
@font-face {
    font-family: "Visby";
    src: url("../vendor/font/visby-cufonfonts/VisbySemibold.otf")
        format("opentype");
    font-weight: 600;
    font-style: normal;
}

/* Visby Semibold Italic */
@font-face {
    font-family: "Visby";
    src: url("../vendor/font/visby-cufonfonts/VisbySemiboldItalic.otf")
        format("opentype");
    font-weight: 600;
    font-style: italic;
}

/* Visby Thin */
@font-face {
    font-family: "Visby";
    src: url("../vendor/font/visby-cufonfonts/VisbyThin.otf") format("opentype");
    font-weight: 100;
    font-style: normal;
}

/* Visby Thin Italic */
@font-face {
    font-family: "Visby";
    src: url("../vendor/font/visby-cufonfonts/VisbyThinItalic.otf")
        format("opentype");
    font-weight: 100;
    font-style: italic;
}
:root {
    /* ====== Colors ====== */
    --first-color: #4d8cfe;
    --second-color: #d8e6ff;
    --third-color: #001b4a;
    --title-color: #fff;
    --text-color: #707070;

    /* ====== Font and typography ====== */
    --body-font: "Gilroy", sans-serif;
    --biggest-font-size: 4rem;
    --h1-font-size: 3.375rem;
    --h2-font-size: 2.8rem;
    --h3-font-size: 1.7rem !important;
    --p-font-size: 1.525;
    --p-fontdate-size: 1.8;
    --p-fontprice-size: 2rem;
    /* --normal-font-size: 0.938rem;
    --small-font-size: 0.813rem;
    --smaller-font-size: 0.75rem; */

    /* ====== Font weight ====== */
    --font-medium: 500;
    --font-semi-bold: 600;
}

@media screen and (min-width: 768px) {
    :root {
        --biggest-font-size: 3.375rem;
        --h1-font-size: 2.9rem;
        --h2-font-size: 2.2rem;
        --h3-font-size: 1.7rem;
        --p-font-size: 1rem;
        --p-fontdate-size: 1.4;
        --p-fontprice-size: 1.7;
    }
}
@media screen and (max-width: 480px) {
    .hide {
        display: none;
    }
    :root {
        --biggest-font-size: 2.3rem;
        --h1-font-size: 2rem;
        --h2-font-size: 1rem;
        --h3-font-size: 1.2rem !important;
        --p-font-size: 0.8rem;
        --p-fontdate-size: 0.9;
        --p-fontprice-size: 1rem;
    }
}
/* Header */
header .navbar {
    width: 100%;
    padding: 15px 60px;
    z-index: 11;
    background-color: #015afe;
}

header .navbar-brand img {
    width: 150px;
}

header .navbar-nav a {
    font-family: "Gilroy", sans-serif;
    font-weight: reguler;
    font-size: 16px;
    font-weight: 600;
    color: #fff !important;
    margin-right: 10px;
    letter-spacing: 1px;
}
header .navbar-light .navbar-toggler:focus {
    box-shadow: none;
}
header .navbar-light i,
header .navbar-light i.bx-x:before {
    color: var(--title-color) !important;
    font-size: 22px;
}
header .nav-light {
    padding: 15px 60px 0 60px;
}
header .nav-light img {
    width: 220px;
}

/* Akhir Header */

:root {
    --primary-color: #0066cc;
    --secondary-color: #f4f4f4;
    --text-color: #333;
    --light-text: #666;
    --border-radius: 12px;
}

body {
    font-family: "Visby", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
    margin: 0;
    padding: 0;
}
p {
    font-family: "Visby";
    text-align: justify;
}

a {
    text-decoration: none; /* Menghilangkan garis bawah */
    color: inherit; /* Menggunakan warna teks dari elemen induk */
    font-family: "Visby";
}

.news-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.news-title {
    font-size: 3.5rem;
    color: black;
    font-weight: bold;
    font-family: "Visby";
}
.author_title {
    font-family: "Visby";
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: black;
    font-weight: normal;
    font-weight: 600;
    /* margin-left: 24px; */
}
.publiseh_at_title {
    font-family: "Visby";
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: black;
    font-weight: normal;
    /* margin-left: 24px; */
}
.news-card-header {
    max-width: 100%; /* Buat lebar penuh */
    margin: 0 auto; /* Tengah-tengah */
    width: 50%;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.news-card-header:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.news-image-header {
    width: 100%;
    height: 50vh;
    background-size: cover;
    background-position: center top;
}

.news-content-header {
    padding: 12px;
}
.news-headline-header {
    font-family: "Visby";
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.news-excerpt-header {
    font-family: "Visby";
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 12px;
}

.news-footer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 12px;
    font-family: "Visby";
}

.news-date-header {
    font-size: 1rem;
    color: var(--light-text);
    font-family: "Visby";
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.news-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.news-content {
    padding: 20px;
}

.news-headline {
    font-family: "Visby";
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.news-excerpt {
    font-family: "Visby";
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 20px;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
    font-family: "Visby";
}

.news-date {
    font-size: 0.8rem;
    color: var(--light-text);
    font-family: "Visby";
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
    font-family: "Visby";
}

.read-more:hover {
    color: #004499;
    font-family: "Visby";
}

.image-container {
    display: flex;
    align-items: center; /* Vertikal center */
    justify-content: center; /* Horizontal center */
    width: 100%; /* Atur sesuai kebutuhan */
    height: auto; /* Atur sesuai kebutuhan */
    margin-bottom: 20px;
    margin-right: 24px;
    margin-left: auto;
}

.image-container img {
    width: 100%;
    object-fit: cover;
    height: auto;
}

.image-show {
    width: 90%;
    border-radius: 12px;
    height: 100%; /* Pastikan gambar memenuhi kontainer */
    object-fit: cover;
    object-position: center;
}

/* Footer */
footer {
    padding: 60px 120px;
    background-color: #001b4a;
    color: #fff;
    background-size: cover;
    background-repeat: no-repeat;
}
footer .footer-partners-first,
footer .footer-partners-second {
    margin: 0px auto;
    width: 80%;
    display: flex;
    flex-wrap: wrap;
    padding-block: 20px;
}

footer .footer-partners-first .partner-item {
    flex: 1 1 25%;
}
footer .footer-partners-second .partner-item {
    flex: 1 1 20%;
}
footer img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: none;
    transition: 0.3s ease-in-out;
}
footer img:hover {
    filter: invert(44%) sepia(94%) saturate(455%) hue-rotate(191deg)
        brightness(92%) contrast(89%);
}
footer .footer-content {
    text-align: center;
    justify-content: center;
    margin: auto; /* Untuk memastikan semua elemen di tengah */
}

footer .social-media {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

footer .social-media .sosmed {
    margin: 0 10px;
    width: 40px;
    filter: invert(100%) brightness(100%) contrast(100%);
}

footer .logo {
    margin: 20px auto;
    display: block; /* Memastikan logo ditampilkan dalam baris baru */
    width: 220px;
}

footer p {
    font-family: "Visby", sans-serif;
    font-size: 14px;
    margin-top: 20px;
    color: white;
}

footer .divider {
    border: none;
    border-top: 2px solid #fff; /* Ganti #fff dengan warna yang diinginkan */
    margin: 50px 5% 50px 5%; /* Jarak atas dan bawah dari elemen lainnya */
    width: 100%; /* Pastikan garis mengisi seluruh lebar kontainer */
}

.container-fluid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.home-content {
    display: flex;
    flex-direction: column;
}

.home-form {
    display: flex;
    flex-direction: column;
    order: 2; /* Form berada setelah box-item di tampilan besar */
}

/* Menyembunyikan title-content yang tidak sesuai pada tampilan tertentu */
.desktop-title {
    display: block;
}

.mobile-title {
    display: none;
}

/* Akhir Footer */

.arrow-icon {
    margin-left: 5px;
    font-style: normal;
}

@media (max-width: 768px) {
    header .navbar-light .offcanvas,
    header .navbar-light .offcanvas.show {
        background-color: #015afe;
    }
    header .navbar-light .navbar-toggler {
        border: none;
    }
    header .navbar-light i,
    header .navbar-light i.bx-x:before {
        color: #fff !important;
        font-size: 32px;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-title {
        font-size: 2rem;
    }

    /* Footer */
    footer {
        padding: 60px;
    }
    footer .footer-partners-first,
    footer .footer-partners-second {
        width: 100%;
    }
    footer .footer-partners-first .partner-item {
        flex: 50%;
    }

    footer .footer-partners-second .partner-item.first {
        flex: 50%;
    }
    footer .footer-partners-second .partner-item.second {
        flex: 33%;
    }
    footer .footer-partners-first,
    footer .footer-partners-second {
        padding-block: 0px;
    }
    /* Akhir Footer */
}

@media (max-width: 480px) {
    header .navbar,
    header .nav-light {
        padding: 10px 20px;
    }
    header .navbar i,
    header .navbar i.bx::before {
        font-size: 35px;
    }
    .news-container {
        padding: 20px 10px;
    }

    .news-title {
        font-size: 1.75rem;
    }

    .news-headline {
        font-size: 1.1rem;
    }
    /*  footer */
    footer .footer-partners-second .partner-item.second {
        flex: 50%;
    }

    footer .footer-partners-first,
    footer .footer-partners-second {
        padding-block: 0px;
    }
    /* akhir footer */
}

/* show */
#article-description p {
    font-size: 20px;
}
.share-btn small {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    color: #444;
}
.share-bar img {
    transition: transform 0.2s;
}
.share-bar img:hover {
    transform: scale(1.1);
}
.share-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.share-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 28%;
    text-align: center;
}

.share-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.share-item small {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.share-bar {
    padding-right: 0 !important;
    margin-right: 0 !important;
}
.share-bar .btn {
    padding: 0 !important;
}

@media (min-width: 576px) {
    .share-item {
        width: auto;
    }
}

/* Modal positioning & border bottom */
@media (max-width: 576px) {
    #shareMoreModal .modal-dialog {
        margin-top: 10vh;
    }
}

#shareMoreModal .modal-content {
    border-bottom: 2px solid #e0e0e0;
}

@media (min-width: 800px) {
    #home {
        margin-left: 15%;
        margin-right: 15%;
    }
}
