/*header*/
html {
    overflow-y: scroll;
    scroll-behavior: smooth;    /* <----- THE SECRET ---- */
}

body{
    width: 100%;
    height: 100%;
    margin: 0px;
    padding: 0px;
    overflow-x: hidden;
}

section {
    margin-bottom: 0;
}

/*
.logo {
    height: 60px;
    width: auto;
    margin-top: -20px;
}
*/

/* About Us Decoration */
.about-us {
    position: relative; /* Ensure absolute child is relative to this section */
}

.about-us-decoration {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 250px; /* Adjusted width for the new image likely needing more space */
    z-index: 1;
}

.header-carousel-academy {
    font-weight: bold;
}

/* Custom Button Secondary Academy */
.btn-secondary-academy {
    background-color: #E8AC13;
    border-color: #E8AC13;
    color: #fff;
}

.btn-secondary-academy:hover,
.btn-secondary-academy:focus,
.btn-secondary-academy:active {
    background-color: #d49b0f; /* Slightly darker shade for hover */
    border-color: #d49b0f;
    color: #fff;
}


/* Custom Carousel */
#carousel .carousel {
    height: 60vh;
}

/* Custom Carousel Controls */
.carousel-indicators {
    bottom: 10px;
}

.carousel-indicators button {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    margin: 0 6px !important;
    background-color: #d1d1d1 !important;
    border: none !important;
    opacity: 1 !important;
}

.carousel-indicators button.active {
    background-color: #28a745 !important;
    width: 12px !important;
    height: 12px !important;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: white; /* Optional: circle background for arrows */
    border-radius: 50%;
    top: auto;
    bottom: 0.5rem;
    opacity: 1;
    z-index: 2;
}

/* Position arrows next to indicators centrally */
.carousel-control-prev {
    left: calc(50% - 120px);
}

.carousel-control-next {
    right: calc(50% - 120px);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
    width: 1.5rem;
    height: 1.5rem;
}

@keyframes animate {
    0% {
        transform: translateX(-50px);
    }
    25% {
        transform: translateX(0px);
    }
    50% {
        transform: translateX(0px);
    }
    75% {
        transform: translateX(0px);
    }
    100% {
        transform: translateX(50px);
    }
}

/* Bounce In Down Animation */
@keyframes bounceInDown {
    0% {
        opacity: 0;
        transform: translateY(-2000px);
    }
    60% {
        opacity: 1;
        transform: translateY(30px);
    }
    80% {
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.bounce-in-down {
    opacity: 0; /* Para esconder la imagen inicialmente*/
}

.carousel-item.active .bounce-in-down {
    animation: bounceInDown 1.5s ease-out forwards;
}


.carousel-home{
    background-image: none;
    transform: translateY(20%) !important;
    height: 40vh;
}

/* Target specific carousel items inside learning section if they were previously .item */
#learning .carousel-item {
    background-image: none !important;
    color: white;
    font-size: 80px;
    padding: 0 !important;
    animation-direction: reverse;
    min-height: 200px;
}


/*registerNowPrimary*/
.register-now-section{
    background-image: url('../img/backgrounds/register-now.png'); /* The image used */
    background-color: #cccccc; /* Used if the image is unavailable */
    height: 100vh; /* You must set a specified height */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Do not repeat the image */
    background-size: cover;
}

/*About-us*/
.about-us{
    background-image: url('../img/backgrounds/about-us.png'); /* The image used */
    background-color:white; /* Used if the image is unavailable */
    height: 900px; /* You must set a specified height */
    width: auto;
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Do not repeat the image */
    background-size: cover;
}

ul {
    list-style-type: none;
}

/* Ensure bold text inside .lead is actually bold */
.lead b, .lead strong {
    font-weight: 700 !important;
}

/*Learning*/
#learningOp{
    /*url('../img/home-carousel/3_Marketplace_Datlas2020.jpg');*/
    background-image: url('../img/backgrounds/learning-gif.gif'); /* The image used */
    background-color:white; /* Used if the image is unavailable */
    height: 650px; /* You must set a specified height */
    width: auto;
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Do not repeat the image */
    background-size: cover;
}

#learning{
    position: relative;
    overflow: hidden;
}

#fullScreenDiv{
    min-height: 100%;
    /*height: 100vh;*/
    width: 100vw;
    padding:0;
    margin: 0;
    background-color: gray;
    position: relative;
}

#video{
    width: 100vw;
    height: auto;
    margin: auto;
    display: block;
}

/*Courses*/
#courses .thumbnail img {
    max-height: 250px;
    max-width: 100%;
    min-height: 250px;
    min-width: 100%;
}

#courses .thumbnail p {
    min-height: 160px;
    max-height: 160px;
}

#courses .thumbnail .gift {
    min-height: 40px !important;
    max-height: 40px !important;
}
#courses .courses_button .btn-template-main-inverted {
    border: .5px solid transparent;
}

#courses .courses_button .btn-template-main-inverted:hover {
    border: .5px solid black;
}

@media (min-aspect-ratio: 16/9) {
  #video{
    width: 100vw;
    height:auto;
  }
}

/* Custom Nav Pills for Courses */
.nav-academy {
    background-color: white; /* Container background */
    border: 1px solid #e0e0e0;
    border-radius: 50px; /* Fully rounded pill shape */
    padding: 5px;
    display: inline-flex; /* Fit content */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.nav-academy .nav-link {
    color: #555555; /* Default text color */
    font-weight: 600;
    border-radius: 50px !important; /* Rounded buttons */
    padding: 10px 25px;
    transition: all 0.3s ease;
}

.nav-academy .nav-link.active {
    background-color: #1F3965;
    color: white !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.nav-academy .nav-link:hover:not(.active) {
    background-color: #f8f9fa;
    color: #0e5f76;
}

@media (max-aspect-ratio: 16/9) {
  #video {
    height: 100vh;
    width:auto;
    margin-left: 50vw;
    transform: translate(-50%);
  }
}

#videoMessage{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
#learning .carousel-inner{
    min-width: 100vw !important;
}

#learning .carousel-inner p{
    min-width: 100%;
}

/* --- Features Section --- */
#academy-features {
    padding: 60px 0;
}

.feature-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    aspect-ratio: 2/3; /* Taller vertical aspect ratio */
}

.feature-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-image-container:hover img {
    transform: scale(1.1);
}

.feature-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(31, 57, 101, 0.9); /* Datlas Blue overlay */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
}

.feature-image-container:hover .feature-overlay {
    opacity: 1;
}

.feature-text {
    font-size: 16px;
    font-weight: 500;
    color: white;
}

.feature-card h4 {
    margin-top: 15px;
    font-weight: 700;
    color: #333;
}

/*Members*/
#members{
    height: 500px;
}

#members .heading{
    margin-bottom: 100px;
}

#members img{
    width: auto;
    min-height: 100px;
    max-height: 100px;
    margin: auto;
    display: block;
}

#footer-landing a{
    color: #555555;
}

/*Forms*/
#forms img{
    height: 100px;
    width: auto;
    transform: rotate(-25deg);
    position: absolute;
    top: 125px;
    right: 0;
}

.word h1{
    animation: animate 1.5s linear infinite;
}

#forms .vcenter {
    /*display: inline-block;*/
    vertical-align: middle;
    float: none;
    height: 425px;
}

#forms .register-form {
    background-color: white;
    border-radius: 25px;
    border: 2px solid orange;
    padding: 20px;
    position: relative;
    top: 25%;
    /*min-width: 100%; */
}


#forms{
    /*url('../img/home-carousel/3_Marketplace_Datlas2020.jpg');*/
    background-image: url('../img/backgrounds/form.png'); /* The image used */
    background-color:white; /* Used if the image is unavailable */
    height: 650px; /* You must set a specified height */
    width: auto;
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Do not repeat the image */
    background-size: cover;
}

#forms .register-vcenter {
    /*display: inline-block;*/
    vertical-align: middle;
    float: none;
    height: 55vh;
}
/*Footer*/
#footer-landing img{
    filter: grayscale(100%);
}

#footer-landing img{
    filter: grayscale(100%);
}

@media (max-width: 768px) {
    /*registerNowPrimary*/
    .register-now-section{
        background-image: url('../img/backgrounds/Fondo1-edit_IntentoMovil.png'); /* The image used */
        background-color: #cccccc; /* Used if the image is unavailable */
        height: 100vh; /* You must set a specified height */
        background-position: center; /* Center the image */
        background-repeat: no-repeat; /* Do not repeat the image */
        background-size: cover;
    }
    .jumbotron-header {
        font-size: 35px !important;
    }

    .jumbotron-subheader {
        width: 60%;
        font-size: 14px !important;
    }

    /*About-us*/
    .heading h4{
        font-size: 20px !important;
    }

    .about-us{
        background-image: url('../img/backgrounds/about-us-vertical.png'); /* The image used */
        background-color:white; /* Used if the image is unavailable */
        height: 900px; /* You must set a specified height */
        width: auto;
        background-position: center; /* Center the image */
        background-repeat: no-repeat; /* Do not repeat the image */
        background-size: cover;
    }

    .about-us .information{
        font-size: 14px;
        width: 80%;
        margin-left: 10%;
        margin-bottom: 40px !important;
    }

    .lead{
        font-size: 12px;
        width: fit-content;
    }

    .mobileBenefits{
        padding-right: 10px !important;
    }

    /*Learning*/
    #learning h1 {
        color: white;
        font-size: 80px;
    }

    #learning h3 {
        color: white;
        font-size: 20px;
        width: 80vw;
    }

    .vcenter {
        /*padding-top: 10%;*/
        margin-left: 5%;
        transform: translateY(65%);
        font-weight: 900;
        width: 90%;
    }

    /* Target specific carousel items inside learning section if they were previously .item */
    #learning .carousel-item {
        background-image: none !important;
        color: white;
        font-size: 30px;
        padding: 0 !important;
        animation-direction: reverse;
        min-height: 200px;
    }

    /*Courses*/
    .btn-template-main-inverted {
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 10px;
        padding-bottom: 10px;
        border-radius: 15px;
        border: orange;
        font-size: 15px;
    }

    #courses .thumbnail img {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }

    #courses .thumbnail p {
        min-height: auto !important;
        max-height: none !important;
        height: auto !important;
        margin-bottom: 10px;
    }

    #courses .thumbnail .gift {
        min-height: auto !important;
        max-height: none !important;
        height: auto !important;
        margin-bottom: 15px;
    }

    #courses .thumbnail .gift {
        min-height: auto !important;
        max-height: none !important;
        height: auto !important;
        margin-bottom: 15px;
    }

    #courses .thumbnail {
        margin-bottom: 50px;
    }

    /* Mobile Nav Pills */
    .nav-academy {
        width: 100%;
        display: flex;
        justify-content: space-between;
        padding: 5px;
    }

    .nav-academy .nav-item {
        flex: 1;
        margin: 0 2px !important; /* Override ms-3 from bootstrap */
    }

    .nav-academy .nav-link {
        padding: 8px 10px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }

    /*Members*/
    .no-mobile{
        display: none;
    }

    .customers{
        bottom: 100px !important;
    }

    /*Forms*/
    #forms img{
        display: none;
    }

    #forms .vcenter {
        vertical-align: middle;
        float: none;
        height: 0px !important;
        top: 20px !important;
    }

    #forms .vcenter h1 {
        color: black !important;
        font-size: 24px;
    }

    #forms .vcenter h2 {
        color: black !important;
        font-size: 18px;
    }

    /*Footer*/
    #footer-landing{
        margin-left: 25px;
        margin-right: 25px;
    }

    #footer-landing a{
        font-size: 14px;
    }

    /* Auto height for carousel on mobile to fit content */
    #carouselCaptions, .carousel-inner, .carousel-item {
        height: auto !important;
        min-height: 450px; /* Ensure enough space */
        padding-bottom: 2rem; /* Add breathing room at bottom */
        margin-top: 20px;
    }

    /* Mobile Carousel Card Style */
    .mobile-image-card img {
        height: 250px !important; /* Slightly smaller image to give more room to text */
        object-fit: cover;
        width: 100%;
        border-radius: 15px 15px 0 0 !important;
    }
    
    .mobile-text-card {
        background-color: white;
        border-radius: 20px;
        padding: 1.5rem;
        margin-top: -40px; /* Keep overlap */
        margin-left: 1rem;
        margin-right: 1rem;
        margin-bottom: 3rem; /* Add bottom margin to avoid clipping */
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        position: relative;
        z-index: 10;
        text-align: left;
    }

    .mobile-text-card h1 {
        font-size: 1.8rem; /* Smaller font on mobile */
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }

    /* Mobile About Us Fix */
    .about-us {
        height: auto !important;
        padding-bottom: 50px;
    }

    /* Mobile About Us Decoration */
    .about-us-decoration {
        position: static;
        display: block;
        margin: 20px auto 0 auto;
        width: 200px; /* Increased size for visibility */
        opacity: 1;
    }
}

@media (min-width: 769px) and (max-width: 991px){
    /*registerNowPrimary*/
    .jumbotron-header {
        font-size: 45px !important;
    }

    .jumbotron-subheader {
        width: 60%;
        font-size: 18px !important;
    }

    /*about-ua*/
    .about-us{
        background-image: url('../img/backgrounds/about-us-vertical.png'); /* The image used */
        background-color:white; /* Used if the image is unavailable */
        height: 900px; /* You must set a specified height */
        width: auto;
        background-position: center; /* Center the image */
        background-repeat: no-repeat; /* Do not repeat the image */
        background-size: cover;
    }

    .about-us .information{
        font-size: 20px;
        width: 80%;
        margin-left: 10%;
        margin-bottom: 40px !important;
    }

    #about-us .heading h4{
        font-size: 30px;
    }

    .lead{
        font-size: 15px;
        width: fit-content;
    }

    .mobileBenefits{
        padding-right: 10px !important;
    }

    /*Learning*/
    #learning h1 {
        color: white;
        font-size: 70px;
    }

    #learning h3 {
        color: white;
        font-size: 25px;
    }

    .vcenter {
        /*padding-top: 10%;*/
        transform: translateY(60%);
        font-weight: 900;
    }

    /* Target specific carousel items inside learning section if they were previously .item */
    #learning .carousel-item {
        background-image: none !important;
        color: white;
        font-size: 70px;
        padding: 0 !important;
        animation-direction: reverse;
    }

    /*Courses*/
    .btn-template-main-inverted {
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 10px;
        padding-bottom: 10px;
        border-radius: 15px;
        border: orange;
        font-size: 15px;
    }

    #courses .thumbnail img {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }

    #courses .thumbnail p {
        min-height: auto !important;
        max-height: none !important;
        height: auto !important;
        margin-bottom: 10px;
    }

    #courses .thumbnail .gift {
        min-height: auto !important;
        max-height: none !important;
        height: auto !important;
        margin-bottom: 15px;
    }

     /*Members*/
     .customers{
        display: none !important;
    }

      /*Footer*/
      #footer-landing{
        margin-left: 100px;
        margin-right: 100px;
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    /*registerNowPrimary*/
    .jumbotron-header {
        font-size: 45px !important;
    }

    .jumbotron-subheader {
        width: 60%;
        font-size: 18px !important;
    }
    /*About-us*/
    .heading h4{
        font-size: 30px !important;
    }

    .about-us .information{
        font-size: 15px;
        width: 55%;
        margin-left: 25%;
        margin-bottom: 60px;
    }

    .lead{
        font-size: 18px;
        width: fit-content;
    }

    /*Courses*/
    .btn-template-main-inverted{
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 10px;
        padding-bottom: 10px;
        border-radius: 15px;
        border: orange;
        font-size: 15px;
        font-size: 15px;
    }

    #courses .thumbnail img {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }

    #courses .thumbnail p {
        min-height: auto !important;
        max-height: none !important;
        height: auto !important;
        margin-bottom: 20px;
    }

    #courses .thumbnail .gift {
        min-height: auto !important;
        max-height: none !important;
        height: auto !important;
        margin-bottom: 20px;
    }
    /*Learning*/
    #learning h1 {
        color: white;
        font-size: 80px;
    }

    #learning h3 {
        color: white;
        font-size: 30px;
    }

    .vcenter {
        /*padding-top: 10%;*/
        transform: translateY(60%);
        font-weight: 900;
    }

    .item{
        background-image: none !important;
        color: white;
        font-size: 80px;
        padding: 0 !important;
        animation-direction: reverse;
    }

    /*Members*/
    .customers{
        display: none !important;
    }

    /*Footer*/
    #footer-landing{
        margin-left: 150px;
        margin-right: 150px;
    }
}

@media (min-width: 1200px) {
    /*registerNowPrimary*/
    .jumbotron-header {
        font-size: 45px !important;
    }

    .jumbotron-subheader {
        width: 60%;
        font-size: 18px !important;
    }
    /*About-us*/
    .heading h4{
        font-size: 30px !important;
    }

    .about-us .information{
        font-size: 15px;
        width: 55%;
        margin-left: 25%;
        margin-bottom: 60px;
    }

    .lead{
        font-size: 20px;
        width: fit-content;
    }

    /*Courses*/
    .btn-template-main-inverted{
        padding-left: 30px;
        padding-right: 30px;
        padding-top: 10px;
        padding-bottom: 10px;
        border-radius: 15px;
        border: orange;
        font-size: 15px;
    }
    /*Learning*/
    #learning h1 {
        color: white;
        font-size: 80px;
    }

    #learning h3 {
        color: white;
        font-size: 30px;
    }

    .vcenter {
        /*padding-top: 10%;*/
        transform: translateY(60%);
        font-weight: 900;
    }

    .item{
        background-image: none !important;
        color: white;
        font-size: 80px;
        padding: 0 !important;
        animation-direction: reverse;
    }

    /*Members*/
    .customers{
        display: none !important;
    }

    /*Footer*/
    #footer-landing{
        margin-left: 150px;
        margin-right: 150px;
    }
}

/* Animación */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }  /* 6 es el número de imágenes */
}

/* Slider */
.slider {
  height: auto;
  margin: auto;
  overflow: hidden;
  position: relative;
}

.slider::before,
.slider::after {
  background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
  content: "";
  height: 100px;
  position: absolute;
  width: 200px;
  z-index: 2;
}

.slider::after {
  right: 0;
  top: 0;
  transform: rotateZ(180deg);
}

.slider::before {
  left: 0;
  top: 0;
}

.slider .slide-track {
  animation: scroll 40s linear infinite; /* $animationSpeed reemplazado por 40s */
  display: flex;
  width: calc(150px * 12 * 2); /* 6 es el número de imágenes, 2 es para duplicarlas */
}

.slider .slide {
  height: 100px;
  width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px; /* Add breathing room */
}

.slider .slide img {
    max-height: 80px; /* Restrict max height */
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: filter 0.3s ease;
}