body {
      font-family: Arial, sans-serif;
      margin: 0;
      padding: 0;
      background-color: #0d1021;
    }

    /* navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    width: 100%;
    position: sticky;
    top: 0;
    background: transparent;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 999;

}
.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 2rem;
    max-width: 1600px;
}
.navbar-logo {
    display: inline-flex;
    flex-direction: column;     
    align-items: flex-end;      
    text-decoration: none;
    color: #ffffff;
    cursor: pointer;
    line-height: 1.1;
}

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

.navbar-logo .sub-text {
    font-size: 0.65rem;
    margin-top: 2px;
    opacity: 0.7;            
}



.navbar-menu {
    display: flex;
    text-align: center;
    gap: 1.5rem;
    font-weight: 500;
    list-style: none;
    backdrop-filter: blur(10px);
}

.navbar-container .navbar-menu li a {
    text-decoration: none;
    color: rgb(0, 140, 255);
    font-size: 1.3rem;
    /* font-weight: 500; */
    padding: 3px 20px;
    border-radius: 20px;
    border: 2px solid transparent;
    transition: all 0.7s ease;
    white-space: nowrap;

}
.navbar-container .navbar-menu li a:hover,
.navbar-container .navbar-menu li a.active {
    color: #e8e8e8;
    background: rgb(0, 140, 255);
    border: 2px solid #ffffff;
}

.navbar-toggle {
    display: none;
    background: transparent;
    padding: 10px;
    border: none;
    cursor: pointer;

}
.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background: #ffffff;
    transition: all 0.3s ease-in-out;
    
}

@media (max-width: 480px) {
    .navbar {

        height: 70px;
        
    }
    
}

@media (max-width: 768px) {
    .navbar-menu {
        background: rgba(2, 0, 27, 0.8);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.4);
        
    }

    .navbar-container .navbar-menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.7rem !important;
        position: absolute;
        height: 100vh;
        width: 250px;
        top: 0;
        right: 0;
        padding: 5rem 1.5rem;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px);

    }

    .navbar-container .navbar-menu.active {
        display: flex;
    }
    .navbar-toggle {
        display: block;
        z-index: 999;
}
    .navbar-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .navbar-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .navbar-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 480px) {
    .navbar-container {
        padding: 0 1rem;

    
    }

    .navbar-logo {
        font-size: 1.2rem;
    }

    .navbar-container .navbar-menu li a {
        font-size: 1rem;
        padding: 2px 12px;
    }
}

    header {
      background-color: #0d1021;
      color: #141414;
      padding: 5px;
      text-align: center;
      align-items: center;
      margin-top: 10px;
      position: static;
      top: 0;
      z-index: 999;
    }

   .header-logo {
    height: 70px;
    width: auto;
} 

@media (max-width: 600px) {
  .header-logo {
    height: 50px;
    width: auto;   /* smaller on mobile */
  }
}


    h1 {
      margin: 0;
      font-size: 2rem;
    }

    /* Blog container */
    .blog-content {
      background: rgba(29, 34, 66, 0.45);
    padding: 15px;
    display: flex;
    flex-direction: column;
    height: 100%;    /* ← ADD THIS */
}
    .blog-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 20px;
      padding: 20px;
      max-width: 1200px;
      margin: auto;
    }

   .blog-card {
    background-color: rgba(29, 34, 66, 0.45);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
    height: 100%; /* FIX */
}

    .blog-card:hover {
      transform: translateY(-5px);
    }

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

    .blog-content {
      padding: 15px;
      display: flex;
      flex-direction: column;
    }

    .blog-content h2 {
      margin: 0 0 10px 0;
      font-size: 1.5rem;
      color: #e8e8e8;
    }

    .blog-content p {
      flex: 1;
      font-size: 1rem;
      color: #e8e8e8;
      margin-bottom: 10px;
    }

    

.home-back-btn {
  max-width: 1200px;
  margin: 10px auto 5px auto;
  padding: 0 20px;
  display: flex;
  justify-content: flex-start; /* change to flex-end if you want right */
}

.home-btn a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0);
  padding: 10px 14px;
  border-radius: 10px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  border: 2px solid rgba(0, 195, 255, 0.884);
  
  transition: 0.25s;
}

.home-btn a:hover {
  background: #00003b;
}

.home-btn img {
  width: 22px;
  height: 22px;
}




    .read-more button {
      background-color: #008cff;
      color: #000000;
      border: none;
      cursor: pointer;
      padding: 10px;
      border-radius: 5px;
      font-weight: 600;
      font-size: 1rem;
      width: 100%;
      cursor: pointer;
      text-align: center;
    }
    .read-more button:hover {
      background-color: #00003b;
      color: #fff;
    }

    

    .modal-content {
      background-color: #fff;
      margin: 50px auto;
      padding: 20px;
      border-radius: 10px;
      max-width: 800px;
      width: 90%;
      position: relative;
      animation: fadeIn 0.3s;
    }

    

    @keyframes fadeIn {
      from {opacity: 0; transform: translateY(-20px);}
      to {opacity: 1; transform: translateY(0);}
    }

    .close {
      color: #aaa;
      position: absolute;
      top: 15px;
      right: 20px;
      font-size: 28px;
      font-weight: bold;
      cursor: pointer;
    }

    .close:hover {
      color: #000;
    }

    @media (max-width: 768px) {
      .blog-card img {
        height: 180px;
      }
    }

    @media (max-width: 480px) {
      .blog-card img {
        height: 150px;
      }
    }

    /* Footer */

   footer {
    background: #0d1021;
    color: #d7d7d7;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-direction: column; /* Mobile default */
    gap: 25px;
}

/* Heading fix */
.footer-container h1 {
    text-align: center;
    color: #ffffff;
    font-size: 30px;
    margin: 0;
    padding-bottom: 10px;
}

/* Footer sections */
.footer-section {
    border: 1px solid #1d2138;
    padding: 15px;
    border-radius: 6px;
}

.footer-toggle {
    width: 100%;
    background: none;
    border: none;
    color: #ffffff;
    text-align: left;
    font-size: 18px;
    padding: 8px 0;
    cursor: pointer;
}

.footer-links {
    display: none;
    padding-left: 10px;
    line-height: 1.7;
    margin-top: 5px;
    margin-left: 10px;
}

.footer-links a {
    color: #d7d7d7;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    color: #8b8b8b;
    margin-top: 25px;
    font-size: 14px;
}

/* Desktop Layout — 4 Columns */
@media (min-width: 900px) {
    .footer-container {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }

    /* Make heading full width across all columns */
    .footer-container h1 {
        grid-column: 1 / -1;
        text-align: center;
        font-size: 30px;
        margin-bottom: 10px;
    }

    .footer-section {
        border: none;
        padding: 0;
    }

    /* On PC: links always visible */
    .footer-links {
        display: block !important;
        padding-left: 0;
        margin-top: 10px;
    }

    /* Remove toggle behavior on PC */
    .footer-toggle {
        cursor: default;
        background: #008cff;
        border-radius: 20px;
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .footer-container h1 {
        font-size: 24px;
        color: #008cff;
    }
}