/* General Body Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* Header and Navigation */
header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: inline-block;
}

nav a:hover,
nav a.active {
    background: #555;
    border-radius: 5px;
}

/* Main Content Styling */
main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

section {
    background: #fff;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h1, h2 {
    color: #333;
    text-align: center;
    margin-bottom: 1.5rem;
}

p {
    text-align: center;
    margin-bottom: 1rem;
}

/* Contact Hero Section */
.contact-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-hero p {
    max-width: 600px;
    margin: 0.5rem auto 0;
}

/* Contact Info Section */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px; /* Space between info items */
}

.info-item {
    flex: 1; /* Allows items to grow and shrink */
    min-width: 250px; /* Minimum width before wrapping */
    text-align: center;
    padding: 1rem;
    background: #e9e9e9;
    border-radius: 5px;
}

.info-item h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #007bff;
}

.info-item p {
    margin: 0.2rem 0;
    font-size: 0.9rem;
}

.info-item a {
    color: #007bff;
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

/* Contact Form Section */
.contact-form-section {
    padding: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding in width */
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing */
}

.submit-button {
    background-color: #28a745;
    color: white;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    align-self: center; /* Center the button */
    margin-top: 1rem;
}

.submit-button:hover {
    background-color: #218838;
}

.form-note {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    margin-top: 1rem;
}

/* Social Media Section */
.social-media {
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 1rem;
}

.social-icons img {
    width: 40px;
    height: 40px;
    transition: transform 0.2s ease-in-out;
}

.social-icons a:hover img {
    transform: scale(1.1);
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem 0;
    background: #333;
    color: #fff;
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-info {
        flex-direction: column; /* Stack info items vertically */
        align-items: center; /* Center items when stacked */
    }

    .info-item {
        width: 90%; /* Take more width on smaller screens */
        min-width: unset;
    }

    nav a {
        padding: 0.5rem 0.7rem;
    }

    .contact-form {
        padding: 0 1rem;
    }
}