/* Neaty HTML Template
   http://www.templatemo.com/tm-501-neaty
*/

/* General Styles */
body {
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: 300;
    overflow-x: hidden;
}

a, button {
    transition: all 0.3s ease;
}

a:hover,
a:focus {
    text-decoration: none;
    outline: none;
}

/* Layout Styles */
.row {
    display: block;
}

.tm-left-right-container {
    width: 100%;
}

.tm-section {
    margin-bottom: 60px;
}

/* Color Variables */
:root {
    --primary-color: #006599;
    --secondary-color: #148cc8;
    --hover-color: #2790c6;
    --text-color: #4286ab;
    --highlight-color: #f4ef5e;
}

/* Background and Text Colors */
.tm-blue-bg {
    background-color: var(--secondary-color);
    color: white;
}

.tm-blue-text {
    color: var(--primary-color);
}

.tm-blue-bg a {
    color: white;
}

/* Typography */
.tm-site-name {
    font-size: 4rem;
    margin-top: 20px;
}

.tm-welcome-title {
    font-size: 2.4rem;
}

.tm-section-title {
    font-size: 2.2rem;
}

.tm-content-div {
    padding: 40px;
}

.tm-margin-b-45 {
    margin-bottom: 45px;
}

.tm-margin-b-30 {
    margin-bottom: 30px;
}

p {
    line-height: 2;
}

/* Button Styles */
.tm-button {
    background-color: var(--primary-color);
    border: none;
    color: white;
    cursor: pointer;
    display: inline-block;
    font-size: 1.4rem;
    padding: 18px 35px;
}

.tm-button-wide {
    padding: 18px 40px;
}

.tm-button:hover,
.tm-button:active,
.tm-button:focus {
    background-color: var(--hover-color);
}

/* Navigation Styles */
.tm-nav-item:hover a,
.tm-nav-item:active a,
.tm-nav-item:focus a,
.tm-nav-item-link.active {
    color: var(--highlight-color);
}

/* Image Styles */
.tm-about-img-container {
    margin-top: 50px;
}

/* Image Styles */
.tm-gallery-container {
    overflow: auto;
    margin-left: -5px;
    margin-right: -5px;
}

.tm-img-container {
    float: left;
    width: 20%; /* Adjust this value to change the number of images per row */
    padding: 5px; /* Adding padding for spacing between images */
    height: 350px; /* Set a fixed height for image containers */
    overflow: hidden; /* Hide overflow to keep images contained */
}

.tm-img-container img {
    width: 100%;
    height: 100%; /* Set height to fill container */
    object-fit: cover; /* Maintain aspect ratio while covering the container */
    display: block; /* Center the image */
}

/* Ensure margins are consistent */
.tm-img-container-1,
.tm-img-container-2,
.tm-img-container-3 {
    margin-bottom: 10px; /* Maintain spacing at the bottom */
}


.tm-img-container-1 {
    width: 50%;
}

.tm-img-container-2 {
    width: 50%;
}

.tm-img-container-3 {
    width: 50%;
}

.tm-img-tn {
    display: block;
    margin: 0 auto;
    padding-left: 5px;
    padding-right: 5px;
}

/* Contact Styles */
.tm-contact-right {
    margin-top: 40px;
    padding-left: 15px;
}

.tm-copyright-p {
    margin-bottom: 0;
}

/* Form Styles */
.form-control {
    border-color: #0a6697;
    border-radius: 0;
    color: var(--text-color);
    font-size: 1.3rem;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-color);
}

/* Media Queries */
@media (min-width: 576px) {
    .container {
        width: 100%;
    }
    .tm-site-name {
        margin-top: 35px;
    }
    .tm-img-container-1 {
        width: 20%;
    }
    .tm-img-container-2 {
        width: 33.3334%;
    }
    .tm-img-container-3 {
        width: 25%;
    }
}

@media (min-width: 768px) {
    .tm-about-img-container {
        margin-top: 0;
    }
}

@media (min-width: 992px) {
    .tm-main-nav {
        display: flex;
        justify-content: center;
    }

    .tm-left-column {
        position: fixed;
        height: 100%;
        width: 15%;
    }

    .tm-right-column {
        float: right;
        width: 85%;
    }

    .tm-nav-item {
        cursor: pointer;
        list-style: none;
        padding: 10px 5px;
        transition: all 0.3s ease;
    }

    .tm-section {
        margin-bottom: 100px;
    }

    .tm-content-div {
        padding: 80px 40px 30px 80px;
    }

    .tm-img-container-1,
    .tm-img-container-2,
    .tm-img-container-3 {
        margin-bottom: 10px;
    }

    .tm-contact-right {
        margin-top: 0;
    }
}

@media (min-width: 1200px) {
    .tm-button-wide {
        padding: 18px 68px;
    }
}

@media (min-width: 1500px) {
    p {
        margin-bottom: 30px;
    }
}

@media (min-width: 1800px) {
    p {
        margin-bottom: 36px;
    }
}

@media (max-height: 860px) {
    .tm-logo-div {
        padding-top: 45px;
        padding-bottom: 20px;
    }

    .tm-nav-item {
        font-size: 1.4rem;
    }

    .tm-site-name {
        font-size: 2.4rem;
        margin-top: 10px;
    }
}

@media (min-height: 859px) {
    .tm-logo-div {
        padding-top: 100px;
        padding-bottom: 100px;
    }

    .tm-nav-item {
        font-size: 1.9rem;
    }
}

/* Set img-fluid to ensure images scale correctly */
img {
    max-width: 100%;
    height: auto;
}

/* Custom logo style */
.tm-logo-div img {
    max-width: 150px;
    border-radius: 50%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tm-left-column,
    .tm-right-column {
        width: 100%;
        padding: 0;
    }

    .tm-left-column {
        margin-bottom: 20px;
    }

    .tm-main-nav-ul {
        display: flex;
        justify-content: space-around;
    }

    .tm-about-img-container {
        margin-bottom: 20px;
    }

    .col-lg-8,
    .col-lg-4 {
        width: 100%;
        padding: 0;
    }
}

@media (max-width: 576px) {
    .tm-main-nav-ul {
        flex-direction: column;
        align-items: center;
    }

    .tm-nav-item-link {
        padding: 10px 0;
    }
}


.tm-section {
    padding: 40px 20px;
    background-color: #f8f9fa; /* Light background for contrast */
}

.tm-blue-text {
    color: var(--primary-color); /* Use your existing primary color */
}

.tm-contact-container {
    display: flex;
    justify-content: center; /* Center the content */
    margin-top: 20px;
}

.tm-contact-info {
    background-color: white; /* White background for contact areas */
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    margin: 10px; /* Margin between columns */
    max-width: 600px; /* Maximum width for readability */
}

.tm-contact-info p {
    margin-bottom: 15px;
}

.tm-address {
    font-style: italic; /* Italics for the address */
    margin-top: 15px;
}

.tm-address i {
    color: var(--primary-color); /* Match icon color to theme */
    margin-right: 10px; /* Space between icon and text */
}
