/* styles.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    overflow-x: hidden;
}

/* Top Bar Section */

.top-bar-section {
    width: 100%;
    background-color: #4fb649;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 70px;
    position: sticky;
    top: 0px;
    z-index: 1001;
  }
  
  .top-bar-section a {
    color: white;
    height: auto;
    text-decoration: none;
  }
  
  .top-bar-social-icons a {
    height: 20px;
  }
  
  .top-bar-content-section {
    display: flex;
    align-items: center;
    gap: 25px;
  }
  
  .top-bar-content-section p {
    font-size: 16px;
    /* font-weight: 600; */
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  .top-bar-social-icons {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .top-bar-social-icons i {
    font-size: 20px;
  }

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 80px;
    /* background-color: #fff; */
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
    background-color: black;
    position: sticky;
    top: 34px;
    width: 100%;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo img {
    width: 170px;
    height: auto;
}

.logo span {
    color: #ffc107;
}

.nav-links {
    list-style-type: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
}

/* Blog Section */

.blog-section {
    background-color: #f8faff;
    padding: 10px 40px 40px 40px;
}

.blog-section h2{
    font-size: 40px;
    text-align: center;
    margin-bottom: 5px;
}

.blog-section-grid {
    /* display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.blog-section-card {
    width: 23%;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

@media (max-width: 1050px) {
    .blog-section-card{
        width: 31%;
    }
}

@media (max-width: 769px) {
    .blog-section-card{
        width: 48%;
    }
}

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

.blog-section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.blog-section-card-2 {
    /* background-color: #ffffff; */
    overflow: hidden;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-section-card-2:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.blog-section-card-2 iframe{
    width: 100%;
    height: 200px;
    border-radius: 8px;
}

.blog-section-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-section-image-1 {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-section-content {
    padding: 2.5px 10px 10px 10px;
}

.blog-section-category {
    display: block;
    font-size: 12px;
    color: #888888;
    margin-bottom: 5px;
}

.blog-section-date {
    display: block;
    font-size: 12px;
    color: #bbbbbb;
    margin-bottom: 10px;
}

.blog-section-title {
    font-size: 18px;
    color: #333333;
    line-height: 1.4;
    text-align: center;
}

.blog-section-link {
    font-size: 20px;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: color 0.3s ease;
}

.blog-section-link:hover {
    color: #0056b3;
}

/* Modal Styles */
#image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#image-modal img {
    max-width: 90%;
    max-height: 90%;
}

#image-modal .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 50px;
    cursor: pointer;
    background: none;
    border: none;
}

/* Footer Section */

.footer-section {
    background-color: #2C2C2C;
    color: #ffffff;
    padding: 60px 20px;
    background-image: url("/images/footer-background.webp");
    background-size: cover;
}

.footer-middle {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding: 0px 50px;
}

.footer-brand {
    width: 50%;
}

.footer-logo img {
    width: 150px;
    margin-bottom: 10px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
    width: 60%;
    margin-bottom: 10px;
}

.footer-socials a {
    margin-right: 10px;
    font-size: 25px;
    color: #ffffff;
    text-decoration: none;
}

.footer-logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0px;
}

.footer-logo-section img {
    width: auto;
    height: 60px;
    border-radius: 5px;
}

.footer-links {
    flex: 1;
}

.footer-links h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style-type: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
}

.footer-below-box {
    width: 100%;
    padding: 10px;
    background-color: #4fb649;
}

.footer-below-box h3 {
    width: 100%;
    text-align: center;
    color: white;
}

/* Responsive Code */

@media (max-width: 1200px) {

    /* Footer */
    .footer-brand {
        width: 45%;
    }
}

@media (max-width: 769px) {
    /* Top Section */
  .top-bar-section {
    flex-direction: column;
    padding: 5px 10px;
    gap: 10px;
  }

  .top-bar-content-section {
    flex-direction: column;
    gap: 2px;
  }

    /* Footer Section */
    .footer-section {
        padding: 20px;
    }

    .footer-middle {
        flex-direction: column;
        padding: 0px 10px;
        justify-content: center;
        gap: 25px;
    }

    .footer-brand {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .footer-links {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .footer-links h3 {
        margin-bottom: 10px;
    }

    .footer-item .footer-icon i {
        font-size: 30px;
    }

    .footer-links ul li {
        text-align: center;
    }

    .footer-item p {
        font-size: 14px;
    }

    .footer-item h3 {
        font-size: 18px;
    }

    .footer-below-box h3 {
        font-size: 14px;
    }

    .footer-brand p {
        width: 100%;
        text-align: center;
    }

    .footer-brand {
        width: auto;
    }

    .footer-logo-section {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-logo-section img {
        height: 65px;
    }
}

/* Responsive Code */

@media (max-width: 1050px) {
    .nav-links {
        display: none;
    }
}

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .navbar {
        padding: 20px 40px;
    }
}


/* Mobile (max-width: 768px) */
@media (max-width: 768px) {

    /* Navbar */
    .navbar {
        padding: 15px 20px;
        align-items: center;
        top: 90px;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .logo {
        width: 100%;
    }

    .blog-section {
        padding: 10px;
    }

    .blog-section h2 {
        font-size: 30px;
        margin-bottom: 10px;
    }
    .mydict div{
        margin-bottom: 1rem;
    }
}

/* Sidebar */

.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #111;
    overflow-x: hidden;
    transition: 0.5s;
    z-index: 2000;
  }
  
  .sidenav a {
    padding: 8px 8px 8px 22px;
    text-decoration: none;
    font-size: 20px;
    color: #818181;
    display: block;
    transition: 0.3s;
  }
  
  .sidenav a:hover {
    color: #f1f1f1;
  }
  
  .sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 10px;
    font-size: 36px;
    margin-left: 50px;
  }
  
  @media screen and (max-height: 450px) {
    .sidenav {
        padding-top: 15px;
    }
  
    .sidenav a {
        font-size: 18px;
    }
  }
  
  .sidebar-logo-img {
    width: 150px;
    margin-top: 10px;
  }
  
  .sidebar-open {
    display: none !important;
    color: white;
    font-size: 25px;
    cursor: pointer;
  }
  
  @media (max-width:900px) {
    .sidebar-open {
        display: block !important;
    }
  }
  
  .sidebar-nav{
    color: white;
    font-size: 25px;
    display: none !important;
    cursor: pointer;
  }
  
  @media (max-width:1050px) {
    .sidebar-nav{
        display: block !important;
    }
  }

  /* Whatsapp Button */

.whatsapp-btn{
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 10000;
  }
  
  .whatsapp-btn img{
    width: 70px;
    height: auto;
  }
  
  @media (max-width: 600px) {
    .whatsapp-btn img{
        width: 60px;
        height: auto;
    }
  }