/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Hide any overflow to prevent white space */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Navbar Styling */
.custom-navbar {
    background: white; /* Seablue */
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    font-family: 'TW Cen MT', sans-serif;
}

.navbar-logo {
    background: white; /* White background for visibility */
    padding: 5px 10px;
    border-radius: 5px;
}

.navbar-logo img {
    height: 45px;
}

.navbar-links {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-left: auto;
}

.navbar-links a {
    text-decoration: none;
    color: #777777;
    font-weight: 500;
    font-size: 18px;
    transition: 0.3s ease-in-out;
    padding: 10px 15px;
}

.dropdown-toggle {
    text-decoration: none;
    color: #004080;
    font-weight: 500;
    font-size: 21px;
    transition: 0.3s ease-in-out;
    padding: 10px 15px;

}

.navbar-links a:hover, 
.dropdown-toggle:hover, 
.navbar-links a.active {
    color: #c7a008; /* Gold */
}

/* Fix White Space on Right */
body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Dropdown Styling */
.dropdown-menu {
    border: none;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: none;
    position: absolute;
}

.dropdown:hover .dropdown-menu {
    display: block; /* Enable hover effect */
}

.dropdown-menu a {
    color: #004080;
    padding: 10px;
    display: block;
    white-space: nowrap;
    background: #f5f5f5; /* Ensure background is visible */
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #006994;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95); /* Transparent White */
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease-in-out;
    padding: 20px;
    display: flex;
    flex-direction: column;
    z-index: 1100; /* Ensures navbar is above hero section */
    font-family: 'TW Cen MT', sans-serif;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu .close-btn {
    align-self: flex-end;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu a {
    text-decoration: none;
    color: #004080;
    font-size: 18px;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    display: flex;
    transition: 0.3s ease-in-out;
    background: #f5f5f5; /* Ensure background is visible */
}

.mobile-menu a:hover {
    color: #006994;
}

/* Mobile Dropdowns */
.mobile-dropdown {
    display: none;
    padding-left: 15px;
}

.mobile-dropdown a {
    font-size: 16px;
    padding: 8px 0;
    display: flex;
    background: #eaeaea; /* Background for better visibility */
    
}

.mobile-menu .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

.mobile-dropdown-toggle i {
    transition: 0.3s;
}

.rotate {
    transform: rotate(180deg);
}

/* Mobile Icon */
/* Mobile Menu Icon */
.mobile-menu-icon {
    font-size: 30px;
    cursor: pointer;
    display: none;
    color: black !important; /* Force black color */
    z-index: 1101; /* Make sure it's above other elements */
    position: relative; /* Ensure it is positioned correctly */
}



@media (max-width: 991px) {
    .navbar-links {
        display: none;
    }
.mobile-menu-icon {
        display: block;
    }
    .custom-navbar {
        flex-direction: row;
        justify-content: space-between;
    }

    .mobile-menu-icon {
        order: 2; /* Ensures hamburger menu is on the right */
    }

    .navbar-logo {
        order: 1; /* Ensures logo is on the left */
    }
}


/* Header Section */
.header-section {
    background-image: url('banner/Sustainability-Overview-lg-resiz.webp');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden; /* Prevent overflow issues */
}

.header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.header-section .container {
    position: relative;
    z-index: 2;
}

.header-title {
    font-size: 3rem;
    margin-bottom: 10px;
}

.header-subtitle {
    font-size: 1.5rem;
}

/* Sustainability Section */
.sustainability-section {
    background-color: #f8f9fa;
    padding: 50px 0;
}

.sustainability-card {
    background-color: #e9ecef;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    margin-bottom: 30px;
    overflow: hidden; /* Prevent overflow issues */
}

.sustainability-card i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #003366;
}

.sustainability-card h3 {
    font-size: 1.5rem;
    color: #003366;
}

.sustainability-card p {
    color: #666;
}

.sustainability-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Occupational Health */
.occupational-health {
    background-color: #e6f0f5;
}

.occupational-health:hover {
    background-color: #d0e4eb;
}

/* Quality */
.quality {
    background-color: #f5e6e6;
}

.quality:hover {
    background-color: #ebd0d0;
}

/* Environment */
.environment {
    background-color: #e6f5e9;
}

.environment:hover {
    background-color: #d0ebd8;
}

/* Community */
.community {
    background-color: #f5f0e6;
}

.community:hover {
    background-color: #ebdfd0;
}

/* Sustainability Details */
.sustainability-detail {
    margin-top: 30px;
}

.sustainability-detail img {
    width: 100%;
    max-width: 100%; /* Prevents overflow on small screens */
    border-radius: 10px;
    height: 60vh;
}

.sustainability-detail h4 {
    font-size: 2rem;
    color: #003366;
}

.sustainability-detail p {
    font-size: 1rem;
    color: #555;
    margin-top: 15px;
}

/* Footer Section */
.footer-section {
    background-color: #003366;
    color: #ffffff;
    padding: 40px 0;
}

.footer-section .container {
    max-width: 1100px;
}

.footer-section h5 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-section p,
.footer-section ul {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #cccccc;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #cccccc;
    text-decoration: none;
}

.footer-section ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #cccccc;
    margin-top: 20px;
    font-size: 0.8rem;
    color: #cccccc;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .header-title {
        font-size: 2rem;
    }

    .header-subtitle {
        font-size: 1rem;
    }

    .sustainability-card h3 {
        font-size: 1.2rem;
    }

    .sustainability-detail h4 {
        font-size: 1.5rem;
    }

    .sustainability-detail p {
        font-size: 0.9rem;
    }

    .sustainability-detail {
        margin-top: 20px;
    }

    .sustainability-detail img {
        margin-bottom: 20px;
    }

    .footer-section p,
    .footer-section ul {
        font-size: 0.8rem;
    }

    .footer-section h5 {
        font-size: 1rem;
    }

    .navbar-light .navbar-text {
        font-size: 12px;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .header-title {
        font-size: 2.5rem;
    }

    .header-subtitle {
        font-size: 1.2rem;
    }

    .sustainability-card h3 {
        font-size: 1.3rem;
    }

    .sustainability-detail h4 {
        font-size: 1.8rem;
    }

    .sustainability-detail p {
        font-size: 1rem;
    }
}

@media (min-width: 992px) {
    .header-title {
        font-size: 3rem;
    }

    .header-subtitle {
        font-size: 1.5rem;
    }

    .sustainability-card h3 {
        font-size: 1.5rem;
    }

    .sustainability-detail h4 {
        font-size: 2rem;
    }

    .sustainability-detail p {
        font-size: 1rem;
    }
}
