

/* Inherit the same theme */
body {
    background: #121212;
    color: #ffffff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Navbar (same as main site) */
header {
    background: #000000;
    padding: 15px 0;
    border-bottom: 1px solid #222;
    position: sticky; /* 👈 This makes it stick */
    top: 0;           /* 👈 Stick to top of viewport */
    z-index: 1000;    /* 👈 Keeps it above other content */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}
.logo {
    width: 180px;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}
nav a {
    color: #00bfa6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
nav a.active,
nav a:hover {
    color: #ffffff;
}

/* Blog Section */
.blog {
    padding: 50px 20px;
    max-width: 1200px;
    margin: auto;
}

.blog h1 {
    text-align: center;
    font-size: 2.8rem;
    color: #00bfa6;
    margin-bottom: 10px;
}

.blog .intro {
    text-align: center;
    margin-bottom: 40px;
    color: #cccccc;
    font-size: 1.2rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 255, 200, 0.3);
}

.blog-card h2 {
    color: #00bfa6;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.blog-card p {
    color: #cccccc;
    margin-bottom: 15px;
}

.blog-card a {
    color: #00bfa6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.blog-card a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Footer (same as main site) */
.footer {
    background-color: #0a0a0a;
    color: #ccc;
    padding: 40px 20px 20px;
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    gap: 30px;
}
.footer-left h3 {
    color: #00bfa6;
    margin-bottom: 10px;
}
.footer-left p {
    margin: 8px 0;
    font-size: 0.95rem;
}
.footer-left i {
    margin-right: 8px;
    color: #00bfa6;
}
.footer-social h4 {
    color: #00bfa6;
    margin-bottom: 10px;
}
.footer-social .social-icons a {
    color: #00bfa6;
    margin-right: 12px;
    font-size: 1.3rem;
    transition: color 0.3s, transform 0.3s;
}
.footer-social .social-icons a:hover {
    color: #ffffff;
    transform: scale(1.2);
}
.footer-bottom {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #222;
    padding-top: 10px;
    color: #777;
    font-size: 0.9rem;
}

/* backbutton */


.floating-back-button {
    position: fixed; /* Always visible */
    bottom: 20px;    /* Distance from bottom */
    left: 20px;      /* Distance from left */
    background: rgba(0, 191, 166, 0.1);
    color: #00ffd1;
    padding: 12px 20px;
    border: 2px solid rgba(0, 255, 213, 0.4);
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 0 12px rgba(0, 255, 213, 0.4);
    z-index: 10000;
    transition: all 0.3s ease;
}

.floating-back-button:hover {
    background: rgba(0, 255, 213, 0.25);
    color: white;
    box-shadow: 0 0 20px rgba(0, 255, 213, 0.6), 0 0 30px rgba(0, 255, 213, 0.4);
    transform: scale(1.05);
}


/* Ensure this is in your base CSS */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}




/* Hide hamburger on desktop */
.hamburger {
    display: none;
    color: #00bfa6;
    font-size: 24px;
    cursor: pointer;
}

/* Mobile styles */
@media (max-width: 768px) {
  .logo {
    width: 180px;
  }

  .nav-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: relative;
  }

  .menu-toggle {
    display: block;
    font-size: 35px;
    color: #00bfa6;
    background: none;
    border: none;
    cursor: pointer;
    margin-top: 5px;
    position: relative;
    z-index: 1001;
  }

  nav {
    position: absolute;
    top: 65px;
    right: 20px;
    background: #000;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    width: 200px;
    overflow: hidden;
    z-index: 1000;
  }

  nav ul {
    display: none;
    flex-direction: column;
    padding: 10px 0;
    gap: 0;
  }

  nav ul.show {
    display: flex;
  }

  nav a {
    display: block;
    padding: 12px 20px;
    color: #00bfa6;
    text-decoration: none;
    transition: background 0.3s ease;
  }

  nav a:hover {
    background: #111;
  }
}

/* Default (desktop) blog grid styling */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

/* Card styling */
.blog-card {
    background-color: #1a1a1a;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 191, 166, 0.3);
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .blog {
        padding: 20px;
    }

    .blog-grid {
        grid-template-columns: 1fr; /* Stack cards */
        padding: 0;
        gap: 20px;
    }

    .blog-card {
        padding: 15px;
        font-size: 16px;
    }

    .blog-card h2 {
        font-size: 18px;
    }

    .blog-card p {
        font-size: 14px;
    }

    .blog-card a {
        font-size: 14px;
        color: #00bfa6;
        display: inline-block;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-left,
  .footer-social {
    flex: 1 1 100%;
  }

  .footer-left p,
  .footer-left h3,
  .footer-social h4 {
    text-align: center;
  }

  .footer-social .social-icons {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
  }

  .footer-social .social-icons a {
    margin: 8px;
  }
}


/* Hide toggle icon on screens wider than 768px */
@media screen and (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

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