* {
    margin: 0;
    padding: 0;
    font-family: 'DM Sans', sans-serif;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    background-color: black;
}

a {
    color: inherit;
    text-decoration: none;
}

#edu_main {
    width: 100%;
}

#edu_heading h1 {
    margin-top: 2vw;
    margin-left: 6.5vw;
    font-size: 5.5em;
    color: #fff;
    position: relative;
    z-index: 10;
}

.ex_card_1, .ex_card_2, .ex_card_3,
.pr_card_1, .pr_card_2, .pr_card_3,
.ed_card_1, .ed_card_2, .ed_card_3 {
    position: absolute;
    left: 6.5%;
    width: 1100px;
    padding: 10px;
    border-radius: 20px;
    color: #fff;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 10px 10px 20px -10px rgba(255, 255, 255, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: .5s ease;
    z-index: 10;
    margin-bottom: 40px;
}

.ex_card_1, .pr_card_1, .ed_card_1 {
    margin-top: 1px;
    top: 30%;
}

.ex_card_2, .pr_card_2 {
    margin-top: 280px;
    top: 30%;
}

.ex_card_3, .pr_card_3 {
    margin-top: 550px;
    top: 30%;
}

.ed_card_2 {
    margin-top: 200px;
    top: 30%;
}

.ed_card_3 {
    margin-top: 370px;
    top: 30%;
}

.ex_card_1 { height: 250px; }
.ex_card_2 { height: 240px; }
.ex_card_3 { height: 200px; }
.pr_card_1, .pr_card_2 { height: 250px; }
.pr_card_3 { height: 230px; }
.ed_card_1 { height: 180px; }
.ed_card_2, .ed_card_3 { height: 150px; }

.ex_card_number_1, .ex_card_number_2, .ex_card_number_3,
.pr_card_number_1, .pr_card_number_2, .pr_card_number_3,
.ed_card_number_1, .ed_card_number_2, .ed_card_number_3 {
    position: absolute;
    bottom: 10%;
    right: 10px;
    letter-spacing: 5px;
}


.pr_background3, .ex_background3 {
    padding-bottom: 900px;
}

.ed_background3 {
    padding-bottom: 600px;
}

.ed_card_1 h2, .ed_card_2 h2, .ed_card_3 h2,
.pr_card_1 h2, .pr_card_2 h2, .pr_card_3 h2,
.ex_card_1 h2, .ex_card_2 h2, .ex_card_3 h2,
.ex_card_1 p, .ex_card_2 p, .ex_card_3 p,
.pr_card_1 p, .pr_card_2 p, .pr_card_3 p,
.ed_card_1 p, .pr_card_1 a, .pr_card_2 a, .ed_card_2 p, .ed_card_3 p{
    margin-left: 2%;
}

@keyframes move-background {
    from {
        transform: translate3d(0px, 0px, 0px);
    }
    to { 
        transform: translate3d(1000px, 0px, 0px);
    }
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.stars {
    background: black url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/1231630/stars.png) repeat;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: block;
    z-index: 0;
}

.twinkling {
    width: 10000px;
    height: 100%;
    background: transparent url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/1231630/twinkling.png") repeat;
    background-size: 1000px 1000px;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 2;
    animation: move-background 70s linear infinite;
}

.clouds {
    width: 10000px;
    height: 100%;
    background: transparent url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/1231630/clouds_repeat.png") repeat;
    background-size: 1000px 1000px;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 3;
    animation: move-background 150s linear infinite;
}

img {
    max-width: 100%;
    height: auto;
    width: auto;
    max-height: 70vh;
    position: absolute;
    z-index: 3;
    right: 20px;
}

@media screen and (max-width: 1200px) {
    #edu_heading h1 {
        font-size: 4em;
    }
    
    .ex_card_1, .ex_card_2, .ex_card_3,
    .pr_card_1, .pr_card_2, .pr_card_3,
    .ed_card_1, .ed_card_2, .ed_card_3 {
        width: 90%;
        left: 5%;
    }
}

@media screen and (max-width: 768px) {
    #edu_heading h1 {
        font-size: 3em;
        margin: 0;
        padding: 20px 0;
        text-align: center;
        width: 100%;
    }
    
    .ex_card_1, .ex_card_2, .ex_card_3,
    .pr_card_1, .pr_card_2, .pr_card_3,
    .ed_card_1, .ed_card_2, .ed_card_3 {
        position: relative;
        top: auto;
        left: 5%;
        width: 90%;
        height: auto;
        min-height: 200px;
        margin-top: 20px;
    }

    .ex_card_1, .pr_card_1, .ed_card_1 {
        margin-top: 20px;
    }

    .ex_card_2, .pr_card_2, .ed_card_2,
    .ex_card_3, .pr_card_3, .ed_card_3 {
        margin-top: 20px;
    }
    
    .twinkling, .clouds {
        animation-duration: 200s;
    }
    
    .pr_background3, .ex_background3, .ed_background3 {
        padding-bottom: 40px;
    }

    .ex_card_number_1, .ex_card_number_2, .ex_card_number_3,
    .pr_card_number_1, .pr_card_number_2, .pr_card_number_3,
    .ed_card_number_1, .ed_card_number_2, .ed_card_number_3 {
        position: static;
        display: block;
        text-align: right;
        margin-top: 10px;
    }
}

@media screen and (max-width: 480px) {
    #edu_heading h1 {
        font-size: 2.5em;
    }
    
    .ex_card_1, .ex_card_2, .ex_card_3,
    .pr_card_1, .pr_card_2, .pr_card_3,
    .ed_card_1, .ed_card_2, .ed_card_3 {
        font-size: 16px;
    }
}



@media screen and (max-width: 768px) {
    #edu_heading h1 {
        font-size: 3em;
        margin: 0;
        padding: 40px 0 20px; /* Increased top padding */
        text-align: center;
        width: 100%;
    }
    
    /* ... (other mobile styles remain the same) ... */
}

/* Adjust cloud animation speed */
.clouds {
    animation: move-background 50s linear infinite; /* Changed from 150s to 75s */
}

@media screen and (max-width: 768px) {
    .twinkling {
        animation-duration: 100s; /* Changed from 200s to 100s */
    }
    .clouds {
        animation-duration: 50s; /* Changed from 200s to 50s */
    }
}