/* GENERAL */
body {
    font-family: 'Roboto', Arial, sans-serif;
    background: linear-gradient(to right, #D9D9D9, #EDEDED);
    margin: 0;
    padding-top: 80px; /* accommodates fixed navbar */
}

a {
    text-decoration: none;
    color: #218DEA;
}

/* SECTION */
section.black-bg {
    background-color: #000;
    color: #FFFFFF;
}

section.black-bg p, section.black-bg ul li {
    font-size: 16pt;
}

/* NAVBAR */
.navbar {
    position: fixed; /* Keeps the navbar on top and responsive */
    top: 0;
    width: 100vw; /* Full viewport width */
    z-index: 10; /* Ensures it appears above other elements */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FFFFFF;
}

.navbar-brand {
    margin-right: auto;
}
.navbar-brand img {
    height: 50px;
}

.navbar-nav {
    background-color: rgba(33, 141, 234, 0.95);
    border-radius: 5px;
    border: 1px solid #216eea;
}

.navbar-dark .navbar-nav .nav-link {
    color: white;
    font-weight: bold;
}

.nav-container {
    background-color: rgba(1, 123, 101, 0.95); /* #017B65 with 95% transparency */
    border-radius: 5px;
    border: 1px solid #004639; /* Outline border color */
    display: flex;
    align-items: center;
}

.navbar-toggler, 
.navbar-toggler:focus, 
.navbar-toggler:focus-visible {
    text-decoration: none;
    border: none;
    box-shadow: none;
    padding: 0;
}

/* Style for the custom caption overlay */
.custom-caption {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  color: #fff;
  text-align: center;
  font-size: 1.2rem;
  z-index: 9999;
  pointer-events: none; /* so it doesn’t block clicks */
  padding: 0 20px;
}


/* BUTTONS */
.btn-primary {
    background-color: #218DEA;
    border: 1px solid #216eea;
}
.btn-primary:hover {
    background-color: #216eea;
    border: 1px solid #216eea;
}

/* TEXTS */
.text-primary span {
    color: #52b8f8;
}

/* HERO (Used on Home Page) */
.hero {
    position: relative;
    background-image: url('../images/01_hero.jpg'); 
    background-size: cover;
    background-position: center;
    color: white;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: end;
}
.hero h1 {
    font-size: 2.5rem;
    font-weight: bold;
}
.hero .container .hero-content {
    max-width: 60%;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    border: 1px solid #000000;
    padding: 7% 5%;
    margin-bottom: 2%;
}

/* ABOUT US */
#about h5 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
#about h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
#about p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* SERVICES */
#services h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}
.services img {
    max-width: 100%;
    height: auto;
}

/* BREADCRUMB (For internal pages) */
.breadcrumb {
    font-size: 0.9rem;
    color: #218DEA;
}
.breadcrumb a {
    color: #FFFFFF;
    text-decoration: none;
}

.breadcrumb span {
    font-weight: 500;
}

/* IMAGE GALLERY */
.image-gallery {
    background-color: #FFFFFF;
}

.image-gallery img {
    width: 100%;
    height: 200px; /* Adjust the height as needed */
    object-fit: cover;
}

/* IMAGE CONTAINERS */
section .image-container {
    width: 100%;
    height: 500px; /* Fixed height */
    overflow: hidden;
    display: flex;
    justify-content: right;
    align-items: center;
    border-radius: 10px; /* Rounded corners */
    margin: 0 auto;
}
section .image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 20px;
}

/* CARD STYLES */
.custom-card {
    border: 1px solid #000000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: none;
}
.custom-card .card-img-container {
    overflow: hidden;
}
.custom-card .card-img-top {
    height: 300px; /* Fixed height for images */
    object-fit: cover;
}
.custom-card .card-body {
    padding: 20px;
    border-top: 1px solid #000000;
}
.custom-card .card-title {
    font-size: 1.25rem;
    margin: 0;
    color: #000; /* Black for contrast */
}

/* Outline Button for Services */
.btn-outline {
    background-color: #FFFFFF;
    border: 1px solid #218DEA; /* Thick border for button */
    color: #218DEA;
    font-weight: bold;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}
.btn-outline:hover {
    background-color: #218DEA;
    color: #fff;
}

/* GALLERY STYLING */
.gallery img {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 5px;
    background: #fff;
    transition: transform 0.3s ease;
}
.gallery img:hover {
    transform: scale(1.05);
}

/* CLIENTS */
#clients img {
    max-width: 75%; /* Responsive images */
    height: auto;
    transition: transform 0.3s ease;
}

/* CERTIFICATIONS */
.certifications img {
    max-width: 100%;
    height: auto;
}

/* ENQUIRY */
#enquiry .container-enquiry {
    background-color: #0a3a88;
    border: 1px solid #052963;
}
#enquiry h2 {
    font-size: 1.75rem;
    margin-bottom: 10px;
    color: #FFFFFF;
}
#enquiry p {
    font-size: 1rem;
    color: #FFFFFF;
    margin-bottom: 0;
}
#enquiry .btn-enquiry-container {
    margin: auto;
}
#enquiry .btn-primary {
    width: 70%;
    background-color: #C69D3A;
    color: #FFFFFF;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    border: 1px solid #594300;
    padding: 12px 50px;
    transition: all 0.3s ease;
}
#enquiry .btn-warning:hover {
    background-color: #AF8732;
    color: #FFFFFF;
}

/* Company Profile */
#company-profile .container-enquiry {
    background-color: #0a3a88;
    border: 1px solid #052963;
}
#company-profile h2 {
    font-size: 1.75rem;
    margin-bottom: 10px;
    color: #FFFFFF;
}
#company-profile p {
    font-size: 1rem;
    color: #FFFFFF;
    margin-bottom: 0;
}
#company-profile .btn-enquiry-container {
    margin: auto;
}
#company-profile .btn-primary {
    width: 70%;
    background-color: #C69D3A;
    color: #FFFFFF;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    border: 1px solid #594300;
    padding: 12px 50px;
    transition: all 0.3s ease;
}
#company-profile .btn-warning:hover {
    background-color: #AF8732;
    color: #FFFFFF;
}

/* MAP RESPONSIVE */
.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
}
.map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* FOOTER */
footer {
    background-color: #017B65;
    padding: 20px 0;
    color: #FFFFFF;
    text-align: center;
}
footer .footer-logo {
    max-height: 50px;
    margin-right: 15px;
}
footer p {
    color: #FFFFFF;
    font-size: 0.875rem;
    font-weight: 100;
}
footer a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}
footer a:hover {
    color: #C69D3A;
}
footer .footer-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
    vertical-align: middle;
}

/* Text panel */
.text-panel {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    border: 1px solid #000000;
    padding: 5%;
    margin-bottom: 2%;
}

.text-panel h1 {
    font-size: 2.5rem;
    font-weight: bold;
}

.text-panel p {
    color: #FFFFFF;
}

/* Image icon */
.img-icon-container {
    width: 50%;
    margin: auto;
}

/* Ordered listing */
.list-group-numbered .list-group-item::before {
    display: inline-block; /* Force the number to stay inline */
    margin-right: 0.5rem; /* Space between the number and heading */
    vertical-align: middle;
    font-weight: 900x; 
}

/* Make the heading inline so it stays beside the number */
.list-group-item .item-title {
    display: inline-block;      
    margin: 0; /* Remove default heading margin */
    vertical-align: middle;
}

/* Adjust paragraph spacing if desired */
.list-group-item p {
    margin-top: 0.5rem;
}

/* Numbered list container */
.list-group-numbered .list-group-item {
    padding: 2rem;
}

/* ABOUT US */
#about-main {
    background-size: cover; 
    background-position: center top; 
    background-image:url('../images/09_about_us_bg.jpg');
    background-repeat: no-repeat;
}

/* OUR SERVICES */

#services-main {
    background-size: cover; 
    background-position: center top; 
    background-image:url('../images/10_services_bg.jpg');
    background-repeat: no-repeat;
}

/* CERTIFICATIONS */
#certifications-main {
    background-size: cover; 
    background-position: center top; 
    background-image:url('../images/11_certifications_bg.jpg');
    background-repeat: no-repeat;
}

/* CONTACT US */
#contact-main {
    background-size: cover; 
    background-position: center center; 
    background-image:url('../images/12_contact_us_bg.jpg');
    background-repeat: no-repeat;
}

/* MISC */
.link-symbol {
    font-family: Arial, Helvetica, sans-serif;
}

/* RESPONSIVE ADJUSTMENTS */
.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg%20viewBox='0%200%2030%2030'%20xmlns='http://www.w3.org/2000/svg'%3E%3Crect%20width='30'%20height='30'%20fill='%23C69D3A'%20rx='4'/%3E%3Cpath%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'%20stroke-miterlimit='10'%20d='M7%2010h16%20M7%2015h16%20M7%2020h16'/%3E%3C/svg%3E");
  }  
  
@media (max-width: 768px) {
    .custom-card .card-img-top {
        height: 200px; /* Adjust image height for smaller screens */
    }
    .btn-fluid-mobile {
        width: 100%;
    }
    .navbar {
        max-width: 100%;
        flex-direction: row;
    }
    .nav-container {
        flex-direction: row;
    }
    .nav-container ul {
        margin: 0;
        padding: 0;
    }
    .nav-item {
        margin: 5px;
    }
    .navbar-brand img {
        height: 50px;
    }
    .hero {
        align-items: center;
        text-align: center;
    }
    .hero .container .hero-content {
        max-width: 100%;
        padding: 10%;
        text-align: left;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
    .hero a {
        margin-top: 1rem;
        width: 100%;
        text-align: center;
    }
    #about .row {
        flex-direction: column;
    }
    #about .btn {
        justify-content: center;
    }
    #clients .row {
        justify-content: center;
    }
    #enquiry .btn-primary {
        width: 100%;
        margin-top: 2rem;
    }
    footer .row {
        text-align: center;
    }
    footer .footer-logo {
        margin-bottom: 10px;
        height: auto;
    }
}

@media (max-width: 576px) {
    /* Additional mobile tweaks if needed */
}