/* Reset some basic styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f6f9;
  color: #333;
  line-height: 1.6;
  padding: 0;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header & Navigation */
header {
  background-color: #005fb2;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Navigation */
nav {
  background-color: #004a8f;
  padding: 15px 0;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

nav h1 {
  font-size: 1.5rem;
  font-weight: 600;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 25px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 5px 10px;
  border-radius: 4px;
}

nav ul li a:hover {
  background-color: rgba(255,255,255,0.1);
  color: #e8f1ff;
}

/* Hero Section */
.hero {
  padding: 40px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Main Content */
main {
  padding: 30px 0;
}

/* Topic sections */
.topic {
  margin-bottom: 30px;
  padding: 25px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.topic h1 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #005fb2;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8f1ff;
}

.topic h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #005fb2;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8f1ff;
}

/* Subtopics list */
.subtopics {
  list-style: none;
  padding: 0;
}

.subtopics li {
  margin-bottom: 15px;
}

.subtopics a {
  display: inline-block;
  padding: 12px 20px;
  background-color: #e8f1ff;
  border: 2px solid #005fb2;
  color: #005fb2;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  width: 100%;
  max-width: 500px;
}

.subtopics a:hover {
  background-color: #005fb2;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Buttons inside subtopics (for backward compatibility) */
.subtopics-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 15px;
}

.subtopics-buttons button {
  padding: 12px 15px;
  background-color: #e8f1ff;
  border: 2px solid #005fb2;
  color: #005fb2;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.subtopics-buttons button:hover {
  background-color: #005fb2;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Questions sections styling */
.questions {
  margin-top: 30px;
  padding: 25px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.07);
  border: 1px solid #e0e0e0;
}

.questions h3 {
  font-size: 1.4rem;
  color: #005fb2;
  margin-bottom: 20px;
  border-bottom: 2px solid #e8f1ff;
  padding-bottom: 10px;
}

.questions ol {
  padding-left: 20px;
}

.questions li {
  margin-bottom: 25px;
  line-height: 1.7;
  padding: 20px;
  background-color: #f8fafd;
  border-radius: 8px;
  border-left: 4px solid #005fb2;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.questions strong {
  color: #222;
  display: block;
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 600;
}

.questions br + br {
  display: none;
}

.question {
  font-weight: 600;
  color: #005fb2;
  margin-bottom: 8px;
}

.answer {
  color: #444;
  line-height: 1.7;
}

/* Contact Form */
.contact-form {
  margin-top: 30px;
  padding: 25px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.07);
  border: 1px solid #e0e0e0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #005fb2;
  box-shadow: 0 0 0 2px rgba(0, 95, 178, 0.2);
}

.btn {
  background-color: #005fb2;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #004a8f;
}

/* Contact Info */
.contact-info {
  margin-bottom: 30px;
  padding: 25px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.07);
  border: 1px solid #e0e0e0;
}

/* Footer */
footer {
  background-color: #004a8f;
  color: #fff;
  padding: 20px 0;
  text-align: center;
  margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    width: 95%;
  }
  
  nav .container {
    flex-direction: column;
    text-align: center;
  }
  
  nav ul {
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  nav ul li {
    margin: 5px 10px;
  }
  
  .hero {
    padding: 25px 0;
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .subtopics-buttons {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
  
  .topic {
    padding: 20px 15px;
  }
  
  .topic h1 {
    font-size: 1.5rem;
  }
  
  .questions {
    padding: 20px 15px;
  }
  
  .questions li {
    padding: 12px;
  }
  
  .contact-form,
  .contact-info {
    padding: 20px 15px;
  }
  
  .subtopics a {
    width: 100%;
    max-width: 100%;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  nav ul li {
    margin: 3px 5px;
  }
  
  .hero h1 {
    font-size: 1.3rem;
  }
  
  .topic h1 {
    font-size: 1.4rem;
  }
  
  .topic h2 {
    font-size: 1.2rem;
  }
  
  .questions h3 {
    font-size: 1.2rem;
  }
  
  .subtopics a {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}
