body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* New styles to make the top menu float */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.top-menu {
    background-color: #333;
    padding: 10px 0;
}
.top-menu ul {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 15px 0;
    background-color: #222;
    border-bottom: 4px solid #007acc;
}
.top-menu li {
    display: inline;
    margin: 0 15px;
}
.top-menu a {
    color: #fff;
    text-decoration: none;
}

/* Full viewport banner with zoom animation for large screens */
.banner-container {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
}
.banner {
    display: block;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: top;
    transform: none; /* Removed zoom animation */
    max-width: none;
}

/* Remove extra white space below banner */
.banner-container + * {
    margin-top: 0;
}

/* Offset main content so it doesn't hide under the fixed navbar */
.container.my-4 {
    margin-top: 80px !important;
}

.container {
    padding: 20px;
}

.container h2 {
    font-size: 2.5em;
    color: #222;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 2px solid #007acc;
    display: inline-block;
    padding-bottom: 10px;
}

.links a {
    margin-right: 15px;
    text-decoration: none;
    color: blue;
}

/* Modernized Featured Videos Styling */
.video-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.video-item {
    flex: 1 1 calc(33.333% - 20px);
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Adjusted Featured Videos Styling to Fix Cropping */
.video-item iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: none;
}

.video-item p {
    font-size: 1.1em;
    color: #333;
    padding: 10px 15px;
    background: #fff;
    margin: 0;
}

footer {
    background-color: #f2f2f2;
    padding: 15px 0;
    font-size: 0.9em;
    color: #555;
}
footer .footer-top {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 10px;
    flex-wrap: nowrap;
}
footer .footer-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
footer .footer-links a {
    color: #555;
    text-decoration: none;
    padding: 5px 10px;
    transition: color 0.3s ease;
}
footer .footer-links a:not(:last-child)::after {
    content: ' | ';
    color: #555;
    margin: 0 12px; /* increased from 8px */
}
footer .footer-links a:hover {
    color: #007acc;
}

/* Updated spacing for social icons */
footer .social-footer {
    padding: 5px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
}

footer .social-footer a {
    color: #fff;
    background-color: #007acc;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    display: inline-block;
    font-size: 1.5em;
    text-decoration: none;
    transition:
        color 0.3s ease,
        transform 0.3s ease;
    padding: 5px 10px;
}

footer .social-footer a:last-child {
    margin-right: 0;
}

footer p {
    margin: 0;
    /* Block-level to force a new line */
}
footer .footer-content a {
    color: #555;
    text-decoration: none;
    padding: 5px 10px;
    transition: color 0.3s ease;
}
footer .footer-content a:hover {
    color: #007acc;
}
footer .footer-content span {
    margin: 0;
}

/* Privacy Policy Page Styling */
main.privacy {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

main.privacy h2 {
    border-bottom: 1px solid #ccc;
    padding-bottom: 8px;
    margin-top: 20px;
}

/* Privacy Policy Title Styling */
header h1 {
    font-size: 2.4em;
    text-align: center;
    margin: 20px 0;
    color: #333;
}

/* New styling for the social section */
.social-section {
    text-align: center;
    margin: 20px 0 30px 0;
}

.social-section p {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #555;
}

.social-section .links {
    display: inline-block;
}

.social-section .links a {
    margin: 0 10px;
    font-size: 1.1em;
    color: #007acc;
    text-decoration: none;
    transition: color 0.3s;
}

.social-section .links a:hover {
    color: #005fa3;
}

/* Modernized About Us Section Styling */
.about-section {
    padding: 80px 40px;
    background: linear-gradient(135deg, #ffffff, #f7f7f7);
    margin-top: 60px;
    border-radius: 15px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.about-section h2 {
    font-size: 3em;
    margin-bottom: 30px;
    color: #222;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.about-section p {
    font-size: 1.2em;
    line-height: 1.9;
    color: #555;
    margin-bottom: 25px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.about-section p:last-child {
    margin-bottom: 0;
}

/* Update navigation styling if needed */
.top-menu ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 1.2em;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    transition:
        background-color 0.3s,
        color 0.3s,
        transform 0.2s;
}

/* Add a hover effect for modern look */
.top-menu ul li a:hover {
    background-color: #007acc;
    color: #fff;
    transform: scale(1.05);
}

/* Add subtle animations */
.about-section h2,
.about-section p {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modernized Social Section Styling */
.modern-social {
    padding: 60px 30px;
    background: linear-gradient(135deg, #f7f7f7, #eaeaea);
    margin-top: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.modern-social h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #222;
    font-weight: 700;
    letter-spacing: 1px;
}

.modern-social p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.modern-social .links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.modern-social .links a {
    font-size: 1.2em;
    color: #007acc;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid #007acc;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modern-social .links a:hover {
    background-color: #007acc;
    color: #fff;
    transform: scale(1.05);
}

/* Modernized Our Team Section Styling */
.team-section {
    padding: 60px 30px;
    background: linear-gradient(135deg, #f7f7f7, #eaeaea);
    margin-top: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.team-section h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #222;
    font-weight: 700;
    letter-spacing: 1px;
}

.team-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px; /* optional padding */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    justify-items: center; /* center grid items */
}

/* Add vertical spacing between team member columns */
.team-section .col-sm-6 {
    margin-bottom: 20px;
}

.team-member {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.team-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #007acc;
    object-position: center 10%; /* Adjusts the image down by 10% to show more of the top */
    filter: brightness(0.9); /* Dims the image slightly */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Adds subtle shading */
}

/* Unique styling for Team Photo Jennifer */
.team-photo-jennifer {
    filter: brightness(0.95);
    border: 3px solid #ff7f50; /* Coral border for distinction */
    object-position: center 15%; /* Adjusted position for better framing */
    background-size: 200%; /* Zooms in the image inside the circle */
    object-fit: cover; /* Ensures the image fits within the circle */
    transform: none; /* Removed transform to keep the circle size consistent */
}

/* Adjusted styling for Team Photo Jennifer to fix circle size */
.team-photo-jennifer {
    transform: none; /* Removed scaling to keep the circle size consistent */
    object-fit: cover; /* Ensures the image fits within the circle */
    object-position: center 15%; /* Adjusted position for better framing */
}

/* Unique styling for Team Photo Lance */
.team-photo-lance {
    filter: brightness(0.85);
    border: 3px solid #4682b4; /* Steel blue border for distinction */
    object-position: center 5%; /* Adjusted position for better framing */
}

.team-member h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
}

.team-member p {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
}

.team-intro {
    font-size: 1.2em;
    line-height: 1.8;
    color: #555;
    max-width: 800px;
    margin: 0 auto 30px auto;
    text-align: center;
    padding: 0 20px;
}

.team-member img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* New rule to constrain the team row at mid-break */
.team-row {
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-section {
        padding: 60px 20px;
    }

    .about-section h2 {
        font-size: 2.2em;
    }

    .about-section p {
        font-size: 1em;
    }

    .top-menu ul li a {
        font-size: 1em;
        padding: 8px 15px;
    }

    .team-member {
        margin-bottom: 20px;
    }

    .banner-container,
    .banner {
        height: 80vh !important;
        width: 100vw !important;
    }

    /* Force featured video columns to stack vertically */
    .row > .col-sm-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* For smaller geometries, reduce banner height to minimize whitespace */
@media only screen and (max-width: 480px) {
    .banner-container,
    .banner {
        width: 100vw !important;
        height: 80vh !important;
    }

    /* Rework top-menu for a two-line layout */
    .top-menu ul {
        display: block; /* switch from flex to block */
        text-align: center;
        padding: 10px 0; /* adjust padding as needed */
        margin: 0;
        gap: 0;
    }
    .top-menu li {
        display: inline-block !important; /* override previous inline display */
        width: 31%; /* roughly three items per row */
        margin: 1%; /* even spacing */
        text-align: center;
        vertical-align: top;
    }
    .top-menu a {
        display: block;
        font-size: 0.9em;
        padding: 6px 4px;
    }
    /* Existing responsive styles for site-title */
    .site-title {
        width: 100%;
        text-align: center;
        padding: 0 10px;
        box-sizing: border-box;
    }
    .site-title h1 {
        width: 100%;
        word-wrap: break-word;
    }
    .team-container {
        grid-template-columns: 1fr !important;
        row-gap: 30px !important;
        column-gap: 20px !important;
    }
    /* Remove any additional margins from tiles */
    .team-member {
        margin: 0 !important;
    }
}

@media only screen and (min-width: 481px) and (max-width: 768px) {
    .team-container .row {
        display: block;
    }
    .team-container .col-sm-6 {
        width: 100% !important;
        max-width: 100% !important;
        float: none;
        margin-bottom: 20px;
    }
    .team-member {
        max-width: none;
        width: auto;
    }
}

@media only screen and (min-width: 769px) {
    .team-section .team-container {
        max-width: 1200px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 40px;
        justify-items: center; /* centers the grid items within their cells */
    }
    .team-member {
        max-width: 300px;
        width: 100%;
    }
}

/* Add active class styling for navbar links */
.navbar-nav .nav-link.active {
    background-color: rgba(0, 122, 204, 0.2);
    border-radius: 4px;
    transition: background-color 0.3s ease;
}
.team-column {
    margin-bottom: 20px;
}

.contact-blurb,
.contact-items {
    max-width: 600px;
    text-align: left;
}

.contact-items {
    margin-top: 20px;
}

.zalo-icon {
    height: 20px;
    vertical-align: middle;
}

.email-icon {
    font-size: 20px;
    line-height: 20px;
    vertical-align: middle;
}
