body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Header styles */
.header {
    background-color: #000;
    padding: 10px 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.header h1 {
    margin: 0;
    font-size: 24px;
}

.header nav {
    position: relative;
}

.header nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    padding: 10px;
    display: inline-block;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.header nav a::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.header nav a:hover::after {
    width: 100%;
}

.header nav a:hover {
    color: #f5f5f5;
    transform: scale(1.1);
}

/* Dropdown styling */
.header .dropdown {
    position: relative;
    display: inline-block;
}

.header .dropdown-content {
    display: none; /* Hidden by default */
    position: absolute;
    background-color: #333;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000; /* Ensure dropdown is on top */
    top: 100%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.header .dropdown-content.show {
    display: block;
    opacity: 1;
    visibility: visible;
    animation: slideIn 0.3s ease-out;
}

.header .dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.header .dropdown-content a:hover {
    background-color: #575757;
}

/* Main content part */
.about-head {
    height: 200px;
    padding: 36px;
    background-color: black;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    margin-bottom: 50px;
}

.about-head h3, .about-head h1 {
    margin: 10px;
}

.contact-main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    text-align: left;
    padding: 20px; /* Padding for left and right space */
    background-color: #f9f9f9d8;
}

.contact-main > div {
    margin: 20px; /* Space between each element */
    padding: 10px;
    min-width: 200px; /* Ensures a minimum width for responsiveness */
    max-width: 300px; /* Ensures a maximum width for better layout control */
    background-color: #f9f9f9d8;
    border-radius: 8px;
}

.contact-main h3 {
    margin-bottom: 15px;
    font-size: 1.2em;
    color: #2a1bc6;
}

.contact-main p {
    margin: 8px 0;
    display: flex;
    align-items: center;
}

.contact-main p i {
    margin-right: 10px;
}

.contact-main p span {
    color: #2a1bc6;
    font-size: 1em;
    font-weight: bolder;
}

.contact-main p i.fa-map-marker-alt {
    color: #007bff; /* Blue for address icon */
}

.contact-main p i.fa-phone, 
.contact-main p i.fa-phone-alt {
    color: #28a745; /* Green for phone icons */
}

.contact-main p i.fa-envelope {
    color: #dc3545; /* Red for email icon */
}

/* Contact form information */
.main-container {
    display: flex;
    justify-content: space-between; /* Ensure space between the two sections */
    align-items: stretch; /* Ensure both sections stretch to the same height */
    padding: 50px 20px;
    width: 100%; /* Make main-container take 100% of the width */
    box-sizing: border-box;
    margin-bottom: 70px;
}

.form-container, .content-blocked-container {
    flex: 1; /* Each section takes up 50% of the main-container */
    padding: 20px;
    box-sizing: border-box; /* Include padding in the width calculation */
}

.form-container {
    background-color: #fff;
    border-radius: 8px;
    border-radius: 20px;
    box-shadow: 0 2px 4px 0px rgb(0, 0, 0);
    margin-right: 20px;
}

form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    margin-bottom: 5px;
    display: block;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: none; /* Remove all borders */
    border-bottom: 1px solid #ccc; /* Add only bottom border */
    border-radius: 0; /* Remove border-radius */
    font-size: 1em;
    box-sizing: border-box; /* Include padding in width calculation */
}

.form-group button {
    padding: 15px;
    background-color: #007bff;
    border: none;
    margin-left: 70%;
    border-radius: 4px;
    color: white;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-end; /* Align button to the right */
}

.form-group button:hover {
    background-color: #0056b3;
}

.unblock-button:hover {
    background-color: #218838;
}
/* Base Styles */
.container {
    width: 90%;
    margin: 20px auto 0;
    display: flex;
    align-items: center;
    height: 400px;
    position: relative;
}

.left-side, .right-side {
    width: 50%;
}

.left-side {
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.cnt {
    line-height: 1.5;
    overflow-wrap: break-word;
}

.right-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reverse {
    flex-direction: row-reverse;
}

.reverse .right-side, .reverse .left-side {
    width: 50%;
    padding: 20px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .container {
        height: auto; /* Adjust height to content */
    }

    .left-side, .right-side {
        width: 100%; /* Full width on smaller screens */
    }

    .reverse {
        flex-direction: column-reverse; /* Stack elements */
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        height: auto; /* Adjust height to content */
        margin: 10px auto; /* Reduce margin */
    }

    .left-side, .right-side {
        width: 100%; /* Full width on smaller screens */
        padding: 10px; /* Adjust padding */
    }

    .right-side img {
        height: auto; /* Adjust image height */
    }
}

@media (max-width: 480px) {
    .left-side, .right-side {
        padding: 5px; /* Further reduce padding */
    }

    .cnt {
        line-height: 1.4; /* Slightly tighter line height */
    }

    .right-side img {
        width: 100%; /* Ensure image width is 100% */
        height: auto; /* Maintain aspect ratio */
    }
}


/* Footer styles */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-container div {
    flex: 1;
    margin: 10px;
}

.footer-address,
.footer-contact,
.footer-links {
    text-align: left;
}

.footer-address h3,
.footer-contact h3,
.footer-links h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.footer-address p,
.footer-contact p {
    font-size: 16px;
    margin: 5px 0;
}

.footer-links ul {
    list-style-type: none;
    padding: 0;
}

.footer-links ul li {
    margin: 5px 0;
}

/* Updated styles for social media icons */
.footer-links a {
    margin: 0 10px;
    color: #fff; /* Match the text color of the footer */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links i {
    font-size: 24px; /* Adjust size as needed */
}

.footer-links a:hover i {
    color: #007bff; /* Change color on hover */
}

.footer-bottom {
    margin-top: 20px;
}

.footer-bottom p {
    font-size: 14px;
    margin: 5px 0;
}

.footer-bottom a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    margin: 5px;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #f5f5f5;
}

.mail {
    text-decoration: none;
    color: white;
}

/* Media Queries for responsiveness */

@media (max-width: 1200px) {
    .header nav a {
        margin: 0 5px;
        padding: 5px;
    }

    .contact-main > div {
        min-width: 180px;
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        align-items: center;
    }

    .form-container, .content-blocked-container {
        flex: 1 1 auto; /* Allow sections to adjust based on screen size */
        margin: 0;
        max-width: 100%;
    }

    .form-container {
        margin-right: 0; /* Remove margin on small screens */
        margin-bottom: 20px; /* Add bottom margin for spacing */
    }

    .container {
        flex-direction: column;
    }

    .left-side, .right-side {
        width: 100%;
    }

    .reverse .left-side, .reverse .right-side {
        width: 100%;
    }

    .contact-main > div {
        min-width: 150px;
        max-width: 200px;
    }
}



@media (max-width: 480px) {
    .header {
        padding: 10px;
        height: auto; /* Adjust height for smaller screens */
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar ul {
        flex-direction: column;
        margin-right: 0;
    }

    .navbar li {
        margin-bottom: 10px;
    }

    .navbar a {
        padding: 10px;
    }

    .contact-main > div {
        min-width: 100px;
        max-width: 150px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-container div {
        margin: 5px 0;
    }
}
