body {
    padding: 0;
    margin: 0;
    width: 100%;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background-color: #f1f9ff;
}

/* Home Section Styling */
.home-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
    background-color: #f8f9fa;
    gap: 20px;
}

.home-left img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.home-right {
    max-width: 600px;
    text-align: left;
}

.home-right h1 {
    font-size: 2rem;
    color: #004080;
    margin-bottom: 10px;
}

.home-right p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.6;
}

.home-right .btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    color: white;
    background-color: #004080;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.home-right .btn:hover {
    background-color: green;
}

/* Responsive Design for Home Section */
@media screen and (max-width: 768px) {
    .home-section {
        flex-direction: column;
        text-align: center;
    }

    .home-left img {
        max-width: 300px;
    }
}

/* Navbar Styling */
header {
    background-color: #004080;
    color: white;
    padding: 10px 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
    overflow-x: hidden;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.logo a {
    color: white;
    font-size: 24px;
    text-decoration: none;
    font-weight: bold;
    padding-left: 10px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ff9900;
}

/* Responsive Navbar (optional for smaller screens) */
@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
    }

    .nav-links a {
        width: 100%;
        text-align: left;
    }
}

.hero {
    width: 100%;
}

.carousel{
    width: 100%;
    overflow: hidden;
    /* margin: auto; */
    position: relative;
}

.carousel-inner{
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item{
    min-width: 100%;
    box-sizing: border-box;
    /* position: absolute; */
    /* opacity: 0;
    transition: opacity 0.5s ease-in-out, filter 0.5s ease-in-out; */
}

/* .carousel-item active{
    opacity: 1;
    filter: blur(0);
} */

.carousel-item img{
    width: 100%;
    height: auto;
    object-fit: cover;
}

.overlay-title{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 2;
}

.overlay-title h2{
    margin: 0;
    font-family: Geneva, Tahoma, sans-serif;
    font-size: 36px;
}

.overlay-title h3{
    margin: 0;
    font-size: 24px;
}

/* code untuk transition blur */
/* @keyframes blur-out{
    0%{
        opacity: 1;
        filter: blur(0);
    }
    100%{
        opacity: 0;
        filter: blur(10px)
    }
}

@keyframes blur-in{
    0%{
        opacity: 0;
        filter: blur(10px)
    }
    100%{
        opacity: 1;
        filter: blur(0)
    }
}

.carousel-item.blur-out{
    animation: blur-out 1s forwards;
}

.carousel-item.blur-in{
    animation: blur-in 1s forwards;
} */

/* maklumat PIC */
.pic-info{
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.card{
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    width: 150px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0. 0. 0. 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card img{
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-bottom: 10px;
}

.card-content{
    text-align: center;
}

.card-content h3{
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    color: #333;
}

.card-content p{
    margin: 5px 0;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    color: #333;
}

/* table styling */
table {
    border-collapse: collapse;
    width: 90%;
    max-width: 800px;
    height: auto;
    border: 1px solid white;
    background-color: #fff;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.2);
    margin: 20px 0;
}

tr {
    transition: all 0.2s ease-in;
    cursor: pointer;
    background-color: #fff;

}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
    /* background-color: #fff; */
}

#header {
    background-color: #16a085;
    color: #fff;
}

h1 {
    font-weight: 600;
    text-align: center;
    background-color: #16a085;
    color: #fff;
    padding: 10px 0px;
    width: 100%;
}

tr:hover {
    background-color: #f5f5f5;
    transform: scale(1.02);
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.2);
}

@media only screen and (max-width: 768px) {
    table {
        width: 95%; /* Further adjusts table width for smaller screens */
    }
}

footer {
    width: 100%;
    margin-top: 30px;
    padding: 15px 0;
    background-color: #004080;
    color: #ffffff;
    text-align: center;
    font-size: 0.9rem;
    box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-image {
    position: absolute;
    top: 10px;
    left: 10px; 
    width: 30px;
    height: 30px;
}

.footer-image img {
    width: 80%; /* Ensure it fills the div */
    height: auto; /* Prevent distortion */
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#about{
    width: 100%;
}

#about h1{
    background-color: transparent;
    font-family: "Montserrat", sans-serif;
    color: #333;
    margin-bottom: 20px;
}

/* styling search bar */
form {
    margin-bottom: 15px;
    text-align: center;
}

input[type="text"] {
    padding: 8px;
    width: 250px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    padding: 8px 12px;
    background-color: #004080;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;   
}

button:hover {
    background-color: #ff9900;
}

.button-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.button-container a {
    text-decoration: none;
}

.button-container button {
    padding: 10px 15px;
    font-size: 1rem;
    color: white;
    background-color: #004080;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button-container button:hover {
    background-color: #ff9900;
}

/* logout button */
.logout-btn {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.logout-btn:hover .square {
    background-color: #ff9900;
}

/* Style for the square */
.square {
    /* display: inline-block; Allows it to grow with text */
    padding: 5px 10px;
    background-color: #0095ff; 
    color: white; 
    text-align: center; 
    border-radius: 5px; 
    transition: background-color 0.3s;
}

.square:hover {
    background-color: #ff5733;
}
