/* Prevent horizontal overflow */
body {
    overflow-x: hidden; /* Prevent horizontal overflow */
    margin: 0; /* Ensure no body margin */
}

/* Banner Styling */
/* Banner Styling for Banner2 */
.banner2 {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 100px 0; /* Keep original padding */
}

.banner2 h1 {
    font-size: 3.5rem;
    font-weight: bold;
}

.banner2 p {
    font-size: 1.6rem;
    margin-top: 1%;
}

/* Banner Styling for Banner1 */
.banner1 {
    background-color: black;
    color: white;
    text-align: center;
    padding: 80px 0; /* Keep original padding */
}

/* Responsive Styling for Smaller Screens (412px and below) */
@media (max-width: 412px) {
    .banner1 {
        padding: 50px 0;  /* Reduce padding */
    }

    .banner1 h1 {
        font-size: 1.8rem; /* Reduce font size for smaller screens */
    }

    .banner1 p {
        font-size: 1.2rem; /* Reduce font size to fit on small screens */
        white-space: normal; /* Allow text to wrap */
        word-wrap: break-word; /* Ensure long words break onto the next line */
        line-height: 1.4; /* Adjust line height for readability */
    }

    .banner1 .bold-letter {
        font-size: 1.4rem; /* Reduce bold-letter font size for small screens */
    }

    .banner2 {
        padding: 50px 0;  /* Reduce padding */
    }

    .banner2 h1 {
        font-size: 2.5rem; /* Reduce font size for smaller screens */
    }

    .banner2 p {
        font-size: 1.2rem; /* Reduce font size for smaller screens */
    }

    .container-fluid {
        padding-left: 10px;
        padding-right: 10px; /* Reduce padding to avoid overflow */
    }
}

/* Responsive Adjustments for Various Screen Sizes */
@media (max-width: 768px) {
    .banner1 p {
        font-size: 1.5rem;  /* Smaller font size for tablets and smaller devices */
    }

    .banner1 .bold-letter {
        font-size: 1.8rem;  /* Adjust bold letters for medium-sized screens */
    }
}

@media (max-width: 540px) {
    .banner1 p {
        font-size: 1.3rem;  /* Further reduce font size for 540px wide devices */
    }

    .banner1 .bold-letter {
        font-size: 1.5rem;  /* Adjust bold letters for 540px wide devices */
    }
}

.banner1 h1 {
    font-size: 3rem;
    font-weight: bold;
}

/* General Banner Styling */
.banner1 p {
    font-size: 1.8rem;  /* Base font size for larger screens */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break onto the next line */
    line-height: 1.4; /* Adjust line height for readability */
}

/* Styling for Bold Letter Elements */
.banner1 .bold-letter {
    font-size: 2rem; /* Base font size for bold letters */
}

/* Bold letter styling with glow effect */
.bold-letter {
    font-size: 2rem; 
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 
                 0 0 16px rgba(255, 255, 255, 0.8),
                 0 0 32px rgba(255, 255, 255, 0.8);
}

/* Responsive Styling for Smaller Screens */
@media (max-width: 767px) {
    .banner1 h1 {
        font-size: 2.5rem;
    }

    .banner1 p {
        font-size: 1.2rem;
    }

    .bold-letter {
        font-size: 1.5rem;
    }
}

.purpose-section {
    background-color: #333;
    padding: 40px 20px;
    color: #fff;
}

.purpose-section h2 {
    font-size: 2rem;
    font-weight: bold;
    text-align: left; /* Align heading to the left */
}

.purpose-section p {
    font-size: 1.1rem;
    line-height: 1.9;
    justify-content:left;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 767px) {
    .purpose-section h2 {
        font-size: 1.6rem;
    }

    .purpose-section p {
        font-size: 1rem;
    }

    .purpose-section {
        padding: 30px 15px;
    }
}

@media (max-width: 540px) {
    .purpose-section h2 {
        font-size: 1.4rem;
    }

    .purpose-section p {
        font-size: 0.9rem;
    }
}

@media (max-width: 412px) {
    .purpose-section h2 {
        font-size: 1.2rem;
    }

    .purpose-section p {
        font-size: 0.8rem;
    }
}

.project-table table {
    width: 100%;
    text-align: center;
}

.project-table td a {
    display: block;
    padding: 5px;
    background-color: #f1f1f1;
    color: #333;
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
    margin-bottom: 5px;
}

.project-table td a:hover {
    background-color:gray;
    color: white;
}

.card {
    border: none;
}

.card h3 {
    font-size: 1.5rem;
    text-align: center;
    margin: 0;
    padding-top: 20px;
}

@media (max-width: 767px) {
    .banner h1 {
        font-size: 2rem;
    }

    .banner p {
        font-size: 1rem;
    }

    .purpose-section h2 {
        font-size: 1.5rem;
    }

    .purpose-section p {
        font-size: 1rem;
    }

    .project-table td a {
        font-size: 0.9rem;
    }
}

.custom-footer-link {
    font-size: 20px;
    line-height: 1.6;
    text-decoration: none;
}

.custom-footer-link:hover {
    text-decoration: none;
}

.copyright-section {
    background-color: #6f4f37;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 20px;
}

.copyright-link {
    margin: 0 15px;
    text-decoration: none;
    font-size: 20px;
}

.copyright-link:hover {
    text-decoration: none;
}

/* Adjust padding and margins for smaller screens */
@media (max-width: 412px) {
    .container {
        padding: 0 10px; /* Reduce padding */
    }

    .left, .right {
        padding: 5px; /* Reduce padding */
    }

    .banner1 {
        padding: 50px 0; 
    }

    .banner1 h1 {
        font-size: 1.8rem;
    }

    .banner1 p {
        font-size: 1rem;
    }

    .bold-letter {
        font-size: 1.2rem; /* Reduce font size */
    }

    .purpose-section h2 {
        font-size: 1.4rem;
    }

    .purpose-section p {
        font-size: 1rem;
    }

    /* Adjust table font size */
    .project-table td a {
        font-size: 0.8rem;
    }

    /* Card h3 font size */
    .card h3 {
        font-size: 1.2rem;
    }

    /* Custom Footer Link Adjustments */
    .custom-footer-link {
        font-size: 16px;
    }

    .copyright-section {
        font-size: 16px;
    }

    .copyright-link {
        font-size: 16px;
    }
}
/* Additional Media Queries for Smaller Devices */
@media (max-width: 540px) {
    .custom-img {
        max-width: 80%; /* Ensure image doesn't overflow on smaller devices */
    }
}

@media (max-width: 412px) {
    .custom-img {
        max-width: 80%; /* Ensure image doesn't overflow on smaller devices */
    }
}

.custom-img {
    width: 60%; /* Default for other devices */
    height: auto; /* Maintain aspect ratio */
    object-fit: contain;
    border-radius: 4%; /* Rounded corners */
}



@media (max-width: 820px) and (min-width: 768px) {
    .custom-img {
        width: 110%; /* Slightly smaller than 1024px */
    }
}

@media (max-width: 1280px) {
    .custom-img {
        max-width: 70%; /* Ensure image doesn't overflow on smaller devices */
        margin-top: 6%;
    }
}
@media (max-width: 912px) {
    .custom-img {
        width: 170%; /* Ensure image doesn't overflow on smaller devices */
        margin-top: 6%;
    }
}