@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");

* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}

html {
scroll-behavior: smooth;
}

body {
background: #f2f2f2;
}

::-webkit-scrollbar {
    display: none;
  }
  


.section-bg {
    background-image: url('/Portal/public/image/image-742x.png');
    background-size: cover;
    background-position: center;
    padding: 120px 0;
}

.card-1 {
    background-color: #ccc5b9;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin-top: 20px;
}

.cda-h {
    text-align: center;
    font-weight: 800;
    margin-bottom: 20px;
}

.cda-h2 {
    text-align: center;
    font-weight: 800;
    margin-bottom: 20px;
    font-size: 20px;
}

.lh-base {
    font-size: 17px;
    font-weight: 600;
}

.cda-p2 {
    font-size: 17px;
    font-weight: 600;
}

.cda-container {
    background-color: #eb5e28;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 15px;
    margin-left: 2rem;
    margin-right: 2rem;
    text-align: justify;
}

/* Adjusted the button styling */
.button-continue {
    background-color: #eb5e28;
    color: #000000;
    border: none;
    padding: 10px 30px;
    border-radius: 25px;
    text-decoration: none;
    cursor: pointer;
    transition : 0.3s ease;
    font-weight: 600;
}

.button-continue:hover {
    background-color: #e27700;
}

@media (max-width: 768px) {
    .cda-container {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .card-1 {
        padding: 15px;
    }

    .lh-base, .cda-p2 {
        font-size: 15px;
    }

    .cda-h2 {
        font-size: 18px;
    }

    .button-continue {
        padding: 8px 20px;
    }
}



section  {
display: flex;
align-items: center;
flex-direction: column;
padding: 80px 0 0;
}



section h2 {
font-size: 2rem;
font-weight: 900;
}

section > p {
text-align: center;
font-weight: 600;

}

section .cards {
display: flex;
flex-wrap: wrap;
max-width: 1200px;
margin-top: 50px;
padding: 0 10px;
justify-content: space-between;
}


section .cards .card {
background: #eb5e28;
padding: 30px 10px;
list-style: none;
border-radius: 5px;
box-shadow: 0px 5px 10px rgba(0, 0, 0, 1);
margin-bottom: 40px;
width: calc(100% / 3 - 30px);
text-align: center;

}


.cda .card .button {
    position: relative;
    display: inline-block;
    width: 150px;
    height: 60px;
    border-radius: 10px; /* Adjusted border-radius */
    background-color: #000000;
    text-align: center;
    line-height: 60px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    left: 50%;
    transform: translateX(-50%);
}

.cda .card .button:hover {
    background-color: #ffffff;
    color: #252422;
}


section h2 {
font-size: 2rem; /* Default font size */
font-weight: 900;
text-align: center; /* Center align the text */
}




.cards .card p {
padding: 0 15px;
margin-top: 5px;
font-weight: 600;
color: #ffffff;
}
.cards .card h3 {
padding: 0 15px;
margin-top: 5px;
font-weight: 900;
color:#000000
}

.line {
width: 100%;
height: 32px; /* Adjust height as needed */
background-color: #000; /* Black color */
}

.line-f {
width: 100%;
height: 22px; /* Adjust height as needed */
background-color: #eb5e28; /* Black color */
}

@media screen and (max-width: 768px) {
section h2 {
font-size: 1.5rem; /* Adjust font size for smaller screens */
}
}

@media screen and (max-width: 560px) {
section h2 {
font-size: 1.2rem; /* Adjust font size for even smaller screens */
}
}

/* CSS for the horizontal line */

hr {
border: none;
border-top: 3px solid #000000; /* Set the thickness and color */
}

.earn-container {
background-image: url('/Portal/public/image/3.jpg'); /* Set the background image */
background-size: cover; /* Cover the entire section */
background-position: center; /* Center the background image */
padding: 10px 0; /* Add padding to the section */

}




.container1 {
    margin: auto;
    width: 93%;
    display: flex;
    justify-content: center;
    align-items: center;
    clear: both; /* Add clear property to clear floats */
}

/* Target the CDA image specifically */
.earn-container img {
    max-width: 600px;
    float: left;
    border: 4px solid rgb(0, 0, 0);
    border-radius: 10px;
    margin-right: 20px;
}


    

    .earn-content {
        border: 3px solid #000; /* Adding a border around the content */
        padding: 10px; /* Adding padding for better spacing */
        background-color: #252422;
        text-align: center; /* Center the text horizontally */
        display: flex; /* Use flexbox */
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center items horizontally */
        border-radius: 22px;
    
}


    .earn-h {
        font-size: 30px;
        padding: 5px;
        color: #eb5e28;
    }

    .earn-p1 {
        font-size: 17px;
        color:#f2f2f2;
        text-align: left;
        text-justify: auto;
    }



    .apply-h {
        text-decoration: underline;
        margin-bottom: 20px;
        margin-top: 25px;
    }

    .button-apply {
        background-color: #252422;
        border: none;
        color: white;
        padding: 10px 24px;
        text-align: center;
        text-decoration: none;
        display: inline-block;
        font-size: 16px;
        margin: 4px 2px;
        cursor: pointer;
        border-radius: 12px;
    }

    .button-apply:hover {
        background-color: #ffffff;
        color: #252422;
    }

    .button-explore {
        background-color: #000000;
        border: none;
        color: white;
        padding: 10px 10px;
        text-align: center;
        text-decoration: none;
        display: inline-block;
        font-size: 16px;
        cursor: pointer;
        border-radius: 15px;      
        margin-top: 20px; /* Add margin at the top for spacing */
        width: 100%; /* Make the button full width */

    }

    .button-explore:hover {
        background-color: #ffffff;
        color: #252422;
    }

    



    /* Card Styles */
    .list-group-item.card-2,
    .list-group-item.card-3 {
    background-color: #eb5e28; /* Added background color */
    padding: 15px; /* Adjusted padding */
    border-radius: 25px; /* Added border radius */
    margin-bottom: 20px;
}
    .apply-p1 {
        color: white; /* Changed text color to white */
        text-align: center; /* Aligned text to center */
        font-size: large;
        font-weight: 600;
    }

    .content-p1 {
        text-align: left; /* Aligned text to left */
        font-size: medium;
        font-weight: 600;
    }

    .content-p2 {
        text-align: center; /* Aligned text to center */
        font-size: medium;
        font-weight: 600;
    }

    .or-p1 {
        text-align: center; /* Center align the text */
        font-weight: 600; /* Set font weight to 600 */
        color: #ffffff;
    }

  

    .BDI-h {
text-align: center;
font-size: 28px; /* Initial font size */
text-decoration: underline;
margin-bottom: 20px;
margin-top: 100px;

}

.color {
background-color: #ccc5b9;
background-size: cover; /* Cover the entire section */
background-position: center; /* Center the background image */
padding: 10px 0; /* Add padding to the section */

}

@media (max-width: 576px) {
/* Extra small devices (phones) */
.apply-p {
font-size: 14px;
}

.content-p1,
.content-p2,
.or-p1 {
font-size: 12px;
}

.BDI-h {
font-size: 24px;
}
}

@media (min-width: 576px) and (max-width: 768px) {
/* Small devices (tablets) */
.apply-p {
font-size: 16px;
}

.content-p1,
.content-p2,
.or-p1 {
font-size: 14px;
}

.BDI-h {
font-size: 26px;
}
}

@media (min-width: 768px) and (max-width: 992px) {
/* Medium devices (desktops) */
.apply-p {
font-size: 18px;
}

.content-p1,
.content-p2,
.or-p1 {
font-size: 16px;
}

.BDI-h {
font-size: 28px;
}
}

@media (min-width: 992px) and (max-width: 1200px) {
/* Large devices (large desktops) */
.apply-p {
font-size: 20px;
}

.content-p1,
.content-p2,
.or-p1 {
font-size: 18px;
}

.BDI-h {
font-size: 30px;
}
}


    /* Media Queries */
    @media (min-width: 576px) {
        .container-xxl {
            margin-top: 50px;
        }
    }

    @media (min-width: 768px) {
        .card-2,
        .card-3 {
            padding: 20px; /* Adjusted padding */
            width: 90%; /* Adjusted width */
            margin-left: 5%; /* Adjusted margin */
        }
    }

    @media (min-width: 992px) {
        .container-xxl {
            margin-bottom: 50px;
            height: auto;
        }

        .container-xl {
            padding-top: 50px;
        }

        .col-md-8,
        .col-md-4 {
            text-align: left;
        }

        
        .col-lg-4 {
            text-align: center;
        }

        @media (min-width: 576px) {
.container-xxl {
    margin-top: 50px;
}
}

@media (min-width: 992px) {
.container-xxl {
    margin-bottom: 50px;
    height: auto;
}

.container-xl {
    padding-top: 50px;
}
}

    }




@media screen and (max-width: 560px) {
        .cards .card p {
            padding: 0 15px;
            margin-top: 5px;
            font-weight: 600;
            color: #ffffff;
        }
        .cards .card h3 {
            padding: 0 15px;
            margin-top: 5px;
            font-weight: 900;
            color: #000000
        }
        section > p {
            text-align: center;
        }
        section .cards .card {
            width: calc(100% - 20px);
            margin-bottom: 30px;
        }
        .homepage .content h1 {
            font-size: 30px;
        }
        .homepage .content .text {
            font-size: 15px;
        }
        .content a {
            font-size: 15px;
            padding: 9px 15px;
        }
        .container {
            flex-direction: column;
            align-items: center;
        }
        .cda-container,
        .card-1 {
            width: 100%;
            margin-left: 0;
            margin-right: 0;
        }
        section h2 {
            font-size: 1.5rem; /* Adjust font size for smaller screens */
        }


.earn-container .container1 {
flex-direction: column; /* Stack columns vertically on small screens */
align-items: center; /* Center align content */
}

img[alt="CDA Certification Image"] {
max-width: 100%; /* Ensure images don't overflow container */
margin-right: 0; /* Remove right margin */
margin-bottom: 20px; /* Add bottom margin for spacing */
}

.earn-content {
padding: 20px; /* Add padding for better spacing */
}

.apply-container {
flex-direction: column; /* Stack columns vertically on small screens */
align-items: center; /* Center align content */
}

.container2,
.BDI-content {
width: 100%; /* Set width to full width on small screens */
margin-top: 20px; /* Add top margin for spacing */
text-align: center; /* Center align content */
}
}

@media screen and (max-width: 768px) {
/* Adjust header styles for smaller screens */
.homepage {
    background-position: center; /* Center background image on smaller screens */
}

.navbar .all-links {
position: fixed;
left: -100%;
width: 300px;
display: block;
height: 100vh;
top: 75px;
background: #ec671a;
transition: left 0.3s ease;
}

.navbar #menu-toggler:checked~.all-links {
left: 0;
}

.navbar .all-links li {
font-size: 18px;
}

.navbar #hamburger-btn {
display: block;
}


section > p {
text-align: center;
}

section .cards .card {
width: calc(100% - 20px); /* Adjust width and consider margin */
margin-bottom: 30px;
}

.homepage .content h1 {
font-size: 30px; /* Adjust font size for smaller screens */
}

.homepage .content .text {
font-size: 15px; /* Adjust font size for smaller screens */
}

.content a {
font-size: 15px; /* Adjust font size for smaller screens */
padding: 9px 15px; /* Adjust padding for smaller screens */
}

.container {
flex-direction: column; /* Stack columns vertically on small screens */
align-items: center; /* Center align content */
}

.cda-container,
.card-1 {
width: 100%; /* Set width to full width on small screens */
margin-left: 0; /* Remove left margin */
margin-right: 0; /* Remove right margin */
}

.earn-container .container1 {
flex-direction: column; /* Stack columns vertically on small screens */
align-items: center; /* Center align content */
}

img[alt="CDA Certification Image"] {
max-width: 100%; /* Ensure images don't overflow container */
margin-right: 0; /* Remove right margin */
margin-bottom: 20px; /* Add bottom margin for spacing */
}

.earn-content {
padding: 20px; /* Add padding for better spacing */
}

.apply-container {
flex-direction: column; /* Stack columns vertically on small screens */
align-items: center; /* Center align content */
}

.container2,
.BDI-content {
width: 100%; /* Set width to full width on small screens */
margin-top: 20px; /* Add top margin for spacing */
text-align: center; /* Center align content */
}
}

/* Adjust navigation styles for smaller screens */
nav ul li {
display: block;
margin-bottom: 5px;
}

/* Adjust footer styles for smaller screens */
footer {
padding: 10px;
}


@media screen and (max-width: 1024px) {
/* Add your responsive styles for 1024px here */
.container {
max-width: 90%; /* Adjust container width for 1024px */
}

.cda-container,
.card-1 {
width: 100%; /* Set width to full width on 1024px screens */
margin-left: 0; /* Remove left margin */
margin-right: 0; /* Remove right margin */
}

.earn-container .container1 {
flex-direction: column; /* Stack columns vertically on 1024px screens */
align-items: center; /* Center align content */
}

.container2,
.BDI-content {
width: calc(50% - 150px); /* Adjust width and consider margin/padding */
box-sizing: border-box; /* Include padding and border in the width */
float: right; /* Float to the right on 1024px screens */
text-align: center; /* Center align the content */
margin-top: 100px; /* Adjust margin top for 1024px screens */
}
}

@media screen and (max-width: 820px) {
/* Add your responsive styles for 820px here */
.container {
max-width: 85%; /* Adjust container width for 820px */
}

.cda-container,
.card-1 {
width: 100%; /* Set width to full width on 820px screens */
margin-left: 0; /* Remove left margin */
margin-right: 0; /* Remove right margin */
}

.earn-container .container1 {
flex-direction: column; /* Stack columns vertically on 820px screens */
align-items: center; /* Center align content */
}

.container2,
.BDI-content {
width: 100%; /* Set width to full width on 820px screens */
margin-top: 100px; /* Adjust margin top for 820px screens */
text-align: center; /* Center align the content */
}
.cda-h{
text-align: center;
}

/* Media Queries */
@media screen and (max-width: 576px) {
/* Extra small devices (phones) */
.apply-p {
    font-size: 14px;
}

.content-p1,
.content-p2,
.or-p1 {
    font-size: 12px;
}

.BDI-h {
    font-size: 24px;
}

.list-group-item.card-3 {
    margin-left: 0; /* Reset margin for smaller screens */
}
}

@media screen and (min-width: 576px) and (max-width: 768px) {
/* Small devices (tablets) */
.apply-p {
    font-size: 16px;
}

.content-p1,
.content-p2,
.or-p1 {
    font-size: 14px;
}

.BDI-h {
    font-size: 26px;
}

.list-group-item.card-3 {
    margin-left: 20px; /* Add margin between card-2 and card-3 */
}
}

@media screen and (min-width: 768px) and (max-width: 992px) {
/* Medium devices (desktops) */
.apply-p {
    font-size: 18px;
}

.content-p1,
.content-p2,
.or-p1 {
    font-size: 16px;
}

.BDI-h {
    font-size: 28px;
}

.list-group-item.card-3 {
    margin-left: 20px; /* Add margin between card-2 and card-3 */
}
}

@media screen and (min-width: 992px) and (max-width: 1200px) {
/* Large devices (large desktops) */
.apply-p {
    font-size: 20px;
}

.content-p1,
.content-p2,
.or-p1 {
    font-size: 18px;
}

.BDI-h {
    font-size: 30px;
}

.list-group-item.card-3 {
    margin-left: 20px; /* Add margin between card-2 and card-3 */
}
}
@media (max-width: 992px) {
    .col-md-4.offset-md-1 {
      margin-top: -60px;  /* Add margin at the top for spacing */
    }
}

@media (max-width: 768px) {
    .col-md-4.offset-md-1 {
      margin-top: -60px;  /* Add margin at the top for spacing */
    }
}

@media (max-width: 576px) {
    .col-md-4.offset-md-1 {
        margin-top: -60px; /* Add margin at the top for spacing */
    }

}


}