@import url('https://fonts.googleapis.com/css2?family=Sora:wght@100..800&display=swap');

/* Apply DM Sans globally to every single element on your website */
* {
    box-sizing: border-box;  
    font-family: 'Sora', sans-serif;
}

body {
    font-size: 16px;
    margin: 0;
    padding: 0;
}

.div-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 200px;
    padding-right: 200px;
    margin-bottom: 50px;
    gap: 100px;
}

    .div-box {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }

        .title-box {
            width: 100%;
            text-align: center;   
        }

            .header {
                font-weight: bold;
                font-size: 32px;
            }

            .sub {
                color: #808080;
            }

        .section-box {
            width: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 20px;
        }

            .sub-section-box {
                display: flex;
                flex-direction: row;
                justify-content: center;
                gap: 20px;
            }

                .s-card{
                    flex: 1;
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    padding: 20px; 
                    background-color: #ffffff;
                    border-radius: 20px;
                    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.4);  
                }

                .s-img-box {
                    width: 100%;
                    height: 200px;
                    border-radius: 20px;
                }

                .s-img {
                    width: 100%;
                    height: 100%;
                    border-radius:  20px;
                    object-fit: cover;
                    display: block;
                }

                .s-title {
                    margin: 10px 20px;
                    padding: 10px ;
                    text-align: center;
                    background-color: #1B03A3;
                    color: #ffffff;
                    font-weight: bold;
                    border-radius: 10px;
                }

                .s-sub-title {
                    padding: 10px ;
                    text-align: center;
                    color: #808080;
                    font-size: small;

                }

                .s-button {
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    padding: 10px 0px;
                }

                    .discover-button {
                        padding: 10px 20px;
                        font-size: 12px;
                        border: none;
                        border-radius: 10px;
                        background-color: #1B03A3;
                        color: #ffffff;
                        cursor: pointer;
                        transition: transform 0.3s;
                    }

                     .discover-button:hover {
                        transform: scale(1.1);
                        box-shadow:  0px 0px 8px rgba(0, 0, 0, 0.4);
                    }

        .section-box-2 {
            width: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 20px;
        }

        .sub-section-box-2 {
                display: flex;
                flex-direction: row;
                justify-content: center;
                gap: 80px;
            }

            .sub-left {
                flex: 2;
                display: flex;
                flex-direction: column;
                justify-content: flex-start;
                align-items: center;
                gap: 20px;
            }

                .s-card-2 {
                    width: 100%;
                    padding: 20px; 
                    background-color: #ffffff;
                    border-radius: 20px;
                    line-height: 1.0;
                    cursor: pointer;
                    transition: all 0.3s;
                    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.4);
                }

                    .sub-wrapper {
                        display: flex;
                        flex-direction: row;
                        align-items: center;
                        gap: 20px;
                        
                    }

                        .html-custom-icon {
                            font-weight: bold;
                            font-size: 16px;
                            display: inline-block; 
                        }

                        .full-blue {
                            display: inline-flex;
                            color: #1B03A3;
                            font-weight: bold;
                            transition: all 0.3s;
                        }

                        .s-sub-title-2 {
                            color: #808080;
                            font-size: small;
                        }

                        .link {
                            display: flex;
                            justify-content: center;
                            align-items: center;
                            padding: 0px 10px;
                            margin-left: auto;
                            font-size: 32px;
                            font-weight: bold;
                            color: #1B03A3;
                            transition: all 0.3s;
                        }

                .s-card-2:hover {
                    transform: scale(1.05);
                    background-color: #1B03A3;
                    color: #ffffff;
                }

               .s-card-2:hover .full-blue {
                    color: #ffffff;
                }

                .s-card-2:hover .s-sub-title-2 {
                    color: #ffffff;
                }

                .s-card-2:hover .link {
                    color: #ffffff;
                }

            .sub-right{
                flex: 1;

            }

                .s-img-box-2 {
                    width: 100%;
                    height: 100%;
                    border-radius: 20px;
                    position: relative; /* ◄ This now acts as the perfect anchor for your absolute text */
                    overflow: hidden;   /* Keeps the image corners rounded */
                }

                /* Creates a phantom layer right over the image */
                .s-img-box-2::after {
                    content: '';
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    border-radius: 20px;
                    
                    /* The magic line: inset applies the shadow inside the box boundaries */
                    box-shadow: inset 0px 0px 60px rgba(0, 0, 0, 0.8); 
                    
                    pointer-events: none; /* Allows user to still click through the overlay */
                    z-index: 1; /* Sits right above the image, but behind your text */
                }

                .s-img-2 {
                    width: 100%;
                    height: 100%;
                    border-radius: 20px;
                    object-fit: cover;
                    display: block;
                }

                /* Position the text container perfectly at the top */
                .img-2-text {
                    display: flex;
                    flex-wrap: wrap;
                    height: 100%;
                    position: absolute;
                    top: 0px;
                    padding: 20px 20px;
                    background: rgba(0, 0, 0, 0.2); 
                    border-radius: 20px;
                    box-sizing: border-box;
                    z-index: 2;
                }

                .chapter {
                    color: #ffffff;
                    font-weight: bold;
                    font-size: 46px;
                }

    .div-slider {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: stretch; 
        width: 100%;
        margin: 50px 0px;
        gap: 40px;
    }

        .slider-left {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .title {
            font-weight: bold;
            font-size: 80px;
        }

        .slider-right {
            flex: 2;
            display: flex;
            flex-direction: column;
            min-width: 0;
            overflow: hidden;
        }

    .slider-wrapper {
        display:flex;
        width:100%;
        gap: 40px;
        overflow-x:auto;
        scroll-behavior:smooth;
        scroll-snap-type:x mandatory;
        scrollbar-width:none;
    }

    .slider-wrapper::-webkit-scrollbar{
        display:none;
    }

    .slider-card {
        flex:0 0 100%;
        height:400px;
        border-radius:20px;
        background:#222;
        color:white;
        display:flex;
        align-items:center;
        justify-content:center;
        font-size:50px;
        scroll-snap-align:start;
        scroll-margin-top: 120px;
        transition: transform 0.3s;
    }

    .slider-card:hover {
        transform: scale(1.05);
        box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.4);
        
    }

     .card-img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
            }

            .card-text {
                display: flex;
                flex-wrap: wrap;
                align-items: center;
                height: 20%;
                position: absolute;
                bottom: 20px;
                left: 20px;    
                right: 20px;
                padding: 20px;
                background: rgba(0, 0, 0, 0.6); /* Darkened slightly so title text stays readable */
                color: #ffffff;
                border-radius: 20px;
                box-sizing: border-box;
            }


    /* Controls */
    .slider-controls {
        display:flex;
        justify-content:center;
        gap:20px;
        margin:20px 0px;
    }

    .control-btn {
        width:40px;
        height:40px;
        border-radius:50%;
        background:#1B03A3;
        color:white;
        display:flex;
        align-items:center;
        justify-content:center;
        text-decoration:none;
        transition: all 0.3s;
    }

    .control-btn:hover {
        transform: scale(1.05);
        box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.4);
    }

    /* Active card */
    .slider-card:target,
    .slider-card:first-child {
        flex:0 0 75%;
    }

           


/*____________________________________________________________________________________________________________________________________*/

/* Mobile Styles */
@media only screen and (max-width: 873px) {

body {
    font-size: 12px;  
}

.div-container {
    padding-left: 20px;
    padding-right: 20px;
     gap: 100px;
}

        .header {
            font-size: 24px;
        }

    .sub-section-box {
                flex-direction: column;
                gap: 20px;
            }

        .sub-section-box-2 {
                flex-direction: column-reverse; 
                gap: 40px;
            }

                .chapter {
                    font-size: 32px;  
                }

    .div-slider {
        flex-direction: column;
        gap: 40px;
        margin: 0px 0px;
        align-items: center;
        
    }

    .title {
        font-size: 40px;
        margin: 0;
    }

    .slider-left {
        width: 100%;
        flex: none;
        text-align: center;
    }

     .slider-right {
        flex: none;
        width: 100%;
        overflow: hidden;
    }


    .slider-wrapper {
        display: flex;
        gap: 20px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0px 0px;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .slider-wrapper::-webkit-scrollbar {
        display: none;
    }


    .slider-card {
        width: 400px;
        flex: 0 0 250px;
        scroll-snap-align: center;
    }

    .slider-controls {
        gap:10px;
    }

}

/*____________________________________________________________________________________________________________________________________*/
/* Tablet Styles */
@media only screen and (min-width: 874px) and (max-width: 1280px) {

body {
    font-size: 14px;  
}

.div-container {
    padding-left: 40px;
    padding-right: 40px;
}

}





