/* -------------------------------------
   1. GLOBAL STYLES
-------------------------------------- */

/* Use a modern, clean font */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #fafafa;
    color: #333;
}

/* -------------------------------------
   2. NAVIGATION BAR
-------------------------------------- */

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #4CAF50; /* A modern green shade */
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 50px;
    width: auto;
}

/* Simple horizontal nav for desktops */
.nav-links a {
    font-size: 16px;
    text-decoration: none;
    color: #fff;
    margin: 0 15px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #cce6cc;
}

/* -------------------------------------
   3. HERO SECTION
-------------------------------------- */

.hero-section {
    /* Height is flexible to accommodate different screens */
    height: 400px;
    background: url("Top-pharmaceutical-companies-in-Dubai-_-Cover-1-28-7-22.jpg") center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Dark overlay behind text */
.hero-overlay {
    background-color: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Hero heading text */
.hero-section h1 {
    position: relative;
    color: #fff;          /* Pure white text */
    font-size: 64px;      /* Large for desktop */
    font-weight: 700;
    z-index: 2;           /* Above the overlay */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Improves contrast on busy images */
    margin: 0 20px;       /* Some padding so it doesn't stick to the edges */
}

/* -------------------------------------
   4. MAIN CONTENT
-------------------------------------- */

.content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.content .text, .content ul {
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 16px;
}

.content h2 {
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 600;
}

.content p, .content li {
    margin-bottom: 10px;
}

/* Placeholder for images or additional blocks */
.placeholder {
    background-color: #fff;
    border: 2px dashed #ccc;
    border-radius: 4px;
    padding: 40px;
    text-align: center;
    margin-bottom: 20px;
    color: #888;
}

/* -------------------------------------
   5. PRODUCT ITEMS (BRANDS PAGE)
-------------------------------------- */

.product-item {
    display: flex;
    flex-wrap: wrap;
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-item:nth-child(even) {
    flex-direction: row-reverse;
}

.image-left, .image-right {
    flex: 1 1 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f2f2f2;
    min-height: 200px;
}

.image-left p, .image-right p {
    color: #888;
    font-size: 14px;
    padding: 20px;
    border: 1px dashed #ccc;
    border-radius: 4px;
    text-align: center;
}

.text-left, .text-right {
    flex: 2 1 400px;
    padding: 20px;
}

.text-left h3, .text-right h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.text-left p, .text-right p {
    font-size: 16px;
    line-height: 1.5;
    color: #555;
}

/* -------------------------------------
   6. FOOTER
-------------------------------------- */

.footer {
    background-color: #4CAF50;
    color: #fff;
    text-align: center;
    padding: 15px 20px;
    margin-top: 40px;
}

.footer p {
    font-size: 14px;
}

/* -------------------------------------
   7. MEDIA QUERIES (RESPONSIVENESS)
-------------------------------------- */

/* Tablet screens (below ~768px) */
@media (max-width: 768px) {
    /* Hero section height & text scaling */
    .hero-section {
        height: 250px; /* Reduce hero height */
    }

    .hero-section h1 {
        font-size: 36px; /* Smaller heading for mobile */
    }

    /* Stack nav links if there's no space */
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
    }
    .nav-links a {
        margin: 5px;
    }

    /* Make product items single column */
    .product-item,
    .product-item:nth-child(even) {
        flex-direction: column;
    }
}

/* Mobile screens (below ~480px) */
@media (max-width: 480px) {
    /* Further scale down hero text */
    .hero-section h1 {
        font-size: 28px;
    }

    /* Make sure content fits well */
    .content {
        margin: 20px auto;
        padding: 0 10px;
    }

    .product-item {
        margin-bottom: 15px;
    }
}
