/* ===============================
   ROOT COLORS (SITE THEME)
================================ */
:root {
  --primary-color: #080f5b;
  --accent-color: #6cb4ee;
  --bg-light: #f5f7fa;
  --bg-white: #ffffff;
  --text-dark: #111827;
  --text-light: #ffffff;
  --card-shadow: rgba(0, 0, 0, 0.1);
  --gradient-main: linear-gradient(135deg, #080f5b, #3a0ca3);
  --gradient-accent: linear-gradient(135deg, #6cb4ee, #48cae4);
}

/* ===============================
   GLOBAL
================================ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
}

/* ===============================
   NAVBAR (same as other pages)
================================ */
.navbar {
  background: var(--primary-color);
  padding: 14px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.usman {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nwis {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px;
}

.usman span {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--accent-color);
}

/* ===============================
   HERO HEADER
================================ */
.resources-hero {
  background: var(--gradient-main);
  color: var(--text-light);
  text-align: center;
  padding: 80px 20px 60px;
}

.resources-hero h1 {
  font-size: 3rem;
  margin-bottom: 12px;
}

.resources-hero p {
  font-size: 1.2rem;
  max-width: 650px;
  margin: 0 auto 30px;
  opacity: 0.95;
}

.jump-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.jump-btn {
  background: var(--gradient-accent);
  color: var(--text-light);
  padding: 12px 26px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s ease;
}

.jump-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* ===============================
   SECTIONS
================================ */
.resources-section {
  padding: 70px 40px;
}

.resources-section h2 {
  text-align: center;
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 40px;
}

/* ===============================
   RESOURCE GRID
================================ */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===============================
   RESOURCE CARD
================================ */
.resource-card {
  background: var(--bg-white);
  padding: 26px;
  border-radius: 16px;
  box-shadow: 0 10px 28px var(--card-shadow);
  transition: 0.3s ease;
  position: relative;
  overflow: hidden;
}

.resource-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 6px;
  width: 100%;
  background: var(--gradient-accent);
}

.resource-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.resource-card h3 {
  margin-top: 14px;
  font-size: 1.4rem;
  color: var(--primary-color);
}

.resource-card ul {
  padding-left: 18px;
  margin: 15px 0 0;
}

.resource-card li {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.resource-card a {
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
}

.resource-card a:hover {
  text-decoration: underline;
}

/* ===============================
   FOOTER
================================ */
.footer {
  background: var(--gradient-main);
  color: var(--text-light);
  text-align: center;
  padding: 22px;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
  .navbar {
    padding: 14px 24px;
  }

  .resources-hero h1 {
    font-size: 2.4rem;
  }

  .resources-section {
    padding: 50px 20px;
  }
}

/* ===============================
   MOBILE NAVBAR FIX (ALL-IN-ONE)
   =============================== */

.hamburger {
  display: none;
}

@media (max-width: 768px) {

  /* NAVBAR CONTAINER */
  .navbar {
    position: relative;
    padding: 14px 18px;
    height: 64px;
  }

  /* LOGO */
  .logo {
    font-size: 20px;
    line-height: 1.1;
  }

  .usman {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* HAMBURGER */
  .hamburger {
    display: block;
    font-size: 26px;
    cursor: pointer;
    color: white;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1100;
  }

  /* NAV LINKS (HIDDEN BY DEFAULT) */
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: #080f5b;
    flex-direction: column;
    align-items: center;
    display: none;
    padding: 12px 0;
    z-index: 1000;
    animation: slideDown 0.25s ease-out;
  }

  /* SHOW MENU WHEN ACTIVE */
  .nav-links.show {
    display: flex;
  }

  /* NAV ITEMS */
  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 10px 0;
    font-size: 16px;
  }
}

/* SLIDE ANIMATION */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

