body {
  font-family: 'Eb Garamond', Georgia, Times, 'Times New Roman', serif;
  line-height: 1.8;
  color: #333;
  margin: 0;
  padding: 0;
  background: #f4f5f7; /* your updated subtle background */
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: #f4f5f7;
  display: flex;
  flex-direction: column;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 20rem; /* VERY IMPORTANT to accomodate the haro not being overwritten by body */
    background: rgb(83, 103, 252);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}


.original-svg-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#top-header-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 5rem;
}

/* Hero Content */
.hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 100;
    padding: 1rem 0; /* top of haro */
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.site-title {
    font-size: 3.5rem;
    /* Larger than h1 */
    font-weight: 400;
    color: white;
    font-family: 'Eb Garamond', Georgia, Times, serif;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    /* Scholarly style */
    letter-spacing: 1px;
}

.hero-text h1 {
    font-size: 2rem;
    /* Smaller than site-title */
    font-weight: 300;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-text .subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    font-weight: 300;
    line-height: 1.4;
}

/* Home Section Badges */
.home-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #333;
    font-size: 0.85rem;
    font-weight: 500;
}

.federal-badge {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
}

/* Navigation */
.main-navigation {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    display: block;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-bottom-color: #4CAF50;
    transform: translateY(-2px);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    touch-action: manipulation;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Main Content */
main {
  flex: 1;
  background: #D3D3D3;
}


.section {
    display: none;
    padding: 4rem 0;
    min-height: 60vh;
}

.section.active {
    display: block;
    animation: fadeIn 0.6s ease-in;
}

.section-title {
    font-size: 2.5rem;
    color: #1e3c72;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 200;
}

/* Enhanced Registration Form */
.registration-panel {
  background: linear-gradient(135deg, #e0e0e0, #d3d3d3);
  padding: 3rem;
  padding-bottom: 4rem; /* extra bottom space for breathing room */
  border-radius: 12px;
  margin: 3rem auto;
  max-width: 700px;
  border: 1px solid #ccc;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}


.registration-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #4CAF50, #45a049, #2196F3, #1976D2);
}

.form-title {
    text-align: center;
    color: #1e3c72;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.registration-form {
    display: grid;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1e3c72;
  margin-bottom: 0.5rem;
  text-align: center;
  display: block;
  width: 100%;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f0f0f0;
    /* changed from white to soft gray */
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-row {
  grid-column: 1 / span 2;
  display: flex;
  justify-content: center;   /* Center both buttons */
  align-items: center;
  gap: 1rem;                 /* Equal gap between Go Back and Submit */
  margin-top: 1.5rem;
}

.submit-btn {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  font-weight: 600;
}

.back-btn {
  background: #ccc;
  color: #333;
}

.back-btn,
.submit-btn {
  min-width: 140px;
  padding: 0.4rem 1.2rem;
  font-size: 0.95rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}


.back-btn:hover {
  background: #bbb;
}


.submit-btn:hover {
  background: linear-gradient(135deg, #45a049, #4CAF50);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Form Success Message */
.form-message {
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Big Picture Accordion */
.accordion {
    background: #D3D3D3;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.accordion-header {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 1.5rem;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    font-size: 1.2rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: linear-gradient(135deg, #2a5298, #1e3c72);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background: #f8f9fa;
}

.accordion-content.active {
    max-height: 1000px;
}

.accordion-inner {
    padding: 2rem;
    line-height: 1.7;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.card {
    background: #C4D8E2;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: all 0.3s ease;
    border-top: 4px solid #1e3c72;
}

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

.card h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.card ul {
    list-style: none;
    padding: 0;
}

.card ol {
    padding-left: 2rem;
    /* Indent the numbers from the left edge */
    margin: 0;
}

.card ol li {
    padding-left: 0;
    /* Cancel the 1.5rem indent coming from .card li */
    position: static;
    /* Cancel relative positioning used for the ▶ arrow in ul */
}


.card li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.card li:last-child {
    border-bottom: none;
}

.card ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-size: 0.8rem;
}


/* Team Cards */
.team-member {
    background: #C4D8E2;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    margin: 2rem 0;
    border-left: 6px solid #1e3c72;
}

.team-member h3 {
    color: #1e3c72;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.team-member .role {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
}

.team-member p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.team-member a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
}

.team-member a:hover {
    text-decoration: underline;
}

/* Software Highlight */
.software-highlight {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 1rem 1.5rem;    /* Less vertical and horizontal padding */
    border-radius: 8px;
    text-align: center;
    margin: 2rem auto;
    max-width: 400px;        /* Narrower width */
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.25);
}


.software-highlight h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 300;
}


/* About pdf to download*/
.about-highlight {
    background: #C4D8E2;
    color: black;
    padding: 0.5rem 0.5rem;
    border-radius: 8px;
    text-align: center;
    margin: 2rem auto;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.25);
    border: 2px solid #0066cc;  /* New border */
}
.about-highlight h3 {
    font-size: 2.2rem;
    margin-top: 0.02rem;
    margin-bottom: 1rem;
    font-weight: 100;
}

/* News Items */
.news-item {
    background: #C4D8E2;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 2rem 0;
    border-left: 6px solid #4CAF50;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 8px;
}

.contact-item h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 0.3rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.footer-logo img {
    width: 1.5rem;
    padding: 0.05rem;
}

.footer-info {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    line-height: 1.2;
}

footer .container>div:last-child {
    display: inline;
    font-size: 0.6rem;
    margin: 0;
    padding: 0;
    border-top: none;
}

footer .container>div:last-child p {
    display: inline;
    margin: 0 0.5rem;
}

footer .container>div:last-child p:last-child {
    font-size: 0.55rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 1.5rem;
    }

    .hero-text .subtitle {
        font-size: 0.9rem;
    }

    .site-title {
        font-size: 2.5rem;
        /* Still larger than h1 on mobile */
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(30, 60, 114, 0.98);
        backdrop-filter: blur(10px);
        z-index: 1000;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links a {
        padding: 1.2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .home-badges {
        flex-direction: column;
        align-items: center;
    }

.form-row {
  margin-top: 0.8rem;
}



    .footer-content {
        flex-direction: row;
        gap: 0.3rem;
    }

    .footer-logo img {
        width: 1.2rem;
    }

    .footer-info {
        font-size: 0.65rem;
        gap: 0.3rem;
    }

    footer .container>div:last-child {
        font-size: 0.55rem;
    }

    footer .container>div:last-child p:last-child {
        font-size: 0.5rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Collapsible Tree Iframe Styling */
.tree-container {
    background: #D3D3D3;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    overflow: hidden;
}

.tree-container iframe {
    width: 100%;
    height: 500px;
    border: none;
}


/* Compact Registration Panel Overrides */
.registration-panel {
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 600px;
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.registration-form {
    gap: 1rem;
}

.form-row {
    gap: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.5rem;
    font-size: 0.9rem;
}


ul {
    padding-left: 2rem;
    /* Indents list from the left */
    margin-bottom: 1.5rem;
    /* Adds spacing below the list */
}

li {
    margin-bottom: 0.5rem;
    /* Spacing between items */
    line-height: 1.6;
    /* Makes list easier to read */
}



/* Fix for standalone short course page */
body.page-short-course .section {
    display: block;
}

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 200px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: white;
    margin: auto;
    padding: 20px;
    border: 2px solid #888;
    width: 50%;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: #000;
}

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 1.5rem;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    margin-left: 10px;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
}

/* === FINAL 200px FORM FIELD WIDTH === */

.form-container {
  max-width: 700px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: repeat(2, 200px) !important;
  column-gap: 0.3rem !important;
  row-gap: 0.4rem !important;
  justify-content: center !important;
  margin-bottom: 3rem !important;
}


.form-row {
  display: contents; /* Allow grid parent to manage layout */
}

.form-group {
  display: flex;
  flex-direction: column;
  align-items: center; /* <-- centers content horizontally */
  text-align: center;  /* <-- centers label text */
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 200px;
  max-width: 200px;
  padding: 0.3rem;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.note-captcha-row {
  grid-column: 1 / span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  column-gap: 1rem;
}

.note-captcha-row .form-group textarea {
  width: 200px;
  max-width: 200px;
}

.note-captcha-row .form-group:nth-child(2) {
  align-items: flex-start;
  text-align: left;
}


/* Responsive fallback */
@media (max-width: 768px) {
  .form-container {
    grid-template-columns: 1fr;
  }

  .form-group {
    align-items: flex-start !important;
    text-align: left !important;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100% !important;
    max-width: 100% !important;
  }

}


/* === Navigation Styling === */
#navLinks {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
    background: #002b5c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }

  #navLinks {
    display: none;
    flex-direction: column;
    background-color: #002b5c;
    width: 100%;
    padding: 10px 0;
  }

  #navLinks.show {
    display: flex;
  }

  #navLinks li {
    margin: 0.5rem 1rem;
  }

  #navLinks a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
  }

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* === Footer Compact Styling === */
footer {
  font-size: 0.8rem;
  line-height: 1.2;
}

footer p {
  margin: 2px 0;
}


/* === Layout Fixes for White Margins === */
body, html {
  margin: 0;
  padding: 0;
  width: 100%;
}

.container {
  max-width: 100%;
  padding: 0 10px;
  margin: 0 auto;
}

/* === Tighten Menu Wrap on Narrow Screens === */
#navLinks {
  flex-wrap: wrap;
  row-gap: 0.25rem;
  column-gap: 1rem;
  justify-content: flex-start;
}
