/* 🔥 GeoSpatial Crash  Section */
.project-detail-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: 'Segoe UI', sans-serif;
}

.project-detail-section ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.project-detail-section h2 {
    margin-top: 30px;
    font-size: 1.5rem;
    color: #333;
}

.project-link {
    color: inherit;             /* Use the default text color */
    text-decoration: none;     /* Remove underline */
    font-weight: bold;         /* Optional: keep it bold */
}

.project-link:hover {
    text-decoration: underline; /* Optional: underline on hover */
    color: inherit;             /* Prevent hover color change */
}

/* Author Section */
.author-info {
    text-align: right;
    font-size: 0.95em;
    color: #555;
    margin-bottom: 20px;
  }

/* Background Section */
.body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    max-width: 900px;
    margin: 80px auto 0; /* top padding for fixed navbar */
    padding: 40px 20px;

    /* Background image setup */
    background-image: url('/static/image/geospatial_crash_project/background.jpg');
    background-size: cover;          /* Make it cover the entire area */
    background-position: center;     /* Center the image */
    background-attachment: fixed;    /* Optional: parallax effect */

    position: relative;              /* Needed for overlay positioning */
}

/* Transparent overlay */
.body::before {
    content: "";
    position: fixed;      /* Stays in place while scrolling */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.7); /* White overlay, 70% opacity */
    z-index: -1;          /* Keep it behind the text */
}

/* Transparent navbar only for pages with class="body" */
.body .topnav {
    background: transparent;
    backdrop-filter: blur(6px);           /* frosted glass effect */
    border-bottom: 1px solid rgba(200, 200, 200, 0.5);
}

/*  Table Section */
.table-container {
    overflow-x: auto;
    margin: 24px 0 40px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(4px);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Table basics */
.styled-table {
    width: 100%;
    border-collapse: separate;      /* allows rounded corners without clipping */
    border-spacing: 0;              /* but keep cells tight */
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.96rem;
    color: #1f2d3d;
    border-radius: 8px;             /* applied via overflow hidden below */
    overflow: hidden;
}

/* Header */
.styled-table thead tr {
    background-color: #0b3d57;      /* richer teal */
    color: #ffffff;
}
.styled-table th {
    text-align: center;
    padding: 12px 14px;
    font-weight: 700;
    letter-spacing: .2px;
    border: none;                   /* cleaner header */
}

/* Cells */
.styled-table td {
    padding: 12px 14px;
    vertical-align: top;
    line-height: 1.5;
    border: none;                   /* remove gridlines */
}

/* Row separators instead of full borders */
.styled-table tbody tr + tr td {
    border-top: 1px solid #e6eef3;
}

/* Zebra striping (subtle) */
.styled-table tbody tr:nth-child(even) td {
    background-color: #f6fbfe;
}

/* Hover (very gentle) */
.styled-table tbody tr:hover td {
    background-color: #eef7fb;
}

/* Emphasis rules keep working */
.styled-table em { font-style: italic; }
.styled-table strong { font-weight: 700; }

/* Left column: give it breathing room and weight */
.styled-table tbody td:first-child {
    width: 28%;
    font-weight: 700;
    color: #1a3340;
}

/* Caption (title) above table */
.table-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Source note under table */
.table-source {
    text-align: center;
    font-style: italic;
    margin-top: 10px;
    color: #334e5a;
}


.styled-table tbody tr.section-row td{
    background:#0b3d57;   /* same as header */
    color:#fff;
    font-weight:700;
    text-align:center;
}
  
.styled-table td.num { text-align:center; }

/* Image Section */
.styled-table .section-row td {
    background: #eaf4fb;   /* light blue bar */
    font-weight: 700;
    color: #0b3d57;
    border-top: 1px solid #d9e7f0; /* subtle divider */
  }
  
.styled-table td.num { text-align: right; }

/* Center numeric columns only */
.styled-table td:nth-child(2),
.styled-table td:nth-child(3),
.styled-table td:nth-child(4) {
    text-align: center;
}

.image-card {
    max-width: 900px;          /* keeps charts from stretching too wide */
    margin: 28px auto;
    padding: 16px;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  
.image-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
  }
  

.image-card figcaption {
    text-align: center;
    font-style: italic;
    color: #444;
    margin-top: 10px;
  }


/* Image for KDE */
.image-plain{
    max-width: 1000px;        /* a bit wider than your text if you like */
    margin: 24px auto;
    padding: 0;               /* no card padding */
    background: transparent;  /* no white background */
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
  }
.image-plain img{
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;       /* keep or remove */
  }
.image-plain figcaption{
    text-align: center;
    font-style: italic;
    color: #444;
    margin-top: 10px;
  }


/* Image for Moran's I Section */
.image-card-wide {
    max-width: 1000px;
    margin: 24px auto;
    padding: 16px;
    background: rgba(255,255,255,0.85);  /* white card */
    backdrop-filter: blur(4px);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.image-card-wide .image-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.image-card-wide img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

.image-card-wide figcaption {
    text-align: center;
    font-style: italic;
    color: #444;
    margin-top: 10px;
}


/* Workflow Section */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(5, auto); /* step, arrow, step, arrow, step */
    gap: 8px;
    justify-content: center;
    font-family: 'Segoe UI', sans-serif;
    margin: 20px auto;
}

.step {
    background: white;
    border: 1px solid #ccc;
    padding: 10px 16px;
    border-radius: 6px;
    min-width: 160px;
    text-align: center;
    font-size: 0.95rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.arrow {
    align-self: center;
    font-size: 1.2rem;
    color: #333;
    font-weight: bold;
}


/*  Variables Table Section Custom */
.table-container-1 {
    overflow-x: auto;
    margin: 24px 0 40px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(4px);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}


.styled-table-1 {
    width: 100%;
    border-collapse: separate;      /* allows rounded corners without clipping */
    border-spacing: 0;              /* but keep cells tight */
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.96rem;
    color: #1f2d3d;
    border-radius: 8px;             /* applied via overflow hidden below */
    overflow: hidden;
}


.styled-table-1 thead tr {
    background-color: #0b3d57;      /* richer teal */
    color: #ffffff;
}
.styled-table-1 th {
    text-align: left;
    padding: 12px 14px;
    font-weight: 700;
    letter-spacing: .2px;
    border: none;                   /* cleaner header */
}


.styled-table-1 td {
    padding: 12px 14px;
    vertical-align: top;
    line-height: 1.5;
    border: none;                   /* remove gridlines */
}


.styled-table-1 tbody tr + tr td {
    border-top: 1px solid #e6eef3;
}


.styled-table-1 tbody tr:nth-child(even) td {
    background-color: #f6fbfe;
}


.styled-table-1 tbody tr:hover td {
    background-color: #eef7fb;
}


.styled-table-1 em { font-style: italic; }
.styled-table-1 strong { font-weight: 700; }


.styled-table-1 tbody td:first-child {
    width: 28%;
    font-weight: 700;
    color: #1a3340;
}


.table-title-1 {
    text-align: center;
    font-weight: 700;
    margin-bottom: 10px;
}


.table-source-1 {
    text-align: center;
    font-style: italic;
    margin-top: 10px;
    color: #334e5a;
}

.styled-table-1 tbody tr.section-row td {
    background-color: #e3f2f9 !important; /* force blue background */
    font-weight: bold;
    color: #0b3d57;
    text-align: center;
    padding: 12px 14px;
}


/* REFERENCES section custom */
.references-container h2 {
    text-align: center;
    font-weight: 700;
    margin-bottom: 15px;
    color: #0b3d57;
}

.references-list {
    list-style: decimal inside;
    padding-left: 0;
    margin: 0;
}

.references-list li {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 0.95rem;
    color: #1f2d3d;
}

.references-list a {
    color: #0066cc;
    text-decoration: none;
}

.references-list a:hover {
    text-decoration: underline;
}