:root {
    --primary: #ff8d0b;
    --bg: #f9f9f9;
    --text-color: #333;
    --header-bg: #222;
    --navbar-bg: #fff;
    --hover-color: #ff5722;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: var(--text-color);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 10px 15px var(--shadow); /* Soft blended shadow */
}

/* Logo */
.navbar .navbar-logo img {
    width: 6rem;
    height: auto;
    mix-blend-mode: multiply;
    transition: transform 0.3s ease-in-out, opacity 0.3s;
}

.navbar .navbar-logo img:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Navbar Links */
.navbar .navbar-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar .navbar-nav a {
    color: #313131;
    font-size: 1.2rem;
    transition: color 0.3s ease-in-out;
}

.navbar .navbar-nav a:hover {
    color: var(--primary);
}

.navbar .navbar-nav a i {
    font-size: 1.5rem;
}

/* Hide icons on desktop */
.nav-icon {
    display: none;
}

/* Header */
h1 {
    text-align: center;
    padding: 40px 20px;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    margin-top: 30px;
    background-color: #313131;
}

/* Article Container */
.article-container {
    max-width: 90%;
    margin: 40px auto;
    padding: 25px;
    background-color: #fff;
    box-shadow: 0 4px 12px var(--shadow);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.article-image {
    width: 100%;
    border-radius: 12px;
}

h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

p, ul {
    font-size: 16px;
    line-height: 1.7;
}

ul {
    list-style-type: square;
    padding-left: 20px;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.share-buttons a img {
    width: 25px;
    height: 25px;
    transition: transform 0.3s ease, opacity 0.3s;
    opacity: 0.9;
}

.share-buttons a img:hover {
    transform: scale(1.2);
    opacity: 1;
}

/* Video Container */
.video-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.video-container iframe {
    width: 48%;
    height: 280px;
    border-radius: 8px;
}
/* Gaya untuk jadual */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

th {
    background: #002c5b;
    color: white;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .navbar-logo img {
        width: 1rem; /* Reduce size for tablets */
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 5px;
    }

    .navbar-logo img {
        width: 0.8rem; /* Reduce size for mobile */
    }

    .navbar-nav a {
        font-size: 0.5rem;
    }

    header {
        font-size: 20px;
        margin-top: 60px;
    }

    .article-container {
        padding: 20px;
    }

    .video-container {
        flex-direction: column;
        align-items: center;
    }

    .video-container iframe {
        width: 100%;
        height: 220px;
    }

/* Hide text and show icon for navigation */
.navbar-nav .nav-text {
    display: none;
}

.navbar-nav .nav-icon {
    display: inline-block;
    font-size: 1.2rem; /* Smaller icon size */
    margin-right: 1.5rem;
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

/* Hover effect: Change color and add slight scale effect */

/* Responsive Adjustments */
@media (max-width: 450px) {
    .navbar .navbar-nav a {
        font-size: 1rem; /* Smaller icon on mobile */
        margin-right: 1rem;
    }
    
    .navbar .navbar-nav a:hover {
        color: var(--primary);
    }

}
}