.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;
  }


    body {
    background: #fafafa;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #1a1a1a;
}

.main-container {
    max-width: 950px;
    margin: 40px auto 40px auto;
    padding: 28px 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.08);
}

.headline {
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 14px;
    color: #264653;
    letter-spacing: 1px;
}

.date-meta {
    text-align: center;
    font-size: 1.14rem;
    color: #333;
    margin-bottom: 24px;
}

.story {
    font-size: 1.17rem;
    line-height: 1.7;
}

.center-img {
    display: block;
    margin: 24px auto 20px auto;
    width: 450px;
    max-width: 98vw;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.09);
}

.side-img {
    width: 320px;
    max-width: 95vw;
    border-radius: 8px;
    margin: 18px 26px 18px 26px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.left {
    float: left;
    margin: 10px 28px 10px 0;
}

.right {
    float: right;
    margin: 10px 0 10px 28px;
}

/* Clear floats after paragraphs */
.story p:after {
    content: "";
    display: block;
    clear: both;
}

.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
;
}



@media (max-width: 900px) {
  
  .main-container {
    max-width: 90%;
    padding: 20px 15px;
  }
    .center-img {
    width: 350px;
    max-width: 100%;
  }
  .side-img {
    width: 280px;
    margin: 12px 16px;
  }
  .headline {
    font-size: 2.3rem;
  }
  .date-meta {
    font-size: 1.1rem;
  }
  .story {
    font-size: 1.1rem;
    line-height: 1.6;
  }

}

@media (max-width: 600px) {

    .center-img {
    width: 90vw;
  }
  .side-img {
    width: 90vw;
    float: none !important; /* Remove float on small screens */
    margin: 12px auto;
    display: block;
  }
  .headline {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }
  .date-meta {
    font-size: 1rem;
  }
  .story p {
    padding: 0 8px;
  }
  .story {
    font-size: 1rem;
    line-height: 1.5;
  }
}
@media (max-width: 400px) {

   .center-img {
    width: 95vw;
  }
  .side-img {
    width: 95vw;
  }
  .headline {
    font-size: 1.5rem;
  }
}
