/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    padding-top: 80px;
    font-family: 'Roboto', sans-serif;
    background-color: #f8f1e7;
    color: #000;
    display: flex;
    flex-direction: column;
}

/* Footer Styles */
footer.custom-footer {
    background-color: #63708d75 !important; /* Dark orange background */
    color: #fff;
    padding: 20px 0;
    width: 100%;
}

.footer-link {
    color: #007bff;
    text-decoration: none;
}

.footer-link:hover {
    color: #ff0000;
    text-decoration: underline;
}

/* Hero Section */
.hero {
    position: relative;
    color: black;
    text-align: center;
    padding: 120px 20px;
    background-image: url('/static/images/logo.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center; /* Vertically center the content */
}

/* Responsive Hero Section */
@media (max-width: 768px) {
    .hero {
        padding: 60px 20px; /* Reduced padding for better use of space */
        height: auto; /* Let content determine the height */
        background-size: contain; /* Ensure the background still covers properly */
        min-height: 70vh;

    }

    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 20px; /* Further reduce padding for smaller screens */
        height: auto; /* Let content determine the height */
        background-size: contain;
        min-height: 50vh;

    }

    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1em;
    }
}

.hero h1 {
    font-size: 4em;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(254, 0, 0, 0.5);
}

.hero p {
    font-size: 1.5em;
    font-weight: 300;
    margin-top: 20px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}


/* Navbar */
#navbar {
    z-index: 1000;
    background-color: #374059;
}

.nav-link {
    text-transform: uppercase;
    font-weight: 600;
    color: #fff;
}

.nav-link:hover {
    color: #f8f1e7;
}

/* Section Styling */
section {
    padding: 60px 20px;
}

section h2 {
    font-weight: 700;
}

/* Buttons */
.btn-lg {
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-outline-dark:hover {
    background-color: #5f3f2a;
    color: white;
}


/* Card Styles */
.card-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.card {
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 30%;
    box-sizing: border-box;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card-img-top {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.card-body {
    text-align: center;
    background-color: #f8f1e7;
    border-radius: 0 0 8px 8px;
    padding: 15px;
}

.card-text {
    font-size: medium;
}

/* Responsive Card Layout */
@media (max-width: 768px) {
    .card {
        width: 48%;
    }
}

@media (max-width: 480px) {
    .card {
        width: 100%;
    }
}

/* Map Section */
#google-map {
    background-color: #e1e1e1;
}

/* Button hover effect */
.btn-lg:hover {
    background-color: #08173c;
    color: white;
}

/* Contact Section */
.contact-container {
    width: 80%;
   
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    flex-direction: column;
    justify-content: space-between;
}

form {
    text-align: left;
    margin-top: 20px;
}

form input,
form textarea {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

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

/* Image Carousel */
.carousel-inner img {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #007bff;
}

/* Text Info Section */
.col-md-6.d-flex.justify-content-center.align-items-center {
    flex: 1;
    text-align: left;
    padding: 20px;
}

/* Images Section */
.col-md-6.d-flex.justify-content-center {
    flex: 1;
    padding: 20px;
}

/* Responsive Layout */
@media (max-width: 768px) {
    .row.mb-4 {
        flex-direction: column;
        align-items: center;
    }

    .col-md-6.d-flex.justify-content-center.align-items-center,
    .col-md-6.d-flex.justify-content-center {
        width: 100%;
    }
}

/* Headings Styles */
h1 {
    font-size: 1.5rem;
    font-weight: 400;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #444;
}

.lead {
    font-size: 1.2rem;
    font-weight: 300;
}

/* Apply styles only inside .login-container */
.login-container {
    width: 100%;
    max-width: 400px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 30px;
    text-align: center;
    margin: auto;
}

.login-container h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #374059;
}

.login-container p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}

.login-container form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-container form label {
    align-self: flex-start;
    font-size: 1rem;
    font-weight: 600;
    color: #374059;
    margin-bottom: 5px;
}

.login-container form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    color: #555;
    transition: border-color 0.3s ease-in-out;
}

.login-container form input:focus {
    border-color: #007bff;
    outline: none;
}

.login-container form button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.login-container .error-message {
    color: #ff0000;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Learn Page Specific Styles */

/* Image Section */
img {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

section h2 {
    font-weight: 700;
    font-size: 2rem;
    color: #333;
}

/* Responsive Layout for Learn More Page */
@media (max-width: 768px) {
    section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    section h2 {
        font-size: 1.5rem;
    }
}

/* Person Image & Bio Styling */
.person-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.person-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease-in-out;
}

.person-card:hover {
    transform: translateY(-10px);
}

.person-card img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.person-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #374059;
    margin-bottom: 10px;
}

.person-card p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
}

.person-card ul {
    list-style-type: none;
    padding: 0;
}

.person-card ul li {
    font-size: 1rem;
    color: #555;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .person-container {
        flex-direction: column;
        align-items: center;
    }
}

/* About Us Section */
.about-us p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #333;
}

.about-us ul {
    margin-top: 10px;
    font-size: 1rem;
    color: #555;
}

/* Services Section */
.services p, .services h2 {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

.services h3 {
    margin-top: 20px;
}

/* Meet Our Team Section */
.person-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.person-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 250px;
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease-in-out;
    margin-bottom: 20px;
}

.person-card:hover {
    transform: translateY(-10px);
}

.person-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
}

.person-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #374059;
}

.person-title {
    font-size: 1rem;
    color: #5f6368;
    margin-bottom: 10px;
}

.person-bio {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

/* Footer */
.custom-footer {
    background-color: #374059;
    color: #fff;
    padding: 20px 0;
    margin-top: auto;
}

.custom-footer a {
    color: #007bff;
    text-decoration: none;
}

.custom-footer a:hover {
    text-decoration: underline;
}




/* About Us Section */
.about-us h2 {
    font-size: 2.5rem; /* Larger size for main heading */
}

.about-us p {
    font-size: 1.2rem; /* Slightly larger font for paragraph text */
}

/* Services Section */
.services h2 {
    font-size: 2.5rem; /* Larger size for main heading */
}

.services p {
    font-size: 1.2rem; /* Slightly larger font for paragraph text */
}

.services h3 {
    font-size: 2rem; /* Medium size for subheading */
}

/* Meet Our Team Section */
.team h2 {
    font-size: 2.5rem; /* Larger size for section heading */
}

.team .person-name {
    font-size: 1.5rem; /* Larger name font for team members */
}

.team .person-title {
    font-size: 1.2rem; /* Adjust title font size */
}

.team .person-bio {
    font-size: 1.1rem; /* Adjust bio text size */
}

/* Footer Section */
.custom-footer p {
    font-size: 1rem; /* Adjust footer text size */
}


img.lazy {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img.lazy.loaded {
    opacity: 1;
}

#flash-message {
    opacity: 1;
    transition: opacity 1s ease-out;
}

#flash-message.fade {
    opacity: 0;
}