/* =========================
   Reset & Base
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f4f7fb;
  color: #1f2937;
  line-height: 1.6;
}

/* =========================
   Layout
========================= */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

/* =========================
   Navbar
========================= */
.nav {
  background: #0a66c2;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: #fff;
  font-weight: 600;
}

.nav a {
  color: #e5f0ff;
  margin-left: 20px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.nav a:hover {
  color: #ffffff;
}

/* =========================
   Hero Section
========================= */
.hero {
  text-align: center;
  padding: 60px 20px;
}

.hero h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.hero p {
  color: #6b7280;
  margin-bottom: 25px;
}

/* =========================
   Card Style (Main Tool)
========================= */
.hero form {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  max-width: 500px;
  margin: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* =========================
   Inputs & Buttons
========================= */
input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  transition: 0.2s;
}

input:focus {
  border-color: #0a66c2;
  outline: none;
  box-shadow: 0 0 0 2px rgba(10, 102, 194, 0.15);
}

button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #0a66c2, #2563eb);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
  margin-top:10px
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}

/* =========================
   Result Box
========================= */
#result {
  margin-top: 20px;
  padding: 15px;
  border-radius: 10px;
  background: #f1f5f9;
  font-size: 14px;
}

/* =========================
   Footer
========================= */
.footer {
  text-align: center;
  padding: 30px 20px;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  margin-top: 60px;
}

.footer a {
  color: #0a66c2;
  margin: 0 10px;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}
.result-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.online {
  color: #16a34a;
}

.offline {
  color: #dc2626;
}

/* =========================
   Section Styling
========================= */
.resources-section {
  background: linear-gradient(to bottom, #f8fbff, #eef4ff);
  padding: 80px 20px;
}

.resources-section h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 10px;
}

.resources-section p {
  text-align: center;
  color: #6b7280;
}

/* =========================
   Grid
========================= */
.resources-grid {
  display: grid;
  gap: 25px;
  margin-top: 40px;
}

/* =========================
   Cards (Modern UI)
========================= */
.resource-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 25px;
  position: relative;
  overflow: hidden;
  cursor: pointer;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: all 0.35s ease;
}

/* Gradient glow effect */
.resource-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), transparent);
  opacity: 0;
  transition: 0.3s;
}

/* Hover Effects */
.resource-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.resource-card:hover::before {
  opacity: 1;
}

/* Content */
.resource-content h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #111827;
}

.resource-content p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 12px;
}

/* Tag Badge */
.tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

/* =========================
   Desktop Layout
========================= */
@media (min-width: 768px) {
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .resources-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
/* =========================
   Responsive
========================= */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 42px;
  }

  .hero {
    padding: 100px 20px;
  }
}
