/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* Header Styles */
header {
    background: linear-gradient(135deg, #182B49 0%, #1C3C5F 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

header .subtitle {
    font-size: 1.2rem;
    color: #B0C4DE;
    font-weight: 300;
}

/* Navigation Styles */
nav {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

nav ul li {
    margin: 0;
}

nav ul li a {
    display: block;
    padding: 20px 25px;
    text-decoration: none;
    color: #182B49;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav ul li a:hover {
    background-color: #f8f9fa;
    border-bottom-color: #C69214;
    color: #C69214;
}

/* Main Content */
main {
    padding: 40px 20px;
}

.section {
    background: white;
    margin-bottom: 30px;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section h2 {
    color: #182B49;
    font-size: 2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #C69214;
    display: inline-block;
}

.section p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #555;
}

/* Objectives Grid */
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.objective-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #C69214;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.objective-card h3 {
    color: #182B49;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.objective-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Methodology List */
.methodology-list {
    margin-top: 20px;
    margin-left: 20px;
}

.methodology-list li {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #555;
    padding-left: 10px;
}

.methodology-list strong {
    color: #182B49;
}

/* UCSD Info Box */
.ucsd-info {
    background: linear-gradient(135deg, #182B49 0%, #1C3C5F 100%);
    color: white;
    padding: 25px;
    border-radius: 8px;
    margin-top: 20px;
}

.ucsd-info p {
    margin-bottom: 10px;
    color: white;
    font-size: 1.05rem;
}

.ucsd-info p:last-child {
    margin-bottom: 0;
}

/* Contact Info */
.contact-info {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #C69214;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.contact-info a {
    color: #182B49;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #C69214;
}

/* Footer */
footer {
    background-color: #182B49;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
}

footer p {
    margin: 0;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    header .subtitle {
        font-size: 1rem;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li a {
        padding: 15px 20px;
    }

    .section {
        padding: 25px 20px;
    }

    .section h2 {
        font-size: 1.5rem;
    }

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

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    .section {
        padding: 20px 15px;
    }

    .objective-card {
        padding: 20px;
    }
}

.iframe-wrapper {
  position: relative;
  width: 100%;
  height: 500px;
  margin-bottom: 1rem;
}

.iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 2px solid #d1d5db;   /* border color */
  border-radius: 8px;          /* rounded corners (optional) */
  background: #fff;            /* avoids transparency flash */
}

/* loader stays above */
.iframe-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  z-index: 2;
}

.iframe-loader.hidden {
  display: none;
}

.iframe-loader img {
  width: 50%;
  height: 50%;
  object-fit: contain; /* keeps full GIF visible */
}

.frame-scale {
  transform: scale(0.5);        /* adjust this number */
  transform-origin: top left;   /* prevents shifting */
  width: 150%;                  /* 1 / 0.8 = 1.25 */
  height: 150%;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hdsi-logo {
    height: 30px;   /* Adjust size as needed */
    width: auto;
}

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

.project-links {
    margin-top: 25px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.project-links a {
    background: #182B49;
    color: white;
    padding: 12px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.25s ease;
}

.project-links a:hover {
    background: #C69214;
    transform: translateY(-2px);
}

.data-figure {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;        /* soft background */
    border-radius: 10px;
    border: 1px solid #e3e6ea;
    text-align: center;
}

.data-figure img {
    max-width: 100%;
    border-radius: 6px;
}

.figure-caption {
    margin-top: 10px;
    font-size: 0.85rem;         /* smaller caption */
    color: #666;
    line-height: 1.4;
}

.results-figure {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e3e6ea;
    text-align: center;
}

.results-images {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.results-images img {
    width: 48%;
    max-width: 520px;
    border-radius: 6px;
}

/* Hide navigation menu on mobile devices */
@media (max-width: 768px) {
    nav {
        display: none;
    }
}

@media (max-width: 768px) {
    header {
        padding-bottom: 10px;
    }
}


.results-images {
    display: flex;
    gap: 20px;
}

.results-images img {
    width: 50%;
    height: auto;
}

@media (max-width: 768px) {
    .results-images {
        flex-direction: column;
    }

    .results-images img {
        width: 100%;
    }
}

.achievement-list {
    margin-top: 10px;
    padding-left: 20px;
}

.achievement-list li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.overview-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #00629b;
    border-radius: 6px;
    padding: 18px 20px;
    margin-top: 25px;
}

.overview-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.metric-dropdown {
    margin: 15px 0;
    padding: 10px;
    background: #f8fafc;
    border-radius: 6px;
}

.metric-dropdown summary {
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 10px;
}

.metric-dropdown[open] {
    border-left: 4px solid #00629b;
}

.metric-figure {
    text-align: center;
    margin: 10px 0;
}

.metric-figure img {
    max-width: 100%;
    border-radius: 6px;
}
/* Style the collapsible dropdown */
.instructions-dropdown {
    margin: 20px 0;
    padding: 15px 20px;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 4px solid #00629b;
}

/* Style the summary line */
.instructions-dropdown summary {
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Fix spacing for unordered lists inside dropdowns */
.instructions-dropdown ul {
    margin: 10px 0 10px 20px; /* top, right, bottom, left */
    padding-left: 0;
    line-height: 1.6;
}

/* Optional: spacing for list items inside nested paragraphs */
.instructions-dropdown li {
    margin-bottom: 8px;
}

code {
    background-color: #e2e8f0; /* light gray background */
    border: 1px solid #334155; /* dark border for contrast */
    border-radius: 4px;        /* slightly rounded corners */
    padding: 2px 6px;          /* some inner spacing */
    font-family: 'Fira Code', monospace; /* optional: nice monospace font */
    font-size: 0.95em;         /* slightly smaller than normal text */
    color: #0f172a;            /* dark text for readability */
}