/**
 * @package    MOOC
 * @author     Asnizal Haidy Jasni
 * @copyright  Copyright 2024 MOOC | Application Unit | IPPT | USM
 **/

/* Corporate Theme Styles */
body {
    font-family: 'Poppins', sans-serif;
    background: #f4f4f4;
    text-align: center;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.header {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.header img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.header img.active {
    opacity: 1;
}

.container {
    flex: 1; /* This makes content expand and push the footer to the bottom */
}

.description {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}

.sections {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.section-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    width: 30%;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

.section-card:hover {
    transform: scale(1.05);
}

.section-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.section-card h3 {
    margin: 10px 0;
    font-size: 18px;
}

.section-card p {
    padding: 0 15px 15px;
    font-size: 14px;
}

.cta {
    margin-top: 30px;
    font-size: 20px;
    font-weight: bold;
    color: #004080;
}

h4 {
    background: hwb(0 0% 100%);
    color: hwb(0 74% 26%);
    padding: 10px;
    text-align: center;
    margin: 0;
}

#panorama {
    width: 100%;
    height: 100%;
    /* border-bottom: 5px solid hsl(0, 0%, 100%); */
}

/* Minimap Container */
.minimap-container {
    position: fixed;
    bottom: 130px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
}

/* Scrollable Minimap */
.minimap {
    overflow: hidden;
    width: 700px; /* Adjust width as needed */
    white-space: nowrap;
}

/* Minimap Images */
.minimap-images {
    display: flex;
    transition: transform 0.3s ease-in-out;
}

.minimap img {
    width: 80px;
    height: 50px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

.minimap img.active-minimap {
    border: 3px solid #aaaaaa;
    opacity: 1;
    transform: scale(1.2);
}


/* Minimap Navigation Arrows */
.arrow {
    background: #00000080;
    border: none;
    padding: 10px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 1%;
    transition: 0.3s;
}

.arrow:hover {
    background: white;
    color: black;
}


.controls {
    text-align: center;
    /* margin-top: 10px; */
    background: hwb(0 0% 100%);
    /* padding: 12px 20px; */
}

button {
    background: hsl(0, 0%, 87%);
    color: hsl(0, 0%, 28%);
    border: none;
    padding: 12px 20px;
    margin: 5px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Poppins', sans-serif;
}

button:hover {
    background: hsl(0, 0%, 70%);
}

button:active {
    background: hsl(0, 0%, 70%);
}


/* ✅ NAVIGATION MENU */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #333;
    padding: 10px 20px;
}

.logo img {
    height: 70px;
}

.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu li a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-menu li a:hover {
    color: #ffcc00;
}

/* ✅ FOOTER */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 1px;
    /* margin-top: 30px; */
}


/* ✅ CONTACT FORM */
.contact-container {
    width: 50%;
    margin: auto;
    margin-top: 30px;
    padding: 10px 32px 14px 19px;
    background: white;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 21px;
    text-align: center;
}

.contact-container h2 {
    color: #333;
}

.contact-container input, .contact-container textarea {
    width: 100%;
    padding: 5px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-container button {
    background: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
}

.contact-container button:hover {
    background: #ffcc00;
    color: black;
}

/* ✅ MAP CONTAINER */
.map-container {
    width: 100%;
    /* margin: 30px auto; */
    text-align: center;
}

.map-container h3 {
    margin-bottom: 5px;
}

/* Alert Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    color: #3c763d;
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
}

.alert-error {
    color: #a94442;
    background-color: #f2dede;
    border: 1px solid #ebccd1;
}

.error {
    color: #a94442;
    font-size: 14px;
    margin-top: 5px;
}

/* Responsive Design for Mobile Screens */
@media screen and (max-width: 768px) {
    /* ✅ Adjust Header Image */
    .header {
        height: 200px; /* Reduce height for smaller screens */
    }

    .header img {
        object-fit: cover;
    }

    /* ✅ Make Navigation Menu Responsive */
    .navbar {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .nav-menu li {
        margin: 5px 0;
    }

    /* ✅ Improve Section Cards for Mobile */
    .sections {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .section-card {
        width: 90%;
    }

    .section-card img {
        height: 120px;
    }

    .section-card h3 {
        font-size: 16px;
    }

    .section-card p {
        font-size: 13px;
    }

    /* ✅ Improve Panorama View */
    #panorama {
        height: 60vh; /* Reduce height on mobile */
    }

    /* ✅ Improve Controls Layout */
    .controls {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .controls button {
        width: 90%;
        margin-bottom: 5px;
    }

   /* Minimap Container - Responsive */
.minimap-container {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
    width: 90%; /* Adjust width for better responsiveness */
    max-width: 600px; /* Prevents it from being too wide on large screens */
}

@media (max-width: 768px) {
    .minimap-container {
        bottom: 80px; /* Adjust height */
        width: 95%; /* Make it full width */
    }

    .minimap img {
        width: 50px; /* Smaller images for mobile */
        height: 35px;
    }

    .arrow {
        font-size: 18px;
        padding: 8px;
    }
}

/* Navigation Arrows */
.arrow {
    background: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 10px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
}

.arrow:hover {
    background: white;
    color: black;
}

    /* ✅ Improve Footer Layout */
    footer {
        padding: 10px;
        font-size: 14px;
    }

    /* ✅ Improve Contact Form */
    .contact-container {
        width: 90%;
        padding: 15px;
    }

    .contact-container h2 {
        font-size: 18px;
    }

    .contact-container input,
    .contact-container textarea {
        font-size: 14px;
    }
}
