/* ========================
   Root Colors & Fonts
======================== */
:root {
  --primary-color: #4ABEFF;   
  --secondary-color: #ffffff;  
  --background-color: #333333;
  --link-color: #ffcc00;
  --font-body: 'Arial', sans-serif;
  --font-heading: 'Oxanium', sans-serif; 
  --header-color: #448fe6;
}

/* ========================
   Global Styles
======================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--secondary-color);
  background-color: var(--background-color);
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--primary-color);
}

/* ========================
   Navbar
======================== */
.navbar {
  background-color: #3073ca;
  color: white;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1200;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.brand {
  font-weight: bold;
  font-size: 1.6rem;
  color: white;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: #002f7a;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
}

.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 1000;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* ========================
   Hero Section
======================== */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: -2rem;
  min-height: 200px;
  padding: 2rem;
}

/* ========================
   Category Cards / Resource Lists
======================== */
.category-card {
  background-color: #222;              /* dark gray */
  padding: 1.5rem;
  border-radius: 10px;
  margin: 1rem 0;
  box-shadow: 0 3px 8px rgba(0,0,0,0.4);
  transition: transform 0.2s, box-shadow 0.2s, border 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.05); /* subtle border */
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.resource-list {
  list-style: none;
  padding-left: 0;
}

.resource-list > li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.resource-list > li > a {
  font-weight: bold;
  text-decoration: underline;
  color: var(--link-color);
}

.resource-list > li > a:hover {
  color: var(--primary-color);
}

.resource-list > li > ul {
  list-style-type: disc;
  margin: 0.3rem 0 0.5rem 1.5rem;
  color: #ccc;
  font-size: 0.95rem;
}

.resource-list > li > ul > li {
  margin-bottom: 0.3rem;
}

/* ========================
   Contact Form
======================== */
.contact-form {
  background-color: #222;
  color: white;
  padding: 2rem;
  border-radius: 12px;
  max-width: 700px;
  margin: 2rem auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
  border: 1px solid #555;
  border-radius: 6px;
  background-color: #333;
  color: white;
  font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #ccc;
}

.contact-form button {
  background-color: #ff3c3c;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background-color: darkred;
}

/* ========================
   Main / Headings / Cards
======================== */
main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
  color: var(--header-color);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}


.card {
  background-color: white;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: darkred;
}

/* ========================
   Footer
======================== */
footer {
  width: 100%;
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
  font-size: 0.9rem;
}

/* ========================
   About Section
======================== */
.about-section {
  background-color: #444;
  color: #eee;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem auto;
  max-width: 800px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.about-section h2 {
  font-size: 2rem;
  color: #4a8ce2;
  margin-bottom: 1rem;
}

.about-section p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-section a {
  color: var(--link-color);
  text-decoration: underline;
}

.about-section a:hover {
  color: #d4ad10;
}

/* ========================
   Mobile Responsive
======================== */
@media (max-width: 768px) {
  main {
    margin: 1rem;
    padding: 0.5rem;
  }

  .card {
    padding: 0.8rem;
  }

  .nav-links {
    flex-direction: column;
    background-color: #3073ca;
    position: fixed;
    top: 0;
    right: -250px;
    height: 100%;
    width: 250px;
    padding: 2rem 1rem;
    gap: 1.5rem;
    flex-wrap: nowrap;
    transition: right 0.3s ease;
    z-index: 1100;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-toggle {
    display: block;
  }
}
