

body {
  
  font-family: Arial, sans-serif;
  margin: 0;
}
 .navbar {
    
  font-family: 'Times New Roman', Times, Georgia, serif;
    margin-left: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 18px;
    border-bottom: 1px solid #EEE;
    background-color: #fff;
  }
  .navbar-left {
    
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .navbar-left img {
    height: 70px;
    width: 80px;
  }
  
  .navbar-center {
    display: flex;
    gap: 40px;
  }
  .navbar-center a {
    text-decoration: none;
    color: black;
    font-weight: 400;
    font-size: 16px;
  }
  .navbar-center a:hover,
  .navbar-center a.active {
    font-weight: 500;
    color: #2a9d8f;
  }
  .navbar-right {
    margin-right: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .search-bar {
    padding: 6px 12px;
    border: 1px solid #000000;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
  }
  .search-icon {
    font-size: 18px;
    cursor: pointer;
    color: #999;
  }
  .btn-signup,
  .btn-login {
    padding: 7px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
  }
  .btn-signup {
    background: transparent;
    border: 1px solid #222;
    background-color: #264653;
    color:white
  }
  .btn-signup:hover {
    background: #2a9d8f;
    color: #fff;
  }
  .btn-login {
    background: #264653;
    color: #fff;
  }
  .btn-login:hover {
    background: #2a9d8f;
  }
section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 20px 3vw 10px 3vw;
  background: white;
  gap: 15px;
}

.header-content {
  max-width: 70%;
}

section h1 {
  margin: 0 0 0.3em 0;
  color: #264653;
}

section .blog-description {
  margin: 0;
  font-size: 1.08em;
  color: #555;
}

/* Search bar styles remain the same as before */
.searchbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex: 1 1 200px;
  max-width: 300px;
}

.searchbar input {
  padding: 10px 14px;
  font-size: 1.06em;
  border-radius: 22px;
  border: 1px solid #ccc;
  width: 100%;
  transition: border 0.17s;
}

.searchbar input:focus {
  border: 1.6px solid #264653;
  outline: none;
}

.searchbar button {
  padding: 10px 18px;
  border-radius: 22px;
  background-color: #264653;
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.13s;
}

.searchbar button:hover {
  background-color: #2a9d8f;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
  padding: 40px 3vw;
  background: #fafafa;
}

.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 7px 32px 2px rgba(50,50,50,0.09);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  transition: transform 0.14s;
  max-width: 452px;
  min-height: 580px;
}
.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 10px 34px rgb(239, 47, 47);
}
.card-image {
  width: 500px;
  height: 280px;
  object-fit: cover;
}

.card-content {
  flex: 1;
  padding: 20px 16px 30px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.card-title {
  font-size: 1.28em;
  font-weight: 700;
  margin-bottom: 0.5em;
  color: #222;
  line-height: 1.3;
  text-transform: uppercase;
}

.highlight {
  color: #ed1c24;
  font-weight: 850;
  letter-spacing: 0.03em;
}

.card-date {
  color: #949494;
  font-size: 0.95em;
  margin-bottom: 0.7em;
}

.card-summary {
  font-size: 1.06em;
  color: #444;
  margin-bottom: 12px; /* add spacing for Read More button */
  line-height: 1.5;
  max-height: none; /* remove the old max-height */
  overflow: visible; /* ensure text doesn't get hidden */
}


.card-logo {
  width: 45px;
  height: 45px;
  position: absolute;
  top: 18px;
  right: 18px;
  background: white;
  border-radius: 50%;
  padding: 5px;
  object-fit: contain;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}



/* Read more button styles */
.read-more-btn {
  display: inline-block;
  text-decoration: none;
  background: #264653;
  color: #fff;
  font-weight: 600;
  padding: 9px 19px;
  border-radius: 6px;
  transition: background 0.13s;
  font-size: 1em;
  margin-top: auto; /* push button to bottom if card grows */
}
.read-more-btn:hover {
  background: #2a9d8f;
   box-shadow: 0 10px 34px rgb(51, 128, 210);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px 16px 30px 16px;
}








.main-footer {
  background: #e7f3e4;
  padding: 42px 0 18px 0;
  text-align: center;
  font-size: 1.08rem;
  color: #333;
  margin-top: 0px;
  box-shadow: 0 -2px 14px rgba(0,0,0,0.03);
}
.footer-content {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 0 18px;
}
.footer-logo .footer-title {
  font-weight: bold;
  font-size: 1.38rem;
  color: #1767fa;
  letter-spacing: 1px;
}
.footer-links {
  display: flex;
  gap: 28px;
}
.footer-links a {
  color: #333;
  text-decoration: none;
  transition: color 0.18s;
}
.footer-links a:hover {
  color: #1767fa;
}
.footer-social {
  display: flex;
  gap: 19px;
}
.footer-meta {
  margin-left: 150px;
  font-size: 0.97rem;
  color: #434141;
  letter-spacing: 0.5px;
  opacity: 0.9;
}
.footer-social .fa {
  padding: 7px;
  font-size: 38px;
  width: 34px;
  height: 36px;
  text-align: center;
  text-decoration: none;
  color: #333;
  border-radius: 50%;
  transition: background-color 0.3s;
  margin: 3px 6px;
}
.footer-social .fa:hover {
  color: white;
}

.footer-social .fa-facebook { background: #618ae1; }
.footer-social .fa-twitter { background: #55acee; }
.footer-social .fa-instagram { background: #db546d; }
.footer-social .fa-linkedin { background: #5ab8eb; }

.navbar-toggle {
display: none;
}




/* Small phones and smaller (up to 320px) */
@media (max-width: 351px) {
.navbar {
  margin-left: 10px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    position: relative;
  }

  /* Keep navbar-right (search section) aligned right */
  .navbar-right {
    
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* Hide buttons */
  .navbar-right .btn-signup,
  .navbar-right .btn-login {
    display: none;
  }

  /* Style search bar */
  .search-bar {
    width: 70px;
    font-size: 15px;
    padding: 6px 10px;
    border: 1px solid #000;
    border-radius: 8px;
    outline: none;
  }
    .search-icon {
    font-size: 18px;
    color: #666;
    cursor: pointer;
    margin-right: 15px;
  }

  /* Hamburger icon — position to the right of search */
  .navbar-toggle {
    display: block;
    font-size: 22px;
    color: #000;
    cursor: pointer;

    /* position it next to search bar */
    position: absolute;
    right: 20px;   /* stays at far right */
    top: 50%;
    transform: translateY(-50%);
  }

  /* Hide center links initially */
  .navbar-center {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    position: absolute;
    top: 70px;
    left: 0;
    text-align: center;
    z-index: 100;
  }

  .navbar-center.active {
    display: flex;
  }

}

/* Small phones to larger phones (321px - 425px) */
@media (min-width: 352px) and (max-width: 425px) {
.navbar {
    display: flex;
    
    margin-left: 15px;
    padding: 8px 12px;
  
    justify-content: space-between;
    padding: 10px 20px;
    position: relative;
  }

  /* Keep navbar-right (search section) aligned right */
  .navbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* Hide buttons */
  .navbar-right .btn-signup,
  .navbar-right .btn-login {
    display: none;
  }

  /* Style search bar */
  .search-bar {
    width: 100px;
    font-size: 15px;
    padding: 6px 10px;
    border: 1px solid #000;
    border-radius: 8px;
    outline: none;
  }
    .search-icon {
    font-size: 18px;
    color: #666;
    cursor: pointer;
    margin-right: 15px;
  }

  /* Hamburger icon — position to the right of search */
  .navbar-toggle {
    display: block;
    font-size: 18px;
    color: #000;
    cursor: pointer;

    /* position it next to search bar */
    position: absolute;
    right: 20px;   /* stays at far right */
    top: 50%;
    transform: translateY(-50%);
  }

  /* Hide center links initially */
  .navbar-center {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    position: absolute;
    top: 70px;
    left: 0;
    text-align: center;
    z-index: 100;
  }

  .navbar-center.active {
    display: flex;
  }

}

/* Tablets portrait (426px - 768px) */
@media (min-width: 426px) and (max-width: 768px) {
  /* Make navbar a proper flex container */
  .navbar {
     margin-left: 20px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
   
    position: relative;
  }

  /* Keep navbar-right (search section) aligned right */
  .navbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* Hide buttons */
  .navbar-right .btn-signup,
  .navbar-right .btn-login {
    display: none;
  }

  /* Style search bar */
  .search-bar {
    width: 160px;
    font-size: 15px;
    padding: 6px 10px;
    border: 1px solid #000;
    border-radius: 8px;
    outline: none;
  }
    .search-icon {
    font-size: 18px;
    color: #666;
    cursor: pointer;
    margin-right: 15px;
  }

  /* Hamburger icon — position to the right of search */
  .navbar-toggle {
    display: block;
    font-size: 22px;
    color: #000;
    cursor: pointer;

    /* position it next to search bar */
    position: absolute;
    right: 20px;   /* stays at far right */
    top: 50%;
    transform: translateY(-50%);
  }

  /* Hide center links initially */
  .navbar-center {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    position: absolute;
    top: 70px;
    left: 0;
    text-align: center;
    z-index: 100;
  }

  .navbar-center.active {
    display: flex;
  }





 
}

/* Tablets landscape & small desktops (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Desktop: show buttons only in navbar-right, hide in navbar-center */
@media (min-width: 769px) {
  .navbar-center .btn-signup,
  .navbar-center .btn-login {
    display: none;
  }
  .navbar-right .btn-signup,
  .navbar-right .btn-login {
    display: inline-block;
  }
  .navbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
  }
}

/* Mobile: hide buttons in navbar-right, show in navbar-center */
@media (max-width: 768px) {
 .navbar-right .btn-signup,
  .navbar-right .btn-login {
    display: none;
  }
  .navbar-center .btn-signup,
  .navbar-center .btn-login {
    display: block;
    width: 90%;
    margin: 10px auto;
    text-align: center;
  }

  .navbar-center {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    position: absolute;
    top: 80px;
    left: 0;
    border-top: 1px solid #eee;
    z-index: 100;
  }

  .navbar-center.active {
    display: flex;
  }

  .navbar-toggle {
    display: block;
    cursor: pointer;
  }

  .navbar-right {
    display: flex;
    align-items: center;
  }
}

}

/* Desktops (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
  .navbar-center .btn-signup,
  .navbar-center .btn-login {
    display: none;
  }
  .navbar {
    margin-left: 50px;
    padding: 12px 18px;
  }
  .navbar-center {
    gap: 40px;
  }
  .search-bar {
    width: 200px;
  }
}

/* Large desktops (1441px and up) */
@media (min-width: 1441px) {
  .navbar-center .btn-signup,
  .navbar-center .btn-login {
    display: none;
  }
  .navbar {
    margin-left: 60px;
    padding: 12px 20px;
  }
  .navbar-center {
    gap: 50px;
  }
  .search-bar {
    width: 220px;
  }
}

/* Responsive Navbar toggle logic */

/* Hide the nav links and show hamburger on smaller screens */

@media (max-width: 768px) {
  .navbar-center {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    position: absolute;
    top: 80px;
    left: 0;
    z-index: 100;
    border-top: 1px solid #eee;
    padding: 10px 0;
  }
  .navbar-center.active {
    display: flex;
  }
  .navbar-toggle {
    display: block;
  }
  .navbar-right {
    margin-right: 10px;
  }
  .navbar {
    flex-wrap: wrap;
    position: relative;
  }
}





@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .footer-meta {
    margin-left: 0;
  }
  
  .footer-logo .navbar-left img {
    max-width: 120px;
    margin: 0 auto;
  }
  
  .footer-social {
    justify-content: center;
    gap: 12px;
  }
  
  .footer-social .fa {
    font-size: 24px;
    width: 30px;
    height: 29px;
    padding: 5px;
    margin: 3px 4px;
  }
}

/* Tablet landscape and small desktops */
@media (min-width: 769px) and (max-width: 1024px) {
  .footer-content {
    justify-content: center;
    gap: 30px;
  }
  
  .footer-meta {
    margin-left: 0;
  }
  
  .footer-logo .navbar-left img {
    max-width: 140px;
  }
  .footer-social .fa {
    font-size: 25px;
  }
}



body{
  
  padding-bottom: env(safe-area-inset-bottom);

  height: 100%;
}
main{
  flex: 1
;
}




/* ==============================================
   RESPONSIVE ADJUSTMENTS FOR MAIN PAGE CONTENT
   ============================================== */

/* Phones (up to 425px) */
@media (max-width: 425px) {
  section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 5vw;
    margin-bottom: -90px;
  }

  .header-content {
    max-width: 100%;
  }

  section h1 {
    font-size: 1.7rem;
  }

  .blog-description {
    font-size: 0.95rem;
  }

  .searchbar {
    width: 80%;
    justify-content: center;
    margin-top: -70px;
    
  }

  .searchbar input {
    width: 70%;
    font-size: 0.9rem;
  }

  .searchbar button {
    padding: 8px 14px;
    font-size: 0.9rem;
  }

  .card-container {
    grid-template-columns: 1fr;
    padding: 25px 5vw;
    gap: 20px;
  }

  .card {
    max-width: 100%;
    min-height: auto;
  }

  .card-image {
    width: 100%;
    height: 220px;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .card-summary {
    font-size: 0.95rem;
  }

  .read-more-btn {
    font-size: 0.9rem;
    padding: 8px 14px;
  }
}

/* Tablets portrait (426px - 768px) */
@media (min-width: 426px) and (max-width: 768px) {
  section {
    flex-direction: column;
    text-align: center;
    align-items: center;
    margin-bottom: -80px;
    padding: 25px 6vw;
  }

  .header-content {
    max-width: 90%;
  }

  section h1 {
    font-size: 2rem;
  }

  .blog-description {
    font-size: 1rem;
  }

  .searchbar {
    justify-content: center;
    margin-top: -60px;
    width: 80%;
  }

  .searchbar input {
    width: 65%;
    font-size: 1rem;
  }

  .card-container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 30px 6vw;
  }

  .card-image {
    width: 100%;
    height: 240px;
  }

  .card-title {
    font-size: 1.2rem;
  }

  .card-summary {
    font-size: 1rem;
  }
}

/* Tablets landscape & small desktops (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  section {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 25px 6vw;
  }

  .header-content {
    max-width: 60%;
  }

  .searchbar {
    max-width: 280px;
  }

  .card-container {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
  }

  .card {
    max-width: 100%;
  }

  .card-image {
    width: 100%;
    height: 260px;
  }
}

/* Medium & large desktops (1025px and up) */
@media (min-width: 1025px) {
  section {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 30px 8vw;
  }

  .header-content {
    max-width: 70%;
  }

  .searchbar {
    max-width: 320px;
  }

  .card-container {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 35px;
  }

  .card-image {
    height: 280px;
  }
}
@media (max-width: 425px) {
  .read-more-btn {
    padding: 8px 14px;
    font-size: 0.9rem;
    align-self: center;
  }

  .card-summary {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }
}

#no-results {
  display:none; 
  text-align:center; 
  margin:20px;
   font-size:1.4em; 
   color:#2a9d8f;
}
