/* Global styles */
* {
    font-family: 'Futura LT Home Medium', sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* Section styles */
section {
    min-width: 0px;
    text-align: justify;
    margin-bottom: 0px;
    margin-top: 0px;
    max-height: none;
}

body {
    padding-top: 0px;
    margin-top: 0;
}

/* Home section styles */
.home-section {
    min-width: 796px;
    background-color: #f0f8ff;
    padding: 19px 10px; /* Updated padding */
    margin: 9px 0; /* Updated margin */
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

.home-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 0;
    margin: 10px;
    box-sizing: border-box;
    height: 699px;
    overflow: hidden;
    position: relative;
}

.home-text {
    position: absolute;
    top: 39%;
    left: 0;
    right: 0;
    width: 100%;
    font-size: 79px;
    font-weight: bold;
    color: white;
    text-align: left;
    transform: translateY(-50%);
    transform-origin: top left;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 60px;
    overflow: hidden;
    animation: slideInFromLeft 1.5s ease-out forwards;
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.home-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.home-container img.fade-in {
    opacity: 1;
}

/* About section styles */
.about-section {
    text-align: center;
    padding: 19px 0; /* Updated padding */
    margin: 9px 0; /* Updated margin */
    background-color: #ffffe0;
}

.about-section .vision-mission-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    margin-top: 20px;
    margin-left: 169px;
    margin-right: 169px;
    width: calc(100% - 338px);
}

.vision-box, .mission-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f8f8f8;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin: 15px;
    box-sizing: border-box;
    height: 549px;
    width: calc(50% - 20px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

.vision-box img, .mission-box img {
    flex: 0 0 66%;
    height: 66%;
    width: 100%;
    object-fit: cover;
}

.vision-box div, .mission-box div {
    flex: 0 0 34%;
    height: 34%;
    width: 100%;
    padding: 0px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vision-box p, .mission-box p, .service-item p {
    text-align: justify;
   padding: 0px 19px; 
}

/* Font color for headers */
.vision-box h1, .vision-box h2, .vision-box h3, .vision-box h4, .vision-box h5, .vision-box h6,
.mission-box h1, .mission-box h2, .mission-box h3, .mission-box h4, .mission-box h5, .mission-box h6,
.service-item h1, .service-item h2, .service-item h3, .service-item h4, .service-item h5, .service-item h6,
.team-member h1, .team-member h2, .team-member h3, .team-member h4, .team-member h5, .team-member h6 {
    color: #27408B;
}

/* About section styling */
.about-section h1 {
    font-family: 'Lucida', sans-serif; /* Updated font */
    letter-spacing: 2px; /* Added letter spacing */
    color: #0056b3; /* Deep blue for a corporate feel */
    text-align: center; /* Center align the heading */
    margin-bottom: 20px; /* Space below the heading */
}

.about-section p {
    font-family: 'Verdana', sans-serif; /* Clear and legible font */
    color: #333; /* Dark grey for readability */
    line-height: 1.6; /* Improved line spacing for readability */
    text-align: center; /* Justified text for a polished look */
    margin: 0 10%; /* Horizontal margin for better text framing */
}

/* Services section styles */
.services-section {
    text-align: center;
    min-width: 596px;
    padding: 19px 0; /* Updated padding */
    margin: 9px 0; /* Updated margin */
    background-color: #f0f8ff;
}

.services-section h1 {
    font-family: 'Lucida', sans-serif; /* Updated font */
    letter-spacing: 2.5px; /* Added letter spacing */
    color: #0056b3; /* Deep blue for a corporate feel */
    text-align: center; /* Center align the heading */
    margin-bottom: 20px; /* Space below the heading */
}

.services-section p {
    font-family: 'Verdana', sans-serif; /* Clear and legible font */
    color: #333; /* Dark grey for readability */
    line-height: 1.6; /* Improved line spacing for readability */
    text-align: center; /* Justified text for a polished look */
    margin: 0 10%; /* Horizontal margin for better text framing */
}

.services-section .services-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-left: 169px;
    margin-right: 169px;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f8f8f8;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 0px;
    margin: 10px;
    width: calc(33% - 20px);
    box-sizing: border-box;
    height: 550px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

.service-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.service-item img {
    flex: 2;
    width: 100%;
    height: 66%; /* Adjusted height */
    object-fit: contain; /* Changed from cover to contain */
}

.service-item div {
    flex: 1;
    width: 100%;
    padding: 0 20px;
    text-align: justify;
}

.service-item h2 {
    text-align: center;
    font-size: 19px;
}

.service-item p {
    text-align: justify;
    font-size: 15px;
}
/* Team section styles */
.team-section {
    text-align: center;
    min-width: 596px;
    padding: 19px 0; /* Updated padding */
    margin: 9px 0; /* Updated margin */
    }

.team-section h1 {
    font-family: 'Lucida', sans-serif; /* Updated font */
    letter-spacing: 2px; /* Added letter spacing */
    color: #0056b3; /* Deep blue for a corporate feel */
    text-align: center; /* Center align the heading */
    margin-bottom: 20px; /* Space below the heading */
}

.team-section p {
    font-family: 'Verdana', sans-serif; /* Clear and legible font */
    color: #333; /* Dark grey for readability */
    line-height: 1.6; /* Improved line spacing for readability */
    text-align: center; /* Justified text for a polished look */
    margin: 0 10%; /* Horizontal margin for better text framing */
}

.team-section .team-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-left: 169px;
    margin-right: 169px;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f8f8f8;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    margin: 10px;
    width: calc(33% - 20px);
    box-sizing: border-box;
    height: 299px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

.team-member img {
    flex: 2;
    width: 100%;
    height: 66%; /* Adjusted height */
    object-fit: contain; /* Changed from cover to contain */
}

.team-member div {
    flex: 1;
    width: 100%;
    padding: 0 20px;
    text-align: center;
}

/* Contact section styles */
.contact-section {
    text-align: center;
    min-width: 596px;
    padding: 19px 99px; /* Updated padding */
    margin: 9px 0; /* Updated margin */
    background-color: #f0f8ff;
    background-size: cover;
    background-position: center;
}

.contact-section .contact-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-left: 169px;
    margin-right: 169px;
}

.contact-section h2 {
    width: 100%;
    margin-bottom: 20px;
    font-size: 30px; 
}

.contact-info {
    flex: 0 0 60%;
    text-align: left;
    padding: 20px;
    box-sizing: border-box;
}

.contact-form {
    background-color: #f8f8f8;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    margin: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

.contact-form form {
    width: 100%;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
    font-weight: bold;
}

.contact-form .name-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 0;
}

.contact-form .half-width {
    flex: 1;
    padding: 0 5px;
    box-sizing: border-box;
}

.contact-form .name-row > .half-width:first-child {
    padding-left: 0;
}

.contact-form .name-row > .half-width:last-child {
    padding-right: 0;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.contact-form textarea {
    height: 100px;
    resize: none;
}

.contact-form button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #0056b3;
}

/* Responsive styles for better mobile viewing */
@media (max-width: 768px) {
    body, html {
        padding: 0;
        margin: 0;
    }

    .home-section, .about-section, .services-section, .team-section, .contact-section, .events-container {
        padding: 10px;
        margin: 5px 0;
        min-width: auto;
    }

    .home-container, .vision-mission-container, .services-container, .team-container, .contact-container {
        flex-direction: column;
        margin: 0 10px;
    }

    .vision-box, .mission-box, .service-item, .team-member {
        width: 100%;
        margin: 10px 0;
        height: auto;
    }

    .home-text, .events-container h1, .events-container p {
        font-size: 24px;
        padding: 5px 20px;
    }

    .contact-form, .events-container {
        width: 100%;
        padding: 10px;
    }

    .contact-form .name-row, .contact-form .half-width {
        flex-direction: column;
        width: 100%;
    }

    /* Home section responsive styles */
    .home-section {
        min-width: auto;
    }

    .home-container {
        height: auto;
    }

    .home-text {
        font-size: 36px;
        padding: 10px 20px;
    }

    /* About section responsive styles */
    .about-section .vision-mission-container {
        margin-left: 10px;
        margin-right: 10px;
        width: calc(100% - 20px);
    }

    .vision-box, .mission-box {
        width: 100%;
        height: auto;
        margin: 10px 0;
    }

    /* Services section responsive styles */
    .services-section .services-container {
        margin-left: 10px;
        margin-right: 10px;
    }

    .service-item {
        width: 100%;
        height: auto;
        margin: 10px 0;
    }

    /* Team section responsive styles */
    .team-section .team-container {
        margin-left: 10px;
        margin-right: 10px;
    }

    .team-member {
        width: 100%;
        height: auto;
        margin: 10px 0;
    }

    /* Contact section responsive styles */
    .contact-section {
        padding: 19px 20px;
    }

    .contact-section .contact-container {
        margin-left: 10px;
        margin-right: 10px;
        flex-direction: column;
    }

    .contact-info {
        flex: 1 1 100%;
        text-align: center;
    }

    .contact-form {
        width: 100%;
    }

    /* Events section responsive styles */
    .events-container {
        height: auto;
        margin: 10px 0;
    }

    .events-container h1, .events-container p {
        width: 100%;
    }

    /* Footer responsive styles */
    footer {
        padding: 10px;
    }
}

/* Events section styles */
.events-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f8f8f8;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 19px 20px; /* Updated padding */
    margin: 9px 10px; /* Updated margin */
    box-sizing: border-box;
    height: 400px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    background-image: url('images-trs/trs-home/1.png'); /* Add background image */
    background-size: cover; /* Ensure image covers the box */
    background-position: center; /* Center the background image */
    overflow: hidden; /* Prevent image from exceeding the box */
}

.events-container h1, .events-container p {
    width: 120%; /* Span the whole box */
    background-color: rgba(243, 242, 242, 0.8); /* Increased opacity for less transparency */
    color: #0056b3; /* Change font color to white */
    padding: 10px 0; /* Add padding */
    box-sizing: border-box;
    margin: 0; /* Remove any default margin */
    text-align: center; /* Center the text */
}

/* Footer styles */
footer {
    text-align: center;
    background-color: rgba(65, 105, 225, 0.9);
    color: white;
    padding: .02px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Required field indicator */
.required {
    color: red;
}

/* Fade in animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body {
    animation: fadeIn 2s ease-out;
}

/* Override styles for links */
a {
    text-decoration: none;
}

a:visited {
    color: inherit;
}

/* Set font color of paragraphs in service items and team members to black */
.service-item p, .team-member p {
    color: black;
}

/* Ensure all links in the footer, specifically the Privacy link, are white */
footer a, footer a.privacy-link {
    color: white !important;
}
