/* Import Questrial font */
@import url('https://fonts.googleapis.com/css2?family=Questrial&display=swap');

/* Global body styles */
body {
  font-family: 'Saira', Arial, sans-serif;
  font-weight: 300;
  font-size: 1.125rem;
  max-width: 900px;
  margin: 20px auto;
  padding: 0 15px;
  color: #555;
  line-height: 1.5;
}

/* Heading 1 styles using Questrial font with explicit weight */
h1 {
  font-family: 'Questrial', sans-serif;
  font-weight: 400;
  font-size: 48px;
  color: #666;
  margin: 0 0 20px 0;
  text-decoration: underline;
  text-decoration-color: #ccc;
  text-underline-offset: 12px;
}

.larger-text {
  font-size: 1.25rem;
  margin-bottom: 20px;
  font-weight: 600;
}

/* Margin between tab wrappers */
.tab-wrapper {
  margin-bottom: 40px;
}

/* Social title style */
.social-title {
  background-color: #123c79;
  color: white;
  display: inline-block;
  padding: 8px 16px;
  border-radius: 10px 10px 0 0;
  font-weight: bold;
  margin-bottom: 0;
}

/* Tabs container */
.tabs {
  display: flex;
  margin-bottom: 0;
  border-bottom: 2px solid #ccc;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  flex-wrap: nowrap;
}

/* Individual tab style */
.tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  background-color: #1e7b34;
  color: white;
  border-right: 1px solid #195e24;
  user-select: none;
  box-sizing: border-box;
}

.tab:last-child {
  border-right: none;
}

.tab.active {
  background-color: #d7194c;
  font-weight: bold;
}

/* Tab content area */
.tab-content {
  border: 1px solid #ccc;
  border-top: none;
  padding: 15px;
  background: #f1f1f1;
  border-radius: 0 0 10px 10px;
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-content a {
  color: #004080;
  text-decoration: underline;
}

.tab-content p {
  margin-bottom: 10px;
}

/* Responsive quick links */
.quick-links {
  display: flex;
  gap: 15px;
  margin-bottom: 35px;
  flex-wrap: nowrap;
  overflow-x: auto; /* Horizontal scroll on narrow screens */
}

.quick-links a {
  padding: 15px 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.12);
  text-decoration: underline;
  font-size: 16px;
  border-radius: 3px;
  color: #555;
  line-height: 1.2;
  flex-basis: 0;
  flex-grow: 1;
  flex-shrink: 1;
  min-width: unset;
  max-width: none;
  box-sizing: border-box;
  cursor: pointer;
}

/* Gray box styling */
.gray-box {
  background-color: #e3e3e3;
  padding: 15px 20px;
  margin-bottom: 25px;
  border-radius: 3px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.gray-box a {
  color: #555;
  text-decoration: underline;
  font-size: 18px;
  display: block;
  margin-bottom: 10px;
}

/* Ensure proper spacing after tools bar */
.tools-bar {
  margin-bottom: 25px;
}

/* Responsive changes for tablets and mobile */
@media (max-width: 690px) {
  /* Stack quick links vertically */
  .quick-links {
    flex-direction: column;
  }
  .quick-links a {
    width: 100%;
  }
  /* Make tabs wrap and stack vertically */
  .tabs {
    flex-wrap: wrap;
    flex-direction: column;
    border-radius: 10px; /* rounded corners all around */
  }
  /* Tabs full width, stacked */
  .tab {
    flex: none;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #195e24;
    box-sizing: border-box;
    padding: 10px 15px;
    font-size: 14px;
  }
  .tab:last-child {
    border-bottom: none;
  }
  .tab.active {
    font-weight: bold;
  }
  /* Adjust tab content padding for mobile */
  .tab-content {
    padding: 12px 15px;
  }
}

/* Mobile responsive tweaks for very small devices */
@media (max-width: 400px) {
  body {
    padding: 10px;
  }
  .welcome-text {
    font-size: 13px;
  }
  .tab, .tab-content p, .social-title {
    font-size: 13px;
  }
}
