/*Importing Google fonts */
@import url('https://fonts.googleapis.com/css2?family=Miniver&family=Poppins:ital,wght@0,400;0,500,0,600;0,700;1,400&display=swap');
  

*{
    margin: 0;
    padding: 0;
    box-sizing: borde-box;
    font-family: "Poppins", sans-serif;
   
}
:root{
    
}

html {
   scroll-behavior: smooth;
}
/* stylings for whole site */
ul{
    list-style: none;
}
a {
    text-decoration: none;
}
button {
    cursor: pointer;
    border: none;
    background: none;
}
img {
    width: 100%;
    
}

.section-content {
    margin: 0 auto;
    padding: 0 80px;
    max-width: var(--site-max-width);
}

.section-title {
   text-align: center;
   padding: 60px 0 100px;
   text-transform: uppercase;
   font-size: var(--font-size-xl);
}

.section-title::after{
   content: "";
   width: 80px;
   height: 5px;
   display: block;
   margin: 10px auto 0;
   border-radius: var(--border-radius-s);
   background: orange;
}
/* navbar styling */

header{
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 5;
    background: Darkblue;
}


header .navbar {
    display: flex;
    padding: 20px;
    align-items: center;
    justify-content: space-between;
}


.navbar .nav-logo .logo-text {
    color: gold;
    font-size: 900;
    font-weight: 900;
    font-family: bodoni;
    background: Darkblue ;
}
.navbar .nav-menu{
    display: flex;
    gap: 10px;
}

.navbar .nav-menu .nav-link {
    padding: 10px 20px;
    color: white;
    font-size: var(--font-size-m);	 
    border-radius: 10px; 
    transition: 0.3s ease;
}

.navbar.openSearch .navbar-links a{
   opacity: 0;
   pointer-events: none;
   transition: all 0.2s linear;
}
.navbar  .nabar-links a{
transition: all 0.2s linear;
}

.navbar .search-icon {
   color: white;
   font-size: 20px;
   cursor: pointer;
}

.navbar .search-box {
   position: absolute;
   right: 2rem;
   height: 45px;
   max-width: 555px;
   width: 50%;
   opacity: 0;
   pointer-events: none;
   transition: all 0.2s linear;
   top: 110%;
   border-radius: .5rem;
   overflow: hidden;
   display: flex;
   align-items: center;
}

.navbar.openSearch .search-box {
   opacity: 1;
   pointer-events: auto;
}
.search-box .search-icon {
   position: absolute;
   left: 1px;
   top: 50%;
   color: black;
   transform: translateY(-50%);
   padding: 0 1.5rem;
    
}
.search-box input {
   height: 100%;
   width: 100%;
   border: none;
   outline: none;
   border-radius: 6px;
   background-color: white;
   padding: 0 15px 0 45px;
   font-size: 1rem;
}


.navbar .nav-menu .nav-link:hover{
    color: purple;
    background: orange;
}

.navbar :where(#menu-close-button, #menu-open-button) {
   display: none;
}

  
body.show-mobile-menu .nav-menu {
  display: flex;
}

/* Blog section styling */

.blog-link {
  display: block;
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #ccc;
  color: black;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.blog-link:hover {
  background-color: #f0f0f0;
}

.blog-posts-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  padding: 15px;
}

.blog-post {
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
  line-height: 2em;
}

.blog-posts-container .blog-post:nth-child(n + 4) {
  display: none;
}

.read-more-button {
  display: inline-block;
  padding: 10px 20px;
  color: #1d7bff;
  border-radius: 5px;
  margin-top: 30px;
  cursor: pointer;
}

.read-more-button:hover {
  color: black;
}

/* Responsive media query code for max width 768px */
@media (max-width: 768px) {
     
    /* Responsive media query code for max width 900px */
@media screen and (max-width:900px) {

   :root {
       --font-size-m: 1rem;
       --font-size-l: 1.3rem;
       --font-size-xl: 1.5rem;
       --font-size-xxl: 1.8rem;
   }

   body.show-mobile-menu header::before {
       content: ;
       position: fixed;
       left: 0;
       top: 0;
       height: 100%;
       width: 100%;
       backdrop-filter: blur(5px);
       background: rgba(0, 0, 0, 0.2);
   }

   .navbar :where(#menu-close-button, #menu-open-button) {
       display: block;
       font-size: large;
   }

   .navbar #menu-close-button {
       position: absolute;
       right: 30px;
       top: 30px;
   }

   .navbar #menu-open-button {
       color: white;
   }
  .navbar .nav-menu {
   display: block;
   position: fixed;
   left: -300px;
   top: 0;
   width: 300px;
   height: 100%;
   display: flex;
   flex-direction: column;
   align-items: center;
   padding-top: 100px;
   background: white;
   transition: left 0.2s ease;
  }

  body.show-mobile-menu .navbar .nav-menu {
   left: 0;
  }

  .navbar .nav-menu .nav-link {
   color: rgb(33, 19, 233);
   font-size: large;
   display: block;
   margin-top: 17px;
   font-size: large;
  }

 
/* Footer Styling */
footer {
  background-color: #0693e3;
  color: #fff;
  padding: 10px 0;
  font-size: 15px;
  line-height: 2;
  width: 100%;
  margin-top: 20px;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  max-width: 2000px;
  margin: 0 auto;
  padding: 0 10px;
}
.footer-section {
  flex: 1;
  min-width: 400px;
  margin-bottom: 10px;
}
.footer-section h3 {
  font-size: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}
.footer-section .contact-info span,
.footer-section.links ul li a,
.footer-bottom,
.footer-bottom a {
  color: white;
  text-decoration: none;
}
.footer-bottom {
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-bottom a:hover,
.footer-section.links ul li a:hover,
.footer-section.social .social-links a:hover {
  color: #f39c12;
}
.footer-section.social .social-links {
  display: flex;
  gap: 15px;
  justify-content: center;
}
.footer-section.social .social-links a {
  font-size: 24px;
  transition: color 0.3s ease;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
  }
  .footer-section {
    width: 100%;
    text-align: center;
  }
}


/* Footer Styling */
footer {
  background-color: #0693e3;
  color: #fff;
  padding: 10px 0;
  font-size: 15px;
  line-height: 2;
  width: 100%;
  margin-top: 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  max-width: 2000px;
  margin: 0 auto;
  padding: 0 10px;
}

.footer-section {
  flex: 1;
  min-width: 400px;
  margin-bottom: 10px;
}

.footer-section h3 {
  font-size: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.footer-section .contact-info span,
.footer-section.links ul li a,
.footer-bottom,
.footer-bottom a {
  color: white;
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom a:hover,
.footer-section.links ul li a:hover,
.footer-section.social .social-links a:hover {
  color: #f39c12;
}

.footer-section.social .social-links {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.footer-section.social .social-links a {
  font-size: 24px;
  transition: color 0.3s ease;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .footer-section {
    width: 100%;
    text-align: center;
    min-width: unset;
  }
}
