body,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Montserrat", sans-serif;
}

:root {
    --accent-color: #1a4278;
    --nav-dropdown-hover-color: #3d85c6;
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
/* section,
.section {
    color: var(--default-color);
    background-color: var(--background-color);
    padding: 60px 0;
    scroll-margin-top: 90px;
    overflow: clip;
}

@media (max-width: 768px) {

    section,
    .section {
        padding: 40px 0;
    }
}

@media (max-width: 1199px) {

    section,
    .section {
        scroll-margin-top: 76px;
    }
} */

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 3rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: var(--accent-color) !important;
    margin-bottom: 30px !important;
    padding: 0 !important;
    position: relative !important;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg,
            var(--accent-color),
            var(--nav-hover-color));
    border-radius: 2px;
    animation: lineGrow 2s ease-out 1.5s forwards;
}

.section-subtitle {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--default-color);
}

@keyframes lineGrow {
    to {
        width: 200px;
    }
}

@media (max-width: 426px) {
    @keyframes lineGrow {
        to {
            width: 100px;
        }
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 16px;
    }
}

/*--------------------------------------------------------------
# GCG Section
--------------------------------------------------------------*/

.whistleblowing p,
.protection-whistleblowers p,
.reportable-violations p {
    line-height: 1.7;
    font-size: 1.1rem;
    text-align: justify;
}

.whistleblowing .card-custom {
    background: linear-gradient(135deg,
            var(--accent-color),
            var(--nav-hover-color));
    border-radius: 12px;
    padding: 35px;
    text-align: center;
    border: none;
    height: 100%;
}

.whistleblowing .card-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--contrast-color);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.whistleblowing .card-description {
    font-size: 1rem;
    color: var(--contrast-color);
    line-height: 1.5;
    margin-bottom: 0;
    text-align: center;
}

.protection-whistleblowers {
    background-color: var(--nav-dropdown-hover-color);
    color: var(--contrast-color);
}

.violation-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
}

.violation-item:last-child {
    border-bottom: none;
}

.violation-number {
    background-color: var(--accent-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.violation-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--default-color);
    margin: 0;
}

.report-form .form-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin: auto;
    max-width: 600px;
    border: 1px solid #e9ecef;
}

.report-form .form-title {
    color: var(--accent-color);
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
}

.report-form .form-subtitle {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.report-form .form-label,
.apply-form .form-label {
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-form .form-control {
    border: 2px solid #e8ecf4;
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    margin-bottom: 20px;
}

.report-form .form-control[type="file"] {
    padding: 10px 15px;
    background: #f8f9fa;
    border: 2px dashed #e8ecf4;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.report-form .form-control[type="file"]:hover {
    border-color: var();
    background: #e8ecf4;
}

.report-form .form-control[type="file"]:focus {
    border-color: var();
    background: #e8ecf4;
    border-style: solid;
}

.report-form .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(7, 55, 99, 0.227);
    background: white;
    transform: none;
}

.report-form .form-control:hover {
    border-color: var(--accent-color);
    background: white;
}

.report-form .form-control::placeholder,
.apply-form .form-control::placeholder {
    color: #aaa;
    font-style: italic;
}

.report-form .required,
.apply-form .required {
    color: #e74c3c;
    margin-left: 2px;
}

.report-form .btn-submit {
    background: var(--nav-dropdown-hover-color);
    border: none;
    border-radius: 8px;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
}

.report-form .btn-submit:hover {
    background: var(--accent-color);
    color: white;
}

.report-form .btn-submit:active {
    transform: translateY(1px);
}

.report-form .form-floating {
    margin-bottom: 20px;
}

/*--------------------------------------------------------------
# News Section
--------------------------------------------------------------*/
.card-news {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-news .img {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.card-news .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-news a {
    background-color: var(--accent-color);
    border-radius: 8px;
    padding: 6px 12px;
    width: max-content;
}

.card-news a:hover {
    background-color: var(--nav-dropdown-hover-color);
}

.card-news .news-detail {
    padding: 30px;
}

.card-news .news-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 20px;
    line-height: 1.5em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* maksimal 2 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3em;
    /* tinggi 2 baris */
}

.card-news .news-text {
    font-size: 14px;
    margin: 0 0 16px 0;
}

.card-news .news-desc {
    margin-bottom: 0;
}

/* Atur semua gambar di dalam konten CKEditor */
.ckeditor-content img {
    width: 100% !important;
    height: 100% !important;
    display: block;
    margin: 10px auto;
    /* opsional biar center */
}

.ckeditor-content p {
    font-size: 0.9rem;
    text-align: justify;
}

/* .news-content img {
    height: 60vh !important;
    width: 100% !important;
    object-fit: cover;
} */

/*--------------------------------------------------------------
# Our Projects Section
--------------------------------------------------------------*/
.our-projects .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 340px));
    /* justify-content: center; */
    gap: 32px;
}

.our-projects .project-card {
    border: 1px solid #eaf3fb;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

.our-projects .project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.our-projects .project-cover {
    width: 100%;
    aspect-ratio: 16 / 10;
    /* background: #eaf3fb; */
}

.our-projects .project-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* padding: 16px; */
    display: block;
}

.our-projects .project-card-body {
    background: white;
    padding: 20px;
}

.our-projects .project-badge {
    display: inline-block;
    background: #f7a51e;
    color: #1e2b3c;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.our-projects .project-excerpt {
    font-size: 0.9rem;
    color: var(--default-color);
    line-height: 1.5;
    margin: 0;
}

/*--------------------------------------------------------------
# Project Detail Modal
--------------------------------------------------------------*/
.project-modal .modal-dialog {
    max-width: 100vw;
    width: 100vw;
    height: 100vh;
    margin: 0;
}

.project-modal .modal-content {
    background: #10151c;
    color: #fff;
    border-radius: 0;
    border: none;
    height: 100vh;
}

.project-modal.modal.show {
    padding: 0 !important;
}

.project-modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 5;
    font-size: 1.2rem;
}

.project-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    height: 100vh;
}

.project-modal-image {
    background: #10151c;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.project-modal-image img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.project-modal-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 60px 40px;
    height: 100vh;
    overflow-y: auto;
}

/* Backdrop blur — biar background halaman di belakang modal keliatan tapi ngeblur */
.modal-backdrop.show {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 1 !important;
}

.project-modal-info h3 {
    color: #f7a51e;
    font-weight: 700;
    margin-bottom: 16px;
}

.project-modal-desc {
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 24px;
}

.project-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.project-modal-info h6 {
    color: #f7a51e;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
    margin-top: 16px;
}

.project-modal-info p,
.project-modal-info li {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-top: 0;
    margin-bottom: 4px;
}

.project-modal-info ul {
    padding-left: 18px;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .project-modal-body {
        grid-template-columns: 1fr;
    }

    .project-modal-image {
        border-radius: 12px 12px 0 0;
    }

    .project-modal-grid {
        grid-template-columns: 1fr;
    }
}