/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Inter:wght@300;400;500&display=swap');

/* Base */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #f5f7fa;
  color: #333;
  transition: background 0.3s, color 0.3s;
}

/* Sticky Header */
header {
  background: #0077cc;
  color: white;
  padding: 20px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header h1, .logo {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
}

/* Logo dot */
.logo::after {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #00b894;
  border-radius: 50%;
  margin-left: 4px;
}

/* Navigation */
nav {
  margin-top: 10px;
}

nav a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
}

nav a:hover {
  opacity: 0.7;
}

/* Dark Mode Button */
#darkToggle {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 10px;
}

/* Hero Section */
.hero {
  padding: 80px 20px;
  text-align: center;
  background: white;
  border-bottom: 1px solid #e0e0e0;
}

.new-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-text {
  max-width: 450px;
}

.hero-text h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 1.1rem;
  color: #555;
}

.hero-img .placeholder-img {
  width: 300px;
  height: 250px;
  background: linear-gradient(135deg, #0077cc, #00b894);
  border-radius: 12px;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Poppins';
  font-size: 1.4rem;
}

/* Buttons */
.btn {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 18px;
  background: #00b894;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s;
}

.btn:hover {
  background: #009f7a;
}

.btn.big {
  padding: 15px 25px;
  font-size: 1.1rem;
}

/* Category Grid */
.category-grid {
  display: flex;
  justify-content: center;
  gap: 25px;
  padding: 40px 20px;
  flex-wrap: wrap;
}

.cat-card {
  background: white;
  padding: 25px;
  width: 260px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Category Themes */
.finance-theme {
  border-top: 4px solid #0077cc;
}

.hydro-theme {
  border-top: 4px solid #00b894;
}

.tools-theme {
  border-top: 4px solid #ffb400;
}

/* Cards (Finance, Hydroponics, Tools pages) */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  padding: 40px 20px;
}

.card {
  background: white;
  padding: 25px;
  width: 260px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Content Pages */
.content {
  padding: 40px 20px;
  max-width: 800px;
  margin: auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: #0077cc;
  color: white;
  margin-top: 40px;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dark Mode */
body.dark {
  background: #1e1e1e;
  color: #f0f0f0;
}

body.dark header {
  background: #111;
}

body.dark .card,
body.dark .content,
body.dark .cat-card,
body.dark .hero {
  background: #2a2a2a;
  color: #fff;
}

body.dark .btn {
  background: #00b894;
}

body.dark footer {
  background: #111;
}

/* Responsive */
@media (max-width: 768px) {
  .new-hero {
    flex-direction: column;
  }

  .hero-img .placeholder-img {
    width: 90%;
  }

  .cards, .category-grid {
    flex-direction: column;
    align-items: center;
  }

  .card, .cat-card {
    width: 90%;
  }
}
.finance-table {
  width: 90%;
  margin: 20px auto;
  border-collapse: collapse;
  font-size: 1.1rem;
}

.finance-table th,
.finance-table td {
  border: 1px solid #ccc;
  padding: 12px;
  text-align: left;
}

.finance-table th {
  background: #f4f4f4;
  font-weight: bold;
}

.back-button {
  text-align: center;
  margin: 30px 0;
}

.youtube-btn {
  background-color: #FF0000;
  color: white;
  border: none;
}

.youtube-btn:hover {
  background-color: #cc0000;
}