* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

.header {
    background-color: #0a1c30;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 50px;
    margin: 0;
}

.header .logo {
    display: flex;
    align-items: center;
}

.header .logo h1 {
    font-size: 24px;
    color: orange;
    margin-left: 10px;
    margin-top: 25px;
}

.header .logo span {
    color: #1da1f2;
}

.header nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
}

/* From Uiverse.io by shah1345 */ 
.button2 {
    display: inline-block;
    transition: all 0.2s ease-in;
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: #090909;
    padding: 8px 30px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 0.5em;
    background: #e8e8e8;
  }
  
  .button2:active {
    color: #666;
  }
  
  .button2:before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scaleY(1) scaleX(1.25);
    top: 100%;
    width: 140%;
    height: 180%;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: block;
    transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
    z-index: -1;
  }
  
  .button2:after {
    content: "";
    position: absolute;
    left: 55%;
    transform: translateX(-50%) scaleY(1) scaleX(1.45);
    top: 180%;
    width: 160%;
    height: 190%;
    background-color: #009087;
    border-radius: 50%;
    display: block;
    transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
    z-index: -1;
  }
  
  .button2:hover {
    color: #ffffff;
    border: 1px solid #009087;
  }
  
  .button2:hover:before {
    top: -35%;
    background-color: #009087;
    transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
  }
  
  .button2:hover:after {
    top: -45%;
    background-color: #009087;
    transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
  }
  

.course-packages {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.package {
    width: 150px;
    padding: 15px;
    background-color: #333;
    border-radius: 8px;
    color: white;
    text-align: center;
}

.package h3 {
    color: #f5c518;
    margin-bottom: 5px;
}


footer {
    background-color: #f8f8f8;
    padding: 20px;
    text-align: center;
    font-size: 18px;
    color: #333;
}
/* footer */
.main-footer {
    background-color: #0a1c30;
    color: white;
    padding: 20px 30px;
    font-size: 14px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    /* max-width: 1200px; */
    margin: 0 auto;
    width: 100%;
}

.footer-logo {
    max-width: 250px;
}

.footer-logo h1 {
    color: orange;
    font-size: 24px;
    margin-bottom: 5px;
}

.footer-logo span {
    color: #1da1f2;
}

.footer-logo p {
    margin: 8px 0;
    line-height: 1.5;
}

.social-icons a {
    color: #f0f0f0;
    margin: 0 5px;
    font-size: 20px;
    text-decoration: none;
}

.footer-section {
    max-width: 200px;
    margin-top: 20px;
}

.footer-section h3 {
    color: #f5c518;
    margin-bottom: 10px;
}

.footer-section p {
    margin: 8px 0;
}

.footer-section a {
    color: #b0b0b0;
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding: 15px;
    background-color: #081a2b;
    font-size: 13px;
}

.footer-bottom span {
    color: orange;
}
/* popup error or success */
.popup {
    font-size: 12px;
    padding: 8px;
    max-width: 90%;
    width: 40%;
    left: 5%;
  }
/* Side Navigation CSS */
.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #17202a;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

.sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

.sidenav a:hover {
    color: #f1f1f1;
}

.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

#main {
    transition: margin-left 0.5s;
    margin-left: 0;
    padding: 0px;
}

@media screen and (max-height: 450px) {
    .sidenav {padding-top: 15px;}
    .sidenav a {font-size: 18px;}
}
/* responsiveness code */
/* Responsive CSS */

/* General adjustments */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header nav {
        display: none; /* Hide nav links on smaller screens */
    }

    /* Show a menu icon instead of nav links */
    .header .menu-icon {
        display: block;
        cursor: pointer;
    }
    
    /* Hero Section */
    .hero-content h2 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .course-packages {
        flex-direction: column;
        align-items: center;
    }

    .package {
        width: 90%;
        margin-bottom: 20px;
    }
    .packages-container {
        flex-direction: column; /* Stack packages vertically on smaller screens */
        align-items: center; /* Center align packages */
    }

    .package-box {
        width: 90%; /* Full width on small screens */
        margin-bottom: 20px; /* Space below each package */
    }
}

/* Mobile-specific adjustments */
@media (max-width: 480px) {
    /* Logo and footer adjustments */
    .header .logo h1 {
        font-size: 20px;
    }

    .hero-content h2 {
        font-size: 24px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        max-width: 100%;
        text-align: center;
        margin-top: 20px;
    }

    .footer-logo img {
        width: 50px;
    }

    .footer-bottom p {
        font-size: 12px;
    }

    /* Sidenav adjustments */
    .sidenav a {
        font-size: 18px;
        padding: 8px;
    }

    .sidenav .closebtn {
        font-size: 24px;
    }
}

/* left to right image */
.full-width-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    
}

/* scrolled numbers */
.main-container {
    width: 100%;
    background-color: #ffffff;
    background-image: url('bg.jpg');
    margin-top: 20px;
    margin: 0 auto;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1); /* Optional shadow for main box */
    text-align: center;
}
h1 {
    font-family: 'Arial', sans-serif;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.stats-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    max-width: 100%;
    /* padding: 30px; */
    flex-wrap: wrap;
}

.stat-box {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-right: 20px;
    padding: 20px;
    text-align: center;
    width: 260px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Bottom shadow for each box */
    transition: transform 0.3s;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.icon {
    width: 70px;
    height: 70px; 
    border-radius: 50%; 
    background-color: #f0f0f0; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0 auto; 
    overflow: hidden; 
}
.plus {
    font-weight: bold;
    color: lightblue;
    margin-left: 5px; 
}

.counter {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.stat-box:nth-child(1) { border-top: 3px solid #5bc0de; }
.stat-box:nth-child(2) { border-top: 3px solid #6f42c1; }
.stat-box:nth-child(3) { border-top: 3px solid #f0ad4e; }
.stat-box:nth-child(4) { border-top: 3px solid #5cb85c; }

/* course picture */
.secondary-container {
    width: 100%;
    margin-top: 20px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 20px;
    /* box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1); Optional shadow for main box */
    text-align: center; /* Center align text */
}

h1 {
    font-family: 'Arial', sans-serif;
    font-size: 2.5em;
    margin-bottom: 40px; /* Space below the title */
}

.packages-container {
    display: flex; /* Use flexbox for layout */
    justify-content: center; /* Center items horizontally */
    gap: 20px; /* Space between package boxes */
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
}

.package-box {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    width: 260px; /* Fixed width for each package box */
    text-align: center; /* Center text in each box */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Shadow for each box */
    transition: transform 0.3s; /* Add a transition effect */
}

.package-box:hover {
    transform: translateY(-5px); /* Lift effect on hover */
}

.package-image {
    width: 100%; /* Responsive image width */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px; /* Round corners of the image */
}

h2 {
    font-size: 1.5em; /* Size for course name */
    margin: 10px 0; /* Space above and below course name */
}

.price {
    font-size: 1.2em; /* Size for price */
    color: #333; /* Color for price */
    margin: 10px 0; /* Space above and below price */
}

.buy-button {
    padding: 10px 20px; /* Button padding */
    background-color: #5bc0de; /* Button color */
    border: none; /* Remove border */
    border-radius: 5px; /* Round corners */
    color: white; /* Text color */
    font-size: 1em; /* Button font size */
    cursor: pointer; /* Change cursor on hover */
    transition: background-color 0.3s; /* Transition effect */
}

.buy-button:hover {
    background-color: #46b8da; /* Darker shade on hover */
}

/* hover effect about our packages silver, gold, diamond etc */
.package-hover-container {
    width: 100%;
    margin: 20px auto;
    background-image: url('bg.jpg');
    padding: 20px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0px 4px 12px rgba(255, 255, 255, 0.1);
    text-align: center;
}

h1 {
    font-family: 'Arial', sans-serif;
    font-size: 2.5em;
    margin-bottom: 40px;
}

/* Flex container for all cards */
/* Container Styles */
.package-hover-container {
    text-align: center;
    padding: 20px;
}

h1 {
    margin-bottom: 20px;
}

/* Card Container Styles */
.package-category-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.card {
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
    padding: 20px;
    width: 250px;
    height: fit-content;
    gap: 30px;
    text-align: center;
}

/* Centering h2 and Left-Aligning p Tags */
.card h2 {
    margin: 0 0 15px 0; /* Space below the h2 */
    text-align: center;
    font-size: 1.2em;
}

.card p {
    text-align: left;
    margin: 10px 0;
    font-size: 0.9em;
    color: #555;
    display: flex;
    align-items: center;

    gap: 12px;
}
.card p::before {
    content: "✓";
    color: #0d34e2; 
    font-weight: bold;
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid #0d34e2;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .package-category-container {
        flex-wrap: wrap; /* Allow wrapping */
        flex-direction: column; /* Stack cards in a column */
        align-items: center; /* Center-align cards */
    }

    .card {
        width: 80%; /* Full width on small screens */
        height: auto;
        margin-bottom: 20px; /* Space between stacked cards */
    }

    h1 {
        font-size: 2em; /* Adjust title size */
    }
}

/* Social Medias icons on the footer */
/* From Uiverse.io by wilsondesouza */ 
ul {
    list-style: none;
  }
  
  .example-2 {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .example-2 .icon-content {
    margin: 0 10px;
    position: relative;
  }
  .example-2 .icon-content .tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    padding: 6px 10px;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    font-size: 14px;
    transition: all 0.3s ease;
  }
  .example-2 .icon-content:hover .tooltip {
    opacity: 1;
    visibility: visible;
    top: -50px;
  }
  .example-2 .icon-content a {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: #4d4d4d;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
  }
  .example-2 .icon-content a:hover {
    box-shadow: 3px 2px 45px 0px rgb(0 0 0 / 12%);
  }
  .example-2 .icon-content a svg {
    position: relative;
    z-index: 1;
    width: 20px;
    height: 20px;
  }
  .example-2 .icon-content a:hover {
    color: white;
  }
  .example-2 .icon-content a .filled {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #000;
    transition: all 0.3s ease-in-out;
  }
  .example-2 .icon-content a:hover .filled {
    height: 100%;
  }
  
  .example-2 .icon-content a[data-social="linkedin"] .filled,
  .example-2 .icon-content a[data-social="linkedin"] ~ .tooltip {
    background-color: #0274b3;
  }
  
  .example-2 .icon-content a[data-social="github"] .filled,
  .example-2 .icon-content a[data-social="github"] ~ .tooltip {
    background-color: #24262a;
  }
  .example-2 .icon-content a[data-social="instagram"] .filled,
  .example-2 .icon-content a[data-social="instagram"] ~ .tooltip {
    background: linear-gradient(
      45deg,
      #405de6,
      #5b51db,
      #b33ab4,
      #c135b4,
      #e1306c,
      #fd1f1f
    );
  }
  .example-2 .icon-content a[data-social="youtube"] .filled,
  .example-2 .icon-content a[data-social="youtube"] ~ .tooltip {
    background-color: #ff0000;
  }
  /* fourth container */
  .fourth-container {
    width: 100%;
    margin-top: 20px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 20px;
    /* box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1); Optional shadow for main box */
    text-align: center; /* Center align text */
}

h1 {
    font-family: 'Arial', sans-serif;
    font-size: 2.5em;
    margin-bottom: 40px; /* Space below the title */
}

.fourth-packages-container {
    display: flex; /* Use flexbox for layout */
    justify-content: center; /* Center items horizontally */
    gap: 20px; /* Space between package boxes */
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
}
/* here is card 2 */
/* From Uiverse.io by EmmaxPlay */ 
/* From Uiverse.io by Yaya12085 */ 
.card2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    width: 290px;
    padding: 20px 1px;
    margin: 10px 0;
    text-align: center;
    position: relative;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(33,150,243,.4),0 4px 6px -4px rgba(33,150,243,.4);
    border-radius: 10px;
    background-color: #6B6ECC;
    background: linear-gradient(45deg, #04051dea 0%, #2b566e 100%);
  }
  
  .content {
    padding: 20px;
  }
  
  .content .description {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
  }
  
  .content .title {
    font-weight: 800;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.64);
    /* margin-top: 10px; */
    /* margin: auto; */
    font-size: 25px;
    /* font-weight: bold; */

    letter-spacing: 1px;
  }
  /* top courses buy now button */
/* From Uiverse.io by ferlagher */ 
button {
    position: relative;
    font-size: 1em;
    padding: 0.7em 1.4em;
    background-color: #BF0426;
    text-decoration: none;
    border: none;
    border-radius: 0.5em;
    color: #ffffff;
    box-shadow: 0.5em 0.5em 0.5em rgba(0, 0, 0, 0.3);
  }
  
  button::before {
    position: absolute;
    content: '';
    height: 0;
    width: 0;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, rgb(255, 255, 255) 0%, rgb(255, 255, 255) 50%, rgba(150,4,31,1) 50%, rgba(191,4,38,1) 60%);
    border-radius: 0 0 0.5em 0;
    box-shadow: 0.2em 0.2em 0.2em rgba(0, 0, 0, 0.3);
    transition: 0.3s;
  }
  
  button:hover::before {
    width: 1.6em;
    height: 1.6em;
  }
  
  button:active {
    box-shadow: 0.2em 0.2em 0.3em rgba(0, 0, 0, 0.3);
    transform: translate(0.1em, 0.1em);
  }
  
.tertiary-container {
    width: 100%;
    margin: 0 auto;
    /* padding: 20px; */
    text-align: center;
}
.tertiary-container h1{
    margin-top: 40px;
}

/* Third Package Container */
.third-package-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Package Box */
.package-box3 {
    flex: 1;
    margin-left: 100px;
}

/* Image Styling */
.package-image2 {
    width: 100%; /* Full width of the container */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px; /* Rounded corners */
}

/* Content Styling */
.content2 {
    flex: 2; /* Allow the text container to grow more */
    padding-left: 20px; /* Space between image and text */
    text-align: left; /* Left align the text */
}

.content2 h2{
    text-align: center;
}
.content2 p{
    margin-right: 80px;
    font-weight: 100;
    margin-left: 30px;
    gap: 5px;
    color: #090909;
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .third-package-container {
        flex-direction: column; /* Stack image and content on smaller screens */
        align-items: center;
        padding: 10px;
    }

    .package-box3 {
        margin-left: 0; /* Remove left margin for smaller screens */
        width: 80%; /* Adjust width for smaller screens */
    }

    .content2 {
        padding-left: 0;
        width: 90%; /* Adjust width for smaller screens */
        margin-top: 20px; /* Add space between image and text content */
    }

    .content2 p {
        margin: 5px 20px; /* Reduce horizontal margins */
        font-size: 0.95em; /* Slightly smaller font for smaller screens */
        text-align: center;

    }
}

@media (max-width: 480px) {
    .content2 p {
        margin: 5px 10px; /* Further reduce margins on very small screens */
        font-size: 0.9em;
        text-align: center;
    }
}