:root {
    --primary-color: #E65100;
    /* Professional Deep Orange */
    --secondary-color: #4E342E;
    /* Dark Brown */
    --accent-color: #D84315;
    /* Rich Orange/Red for hover/accents */
    --text-color: #333333;
    --bg-color: #FAFAFA;
    /* Clean Off-White */
    --white: #ffffff;
    --light-gray: #f4f4f4;
    --font-family: 'Segoe UI', 'Roboto', Helvetica, Arial, sans-serif;
}

html {
    height: 100%;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.text-center {
    text-align: center;
}

/* Header */
header {
    background-color: var(--white);
    color: var(--text-color);
    padding: 15px 0;
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

/* Header Content Row Layout */
.header-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.logo-area {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo-area img {
    height: 55px;
    margin-right: 15px;
}

.logo-text h1 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-color);
    line-height: 1.2;
}

.logo-text p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 600;
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 5px;
    /* Minimized gap */
}

nav ul li {
    position: relative;
}

nav a {
    color: #444;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    /* Slightly smaller font */
    padding: 5px 8px;
    transition: color 0.3s, border-bottom 0.3s;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    /* Prevent wrapping */
}

nav a:hover,
nav a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    top: 100%;
    left: 0;
    padding: 10px 0;
    border-top: 3px solid var(--primary-color);
    border-radius: 0 0 5px 5px;
}

.dropdown-content a {
    color: #444;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 0.9rem;
    border-bottom: none;
    text-transform: none;
}

.dropdown-content a:hover {
    background-color: #fce4ec;
    /* Very light pink/orange tint */
    background-color: rgba(230, 81, 0, 0.05);
    color: var(--primary-color);
    border-bottom: none;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-toggle i {
    margin-left: 5px;
    font-size: 0.8em;
    vertical-align: middle;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    /* Gradient overlay + Image */
    background: linear-gradient(135deg, rgba(230, 81, 0, 0.9), rgba(78, 52, 46, 0.9)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 120px 0;
    text-align: center;
    margin-top: 0;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 800;
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.95;
}

/* Hero Slider (if used) */
.hero-slider {
    margin-top: 0;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--white) !important;
}

.swiper-pagination-bullet-active {
    background: var(--white) !important;
}

/* Section General */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    color: var(--secondary-color);
    font-size: 2.2rem;
    font-weight: 800;
    position: relative;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 20px auto 0;
}

/* Maklumat & Pakta */
.maklumat-section {
    background-color: var(--white);
}

.maklumat-grid-extended {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.maklumat-card,
.pakta-card {
    text-align: center;
    background: var(--white);
    border-radius: 8px;
    /* Clean look, no border/shadow as requested previously, but layout integrity matters */
}

/* Allow images to fit nicely */
.maklumat-card img,
.pakta-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* YouTube Card */
.youtube-card {
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ZI Def */
.zi-def {
    background: var(--white);
    text-align: center;
    padding: 60px 0;
}

.zi-def p {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.8;
}

/* ZI Icons */
#zona-integritas {
    background-color: var(--light-gray);
}

.zi-icons-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.zi-icon-box {
    background: var(--white);
    color: var(--secondary-color);
    width: 220px;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border-bottom: 4px solid var(--primary-color);
}

.zi-icon-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(230, 81, 0, 0.15);
}

.zi-icon-box img,
.zi-icon-box i {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    /* For images, we need to handle specific styling if they are SVGs/PNGs */
    max-width: 60px;
}

/* Area Perubahan */
#area {
    background-color: var(--white);
}

.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.area-card {
    background: var(--white);
    color: #444;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.area-card:hover {
    background: var(--white);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.area-icon {
    font-size: 2.5rem;
    /* Slightly smaller for better fit */
    color: var(--primary-color);
    margin-bottom: 25px;
    background: rgba(230, 81, 0, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    /* Ensure circular */
    flex-shrink: 0;
    /* Prevent shrinking */
}

.area-icon i {
    margin: 0;
    /* Remove any default margins */
    display: block;
    /* Ensure block behavior in flex */
    line-height: 1;
    /* Reset line height */
}

.area-card h3 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
}

.area-card p,
.area-card div {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Survey Buttons */
/* Survey Buttons */
/* Survey Buttons */
.survey-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .survey-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .survey-grid {
        grid-template-columns: 1fr;
    }
}

.survey-btn-main {
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 100%;
    /* Full width of grid cell */
    padding: 25px 20px;
    text-align: center;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(230, 81, 0, 0.15);
    box-sizing: border-box;
    /* Ensure padding doesn't overflow */
}

.survey-btn-main:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(230, 81, 0, 0.3);
}

.survey-btn-main i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.survey-btn-main:hover i {
    transform: scale(1.1);
}

/* Pengungkit (P1-P6) Buttons */
.pengungkit-section {
    background-color: var(--light-gray);
    padding: 60px 0;
}

.pengungkit-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    /* Force 6 columns for P1-P6 */
    gap: 15px;
    /* Reduced gap to fit */
    justify-content: center;
}

@media (max-width: 1024px) {
    .pengungkit-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 2 rows on tablet */
    }
}

@media (max-width: 600px) {
    .pengungkit-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 3 rows on mobile */
    }
}

.pengungkit-btn {
    background: var(--white);
    color: var(--secondary-color);
    padding: 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    border: 1px solid #ddd;
    border-left: 5px solid var(--primary-color);
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.pengungkit-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--secondary-color);
}

/* News Section */
.news-section {
    background-color: var(--light-gray);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* News Card Styling */
.news-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(230, 81, 0, 0.3);
}

.news-image-container {
    position: relative;
    overflow: hidden;
    height: 220px;
    /* Fixed height for consistency */
}

.news-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image-container img {
    transform: scale(1.05);
}

.news-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    min-width: 60px;
}

.news-date-badge .day {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
}

.news-date-badge .month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
}

.news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-title {
    color: var(--secondary-color);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card:hover .news-title {
    color: var(--primary-color);
}

.news-excerpt {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-btn {
    align-self: flex-start;
    background-color: transparent;
    color: var(--primary-color);
    padding: 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    border-bottom: 2px solid var(--primary-color);
    transition: all 0.3s;
}

.read-more-btn:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    padding-bottom: 3px;
    background-color: transparent;
}

/* Pagination */
.pagination-container {
    margin-top: 50px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--white);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.pagination-link:hover,
.pagination-link.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 81, 0, 0.2);
}

.read-more-btn:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

/* Footer (Brown Background) */
footer {
    background-color: var(--secondary-color);
    /* Brown */
    color: rgba(255, 255, 255, 0.8);
    padding: 70px 0 30px;
    border-top: 5px solid var(--primary-color);
    margin-top: auto;
    /* Push footer to bottom */
}

.footer-col h4 {
    color: var(--primary-color);
    /* Orange headings */
    margin-bottom: 25px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
    padding-top: 25px;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .mobile-menu-toggle {
        display: block;
        order: 3;
    }

    nav {
        width: 100%;
        display: none;
        /* Hidden by default */
        order: 4;
        flex-direction: column;
        background: var(--white);
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    nav a {
        display: block;
        padding: 15px;
    }

    .logo-area img {
        height: 45px;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .maklumat-grid-extended {
        grid-template-columns: 1fr;
    }

    .area-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}