* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #333;
}


/* nav bar */


:root{
  --primary-color:hsla(210, 40%, 96%, 0.644);
  --nav-color: rgba(255, 255, 255, 0.904);
  --text-color: 212121;
  --shodow-color:rgba(0, 0, 0, 0.863);
  --sign-color:#1d1d1d;
}

.dark-theme{
  --primary-color:hsla(223, 84%, 5%, 0.945);
  --text-color: rgba(255, 255, 255, 0.952);
  --nav-color:hsla(223, 84%, 5%, 0.973);
  --shodow-color: rgba(250, 56, 250, 0.726);
  --sign-color:#2563eb;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--nav-color);
  padding: 15px 20px;
  position: fixed;
  width: 100%;
  height: 60px;
  top: 0;
  z-index: 1000;
}


.navbar.blur {
  backdrop-filter: blur(4px);
  background-color: var(--nav-color); 
  box-shadow: 0 2px 10px var(--nav-color);
}


.logo {
  margin-left: 5%;
}

.nav_logo1 {
  height: 75px;
  width: 95px;
}

.nav-links {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
  transition: background-color 0.5s, backdrop-filter 0.5s;
}

.nav-links li {
  margin: 0 8px;
}

.nav-links li a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 15px;
  transition: 0.3s;
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #4083ff;
  transition: 0.3s;
  transform: translateX(-50%);
}

.nav-links li a:hover::after {
  width: 100%;
}

.nav-links li a:hover {
  color: #4083ff;
}

.nav-right {
  display: flex;
  align-items: center;
}

.search-bar {
  background-color: var(--primary-color);
  padding: 10px 13px;
  border: 1px solid var(--text-color);
  border-radius: 5px;
  margin-right: 15px;
  color: var(--text-color);
}



.theme-btn {
  border-color: var(    --text-color);
  border-radius: 5px;
  background: var(--primary-color);
  cursor: pointer;
  font-size: 16px;
  padding: 2.5px 7px;
  margin-right: 15px;
  margin-left: 3px;
}

.theme-btn:hover {
  transition: 0.5s;
  background-color: #deeffd;
}

.sun-icon{
  height: 25px;
  width: 25px;
}

.contact-btn {
  background: #4083ff;
  color: white;
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s;
}

.contact-btn:hover {
  padding: 10px 17px;
}

.nav-actions {
  display: flex;
  align-items: center;
}

.hamburger {
  display: none;
  cursor: pointer;
  position: relative;
  width: 30px;
  height: 30px;
  z-index: 1001; /* Higher than nav-links */
  color: var(--text-color);
}

.hamburger .menu-icon,
.hamburger .close-icon {
  stroke: var(--shodow-color); /* Change to your desired color */
}

.hamburger .menu-icon {
  display: block;
}

.hamburger .close-icon {
  display: none;
}

.hamburger.active .menu-icon {
  display: none;
}

.hamburger.active .close-icon {
  display: block;
}

.mobile-contact-btn {
  display: none;
}

.search-container {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
      display: block;
      margin-right: 5%;
  }

  .nav-actions {
      display: flex;
      align-items: center;
  }

  .mobile-contact-btn {
      display: block;
      margin-right: 15px;
      background: #4083ff;
      color: white;
      padding: 8px 15px;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      font-size: 16px;
      transition: 0.3s;
  }

  .mobile-contact-btn:hover {
      padding: 10px 17px;
  }

  .nav-links {
      position: fixed;
      top: 0;
      right: -80%;
      width: 80%;
      height: 100vh;
      background: var(--nav-color);
      padding: 20px;
      box-shadow: -4px 0 8px rgba(0, 0, 0, 0.1);
      z-index: 999;
      flex-direction: column;
      transition: right 2s ease-in-out;
  }

  .nav-links.active {
      right: 0;
  }

  .nav-links li {
      margin: 15px 0;
      text-align: left;
  }

  .nav-right {
      display: none;
  }

  .search-container {
      display: flex;
      align-items: center;
      margin-top: 20px;
  }

  .search-container .search-bar {
      width: 70%;
  }

  .search-container .theme-btn {
      margin-left: 10px;
  }

  .overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 20%;
      height: 100vh;
      background: rgba(0, 0, 0, 0.3);
      z-index: 998;
  }

  .overlay.active {
      display: block;
  }
}

@media (max-width: 480px) {
  .nav_logo1 {
      height: 50px;
      width: 60px;
  }

  .navbar {
      height: 50px;
      padding: 10px 15px;
  }

  .mobile-contact-btn {
    padding: 4px 15px;
    font-size: 12px;
  }
}


/* content */



.container {
  width: 100%;
  margin-top: 60px;
  padding-top: 100px;
  padding: 2rem 1rem;
}

.section-header {
  text-align: center;
  background-color: var(--nav-color);
}

.section-header h2 {
  font-size: 2.9rem;
  color: var(--text-color);
  font-weight: 700;
}

.section-header p {
  font-size: 1.3rem;
  color: #64748B;
  margin-top: 0.5rem;
}

.blog-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 20px 30px;
  width: 100%;
}

.blog-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--shodow-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.card-image {
  position: relative;
  height: 200px;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}


.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1; /* ✅ Now image will look sharp and normal */
}
.badge {
  position: absolute;
  top: 9rem;
  left: 2rem;
  background-color: #3f83f8;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
  justify-content: space-between;
  background-color: var(--primary-color);
}

.card-content h3 {
  font-size: 1.3rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.card-content p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.25rem;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #888;
  transition: transform 0.3s ease-in-out;
}

.blog-card:hover .card-footer a {
  transform: translateX(4px);
}
.blog-card:hover .card-content h3{
  color: #2563eb;
  cursor: pointer;
}
.card-footer a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.card-footer a:hover {
  transform: scale(1.1);
}
@media (max-width: 1024px) {

  .container{
    margin-top: 0px;
    padding-top:100px ;
  }
  .blog-cards {
    grid-template-columns: repeat(2, 1fr); /* 2 cards per row on medium screens (like tablets) */
  }
}

@media (max-width: 768px) {
  .blog-cards {
    grid-template-columns: 1fr; /* 1 card per row on small screens (mobile) */
  }
}




  /* footer section */



  hr{
    height: 2px;
    background-color: var(--nav-color);
}

  .footer {
    width: 100%;
    background-color:var(--primary-color);
    padding: 30px 10px 17px;
    
    
  }
  
  .footer-container {
    width: 100%;
    padding: 0 3px; 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    color: #444;
  }
  
  .footer-section{
    padding:20px 0;
  }
  .footer-section h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-color);
    font-family:sans-serif;
  }
  
  .footer-section p {
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
    color:rgb(63, 99, 113);
    font-family: sans-serif;
  }
  
  .footer-section ul {
    list-style: none;
    color: gray;
    /* gap: 23px; */
  }
  
  .footer-section ul li {
    margin-bottom: 8px;
    font-size: 14px;
    color: gray;
    /* gap: 3px; */
  }
  .head a{
    font-size:14px;
    /* font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; */
   
  }
  .head {
    margin-top: 30px;
  }
  .head li {
    padding-bottom:9px;

  }
  
  .footer-section ul li a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s;
    /* gap: 38px; */
  }
  .social-icons i{
    font-style:inherit;
    /* font-size:100px; */
    color: var(--text-color);
  }
  
  .footer-section ul li a:hover {
    color: #1d4ed8;
  }
  .contact {
   padding-top:30px;
  }
  .contact a{
    font-size:18px;
  }
  .contact-info i{
    color: #2563eb;
    font-size: 18px;
    font-style:normal;
  }
  .contact-info li {
    display: flex;
    align-items: center;
    gap: 8px;
    
  }
  .contact-info li a:hover{
    color: #2563eb;
    cursor: pointer;
  }
  .social-icons {
    margin-top: 10px;
    display: flex;
    gap: 15px;
    font-size: 20px;
  }
  
  .social-icons i {
    cursor: pointer;
    transition: transform 0.3s, color 0.3s;
  }
  
  .social-icons i:hover {
    color: #3b82f6;
    transform: scale(1.2);
  }
/* .footer-section .rating-stars i{ */
  /* border:1px  black; */
  /* background-color: #2563eb; */
 
  .rating-stars {
    display: flex;
    gap: 0.3px;
    cursor: pointer;
    
  }
   .star-icon svg{
    border:1px solid black;
  }
  .star-icon {
    width: 30px;
    height: 40px;
   color: #ddd;
    transition: fill 0.3s;
    margin-bottom: -20px;
        
  }
  .star-icon.filled {
    fill:yellow;
  }
  .star-icon.hovered {
    fill: yellow;
  }
  .rating-btn {
    margin-top: 16px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #214CD7;
    color: white;
    width: 23vw;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-align: center;
    align-items: center;
  }

  
  .rating-btn:hover {
    background: linear-gradient(to right, #4338ca, #2563eb);
  }
  
  .feedback-link {
    display: inline-block;
    margin-top: 10px;
    color: #2563eb;
    font-size: 14px;
    margin-left: 120px;
    text-decoration: none;
    text-align: center;
  }
  
  .feedback-link:hover {
    text-decoration: underline;
  }
  
  .footer-bottom {
    margin-top: 2px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
  }

  .footer-bottom p{
    color: var(--text-color);
  }
  
  .footer-bottom a {
    color: #2563eb;
    margin: 0 0px;
    text-decoration: none;
  }
  
  .footer-bottom a:hover {
    text-decoration: underline;
  }
  
  @media (min-width: 768px) {
    .footer-bottom {
      flex-direction: row;
      justify-content: space-between;
    }
  }
    @media (min-width:650px) {
  .footer-section  .rating-btn {
     
  .feedback-link{
    text-align: center;
    align-items: center;
  } 
    }
}
  