/* Basic Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #007bff;
    /* A nice blue for links */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3 {
    margin-bottom: 0.8em;
    color: #2c3e50;
    /* Darker blue/grey for headings */
}

h1 {
    font-size: 2.2em;
}

h2 {
    font-size: 1.8em;
}

h3 {
    font-size: 1.4em;
}

/* Header & Navigation */
header {
    background-color: #a5cb7c;
    padding: 1em 0;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

header .container {
    display: flex;
    flex-direction: column;
    /* Stack logo and nav on small screens */
    align-items: center;
    text-align: center;
}

.logo-area {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    /* Space between logo and nav on small screens */
}

.logo {
    height: 50px;
    /* Adjust as needed */
    width: auto;
    margin-right: 15px;
}

header h1 {
    font-size: 1.5em;
    /* Smaller on mobile */
    margin-bottom: 0;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    /* Allow items to wrap on very small screens */
    justify-content: center;
}

nav ul li {
    margin: 0 10px;
    position: relative;
    /* For dropdown positioning */
}

nav ul li a {
    color: #333;
    padding: 0.5em 0.8em;
    display: block;
    font-weight: bold;
}

nav ul li a:hover,
nav ul li a.active {
    /* Example active class */
    color: #0056b3;
}

/* Dropdown Menu */
nav ul .dropdown {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 100;
    min-width: 200px;
    /* Dropdown width */
    flex-direction: column;
    /* Stack dropdown items */
    align-items: flex-start;
    /* Align items to left */
    padding: 5px 0;
}

nav ul li:hover .dropdown {
    display: flex;
    /* Show on hover */
}

nav ul .dropdown li {
    width: 100%;
    margin: 0;
}

nav ul .dropdown li a {
    padding: 10px 15px;
    white-space: nowrap;
    display: block;
    width: 100%;
}

nav ul .dropdown li a:hover {
    background-color: #f0f0f0;
}


/* Hero Section */
#hero {
    background: #007bff url('https://via.placeholder.com/1400x500?text=Dental+Clinic+View') no-repeat center center/cover;
    color: #fff;
    padding: 60px 0;
    text-align: center;
    min-height: 300px;
    /* Minimum height for the hero */
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero h2 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
    color: #fff;
}

#hero p {
    font-size: 1.2em;
    margin-bottom: 1.5em;
}

#hero p a {
    color: #fff;
    font-weight: bold;
}

.cta-button {
    background-color: #28a745;
    /* Green button */
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #218838;
    /* Darker green on hover */
    text-decoration: none;
}

/* Content Sections */
.content-section {
    padding: 40px 0;
    text-align: center;
    /* Center text in sections */
}

.content-section h2 {
    margin-bottom: 30px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Single column on mobile */
    gap: 30px;
    text-align: left;
    /* Align text left within service items */
}

.service-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    /* Center content within each item */
}

.service-item img {
    border-radius: 5px;
    margin-bottom: 15px;
    width: 100%;
    /* Make image take full width of its container */
    max-height: 200px;
    /* Constrain image height */
    object-fit: cover;
    /* Cover the area without distorting aspect ratio */
}

.service-item h3 {
    margin-top: 0;
    color: #007bff;
}

.learn-more {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #007bff;
    color: #fff;
    border-radius: 4px;
    font-size: 0.9em;
}

.learn-more:hover {
    background-color: #0056b3;
    text-decoration: none;
}

/* Contact Info Section */
#contact-info p {
    margin-bottom: 0.5em;
}

#contact-info strong {
    color: #555;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}

footer p {
    margin-bottom: 5px;
}

footer a {
    color: #aaa;
}

footer a:hover {
    color: #fff;
}

/* Responsive Adjustments */

/* Tablet and smaller desktops */
@media (min-width: 768px) {
    header .container {
        flex-direction: row;
        /* Logo and nav side-by-side */
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .logo-area {
        margin-bottom: 0;
    }

    header h1 {
        font-size: 1.8em;
    }

    nav ul {
        justify-content: flex-end;
        /* Align nav to the right */
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Two columns */
    }

    .content-section,
    #hero .container {
        text-align: left;
        /* Align section text to left for wider screens */
    }

    #hero {
        text-align: center;
    }

    /* Keep hero text centered */
}

/* Larger desktops */
@media (min-width: 992px) {
    header h1 {
        font-size: 2em;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Three columns */
    }
}