.courseintro {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 400px;
}
.intro-img-container img {
    max-width: 450px;         /* responsive width */
    height: auto;
}
.intro-para p {
    font-size: 38px;
    font-weight: 600;
    background: linear-gradient(180deg, #043D5D, rgb(165, 4, 4), #043D5D);
    -webkit-background-clip: text;
    color: transparent;
}
.hdlne {
    display: flex;
    flex-wrap: wrap;
    padding-left: 50px;
    padding-left: 50px;
    padding-bottom: 25px;
    align-items: center;
    justify-content: center;
    height: 100px;
    flex-direction: column;
    margin-top: 35px;
}
.prehdline {
    color: #043D5D;
    text-decoration: underline 2px;
    text-decoration-thickness: 1px;
    font-size: 20px;
    font-weight: 500;
    text-underline-offset: 8px;
    
    
    
}
.hdlneog {
    background: linear-gradient(5deg, red, #043D5D, white );
    -webkit-background-clip: text;
    color: transparent;
    font-size: 55px;
    font-weight: 600;
    overflow: hidden;
}
.course-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 30px;
    gap: 15px;
    
}
.in-detail {
    margin-left: 12px;
    margin-right: 12px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 330px;
    height: 250px;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    background: linear-gradient(180deg, rgb(236, 235, 235));
    opacity: 0.1;
}


.course-title {
    font-size: 25px;
    font-weight: bold;
    color: #043D5D;
}
.course-content {
    margin: 10px 0;
    font-size: 20px;
    font-weight: 500;
    color: #484747;
    margin-bottom: 20px;
}
.course-button {
    background-color: #043D5D;
    text-decoration: none;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}
.course-button:hover {
    background-color: #065380;
    
}
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1.2s ease-out forwards;
    animation-play-state: paused;
}
.slide-in-left {
    opacity: 0;
    transform: translateX(-5%); /* Start from the left */
    animation: slideInLeft 1.5s ease-out forwards;
    animation-play-state: paused;
}
.slide-in-right {
    opacity: 0; /* Initially hidden */
    transform: translateX(5%); /* Start off-screen */
    animation: slideInRight 1.5s ease-out forwards; /* Smooth slide-in effect */
    animation-play-state: paused; /* Paused until triggered by JS */
}
.slide-from-bottom {
    opacity: 0; /* Initially hidden */
    transform: translateY(25%); /* Start position below */
    animation: slideFromBottom 1s ease-out forwards; /* Smooth slide and fade-in effect */
    animation-play-state: paused; /* Paused until triggered by JavaScript */
}
.scale-up {
    opacity: 0;
    transform: scale(5px); /* Start smaller */
    animation: scaleUp 1.5s ease-out forwards;
    animation-play-state: paused;
}
.bounce-in-left {
    opacity: 0;
    transform: translateX(-5px); /* Start off-screen to the left */
    animation: bounceInLeft 1.5s ease-out forwards;
    animation-play-state: paused;
}
/* Bounce-in from the right */
.bounce-in-right {
    opacity: 0;
    transform: translateX(5px); /* Start off-screen to the right */
    animation: bounceInRight 1.5s ease-out forwards;
    animation-play-state: paused;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes slideFromBottom {
    from {
        opacity: 0;            /* Fully transparent */
        transform: translateY(25%); /* Start below the final position */
    }
    to {
        opacity: 1;            /* Fully visible */
        transform: translateY(0); /* Original position */
    }
}
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(5%); /* Start off the screen to the right */
    }
    to {
        opacity: 1;
        transform: translateX(0); /* End at the original position */
    }
}
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-5%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes bounceInLeft {
    0% {
        transform: translateX(-40px);
        opacity: 0;
    }
    60% {
        transform: translateX(20px);
        opacity: 1;
    }
    80% {
        transform: translateX(-10px);
    }
    100% {
        transform: translateX(0);
    }
}
/* Keyframes for bounceInRight */
@keyframes bounceInRight {
    0% {
        transform: translateX(40px);
        opacity: 0;
    }
    60% {
        transform: translateX(-20px);
        opacity: 1;
    }
    80% {
        transform: translateX(10px);
    }
    100% {
        transform: translateX(0);
    }
}
@media (max-width: 768px) {
    .intro-para p {
        background: linear-gradient(100deg, #043D5D, rgb(125, 8, 8), #043D5D);
        -webkit-background-clip: text;
        color: transparent;
        font-size: 32px;
        font-weight: 700;
    }
    .intro-img-container img {
        max-width: 380px;
    }
    .courseintro {
        flex-direction: column;
        height: 600px;
        padding: 15px;
    }
    .hdlne {
        flex-direction: row;
        padding: 10px;
    }
    .prehdline {
        display: inline-flex;
        font-size: 25px;
        font-weight: 500;
    }
    .hdlneog {
        font-size: 55px;
        font-weight: 490;
        text-decoration: underline 2px;
        text-decoration-thickness: 1px;
        text-underline-offset: 8px;
        overflow: hidden;
    }
    .in-detail {
        width: 330px;
        height: auto;
        margin: 10px;
    }
    .course-content{
        font-size: 18px;

    }
}
@media (max-width: 360px) {
    .intro-img-container img {
        max-width: 300px;
    }
}

