/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    font-size: 16px;
    line-height: 1.5;
}

h1{
    margin-bottom: 10px;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #174a68;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

/* Specific style for index page */
body.index-page {
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Container to align all sections */
.container {
    max-width: 1600px;
    width: 100%;
    margin: 0 10px;
    padding: 0 20px;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: white;
    width: 100%;
    max-width: 1600px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

header .logo img {
    height: 50px;
    max-width: 100%;
}

header nav {
    display: flex;
    gap: 20px;
}

header a {
    color: #174a68;
    text-decoration: none;
    font-weight: bold;
}

header a.active {
    text-decoration: underline;
    color: #f0bf4c;
}

/* Responsive Mobile Menu */
.menu-toggle {
    display: none;
    font-size: 30px;
    cursor: pointer;
    position: relative;
    z-index: 11;
}

@media (max-width: 768px) {
    
    .cta2 {
        display: none;
    }
    header nav {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background-color: white;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        text-align: center;
        z-index: 10;
        transition: all 0.3s ease-in-out;
    }

    header nav.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}

/* Hero Section */
.hero {
    position: relative;
    background: url('imgs/team-doctors-looking-digital-tablet2.jpg') no-repeat center center/cover;
    text-align: center;
    padding: 10% 5%;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1600px;
    flex: 1;
    position: relative;
    z-index: 1; 
}

.hero h1 {
    font-size: 3rem;
    color: #174a68;
}

.hero h2 {
    font-size: 2rem;
    color: #174a68;
}

.hero .cta1 {
    margin-top: 20px;
}
.hero .cta2 {
    margin-top: 20px;
}

.hero button {
    margin-top: 5px;
    padding: 15px 30px;
    border: none;
    background-color: #174a68;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

.hero button:hover {
    background-color: #123456;
}

/* Sections */
section {
    margin: 0 20px;
    padding: 20px 20px;
    max-width: 1500px;
}

article {
    padding: 20px;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 15px 0;
    width: 100%;
    max-width: 1600px;
    margin-top: auto;
    flex-shrink: 0;
    font-size: 10px;
}

/* Responsive Design */
@media (max-width: 1366px) {
    body:not(.index-page) {
        overflow-y: auto;
    }
}

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero h2 {
        font-size: 1.2rem;
    }
    .hero button {
        padding: 12px 25px;
    }
}