*{
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  }
body {
    
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

body img {
    max-width: 100vw !important;
}

.blog-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.blog-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 15px;
    padding: 20px;
    overflow: hidden;
    cursor: pointer;
    width: 27%;
    height: fit-content;
    transition: transform 0.2s;
}

body.dark-mode .blog-card {
    background-color: #333;
}

body.dark-mode .blog-card .excerpt,
body.dark-mode .blog-card .save-btn {
    color: #fff;
}

.saved-blogs {
    display: flex; 
    align-items: center; 
    background-color: #f0f0f0; /* Gray background */
    color: #333; /* Dark text color */
    padding: 10px 20px; 
    border-radius: 25px; /* Rounded corners */
    text-decoration: none; /* No underline by default */
    font-family: Arial, sans-serif; 
    transition: background-color 0.3s, transform 0.3s; /* Transition effects */
    position: relative; /* For positioning the arrow */
}
.dark-mode .saved-blogs {
    background-color: #333; /* Dark mode background color */
    color: #fff; /* Dark mode text color */
}
.dark-mode .saved-blogs:hover {
    background: linear-gradient(135deg, #444, #333); /* Dark mode tag hover background */
}


.saved-blogs i {
    margin-left: 10px; /* Space between text and arrow */
    transition: transform 0.3s; /* Transition for arrow movement */
}

.saved-blogs:hover {
    background-color: #e0e0e0; /* Slightly darker gray on hover */
    transform: scale(1.02); /* Slight scale effect on hover */
    text-decoration: none; /* Ensure no underline on hover */
}

.saved-blogs:hover i {
    transform: translateX(5px); /* Move arrow to the right on hover */
}

body.dark-mode .saved-blogs {
    color: #d5d5d5;
}

.blog-card .image-wrapper {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 12px;
}

/* .blog-card:hover {
    transform: scale(1.15);
} */

.blog-card img {
    scale: 1.15;
    width: 100%;
    height: 100%;
    transition: 0.3s ease-in-out;
}

.blog-card img:hover {
    scale: 1;
}

.blog-card-content {
    padding: 20px 10px;
}

.blog-card .category {
    color: #ff4383;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.blog-card .blogtitle {
    font-size: 18px;
    margin: 10px 0;
    transition: 0.5s ease-in-out;
}

.blog-card .blogtitle:hover {
    color: #ff4383;
}

.blog-card .meta {
    color: #999;
    font-size: 14px;
    margin: 5px 0;
}

.blog-card .excerpt {
    font-size: 14px;
    color: #333;
    margin: 15px 0;
}

.blog-card .read-more {
    display: block;
    width: fit-content;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    margin: 10px 0 0;
    font-size: 14px;
}

.blog-card .read-more:hover {
    background-color: #0056b3;
}

#categoryTags {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tag {
    padding: 10px 20px;
    font-size: 1.1em;
    background: linear-gradient(135deg, #f0f0f0, #dcdcdc); /* Light mode tag background */
    color: #333333; /* Light mode text color */
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
}
.dark-mode .tag {
    background: linear-gradient(135deg, #333, #222); /* Dark mode tag background */
    color: #fff; /* Dark mode text color */
}
.dark-mode .tag:hover {
    background: linear-gradient(135deg, #444, #333); /* Dark mode tag hover background */
}

.tag:hover {
    background: linear-gradient(135deg, #e0e0e0, #c0c0c0);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}


.tag.active {
    background: linear-gradient(135deg, #ffc107, #ff9800); /* Active tag styling */
    color: #fff; /* Active tag text color */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .tag {
        padding: 8px 15px;
        font-size: 1em;
    }
}



@media (max-width:976px) {
    .blog-card {
        width: 40%;
    }
}

@media (max-width:768px) {
    .blog-card {
        width: 100%;
    }

    .ways-content {
        padding: 0 !important;
    }
}


.certificate {
    width: 100%;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
}

.certificate-left {
    width: 40%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.ways {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;

}

.ways-content {
    padding: 60px;
    padding-top: 30px;
}

.ways-content h1 {
    font-size: 50px !important;
}

.ways-content p {
    font-size: 20px !important;
}

.ways img {
    object-fit: contain !important;
    border-radius: 20px;
}

.ways1 {
    width: 80%;
    display: flex;
    /* flex-wrap: wrap; */
    margin-top: 20px;
    margin-bottom: 20px !important;
}
.dark-mode .ways1 a{
    color: white !important;
}
.dark-mode .ways2 a{
    color: white !important;
}

.ways2 {
    width: 80%;
    display: flex;
    flex-direction: row-reverse;
    margin-top: 30px;
    /* flex-wrap: wrap; */
    margin-bottom: 30px !important;
}

@media only screen and (max-width:1400px) {
    .certificate-left {
        width: 80%;
    }

    .certificate-right {
        width: 100%;
        height: auto;
    }

    .ways1,
    .ways2 {
        justify-content: center;
        flex-wrap: wrap;
    }

    .ways1,
    .ways2 {
        padding: 0px !important;
        text-align: center;
    }
}

@media only screen and (max-width:600px) {
    .ways img {
        object-fit: inherit;
        scale: 0.60 !important;
    }
}

.ways a:hover {
    text-decoration: underline;
}

.ways a {
    font-size: 30px;
    text-decoration: none;
    color: black;
    font-weight: 600;
}

.certificate-left h1 {
    font-size: 30px;
    text-align: start;
}

.certificate-left p {
    font-size: 20px;
    text-align: start;

}

.certificate-right {
    width: 40%;
    height: 400px;
}



/* Popup container */
.popup {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1500;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: hidden;
    /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.5);
    /* Black with opacity */
}

/* Popup content */
.popup-content {
    background-color: #fefefe;
    display: flex;
    max-width: 700px;
    margin: 10% auto;
    /* 15% from the top and centered */

    border: 1px solid #888;
    width: 80%;
    /* Could be more or less, depending on screen size */
    position: relative;
    border-radius: 20px;
}

.main-popup-content .card-footer a:hover{
    color: blue !important;
    /* padding: 10px; */
}

/* Dark Mode */
.dark-mode .main-popup-content, 
.dark-mode .side-content{
    background-color: black;
}

.dark-mode .main-popup-content i,
.dark-mode .main-popup-content span,
.dark-mode .main-popup-content h1,
.dark-mode .main-popup-content p,
.dark-mode .main-popup-content a,
.dark-mode .main-popup-content .card-footer,
.dark-mode .main-popup-content .side-content {
    color: white !important;
}

/* Light Mode */
.main-popup-content {
    background-color: white;
}

.main-popup-content i,
.main-popup-content span,
.main-popup-content h1,
.main-popup-content a,
.main-popup-content .card-footer{
    color: black !important;
}

.line {
    width: 100px;
    border-right: solid 1px black;
    border-right-style: dashed;
}

/* Close button */
.popup-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 10px;
}

.popup-close:hover,
.popup-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Button inside popup */
.popup-button {
    background-color: #4CAF50;
    /* Green */
    border: none;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px 2px;
    cursor: pointer;
}

.popup-button:hover {
    background-color: #45a049;
}

.main-popup-content {
    padding-left: 20px;
    padding-top: 20px;
    width: 500px;
    height: 417px;

}

.main-popup-content h1 {
    margin-bottom: 40px;
}

.call {
    display: flex;
    height: 70px;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    font-size: 20px;
    color: black;
}

.card-footer {
    height: 80px;
    padding-bottom: 20px;
    font-size: 20px;
}

.card-footer a {
    text-decoration: none;
    color: black;
}

.side-content {
    height: 100%;
    display: flex;
    width: 300px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    height: 417px;
}

.side-content svg {
    position: relative;
    top: 100px;
}

@media only screen and (max-width:700px) {
    .side-content {
        height: auto;
    }

    .main-popup-content {
        height: auto;
    }

    .main-popup-content h1 {
        font-size: 30px !important;
        margin-bottom: 10px;
    }

    .main-popup-content p {
        margin-bottom: 4px;
    }

    .call {
        flex-direction: column;
        gap: 10px;
        align-items: start;
    }

    .popup-content {
        margin: 15% auto;
        width: 95vw;
    }
}

/* .dark-mode .main-popup-content h1 {
    color: black !important;
}

.dark-mode .card-footer p {
    color: black !important;
} */

.blog-save {
    display: flex;
    justify-content: space-between;
}

.save-btn {
    display: flex;
    gap: 10px;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    color: rgb(69, 69, 69);
    font-size: 20px;
    font-weight: 500;
}

.saved-blogs {
    font-size: 20px;
    text-align: center;
    text-decoration: none;
    color: rgb(61, 61, 61);
}

.saved-blogs:hover {
    text-decoration: underline;
}


/* Toast Notification Styles */
/* #toast-container {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
  }
  
  .toast {
    display: none;
    min-width: 200px;
    margin-bottom: 10px;
    padding: 15px;
    top: 30px;
    color: #fff;
    border-radius: 5px;
    font-size: 14px;
    position: relative;
    padding: 18px !important;
  
  }
  .line{
    position: absolute;
    bottom: -20px;
    z-index: 10000;
    left: 0px;
    height: 4px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background-color: green;
    animation: line-animate 2s ease-in-out forwards;
  }
  @keyframes line-animate {
      from{
        width: 0px;
      }to{
        width: 100%;
      }
  }
  .toast.show {
    display: block;
    animation: fadeInOut 3s ease-out;
  }
  
  .toast.like {
    background: #12229d;
    color: #fff;
    
    font-size: 12px;
    font-size: 15px;
    text-align: center;
    font-weight: 600;
    min-width: 200px;
    right: 0;
    width: 22vw;
    padding: 10px;
  
  }
  
  .toast.unlike {
    background-color: #F44336;
  }
  
  @keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
  }
  
  .toast .close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
  }
   */

#progressBarContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 7px;
    background-color: #333;
    z-index: 9999;
}

#progressBar {
    height: 100%;
    width: 0%;
    background: white;
    transition: width 0.2s ease;
}