body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: whitesmoke;
    color: #333;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: #357ABD;
    color: white;
    padding: 10px 20px;
    z-index: 1000;
    box-sizing: border-box;
}

.logo-search {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
    border-radius: 50%;
}

.search-container {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.search-container input {
    padding: 5px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ddd;
    width: 250px;
    margin-right: 10px;
}

.search-container button {
    padding: 7px 10px;
    background-color: white;
    color: #4a90e2;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.search-container button:hover {
    background-color: #357ABD;
    color: white;
    border: 2px solid #ddd;
}

nav {
    margin-top: 10px;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    position: relative;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: #111E6C;
    transition: width 0.3s ease, left 0.3s ease;
}

nav ul li a:hover {
    color: #111E6C;
}

nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

.intro {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20%;
    background-color: #357ABD;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 120px 0 0;
    color: white;
    transform: translateY(10px);
}

.intro .text-content {
    flex: 1;
    padding-right: 20px;
    text-align: left;
}

.intro .text-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.intro .text-content p {
    font-size: 18px;
    line-height: 1.6;
}

.intro .image-container {
    flex: 0 0 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro .image-container img {
    max-width: 20rem;
    height: 20rem;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mental-health-info {
    padding: 50px 20px 0px 20px;
    text-align: center;
}

.mental-health-info h2 {
    font-size: 30px;
    margin-bottom: 40px;
}

.mental-health-cards {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.mental-health-card {
    flex: 1;
    max-width: 300px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.mental-health-card:hover {
    transform: translateY(-5px);
}

.mental-health-card img {
    width: 100px;
    margin: 0 auto 20px;
}

.mental-health-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.mental-health-card p {
    font-size: 16px;
    line-height: 1.5;
}

#link {
    display: block;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

#link:hover {
    text-decoration: underline;
}


.form-container {
    padding: 40px 20px;
    margin: 40px auto;
    max-width: 600px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


form#mental-health-form {
    text-align: center;
}

form#mental-health-form h2 {
    font-size: 30px;
    margin-bottom: 20px;
    color: #357ABD;
}

form#mental-health-form input[type="text"],
form#mental-health-form input[type="email"],
form#mental-health-form input[type="number"] {
    display: block;
    width: calc(100% - 30px);
    margin: 10px auto;
    padding: 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

form#mental-health-form .checkbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

form#mental-health-form .checkbox-container input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.5);
}

form#mental-health-form label {
    font-style: italic;
    font-size: 14px;
}

form#mental-health-form button {
    display: block;
    width: 100%;
    margin: 20px 0;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #5d87bd;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form#mental-health-form button:hover {
    background-color: #357ABD;
}

#warning, #success {
    text-align: center;
    font-size: 16px;
    margin-top: 10px;
}

#warning {
    color: red;
}

#success {
    color: green;
}

.hidden {
    display: none;
}

/* New Slider Section */
.slider-section {
    padding: 30px 20px;
    text-align: center;
}

.slider-section h2 {
    font-size: 30px;
    margin-bottom: 40px;
}

.slider-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
}

.slider-item {
    flex: 0 0 100%;
    box-sizing: border-box;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.slider-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.slider-item p {
    font-size: 16px;
    line-height: 1.5;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #357ABD;
    color: white;
    border: white solid 2px;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 20px;
    z-index: 10;
    width: 50px;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.container {
    background-color: whitesmoke;
    padding: 40px 20px;
    display: flex;
}

.content {
    text-align: center;
    color: #fff;
    flex: 1;
}

.content  h1 {
    font-size: 30px;
    margin-bottom: 10px;
    color: #000;
}

.content >  p {
    font-size: 1rem;
    color: #000;
    margin-bottom: 40px;
}

.stats {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    margin-bottom: 20px;
}

.stat {
    text-align: center;
}

.stat h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #333;
}

.stat > p {
    font-size: 1rem;
    color: #333;
}

.images {
    display: flex;
    justify-content: space-around;
    gap: 5px;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Added to allow wrapping of images */
}

.images img {
    width: calc(23% - 2px); /* Adjusted width to fit four images in a row with some gap */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px; /* Added margin for better spacing */
}

.buttons {
    text-align: center;
}

.btn {
    padding: 10px 20px;
    margin: 10px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
}

.btn.red {
    background-color: #5d87bd;
    color: white;
    border: 2px solid #5d87bd;
}

.btn.light-red {
    background-color: #fff;
    color: #357ABD;
    border: 2px solid #5d87bd;
}

.btn.red:hover, .btn.light-red:hover {
    background-color: #357ABD;
    color: white;
}

/* Footer */
footer {
    background-color: #fff;
    color: #333;
    padding: 40px 0 0;
    font-size: 14px;
}
    
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
    
.footer-section {
    flex: 1;
    min-width: 200px;
    margin: 20px 10px;
}
    
.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
}
    
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
    
.footer-section ul li {
    margin-bottom: 10px;
}
    
.footer-section ul li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}
    
.footer-section ul li a:hover {
    color: #357ABD;
    text-decoration: underline;
}
    
.footer-contact p {
    margin: 5px 0;
}
    
.footer-contact a {
    color: #357ABD;
    text-decoration: none;
}
    
.footer-social {
    margin-top: 20px;
}
    
.footer-social a {
    display: inline-block;
    margin-right: 10px;
    color: #333;
    font-size: 24px;
    transition: transform 0.3s ease, color 0.3s ease;
}
    
.footer-social a:hover {
    color: #357ABD;
    transform: scale(1.2);
}
    
.footer-bottom {
    text-align: center;
    padding: 10px;
    background-color: #fff;
}
    
hr {
    margin-left: 20px;
    margin-right: 20px;
}
    
.footer-bottom p {
    color: #333;
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .intro {
        padding: 20px;
        margin: 250px 0 0 0;
    }

    .intro .text-content {
        padding-right: 0;
        text-align: center;
    }

    .intro .image-container {
        margin-top: 20px;
    }

    .mental-health-cards {
        flex-direction: column;
        align-items: center;
    }

    .mental-health-card {
        margin-bottom: 20px;
    }

    .form-container {
        padding: 20px;
        margin: 20px auto;
    }

    header {
        padding: 10px;
    }

    .logo-search {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-container {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }

    .search-container input {
        width: 100%;
        margin-right: 5px;
        margin-bottom: 10px;
    }

    .search-container button {
        margin: -10px 0 0 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .slider-container {
        border-radius: 0;
    }

    .slider-item {
        padding: 10px;
    }

    .slider-item img {
        height: auto;
    }

    .prev, .next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .content h1 {
        font-size: 28px;
    }

    footer {
        padding: 20px 0;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        margin: 20px 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .search-container input {
        font-size: 14px;
        margin-right: 5px;
    }

    .search-container button {
        font-size: 14px;
        padding: 5px;
    }

    nav ul li a {
        font-size: 14px;
    }

    .intro {
        flex-direction: column-reverse; /* Stacks the image above the text */
        padding: 20px 5%; /* Adjust padding for smaller screens */
    }

    .intro .text-content {
        padding-right: 0; /* Remove right padding */
        text-align: center; /* Center align text */
    }

    .intro .image-container {
        margin-bottom: 20px; /* Add margin below the image for spacing */
    }

    .intro .image-container img {
        max-width: 200px; /* Adjust image size for smaller screens */
        height: 200px; /* Maintain aspect ratio */
    }
    
    .intro .text-content h2 {
        font-size: 20px;
    }

    .intro .text-content p {
        font-size: 16px;
    }

    .mental-health-info h2 {
        font-size: 24px;
    }

    .mental-health-card h3 {
        font-size: 20px;
    }

    .mental-health-card p {
        font-size: 14px;
    }

    .form-container {
        padding: 20px 10px;
    }

    form#mental-health-form h2 {
        font-size: 20px;
    }

    form#mental-health-form input[type="text"],
    form#mental-health-form input[type="email"],
    form#mental-health-form input[type="number"] {
        font-size: 14px;
        padding: 10px;
    }

    form#mental-health-form button {
        font-size: 14px;
        padding: 10px;
    }

    .slider-section h2, .content h1 {
        font-size: 24px;
    }

    .slider-item p {
        font-size: 14px;
    }

    .stat h2 {
        font-size: 18px;
    }

    .stat p {
        font-size: 13px;
    }

    footer {
        padding: 20px 0;
    }

    .footer-section h4 {
        font-size: 16px;
    }
}