/* CSS Reset & Basic Setup */

:root
{
    --primary-red: #D81A24;
    --dark-grey: #222222;
    --medium-grey: #555;
    --light-grey: #f4f4f4;
    --white: #fff;
    --black: #000;
}

*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body
{
    font-family: 'Roboto', sans-serif;
    color: var(--dark-grey);
    line-height: 1.6;
    background-color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6
{
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
}


.container
{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* START: HEADER STYLES */
.header-top
{
    background-color: #fff;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.8rem;
}

.header-top .container
{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-socials a
{
    color: var(--medium-grey);
    margin: 0 8px;
    text-decoration: none;
}

.top-links a
{
    color: var(--medium-grey);
    margin-left: 15px;
    text-decoration: none;
}

.top-socials a:hover,
.top-links a:hover
{
    color: var(--primary-red);
}

.header-main
{
    padding: 15px 0;
}

.header-main .container
{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo
{
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-text-wrapper
{
    margin-left: 10px;
}

.logo-main-text
{
    font-family: 'Oswald', sans-serif;
    font-size: 2.2rem;
    color: var(--dark-grey);
    letter-spacing: 0.5px;
    line-height: 1;
    font-weight: 500;
}

.logo-tagline
{
    font-size: 0.6rem;
    color: var(--dark-grey);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-contact-wrapper
{
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-contact-item
{
    display: flex;
    align-items: center;
}

.header-contact-item .icon
{
    color: var(--primary-red);
    font-size: 1.8rem;
    margin-right: 10px;
}

.header-contact-item .text-label
{
    font-size: 0.8rem;
    font-weight: 500;
}

.header-contact-item .text-value
{
    font-size: 0.9rem;
    font-weight: bold;
}

.header-user-icons a
{
    color: var(--dark-grey);
    font-size: 1.2rem;
    margin-left: 15px;
}

.header-nav-bar
{
    background-color: var(--dark-grey);
    color: var(--white);
}

.header-nav-bar .container
{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav
{
    display: flex;
}

.main-nav a
{
    color: var(--white);
    text-decoration: none;
    padding: 15px 20px;
    font-weight: 500;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.main-nav a:hover
{
    background-color: #eeb0a5;
    ;
}

.btn-quote
{
    background-color: var(--primary-red);
    color: var(--white);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
}

.btn-quote .icon
{
    font-size: 1.5rem;
}

.btn-quote .text strong
{
    display: block;
    font-family: 'Oswald', sans-serif;
}

.btn-quote .text
{
    line-height: 1.2;
}

.liststyle
{
    /* list-style: none; */
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    font-size: 1rem;
    color: #000;
}

/* START: MODIFIED HERO STYLES */
.hero
{
    /* REMOVED static background-image */
    background-color: #f0f0f0;
    /* Fallback color */
    padding: 100px 0 150px 0;
    position: relative;
    overflow: hidden;
    height: 700px;
    width: 100%;
    /* Ensure carousel images don't spill out */
}

/* NEW: Styles for the background image carousel */
.hero-background-carousel
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Place it behind the content */
}

.carousel-slide
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    /* Smooth fade transition */
}

.carousel-slide.active
{
    opacity: 1;
    /* Make the active slide visible */
}

/* MODIFIED: Ensure content is on top of the carousel */
.hero>.container
{
    position: relative;
    z-index: 2;
    /* Higher z-index than the background */
}

.hero-content
{
    max-width: 600px;
}

.hero-content .subtitle
{
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--dark-grey);
    font-family: 'Roboto', sans-serif;
    text-transform: none;
}

.hero-content h1
{
    font-size: 4.5rem;
    color: var(--primary-red);
    line-height: 1.1;
    margin: 0;
    font-weight: 700;
}

.hero-content .tagline
{
    font-size: 1.2rem;
    color: var(--dark-grey);
    margin: 20px 0 30px 0;
    font-weight: 500;
}

.btn-see-more
{
    background-color: var(--primary-red);
    color: var(--white);
    padding: 12px 35px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.hero-content.text-light .subtitle,
.hero-content.text-light h1,
.hero-content.text-light .tagline
{
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    /* Improves readability */
}

.btn-see-more:hover
{
    background-color: #f7eced;
}

.category-cards-wrapper
{
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 3;
    /* Ensure cards are also on top */
}

.category-cards
{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 76px;
}

.category-card
{
    background-color: var(--dark-grey);
    color: var(--white);
    display: flex;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.category-card::after
{
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 60px 60px;
    border-color: transparent transparent var(--primary-red) transparent;
}

.category-card img
{
    width: 80px;
    height: 60px;
    object-fit: cover;
    margin-right: 15px;
}

.category-card h3
{
    font-size: 1.2rem;
    font-weight: 500;
}

/* END: HERO STYLES */

/* Remaining styles */
section
{
    padding: 60px 0;
}

#about
{
    padding-top: 120px;
}

.section-title
{
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--dark-grey);
    text-transform: uppercase;
}

#about p
{
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
    font-size: 1.1rem;
    color: var(--medium-grey);
}

/* Responsive styles */
@media (max-width: 1024px)
{
    .category-cards
    {
        gap: 15px;
    }

    .category-card
    {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .category-card img
    {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px)
{

    .header-top,
    .header-contact-wrapper,
    .header-user-icons,
    .btn-quote
    {
        display: none;
    }

    .header-main .container
    {
        justify-content: center;
    }

    .main-nav
    {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero
    {
        padding: 60px 0 120px 0;
        text-align: center;
    }

    .hero-content .subtitle
    {
        font-size: 1.8rem;
    }

    .hero-content h1
    {
        font-size: 3rem;
    }

    .category-cards
    {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: row;
        /* justify-content: space-around; */
        margin-top: 117px;

    }

    .category-cards-wrapper
    {
        position: relative;
        bottom: auto;
        transform: none;
        left: auto;
        padding: 20px;
        margin-top: -80px;
    }

    #about
    {
        padding-top: 20px;
    }
}

section
{
    padding: 60px 0;
}

.section-title
{
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--dark-text);
}

/* Header & Navigation */
.main-header
{
    background-color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Increased z-index */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-header .container
{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo
{
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img
{
    height: 50px;
    /* Using placeholder, adjust if needed */
}

.logo-text-wrapper
{
    display: flex;
    flex-direction: column;
    margin-left: 10px;
    line-height: 1.1;
}

.logo-main-text
{
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    color: var(--dark-text);
    letter-spacing: 1px;
}

.logo-tagline
{
    font-size: 0.7rem;
    color: var(--primary-red);
    font-weight: 500;
    text-transform: uppercase;
}

.main-nav
{
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav a
{
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.main-nav a:not(.btn):hover
{
    color: var(--primary-red);
}

.main-nav a:not(.btn)::after
{
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-red);
    transition: all 0.3s ease-out;
    transform: translateX(-50%);
}

.main-nav a:not(.btn):hover::after
{
    width: 100%;
}


.btn-enquiry
{
    background-color: var(--white);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-enquiry:hover
{
    background-color: #fff2ff;
    color: var(--white);
}

.btn-enquiry:hover::after
{
    width: 0;
}

.hamburger
{
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--dark-text);
}

/* Hero Section */
.hero
{
    background-color: var(--primary-red);
    color: var(--white);
    padding: 80px 0;
    background-image: url("./image/Background.jpg");
}

.hero .container
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content
{
    flex-basis: 55%;
    z-index: 10;
}

.hero-content .brand-slogan
{
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.hero-content .brand-slogan img
{
    height: 70px;
}

.hero h1
{
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.btn-start
{
    background-color: var(--white);
    color: var(--primary-red);
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    font-size: 1.1rem;
}

.btn-start:hover
{
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-chevrons
{
    font-size: 2rem;
    margin-top: 30px;
}

.hero-image-wrapper
{
    flex-basis: 40%;
    background: var(--white);
    padding: 0px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* Added aspect-ratio for consistent height */
    aspect-ratio: 5/3;
}

.hero-image-wrapper img
{
    width: 100%;
    display: block;
}

/* Carousel Styles */
.hero-image-wrapper
{
    position: relative;
    /* Establishes a positioning context for the images */
    overflow: hidden;
    /* Ensures images don't spill out */
}

.carousel-image
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures images cover the area without distortion */
    opacity: 0;
    /* Hide all images by default */
    transition: opacity 0.7s ease-in-out;
    /* Smooth fade transition */
    border-radius: 15px;
    /* Keep the rounded corners */
}

.carousel-image.active
{
    opacity: 1;
    /* Make the active image visible */
}

/* About Us Section */
#about p
{
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: var(--grey-text);
}

/* Team Section */
.team-section
{
    background-color: var(--light-grey);
    padding-top: 100px;
    position: relative;
}

.team-section::before
{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--white);
    clip-path: ellipse(50% 100% at 50% 0%);
}

.team-container
{
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 5rem;
}

.team-divider
{
    width: 1px;
    height: 150px;
    background-color: #ccc;
    margin-top: 25px;
}

.team-member
{
    text-align: center;
}

.team-member img
{
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-red);
    margin-bottom: 15px;
}

.team-member h3
{
    color: var(--primary-red);
    font-size: 1.5rem;
}

.team-member p
{
    color: var(--dark-text);
    font-weight: 500;
}

/* Testimonials Section */
.testimonial-video
{
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border: 10px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.testimonial-video video
{
    width: 100%;
    display: block;
}

/* Services Section */
#services
{
    background-color: var(--light-grey);
}

.services-grid
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.service-card
{
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    display: flex;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.service-card img
{
    max-width: 150px;
    height: auto;
    object-fit: contain;
}

.service-card-content h3
{
    background: var(--primary-red);
    color: var(--white);
    display: inline-block;
    padding: 5px 15px;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.service-card-content p
{
    color: var(--grey-text);
    font-size: 0.9rem;
}

/* Gallery Section */
.gallery-grid
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item
{
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img
{
    transform: scale(1.05);
}

/* Lab Test Section */
.lab-test-content
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.lab-test-text p
{
    color: var(--grey-text);
}

.lab-test-image img
{
    width: 100%;
    border-radius: 10px;
}

/* Map Section */
#map-section
{
    padding-bottom: 0;
}

#map
{
    height: 450px;
    width: 100%;
}

/* Footer */
.main-footer
{
    background-color: var(--light-grey);
    padding: 60px 0;
    border-top: 1px solid #ddd;
}

.footer-grid
{
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-col-1 .logo
{
    margin-bottom: 20px;
}

.footer-col-1 p
{
    color: var(--grey-text);
    max-width: 350px;
}

.footer-col h4
{
    font-size: 1.3rem;
    color: var(--dark-text);
    margin-bottom: 20px;
}

.footer-links
{
    list-style: none;
}

.footer-links li
{
    margin-bottom: 10px;
}

.footer-links a
{
    text-decoration: none;
    color: var(--grey-text);
    transition: color 0.3s;
}

.footer-links a:hover
{
    color: var(--primary-red);
}

/* Responsive Styles */
@media (max-width: 992px)
{
    .hero .container
    {
        flex-direction: column;
        text-align: center;
    }

    .hero-content .brand-slogan
    {
        justify-content: center;
    }

    .lab-test-content
    {
        grid-template-columns: 1fr;
    }

    .footer-grid
    {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px)
{
    .main-nav
    {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        /* Height of header */
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active
    {
        display: flex;
    }

    .category-card
    {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .category-card img
    {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .hamburger
    {
        display: block;
    }

    .team-container
    {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .team-divider
    {
        display: none;
    }

    .services-grid
    {
        grid-template-columns: 1fr;
    }

    .service-card
    {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-grid
    {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col-1 p
    {
        margin: 0 auto;
    }

}

@media (max-width: 576px)
{
    .hero h1
    {
        font-size: 3rem;
    }

    .category-card
    {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .category-card img
    {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .section-title
    {
        font-size: 2rem;
    }
}

.modal
{
    /* display: none; */
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1000;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.6);
    /* Black w/ opacity */
    padding-top: 60px;
}

/* Modal Content/Box */
.modal-content
{
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    animation-name: animatetop;
    animation-duration: 0.4s
}

/* Add Animation */
@keyframes animatetop
{
    from
    {
        top: -300px;
        opacity: 0
    }

    to
    {
        top: 0;
        opacity: 1
    }
}

/* The Close Button */
.close-btn
{
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 25px;
}

.close-btn:hover,
.close-btn:focus
{
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Form Styles */
.modal-content h2
{
    text-align: center;
    color: #333;
    font-family: 'Oswald', sans-serif;
    margin-bottom: 10px;
}

.modal-content p
{
    text-align: center;
    color: #666;
    margin-bottom: 25px;
}

.enquiry-form .form-group
{
    margin-bottom: 20px;
}

.enquiry-form label
{
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.enquiry-form input[type="text"],
.enquiry-form input[type="tel"],
.enquiry-form textarea
{
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    /* IMPORTANT */
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
}

.enquiry-form textarea
{
    resize: vertical;
}

.enquiry-form .btn-submit
{
    background-color: #e67e22;
    /* Use a color from your site */
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.enquiry-form .btn-submit:hover
{
    background-color: #d35400;
    /* Darker shade on hover */
}