/* general.css - shared styles for all pages */

:root {
  --bg-main: #23272f;
  --gray-dark: #181a1b;
  --gray-medium: #23272f;
  --text-main: #e5e7eb;
  --header-footer-bg: var(--gray-dark);
  --header-footer-text: #f8fafc;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100vw;
  font-family: 'Inter', Arial, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  overflow: hidden;
}

/* Enable scrolling specifically for contact page on desktop */
body.contact-page {
  overflow: auto;
  overflow-x: hidden; /* Prevent horizontal scroll */
  overflow-y: auto;   /* Allow vertical scroll */
}

/* Enable scrolling on mobile devices */
@media (max-width: 768px) {
  html, body {
    overflow: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    height: auto;
    min-height: 100vh;
  }
  
  body {
    overflow-x: hidden; /* Prevent horizontal scroll */
    overflow-y: auto;   /* Allow vertical scroll */
  }
}

h1 {
  font-size: 2.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-align: center;
}

p {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 2rem;
}

footer {
  width: 100vw;
  background: var(--header-footer-bg);
  color: var(--header-footer-text);
  text-align: center;
  padding: 1em 0;
  position: fixed;
  bottom: 0;
  left: 0;
}

.footer-link {
  color: #b6c2d1;
  text-decoration: none;
  font-weight: 500;
  margin: 0 0.2em;
  transition: color 0.2s;
}
.footer-link:hover {
  color: #f8fafc;
  text-decoration: underline;
}


header {
  width: 100vw;
  background: var(--header-footer-bg);
  color: var(--header-footer-text);
  padding: 1.4em 0 1em 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  box-shadow: 0 2px 16px rgba(24,34,51,0.11);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2em;
  height: 100%;
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    padding: 0 1em;
    gap: 0.5em;
  }
  
  header {
    padding: 0.8em 0 0.6em 0;
  }
}

.header-content h1 {
  font-size: 2.1rem;
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #f8fafc;
  flex: 0 0 auto;
}

@media (max-width: 768px) {
  .header-content h1 {
    font-size: 1.4rem;
    text-align: center;
    margin: 0;
  }
}

.nav-bar {
  display: flex;
  gap: 1.2em;
  margin-left: 2.5em;
  flex: 1 1 auto;
}

@media (max-width: 768px) {
  .nav-bar {
    margin-left: 0;
    gap: 0.6em;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.nav-btn {
  display: inline-block;
  padding: 0.55em 1.4em;
  border-radius: 8px;
  background: none;
  color: #cbd5e1;
  font-size: 1.08rem;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 500;
  text-decoration: none;
  border: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  cursor: pointer;
  outline: none;
}

@media (max-width: 768px) {
  .nav-btn {
    padding: 0.3em 0.8em;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .nav-btn {
    padding: 0.35em 0.8em;
    font-size: 0.9rem;
  }
}

.nav-btn:hover, .nav-btn:focus {
  background: #23272f;
  color: #f8fafc;
  box-shadow: 0 2px 8px rgba(24,34,51,0.10);
  text-decoration: none;
}

.nav-active {
  background: #353a40;
  color: #f8fafc;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(24,34,51,0.14);
}


.about-box {
  background: #23272f;
  border: 2px solid #353a40;
  border-radius: 22px;
  max-width: 720px;
  min-width: 350px;
  margin: 7em auto 0 auto;
  padding: 3em 3em 2.5em 3em;
  color: #f1f5fa;
  text-align: center;
  font-size: 1.22rem;
  font-family: 'Inter', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .about-box {
    margin: 4em 1em 0 1em;
    padding: 1.5em 1.2em 1.5em 1.2em;
    min-width: unset;
    border-radius: 16px;
  }
  
  .about-box h3 {
    font-size: 1.6rem;
    margin-bottom: 1em;
  }
}

@media (max-width: 480px) {
  .about-box {
    margin: 2.5em 0.5em 0 0.5em;
    padding: 1.2em 0.8em 1.2em 0.8em;
    font-size: 1.05rem;
  }
  
  .about-box h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8em;
  }
}

.about-box h3 {
  margin-top: 0;
  margin-bottom: 1.2em;
  font-size: 2rem;
  color: #f8fafc;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
}

.about-box p {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.7;
  color: #f1f5fa;
  text-align: center;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
}

header {
  width: 100vw;
  background: #181a1b;
  color: #f8fafc;
  text-align: center;
  padding: 2.2em 0 1.2em 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  font-size: 2.1rem;
  font-family: 'Inter', Arial, sans-serif;
  box-shadow: 0 2px 16px rgba(24,34,51,0.11);
  letter-spacing: 0.01em;
}

footer {
  width: 100vw;
  background: #181a1b;
  color: #f8fafc;
  text-align: center;
  padding: 1.5em 0 1.2em 0;
  position: fixed;
  bottom: 0;
  left: 0;
  font-size: 1.2rem;
  font-family: 'Inter', Arial, sans-serif;
  box-shadow: 0 -2px 16px rgba(24,34,51,0.11);
  letter-spacing: 0.01em;
}

.about-box h3 {
  margin-top: 0;
  margin-bottom: 1.2em;
  font-size: 2rem;
  color: #eaf2fb;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
}

.about-box p {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.7;
  color: #f1f5fa;
  text-align: center;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
}

header {
  width: 100vw;
  background: #181a1b;
  color: #f8fafc;
  text-align: center;
  padding: 2.2em 0 1.2em 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  font-size: 2.1rem;
  font-family: 'Inter', Arial, sans-serif;
  box-shadow: 0 2px 16px rgba(24,34,51,0.11);
  letter-spacing: 0.01em;
}

footer {
  width: 100vw;
  background: #181a1b;
  color: #f8fafc;
  text-align: center;
  padding: 1.5em 0 1.2em 0;
  position: fixed;
  bottom: 0;
  left: 0;
  font-size: 1.2rem;
  font-family: 'Inter', Arial, sans-serif;
  box-shadow: 0 -2px 16px rgba(24,34,51,0.11);
  letter-spacing: 0.01em;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

body {
  padding-top: 3.5em;
  padding-bottom: 3em;
}


@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
  }
  p {
    font-size: 1.05rem;
  }
  
  body {
    padding-top: 5.5em;
  }
  
  footer {
    padding: 0.7em 0;
    font-size: 0.95rem;
  }
  
  .footer-link {
    font-size: 0.9rem;
    margin: 0 0.15em;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.5rem;
  }
  p {
    font-size: 1rem;
  }
  
  body {
    padding-top: 5em;
  }
  
  .header-content h1 {
    font-size: 1.3rem;
  }
  
  .nav-btn {
    padding: 0.25em 0.7em;
    font-size: 0.85rem;
  }
  
  header {
    padding: 0.6em 0 0.5em 0;
  }
  
  footer {
    padding: 0.6em 0;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.3rem;
  }
  p {
    font-size: 0.95rem;
  }
  
  body {
    padding-top: 4.5em;
  }
  
  .about-box h3 {
    font-size: 1.6rem;
  }
  
  .about-box p {
    font-size: 1.05rem;
  }
  
  .header-content h1 {
    font-size: 1.2rem;
  }
  
  .nav-btn {
    padding: 0.2em 0.6em;
    font-size: 0.8rem;
  }
  
  header {
    padding: 0.5em 0 0.4em 0;
  }
  
  footer {
    padding: 0.5em 0;
    font-size: 0.85rem;
  }
  
  .footer-link {
    font-size: 0.8rem;
  }
}

/* Resource grid styles */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.2em;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 6.5em;
  padding-bottom: 3em;
  box-sizing: border-box;
  width: 100%;
}

body {
  padding-top: 6.5em;
  padding-bottom: 4.5em;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .resources-grid {
    padding-top: 4em;
    padding-bottom: 2.5em;
    gap: 1.8em;
    grid-template-columns: 1fr;
    padding-left: 1em;
    padding-right: 1em;
  }
}

@media (max-width: 600px) {
  .resources-grid {
    padding-top: 3.5em;
    padding-bottom: 2em;
    padding-left: 0.5em;
    padding-right: 0.5em;
  }
}

@media (max-width: 480px) {
  .resources-grid {
    padding-top: 3em;
    gap: 1.5em;
  }
}

.resource-box {
  background: #23272f;
  border: 2px solid #353a40;
  border-radius: 18px;
  box-shadow: 0 2px 18px rgba(24,34,51,0.09);
  padding: 2.2em 2em 1.6em 2em;
  color: #f1f5fa;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 220px;
  transition: box-shadow 0.18s, border 0.18s;
}
.resource-box:hover {
  box-shadow: 0 4px 28px rgba(24,34,51,0.14);
  border: 2px solid #6ea3ff;
}
.resource-box h3 {
  font-size: 1.32rem;
  margin-bottom: 0.6em;
  color: #dbeafe;
}
.resource-box p {
  font-size: 1.05rem;
  color: #cbd5e1;
  margin-bottom: 1.4em;
}
.resource-links {
  display: flex;
  gap: 1.2em;
  justify-content: center;
}
.resource-link {
  display: inline-block;
  padding: 0.5em 1.2em;
  border-radius: 7px;
  background: #353a40;
  color: #f8fafc;
  text-decoration: none;
  font-size: 1.01rem;
  font-weight: 500;
  border: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 6px rgba(24,34,51,0.08);
}
.resource-link:hover, .resource-link:focus {
  background: #23272f;
  color: #6ea3ff;
  box-shadow: 0 2px 12px rgba(24,34,51,0.13);
}

/* Contact form styles */
.contact-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.1em;
  margin: 0 auto 1.5em auto;
  max-width: 420px;
  width: 100%;
}

@media (max-width: 768px) {
  .contact-form {
    gap: 0.8em;
    margin: 0 auto 1.2em auto;
  }
  
  .contact-form textarea {
    min-height: 60px;
  }
  
  .contact-info {
    margin-top: 1.2em;
  }
  
  .contact-info p {
    font-size: 0.95rem;
    margin: 0;
  }
}

@media (max-width: 480px) {
  .contact-form {
    gap: 0.5em;
    margin: 0 auto 0.6em auto;
  }
  
  .contact-form label {
    font-size: 0.9rem;
    margin-bottom: 0.15em;
  }
  
  .contact-form input,
  .contact-form textarea {
    font-size: 0.9rem;
    padding: 0.5em 0.7em;
  }
  
  .contact-form textarea {
    min-height: 40px;
  }
  
  .contact-btn {
    padding: 0.5em 1.2em;
    font-size: 0.95rem;
    margin-top: 0.2em;
  }
  
  .contact-info {
    margin-top: 0.8em;
  }
  
  .contact-info p {
    font-size: 0.85rem;
    line-height: 1.4;
  }
}

.contact-form label {
  color: #b6c2d1;
  font-size: 1.02rem;
  font-weight: 500;
  margin-bottom: 0.3em;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  background: #23272f;
  color: #f1f5fa;
  border: 1.5px solid #353a40;
  border-radius: 7px;
  font-size: 1.05rem;
  padding: 0.7em 1em;
  margin-bottom: 0.2em;
  font-family: 'Inter', Arial, sans-serif;
  resize: vertical;
  transition: border 0.18s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border: 1.5px solid #6ea3ff;
  outline: none;
}

.contact-btn {
  background: #353a40;
  color: #f8fafc;
  border: none;
  border-radius: 8px;
  padding: 0.75em 1.7em;
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5em;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(24,34,51,0.10);
}

.contact-btn:hover, .contact-btn:focus {
  background: #23272f;
  color: #f8fafc;
  box-shadow: 0 2px 12px rgba(24,34,51,0.14);
}

.contact-info {
  margin-top: 1.7em;
  color: #b6c2d1;
  font-size: 1.04rem;
  text-align: center;
}

/* Thank you message styles */
.thank-you-message {
  background: #1e3a2e;
  border: 1.5px solid #2d5a3d;
  border-radius: 8px;
  padding: 1.5em;
  margin: 1.5em auto;
  max-width: 420px;
  text-align: center;
  color: #a7f3d0;
  animation: fadeIn 0.5s ease-in;
}

.thank-you-message h4 {
  color: #6ee7b7;
  margin: 0 0 0.5em 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.thank-you-message p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .thank-you-message {
    padding: 1.2em;
    margin: 1.2em auto;
  }
  
  .thank-you-message h4 {
    font-size: 1.1rem;
  }
  
  .thank-you-message p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .thank-you-message {
    padding: 1em;
    margin: 1em auto;
  }
  
  .thank-you-message h4 {
    font-size: 1rem;
  }
  
  .thank-you-message p {
    font-size: 0.9rem;
  }
}

