/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #F8F8F8;
    /* Soft Ivory for main background */
    color: #1D1D1D;
    /* Dark Charcoal text */
}

/* ================= NAVBAR ================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: #FFFFFF;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 9999;
    /* VERY IMPORTANT: make sure navbar is on top */
}

.logo img {
    height: 50px;
}

.nav-links a {
    margin-left: 25px;
    text-decoration: none;
    color: #1D3557;
    /* Deep Blue / Navy */
    font-weight: 500;
    padding-bottom: 6px;
}

.nav-links a:hover {
    color: #D4AF37;
    /* Gold hover accent */
}

.nav-links a.active {
    color: #1D3557;
    font-weight: 700;
    border-bottom: 3px solid #1D3557;
}

/* ================= NEWS HERO ================= */
.news-hero {
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
                url("../images/ppkBuilding.jpg") center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 120px 20px;
}

.news-hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.news-hero p {
    max-width: 800px;
    margin: 0 auto 15px;
    font-size: 15px;
    line-height: 1.8;
    font-weight: 500;
}

/* ================= NEWS SECTION ================= */
.news-section {
    padding: 80px 10%;
    background: #f9f9f9;
}

.news-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ================= NEWS CARD ================= */
.news-card {
    display: flex;
    gap: 30px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

/* Image */
.news-image {
    flex: 0 0 320px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content */
.news-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #1D1D1D;
}

/* Meta */
.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #777;
    margin-bottom: 15px;
}

.news-meta i {
    margin-right: 5px;
    color: #c49b2e; /* gold accent */
}

.news-content p {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}

/* ================= READ MORE BUTTON ================= */
.read-more {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: #c49b2e;
    text-decoration: none;
    transition: 0.3s ease;
}

.read-more i {
    margin-left: 5px;
    transition: 0.3s ease;
}

.read-more:hover {
    color: #000;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
    .news-card {
        flex-direction: column;
    }

    .news-image {
        flex: unset;
        height: 250px;
    }

    .news-content {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .about-hero h1 {
        font-size: 30px;
    }

    .about-hero p {
        font-size: 14px;
    }

    .news-section {
        padding: 60px 5%;
    }
}

/* ================= NEWS DETAIL ================= */
.news-detail {
    max-width: 900px;
    margin: auto;
    padding: 0 10%;
}

.news-detail h2 {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #1D1D1D;
}

.detail-meta {
    margin-bottom: 25px;
}

.news-detail p {
    line-height: 1.8;
    margin-bottom: 18px;
    text-align: justify;
}

/* ================= BACK BUTTON ================= */
.back-news-btn {
    display: inline-block;
    margin-bottom: 30px;
    font-size: 14px;
    color: #c49b2e;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s ease;
}

.back-news-btn i {
    margin-right: 6px;
}

.back-news-btn:hover {
    color: #000;
}

/* ================= IMAGE GALLERY ================= */
.news-gallery {
    max-width: 1000px;
    margin: auto;
    padding: 0 10%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.news-gallery img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    transition: 0.4s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.news-gallery img:hover {
    transform: scale(1.05);
}

/* ================= COMMENT SECTION ================= */
.comment-section {
    max-width: 700px;
    margin: auto;
    padding: 0 10%;
    text-align: center;
}

.comment-section h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.comment-section p {
    font-size: 14px;
    margin-bottom: 25px;
    color: #777;
}

/* ================= COMMENT FORM ================= */
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-form input,
.comment-form textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #c49b2e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(196,155,46,0.1);
}

.comment-form button {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #c49b2e;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s ease;
}

.comment-form button i {
    margin-left: 6px;
}

.comment-form button:hover {
    background: #000;
}

/* ================= FEATURE IMAGE ================= */
.news-feature-image {
    max-width: 1000px;
    margin: 0 auto 40px auto;
    padding: 0 10%;
}

.news-feature-image img {
    width: 100%;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transition: 0.4s ease;
}

.news-feature-image img:hover {
    transform: scale(1.02);
}

/* ================= VIDEO SECTION ================= */
.video-section {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 10%;
}

.video-section iframe {
    width: 100%;
    height: 500px;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Responsive Video */
@media (max-width: 768px) {
    .video-section iframe {
        height: 300px;
    }
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 ratio */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.video-wrapper iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    border: none;
}

/* ================= FOOTER ================= */
.ppk-footer {
    background: #1D3557;
    /* Dark Navy footer */
    padding: 50px 20px 0;
    color: #F8F8F8;
    /* Light text */
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-col {
    flex: 1 1 220px;
}

.footer-col h4 {
    color: #D4AF37;
    /* Gold headings in footer */
    margin-bottom: 15px;
}

.footer-logo {
    max-width: 150px;
    background-color: #F8F8F8;
    /* light background behind logo */
    padding: 5px 10px;
    border-radius: 8px;
}

.footer-bottom {
    margin-top: 40px;
    border-top: 2px solid #D4AF37;
    /* gold accent */
    background: #1D3557;
    width: 100%;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 14px;
}

.footer-bottom a {
    color: #F8F8F8;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
    color: #D4AF37;
}

/* ================= COMMENT BOX ================= */
/* Individual comment card */
.comment-box {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 15px;
    text-align: left;
}

.comment-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.comment-box strong {
    display: block;
    font-size: 14px;
    color: #1D3557;
    margin-bottom: 6px;
}

.comment-box p {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.comment-form {
    display: flex;
    flex-direction: column;
    flex: 1;  /* fill the container vertically */
    gap: 15px;
}

/* ================= ADMIN REPLY ================= */
.admin-reply {
    background: #f1f1f1;
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.admin-reply b {
    font-size: 13px;
    color: #c49b2e;
}

.admin-reply p {
    font-size: 13px;
    color: #555;
}


/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .comment-box {
        padding: 15px;
    }

    .admin-reply {
        padding: 8px 12px;
    }
}

/* Container for form + comments side by side */
.comment-flex-container {
    display: flex !important;       /* important to override previous CSS */
    gap: 40px;
    max-width: 1000px;
    margin: 20px auto;
    align-items: stretch;
    justify-content: center;
}

/* Comment form styling */
.comment-form-container {
    flex: 1;                  /* 1 part of space */
    min-width: 300px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

/* Approved comments styling */
.approved-comments-container {
    flex: 1;                  /* same width as form for equal size */
    min-width: 300px;
    max-height: 500px;
    overflow-y: auto;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

/* Responsive stacking */
@media (max-width: 900px) {
    .comment-flex-container {
        flex-direction: column;
    }

    .comment-form-container,
    .approved-comments-container {
        max-width: 100%;
    }
}

.slider {
    position: relative;
    max-width: 700px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 10px;
}

/* IMPORTANT: standard size semua gambar */
.slide {
    width: 100%;
    height: 400px;        /* semua gambar sama tinggi */
    object-fit: cover;    /* crop cantik, tak stretch */
    display: none;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: opacity 0.5s ease;
}

/* Arrow style */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    
    background: none;       /* ❌ buang background */
    border: none;
    
    color: white;           /* arrow warna putih */
    font-size: 30px;        /* besar sikit */
    font-weight: bold;
    
    cursor: pointer;
    padding: 10px;
}

/* kiri */
.prev {
    left: 15px;
}

/* kanan */
.next {
    right: 15px;
}

/* hover effect (optional nampak smooth) */
.prev:hover, .next:hover {
    color: #ddd;
}

.slider:hover .prev,
.slider:hover .next {
    opacity: 1;
}

.video-container{
    width: 100%;
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 20px;
    overflow: hidden;
}