@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f8fdfd;
  color: #2f4858;
  margin: 0;
}

/* --- NAVBAR (DESKTOP DEFAULT) --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 60px;
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  position: relative;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f7a8c;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #2f4858;
  font-weight: 500;
}

.nav-links a:hover {
  color: #1f7a8c;
}

.btn-login {
  background-color: #1f7a8c;
  color: white !important;
  padding: 8px 18px;
  border-radius: 6px;
}

/* --- TIPS CONTENT --- */
.tips-page {
  text-align: center;
  padding: 60px 30px;
}

.tips-page h1 {
  color: #16697a;
  font-size: 2rem;
  margin-bottom: 10px;
}

.subtitle {
  color: #5c6b73;
  max-width: 700px;
  margin: 0 auto 40px;
}

.tips-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  max-width: 1050px;
  margin: 0 auto;
}

.tip-card {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.tip-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.tip-card h3 {
  color: #1f7a8c;
  margin-bottom: 10px;
  margin-top: 0;
}

.tip-card p {
  color: #5c6b73;
  line-height: 1.5;
  margin-bottom: 0;
}

.footer {
  text-align: center;
  padding: 20px;
  background-color: #ffffff;
  border-top: 1px solid #e2e8f0;
  color: #5c6b73;
  font-size: 0.9rem;
  margin-top: 40px;
}

/* --- HAMBURGER ICON (Desktop: Hidden) --- */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1100;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #1f7a8c;
  border-radius: 2px;
  transition: all 0.3s ease;
}


/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {

  /* 1. Global Reset */
  body, html { width: 100%; overflow-x: hidden; font-size: 14px; }

  /* 2. Navbar */
  .navbar {
    padding: 15px 20px;
    justify-content: space-between;
  }

  /* 3. Mobile Menu (Hidden by default) */
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    border-top: 1px solid #f0f7f7;
    gap: 0;
  }

  .nav-links.active {
    display: flex;
    animation: slideDown 0.3s ease-out;
  }

  .nav-links a {
    margin: 0;
    font-size: 16px;
    width: 100%;
    text-align: center;
    padding: 12px 0;
    border-bottom: 1px solid #fcfcfc;
  }
  
  .btn-login {
    width: auto;
    background: transparent;
    color: #1f7a8c !important;
    font-weight: 700;
  }

  /* 4. Hamburger Show & Animate */
  .hamburger { display: flex; }
  
  /* X Animation */
  .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* 5. Page Content */
  .tips-page {
    padding: 30px 15px;
  }

  .tips-page h1 { font-size: 1.6rem; }
  
  .subtitle { font-size: 0.95rem; margin-bottom: 25px; }

  /* 6. Tips Grid (Stack Vertically) */
  .tips-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .tip-card {
    width: 100%;
    box-sizing: border-box;
  }
}

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