@import url('https://fonts.googleapis.com/css2?family=Teachers:ital,wght@0,400..800;1,400..800&display=swap');

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

body {
    font-family: "Teachers", sans-serif;
    color: white;
    background-color: #051437;
}


/* Main Section */
.main {
    background: radial-gradient(circle, #1C71B7 1%, #1964A5 8%, #165B98 20%, #051437 90%);
}
.bg{
    background: radial-gradient(circle, #1C71B7 1%, #1964A5 8%, #165B98 20%, #051437 90%);
}
/* mobile app */
.mob-app .below {
    display: flex;
    padding-top: 20px;
    justify-content: center;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
    /* Allows buttons to wrap on smaller screens */
}

.mob-app .below a {
    color: white;
    text-decoration: none;
    border: 3px solid #FA911A;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 3vh;
    transition: background-color 0.3s ease;
    /* Smooth hover effect */
}

.mob-app .below a:hover {
    background-color: #896138;
}

.mob-app .below2 a {
    color: white;
    text-decoration: none;
    border: 3px solid #51BCE2;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 3vh;
    transition: background-color 0.3s ease;
    /* Smooth hover effect */
}

.mob-app .below2 a:hover {
    background-color: #1070B1;
}
@media(max-width: 525px){
    .mob-app .below2 a{
        padding: 8px 93px;
    }
    .mob-app .below2 a{
        padding: 8px 109px;
    }
}
/* Protocols Section */
.protocols-section {
    /* background-color: #0c1836; */
    color: white;
    padding: 60px 20px;
    text-align: center;
}

/* Protocol Card */
.protocol-card {
    background-color: white;
    border-radius: 40px 15px 5px 6px;
    padding: 20px;
    color: black;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 8px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Specific colors for each card */
.protocol-card:nth-child(1) {
    background-color: #EF4056;
    width: 13rem;
}

.protocol-card:nth-child(2) {
    background-color: #f9c033;
    width: 13rem;
}

.protocol-card:nth-child(3) {
    background-color: #55C0EE;
    width: 13rem;
}

.protocol-card:nth-child(4) {
    background-color: #3b58cc;
    width: 13rem;
}

.protocol-card:nth-child(5) {
    background-color: #27b69b;
    width: 13rem;
}

/* Circular Numbering */
.card-header {
    font-size: 2rem;
    font-weight: bold;
    width: 60px;
    height: 60px;
    background-color: white;
    color: black;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

/* Different colors for the text in numbered circles */
.protocol-card:nth-child(1) .card-header {
    color: #EF4056;
    border-radius: 30px;
}

.protocol-card:nth-child(2) .card-header {
    color: #f9c033;
    border-radius: 30px;
}

.protocol-card:nth-child(3) .card-header {
    color: #55C0EE;
    border-radius: 30px;
}

.protocol-card:nth-child(4) .card-header {
    color: #3b58cc;
    border-radius: 30px;
}

.protocol-card:nth-child(5) .card-header {
    color: #27b69b;
    border-radius: 30px;
}

.protocol-card h3 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: white;
    text-shadow: 1px 1px 2px black;
    text-align: start;
}

.protocol-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: white;
}

@media (max-width:480px){
    .protocol-card:nth-child(1) {
        width: 24rem;
    }
    .protocol-card:nth-child(2) {
        width: 24rem;
    }
    .protocol-card:nth-child(3) {
        width: 24rem;
    }
    .protocol-card:nth-child(4) {
        width: 24rem;
    }
    .protocol-card:nth-child(5) {
        width: 24rem;
    }
}

/* resources section */
/* Card styling */
.tech-card {
    background-color: #052848;
    border: 1px solid #3a4a5b;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s ease;
    text-align: center; /* Center-align text for a cleaner look */
}
.tech-card:hover {
    transform: scale(1.05);
}

/* Icon styling */
.tech-icon img {
    height: 50px;
    background-color: white;
    padding: 10px;
    border-radius: 10px;
}

/* Title styling */
.tech-title {
    color: #00b8ff;
    font-size: 1.25rem;
    margin-top: 10px;
}

/* Responsive grid */
@media (min-width: 576px) {
    .col-md-6 {
        max-width: 50%;
    }
}
@media (min-width: 992px) {
    .col-lg-4 {
        max-width: 33.3333%;
    }
}



/* Projects we have done SECTION*/
/* Slider item styling */
.slide-item {
    position: relative;
    /* Ensure overlay positioning is relative to slide item */
    width: 29%;
    /* Show 3 items at a time */
    box-sizing: border-box;
    padding: 10px;
    overflow: hidden;
    /* Prevent overflow */
}

.slide-item img {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    transition: transform 0.5s ease;
    /* Zoom effect on hover */
}

.slide-item:hover img {
    transform: scale(1.05);
}

.project-info {
    text-align: center;
    margin-top: 10px;
    /* Space below the image */
    transition: transform 0.3s ease, opacity 0.3s ease;
    /* Smooth transition */
    opacity: 1;
    /* Fully visible initially */
}

.project-info h3 {
    color: white;
}

.project-info p {
    color: white;
}

.info-overlay {
    position: absolute;
    bottom: 0;
    /* Start at the bottom of the card */
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(0deg, rgb(0, 0, 0) 33%, transparent 93%);
    /* Semi-transparent background */
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(100%);
    /* Start below the card */
    opacity: 0;
    /* Hidden by default */
    transition: transform 0.6s ease, opacity 0.3s ease;
    /* Smooth transition for transform and opacity */
}

.slide-item:hover .info-overlay {
    transform: translateY(0);
    /* Slide into view */
    opacity: 1;
    /* Make overlay visible */
}

.info-overlay a {
    color: #00bcd4;
    text-decoration: none;
    background-color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
}

.info-overlay a:hover {
    background-color: #00bcd4;
    color: #fff;
}

@media (max-width: 1224px) {
    .slide-item {
        min-width: 50%;
        /* Show 2 items at a time */
    }

    .slide-item img {
        height: 350px;
        /* Reduce image height */
    }
}

@media (max-width: 768px) {
    .slide-item {
        min-width: 100%;
        /* Show 1 item at a time */
    }

    .slide-item img {
        height: 400px;
        /* Reduce image height further */
    }
}

@media (max-width: 425px) {
    .slide-item img {
        height: 250px;
        /* Smaller image height for mobile */
    }

    .project-info {
        margin-top: 5px;
        /* Reduce spacing for smaller screens */
    }
}

@media (max-width:768px){
    .projects-section{
        display: none;
    }
}
/* end of projects we have done */

/* project-slider 2.0 */
.sl-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    /* Adjust as needed */
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    /* background-color: #f9f9f9; */
}

.sl-wrapper {
    display: flex;
    transition: transform 0.3s ease-in-out;
}

.sli-item {
    min-width: 100%;
    position: relative;
    box-sizing: border-box;
}

.sli-item img {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    transition: transform 0.3s ease;
    /* Zoom effect on hover */
}

.proj-info {
    text-align: center;
    margin-top: 10px;
    /* Space below the image */
    transition: transform 0.3s ease, opacity 0.3s ease;
    /* Smooth transition */
    opacity: 1;
    /* Fully visible initially */
}

.sli-item:hover .proj-info {
    transform: translateY(-50%);
    /* Move project info up */
    opacity: 0;
    /* Fade out */
}

/* Overlay Styling */
.in-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    padding: 10px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9360994397759104) 33%, transparent 93%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sli-item:hover .in-overlay {
    transform: translateY(0);
    opacity: 1;
}

.in-overlay h3 {
    margin: 5px 0;
    font-size: 18px;
}

.in-overlay p {
    font-size: 14px;
    margin: 5px 0 10px;
}

.in-overlay a {
    color: #00bcd4;
    background-color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    text-decoration: none;
}

.in-overlay a:hover {
    background-color: #03cce7;
    color: #fff;
}

/* Navigation Button Styling */
.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 100;
    font-size: 24px;
}

.prev-button {
    left: 10px;
}

.next-button {
    right: 10px;
}

@media (min-width: 769px) {
    .sl-container {
        display: none; /* Hide above 999px */
    }
}

@media(max-width: 768px) {
    .sl-container{
        display: block; /*start showing*/
    }
}

/* end of project slider */

/* Footer */
.footer {
    position: relative;
    background-image: url('/build/images/footer.png');
    background-size: cover;
    background-position: center;
}

.footer-overlay {
    background-color: rgba(13, 27, 69, 0.47);
    /* Dark blue overlay */
}

.footer h5 {
    color: #FF8B00;
    /* Orange color for titles */
}

.list-unstyled a {
    color: white;
    text-decoration: none;
}

.list-unstyled a:hover {
    color: #FF8B00;
}

.subscribe-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.subscribe-form input {
    padding: 10px;
    border: none;
    border-radius: 5px;
    width: 200px;
    background-color: #1f3f817a;
}

.subscribe-form button {
    background-color: #0a87f4;
    /* color: white; */
    padding: 8px 20px;
    border: none;
    border-radius: 10px;
}

.subscribe-form button:hover {
    background-color: #3395eb;
}

.social-media {
    text-align: center;
    margin-top: 20px;
    margin: 5px 0px;
    padding: 20px 5px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgb(49 107 196 / 70%) 27%, rgb(181 134 38 / 79%) 74%);
}