/* Universal Styles */
* {
    padding: 0%;
    margin: 0%;
    box-sizing: border-box;
}

.main {
    width: 100%;
}


body {
    padding-top: 100px;     background-color:#000000; 
    min-height: 200vh; /* For demonstration of fixed navbar and scrolling */
    margin: 0; /* Remove default body margin */
    font-family: Arial, sans-serif; /* A basic font for readability */
}


/* Course Section One */
.course-sec-one {
    width: 100%;
    border-bottom: solid rgba(255, 255, 255, 0.4) 1px;
    background: radial-gradient(circle, rgba(110, 73, 184, 1) 0%, rgba(0, 0, 0, 1) 42%);
}

.course-sec-one-partone {
    display: flex;
    width: 100%;
    padding: 100px; /* Adjust padding for larger screens */
    font-family: sans-serif;
    justify-content: space-between;
}

.course-sec-one-partone-divone {
    width: 50%;
    display: flex;
    flex-direction: column;
}

#course-sec-one-partone-divone-paraone {
    font-size: 17px;
    margin-left: 10px;
    padding: 10px;
    background-color: rgba(79, 24, 167, 0.3);
    width: 22%; /* Adjust width for larger screens */
    color: white;
    display: flex;
    justify-content: center;
    border-radius: 25px;
    border: solid rgba(255, 255, 255, 0.3) 1px;
}

#course-sec-one-partone-divone-mainhead {
    font-size: 55px; /* Adjust font size for larger screens */
    padding: 10px;
    color: white;
}

#course-sec-one-partone-divone-paratwo {
    font-size: 20px; /* Adjust font size for larger screens */
    padding: 10px;
    color: white;
}

#course-sec-one-partone-divone-button {
    color: white;
    padding: 15px 0px;
}

#course-sec-one-partone-divone-button button {
    padding: 15px 20px;
    background-color: rgb(120, 120, 224);
    font-size: 16px;
    border-radius: 30px;
    border: solid rgba(255, 255, 255, 0.5) 1px;
    color: white;
    cursor: pointer;
}

#course-sec-one-partone-divone-button button:hover {
    padding: 17px 22px;
    background-color: rgb(105, 14, 190);
}

.course-sec-one-partone-divtwo {
    width: 40%;
}

.course-sec-one-partone-divtwo img {
    width: 95%;
    /* height: 75%; */
    display: flex;
    object-fit: cover;
    border-radius: 10px;
}

/* Gallery Section */
.gallery {
    display: flex;
    justify-content: space-between;
    /* min-height: 195vh; <-- You might need to adjust this or remove if content drives height */
    background-color: black;
    padding: 50px 70px 0px 70px; /* Adjust padding for larger screens */
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}

.left {
    width: 65%; /* Adjust width for larger screens */
    padding: 0px 20px 0px 0px; /* Default padding for larger screens */
    /* height: 100%; <-- Be cautious with fixed heights in responsive design */
    line-height: 1.8;
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 60px;
}

.sec-two-left-partthree {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 75%; /* Consider removing fixed height or making it dynamic */
    padding: 30px;
    justify-content: center;
    border-radius: 15px;
}

.sec-two-left-partthree-headone {
    padding: 5px;
    font-size: 35px; /* Adjust font size for larger screens */
    color: white;
}

.sec-two-left-partfour {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.sec-two-left-partthree-headtwo {
    display: flex;
    width: 45%; /* Adjust width for larger screens */
    font-size: 18px;
    padding-left: 8px;
    color: white;
}

.sec-two-left-partone {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: rgba(8, 0, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    width: 100%;
    height: 75%; /* Consider removing fixed height or making it dynamic */
    border: solid rgba(255, 255, 255, 0.3) 1px;
}

.sec-two-left-partone:hover {
    box-shadow: 4px 4px 50px rgba(255, 255, 255, 0.2);
}

.sec-two-left-partone-one {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.sec-two-left-partone-headone {
    font-size: 15px;
    color: white;
}

.sec-two-left-partone-headtwo {
    font-size: 16px;
    color: white;
    background-color: rgba(15, 15, 255, 0.5);
    padding: 2px 10px;
    border-radius: 25px;
    border: solid white 1px;
}

.sec-two-left-partone-headthree {
    font-size: 28px; /* Adjust font size for larger screens */
    color: white;
}

.sec-two-left-partone-headfour {
    font-size: 20px; /* Adjust font size for larger screens */
    padding-bottom: 10px;
    color: white;
}

.sec-two-left-parttwo {
    padding: 10px;
}

.sec-two-left-parttwo-li {
    text-decoration: none;
    list-style: none;
    font-size: 18px;
    color: white;
}

.right {
    width: 25%; /* Adjust width for larger screens */
    height: fit-content;
    padding: 20px 20px 20px 20px ; /* Default padding for larger screens */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-family: sans-serif;
    background-color: rgba(106, 106, 230, 0.2);
    border: solid rgba(255, 255, 255, 0.5) 1px;
    border-radius: 15px;
    margin-top: 100px;
}

.sec-two-right-partone-head {
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    padding: 10px 10px 10px 0px;
    color: white;
}

.sec-two-right-card {
    display: flex;
    justify-content:space-between;
    padding: 20px 5px 10px 0px;
    border-bottom: solid rgba(255, 255, 255, 0.5) 1px;
}

.right-card-head {
    font-size: 15px;
    color: white;
}

.right-card-headtwo {
    font-size: 15px;
    color: white;
}

.sec-two-right-button {
    display: flex;
    width: 100%;
    margin-top: 30px;
}

.sec-two-right-button a {
    display: flex;
    width: 100%;
    text-decoration: none;
}

.sec-two-right-button button {
    display: flex;
    justify-content: center;
    padding: 15px 10px;
    width: 100%;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: white;
    border-radius: 25px;
    background-color: blueviolet;
    border: solid rgba(255, 255, 255, 0.5) 1px;
}

.sec-two-right-button button:hover {
    padding: 15px 10px; /* Keep consistent padding on hover */
    background-color: rgba(115, 27, 197, 0.5);
}


/* -------------------- Media Queries -------------------- */

/* For screens smaller than 1200px (e.g., tablets and smaller desktops) */
@media (max-width: 1199px) {
    .course-sec-one-partone {
        padding: 80px 50px 0px 50px;
        flex-direction: column; /* Stack elements vertically */
        align-items: center; /* Center items when stacked */
    }

    .course-sec-one-partone-divone {
        width: 100%; /* Take full width */
        text-align: center; /* Center text */
    }

    #course-sec-one-partone-divone-paraone {
        width: fit-content; /* Adjust width to fit content */
        margin: 0 auto 15px auto; /* Center the paragraph */
    }

    #course-sec-one-partone-divone-mainhead {
        font-size: 45px;
    }

    #course-sec-one-partone-divone-paratwo {
        font-size: 18px;
    }

    .course-sec-one-partone-divtwo {
        width: 80%; /* Adjust image width */
        margin-top: 40px; /* Add space between text and image */
    }

    .course-sec-one-partone-divtwo img {
        width: 100%; /* Ensure image fills its container */
        height: auto; /* Maintain aspect ratio */
    }

    .gallery {
        flex-direction: column-reverse; /* Stack gallery sections vertically */
        padding: 30px !important;
       
    }

    .left {
        width: 100%; /* Take full width */
        padding: 0 !important; /* REMOVED PADDING */
    }

    .sec-two-left-partone,
    .sec-two-left-partthree {
        padding: 20px;
    }

    .sec-two-left-partthree-headone {
        font-size: 30px;
    }

    .sec-two-left-partone-headthree {
        font-size: 24px;
    }

    .sec-two-left-partone-headfour {
        font-size: 18px;
    }

    .right {
        width: 100%; /* Take full width */
        margin-top: 40px; /* Add space between left and right sections */
        padding: 0 !important; /* REMOVED PADDING */
    }
}

/* For screens smaller than 768px (e.g., larger smartphones) */
@media (max-width: 767px) {
    .course-sec-one-partone {
        padding: 50px 20px 0px 20px;
    }

    #course-sec-one-partone-divone-mainhead {
        font-size: 35px;
    }

    #course-sec-one-partone-divone-paratwo {
        font-size: 16px;
    }

    #course-sec-one-partone-divone-paraone {
        font-size: 14px;
        width: fit-content;
        padding: 8px 10px;
        margin: 0 auto 10px auto;
    }

    .course-sec-one-partone-divtwo {
        width: 95%;
    }

    .gallery {
        padding: 20px;
    }

    .sec-two-left-partthree-headone {
        font-size: 25px;
    }

    .sec-two-left-partthree-headtwo {
        width: 100%; /* Each item takes full width */
        padding-left: 0;
        font-size: 16px;
    }

    .sec-two-left-partone-headthree {
        font-size: 20px;
    }

    .sec-two-left-partone-headfour {
        font-size: 16px;
    }

    .sec-two-left-parttwo-li {
        font-size: 16px;
    }

    .right {
        /* No specific padding adjustment here, as it inherits from 1199px or is set by inner elements */
        margin-top: 30px; /* Slightly less margin than larger tablets */
    }
}

/* For screens smaller than 480px (e.g., small smartphones) */
@media (max-width: 479px) {
    .course-sec-one-partone {
        padding: 30px 15px 0px 15px;
    }

    #course-sec-one-partone-divone-mainhead {
        font-size: 28px;
    }

    #course-sec-one-partone-divone-paratwo {
        font-size: 14px;
    }

    #course-sec-one-partone-divone-button button {
        padding: 12px 15px;
        font-size: 14px;
    }

    #course-sec-one-partone-divone-button button:hover {
        padding: 14px 17px;
    }

    .gallery {
        padding: 15px;
    }

    .sec-two-left-partthree-headone {
        font-size: 22px;
    }

    .sec-two-left-partone {
        padding: 15px;
    }

    .sec-two-left-partone-headone {
        font-size: 14px;
    }

    .sec-two-left-partone-headtwo {
        font-size: 14px;
        padding: 1px 8px;
    }

    .sec-two-left-partone-headthree {
        font-size: 18px;
    }

    .sec-two-left-partone-headfour {
        font-size: 14px;
    }

    .sec-two-left-parttwo-li {
        font-size: 15px;
    }

    .right {
        /* No specific padding adjustment here, as it inherits from 1199px or is set by inner elements */
        margin-top: 20px; /* Smaller margin */
    }

    .sec-two-right-partone-head {
        font-size: 16px;
    }

    .sec-two-right-card {
        padding: 15px 0;
    }

    .right-card-head,
    .right-card-headtwo {
        font-size: 14px;
    }

    .sec-two-right-button button {
        padding: 12px 8px;
        font-size: 12px;
    }
     .sec-two-right-button button:hover {
        padding: 12px 8px; /* Maintain consistent padding on hover */
    }
}

@media (max-width: 767px) {
    .right {
        width: 100%;
        margin-top: 30px;
        padding: 15px;
    }

    .sec-two-right-card {
        flex-direction: column;
        gap: 5px;
        padding: 10px 0;
    }

    .sec-two-right-button button {
        font-size: 14px;
    }

    /* Optional: Stack the left-part-one course cards */
    .sec-two-left-partone {
        padding: 15px;
    }
}
