/* =========================
   RESET STYLES
   ========================= */

/* Reset some default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Remove default list styles */
ul {
    list-style: none;
}

/* Remove default link styles */
a {
    text-decoration: none;
    color: inherit;
}

/* =========================
   BODY STYLES
   ========================= */

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    text-align: justify;
    overflow-x: hidden; /* Prevent horizontal scroll */
    background-color: #f4f4f9; /* Light background for modern look */
    transition: background-color 0.3s ease;
}

/* =========================
   HEADER STYLES
   ========================= */

header {
    background-color: #fff; /* Changed to solid background for readability */
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Subtle shadow */
    width: 100%;
    /* Removed fixed positioning */
    /* position: fixed;
    top: 0;
    left: 0;
    z-index: 1000; */
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Logo on left, nav on right */
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    width: 250px;
    height: auto;
}

nav {
    /* No additional styles needed */
}

.nav-list {
    display: flex;
    gap: 20px;
}

.nav-list li a {
    color: #333; /* Dark color for text */
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
    font-weight: 500;
}

.nav-list li a:hover,
.nav-list li a.active {
    background-color: #0066cc; /* Lighter blue on hover and active */
    color: #fff;
    transform: translateY(-2px);
    border-bottom: 2px solid #fff; /* Optional: underline active link */
}

/* =========================
   PRELOADER STYLES
   ========================= */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    z-index: 9999;
    display: flex; /* Visible by default */
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    opacity: 1;
    visibility: visible;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preloader-logo {
    width: 250px;
    height: auto;
    margin-bottom: 20px;
}

.spinner {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #004080; /* Dark blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

/* Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =========================
   MAIN CONTENT STYLES
   ========================= */

main {
    max-width: 1200px;
    margin: 20px auto 40px auto; /* Adjusted top margin since header is not fixed */
    padding: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
    z-index: 1;
}

main.active {
    opacity: 1;
}

/* =========================
   BANNER CAROUSEL STYLES
   ========================= */

.carousel-container {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    overflow: hidden;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 90%;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-content {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    max-width: 100%;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

.carousel-content h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
}

.carousel-content p {
    font-size: 1.2em;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 2em;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* =========================
   LOGO CAROUSEL STYLES
   ========================= */

#logo-carousel {
    background-color: #fff;
    padding: 10px 0; /* Adjusted padding to ensure proper spacing */
}

#logo-carousel h2 {
text-align: center;
margin-bottom: 40px;
    color: #004080;
    font-size: 2em;
}

.carousel {
    overflow: hidden;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    animation: scroll 40s linear infinite;
}

.carousel-item {
    min-width: 180px;
    margin-right: 40px; /* Increased space between logos */
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.carousel-item img:hover {
    filter: grayscale(0%);
    transform: scale(1.40);
}

/* Keyframes for scrolling */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* =========================
   FOOTER STYLES
   ========================= */

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

footer p {
    font-size: 0.9em;
}

/* =========================
   ABOUT US PAGE STYLES
   ========================= */

#about-us {
    padding: 40px 20px;
    background-color: #fff;
    position: relative;
}

#about-us h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #004080;
    font-size: 2em;
}

/* Existing About Us Section */
.about-container {
    display: flex;
    align-items: center; /* Changed from flex-start to center for better alignment */
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
    min-width: 280px;
    text-align: justify; /* Justify text */
}

.about-text h3 {
    font-size: 1.5em;
    margin-top: 20px;
    color: #004080;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1em;
    line-height: 1.8;
    color: #555;
    text-align: justify; /* Justify text */
}

.about-image {
    flex: 1;
    min-width: 280px;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.05);
}

/* =========================
   BANNERS CAROUSEL STYLES
   ========================= */

.banners-carousel {
    margin-top: 60px;
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.banner-item {
    display: none;
    width: 100%;
    transition: opacity 1s ease-in-out;
}

.banner-item.active {
    display: flex;
    opacity: 1;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.banner-text {
    flex: 1;
    min-width: 280px;
    text-align: justify; /* Justify text */
}

.banner-text h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #004080;
}

.banner-text p {
    font-size: 1em;
    line-height: 1.8;
    color: #555;
    text-align: justify; /* Justify text */
}

.banner-image {
    flex: 1;
    min-width: 280px;
}

.banner-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.banner-image img:hover {
    transform: scale(1.05);
}

/* Carousel Indicators */
.carousel-indicators {
    text-align: center;
    margin-top: 20px;
}

.carousel-indicators .indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-indicators .indicator.active {
    background-color: #004080;
}

/* Navigation Buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.5em;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.left-nav {
    left: 10px;
}

.right-nav {
    right: 10px;
}

/* =========================
   SERVICES PAGE STYLES
   ========================= */

#services {
    text-align: center;
    padding: 10px 10px;
}
#services h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #004080;
    font-size: 2em;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.service-item {
    flex: 1 1 30%;
    max-width: 30%;
    box-sizing: border-box;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: left;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 100%; /* Make the image cover the full width of the container */
    height: auto; /* Maintain the aspect ratio */
    object-fit: cover; /* Ensure the image covers the available space without distortion */
    border-radius: 10px;
    margin-bottom: 15px; /* Added margin for spacing */ 
}

.service-item h3 {
    margin: 15px 0;
    font-size: 1.5em;
    color: #333;
}

.service-item p {
    font-size: 1em;
    color: #666;
    line-height: 1.6;
}

/* Responsive design for smaller screens */
@media screen and (max-width: 768px) {
    .service-item {
        flex: 1 1 100%; /* full width on smaller screens */
        max-width: 100%;
    }
}

/* =========================
   PHARMACEUTICAL-EXPORT STYLES
   ========================= */
#pharmaceutical-export {
    padding: 40px 20px;
    background-color: #fff;
    position: relative;
}
#pharmaceutical-export h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #004080;
    font-size: 2em;
}
/* Existing pharmaceutical export Section */
.pharmaceutical-container {
    display: flex;
    align-items: center; /* Changed from flex-start to center for better alignment */
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}
/* Style for the first section */
.pharmaceutical-part-1,
.pharmaceutical-part-2 {
    display: flex;
    align-items: center; /* Changed from flex-start to center for better alignment */
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin-bottom: 20px;
}
.pharmaceutical-text {
    flex: 1;
    min-width: 280px;
    text-align: justify; /* Justify text */
}
.pharmaceutical-text h3 {
    font-size: 1.5em;
    margin-top: 20px;
    color: #004080;
}
.pharmaceutical-text p {
    margin-bottom: 15px;
    font-size: 1em;
    line-height: 1.8;
    color: #555;
    text-align: justify; /* Justify text */
}
.pharmaceutical-image {
    flex: 1;
    min-width: 280px;
}
.pharmaceutical-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.pharmaceutical-image img:hover {
    transform: scale(1.05);
}
/* Add some space between the two sections */
.pharmaceutical-part-1 {
    border-bottom: 2px solid #ddd;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.pharmaceutical-image img:hover {
    transform: scale(1.05);
}

/* =========================
   CLINICAL-TRIALS STYLES
   ========================= */
#clinical-trials {
    padding: 40px 20px;
    background-color: #fff;
    position: relative;
}
#clinical-trials h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #004080;
    font-size: 2em;
}
/* Existing clinical trials Section */
.clinical-container {
    display: flex;
    align-items: center; /* Changed from flex-start to center for better alignment */
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}
/* Style for the first section */
.clinical-part-1,
.clinical-part-2,
.clinical-part-3 {
    display: flex;
    align-items: center; /* Changed from flex-start to center for better alignment */
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin-bottom: 20px;
}
.clinical-text {
    flex: 1;
    min-width: 280px;
    text-align: justify; /* Justify text */
}
.clinical-text h3 {
    font-size: 1.5em;
    margin-top: 20px;
    color: #004080;
}

.clinical-text p {
    margin-bottom: 15px;
    font-size: 1em;
    line-height: 1.8;
    color: #555;
    text-align: justify; /* Justify text */
}
.clinical-image {
    flex: 1;
    min-width: 280px;
}
.clinical-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
/* Add some space between the two sections */
.clinical-part-1 {
    border-bottom: 2px solid #ddd;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.clinical-image img:hover {
    transform: scale(1.05);
}

/* =========================
   SUPPLY-CHAIN-MANAGEMENT STYLES
   ========================= */
#supply-chain-management {
    padding: 40px 20px;
    background-color: #fff;
    position: relative;
}
#supply-chain-management h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #004080;
    font-size: 2em;
}
/* Existing supply chain management Section */
.supply-container {
    display: flex;
    align-items: center; /* Changed from flex-start to center for better alignment */
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}
.supply-text {
    flex: 1;
    min-width: 280px;
    text-align: justify; /* Justify text */
}
.supply-text h3 {
    font-size: 1.5em;
    margin-top: 20px;
    color: #004080;
}

.supply-text p {
    margin-bottom: 15px;
    font-size: 1em;
    line-height: 1.8;
    color: #555;
    text-align: justify; /* Justify text */
}
.supply-image {
    flex: 1;
    min-width: 280px;
}
.supply-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.supply-image img:hover {
    transform: scale(1.05);
}
.back-button-container {
    margin: 20px 0;
    text-align: center;
}

.back-button-container button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.back-button-container button:hover {
    background-color: #0056b3;
}
/* =========================
   CONTRACT-MANUFACTURING STYLES
   ========================= */
#contract-manufacturing {
    padding: 40px 20px;
    background-color: #fff;
    position: relative;
}
#contract-manufacturing h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #004080;
    font-size: 2em;
}
/* Existing contract manufacturing Section */
.contract-container {
    display: flex;
    align-items: center; /* Changed from flex-start to center for better alignment */
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}
.contract-text {
    flex: 1;
    min-width: 280px;
    text-align: justify; /* Justify text */
}
.contract-text h3 {
    font-size: 1.5em;
    margin-top: 20px;
    color: #004080;
}

.contract-text p {
    margin-bottom: 15px;
    font-size: 1em;
    line-height: 1.8;
    color: #555;
    text-align: justify; /* Justify text */
}
.contract-image {
    flex: 1;
    min-width: 280px;
}
.contract-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.contract-image img:hover {
    transform: scale(1.05);
}

/* =========================
   CONTACT US PAGE STYLES
   ========================= */

#contact-us {
    padding: 40px 20px;
    background-color: #fff;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form {
    flex: 1 1 500px;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #004080;
    outline: none;
}

.required {
    color: red;
}

.button {
    background-color: #004080;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #0066cc;
}

.contact-details {
    flex: 1 1 400px;
    padding: 30px;
}

.contact-details h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #004080;
}

.contact-details address {
    font-style: normal;
    line-height: 1.8;
    color: #555;
}

.contact-details address p {
    margin-bottom: 10px;
}

.contact-details address a {
    color: #004080;
    text-decoration: none;
}

.contact-details address a:hover {
    text-decoration: underline;
}

.map-container {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: 0;
}

/* =========================
   RESPONSIVE DESIGN
   ========================= */

@media (max-width: 1024px) {
    .carousel-item {
        min-width: 150px;
        margin-right: 30px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px;
    }

    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-list {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list li a {
        display: block;
        width: 100%;
    }

    .carousel-item {
        min-width: 140px;
        margin-right: 25px;
    }
	const logoCarouselTrack = document.querySelector('#logo-carousel .carousel-track');
let scrollPosition = 0;

function scrollLogos() {
    	scrollPosition += 200; // Adjust based on the width of your items
   	if (scrollPosition >= logoCarouselTrack.scrollWidth) {
        scrollPosition = 0; // Reset scroll position once all logos are displayed
    }
    	logoCarouselTrack.scrollLeft = scrollPosition;
}
	setInterval(scrollLogos, 2000); // Automatically scroll every 2 seconds
}
    .contact-form,
    .contact-details {
        padding: 15px;
    }

    .button {
        width: 100%;
        padding: 12px;
    }

    .service-icon {
        width: 300px;
        height: 250px;
    }

    .services-list li h3 {
        font-size: 1.3em;
    }

    .services-list li p {
        font-size: 0.9em;
    }

    /* Adjust carousel animation speed for smaller screens */
    .carousel-track {
        animation: scroll 30s linear infinite;
    }

    /* Text Overlay Adjustments */
    .carousel-content h2 {
        font-size: 2em;
    }

    .carousel-content p {
        font-size: 1em;
    }

    /* Banners */
    .carousel-container {
        height: 100vh;
    }
}

@media (max-width: 480px) {
    .header-container {
        flex-direction: column;
        align-items: center;
    }

    .nav-list {
        flex-direction: column;
        gap: 5px;
    }

    .carousel-item {
        min-width: 120px;
        margin-right: 20px;
    }

    .preloader-logo {
        width: 120px;
    }

    .contact-form {
        padding: 10px;
    }

    .button {
        padding: 10px;
    }

    .service-icon {
        width: 300px;
        height: 250px;
    }

    .services-list li h3 {
        font-size: 1.2em;
    }

    .services-list li p {
        font-size: 0.8em;
    }

    .carousel-content h2 {
        font-size: 1.5em;
    }

    .carousel-content p {
        font-size: 0.9em;
    }

    /* Banners */
    .carousel-container {
        height: 100vh;
    }
}
/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 120px; /* Adjust the width */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Dropdown content text size */
.dropdown-content a {
    font-size: 12px; /* Adjust the text size */
    color: black;
    padding: 8px 12px;
    text-decoration: none;
    display: block;
}

/* Show the dropdown content on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Ensure dropdown stays open while the mouse cursor is over it */
.dropdown-content:hover {
    display: block;
}

/* Optional: change the hover effect on the dropdown items */
.dropdown-content a:hover {
    background-color: #ddd;
}

