body {
    margin: 0;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background: #f7f9fb;
    color: #1a1a1a;
}

/* Header */
header {
    margin-bottom: 40px;
}

header h1 {
    margin: 0;
    font-size: 2em;
}

.back {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.back a {
    font-size: 0.95em;
    color: #007acc;
    text-decoration: none; /* IMPORTANT: removes default underline */
    position: relative;
    display: inline-block;
}

/* underline animation (ONLY on hover) */
.back a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 1px;
    background: #007acc;
    transition: width 0.25s ease;
}

/* underline appears ONLY on hover */
.back a:hover::after {
    width: 100%;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 50px 20px;
}

/* Section */
.section {
    margin-bottom: 40px;
}

/* Card (same style as your gallery page) */
.card {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e6e9ee;
    transition: all 0.25s ease;
}

.card:hover {
    border-color: #007acc;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.steps {
    padding-left: 20px;
}

.steps li {
    margin-bottom: 14px;
    line-height: 1.5;
}

/* Titles */
h2 {
    margin-top: 0;
    font-size: 1.2em;
    border-bottom: 2px solid #eef2f6;
    padding-bottom: 6px;
}

.sub {
    display: block;
    font-size: 0.85em;
    color: #777;
    margin-top: 2px;
}

/* Table */
.table-container {
    overflow-x: auto;
}

.modern-table {
    width: 100%;
    border-collapse: separate;   /* IMPORTANT */
    border-spacing: 0;           /* keeps it tight */
    margin-top: 10px;
    font-size: 0.95em;

    border: 1px solid #e6e9ee;
    border-radius: 10px;
    overflow: hidden;            /* clips inner corners */
}

.modern-table th,
.modern-table td {
    border: 1px solid #bcc5cc;
    padding: 12px 10px;
    vertical-align: middle;
    text-align: left;
}

.modern-table thead th {
    background: #fafbfc;
    font-weight: 600;
}

/* Top-left corner */
.modern-table thead tr:first-child th:first-child {
    border-top-left-radius: 10px;
}

/* Top-right corner */
.modern-table thead tr:first-child th:last-child {
    border-top-right-radius: 10px;
}

.modern-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}

.modern-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}

/* Row hover */
.modern-table tbody tr {
    transition: background 0.2s ease;
}

.modern-table tbody tr:hover {
    background: #f4f9ff;
}

/* Links */
.modern-table a {
    color: #007acc;
    text-decoration: none;
    position: relative;
}

.modern-table a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 1px;
    background: #007acc;
    transition: width 0.25s ease;
}

.modern-table a:hover::after {
    width: 100%;
}

/* Thumbnail */
.thumb-link {
    display: inline-block;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thumb-link img {
    width: 140px;
    height: 100%;;
    object-fit: cover;
    display: block;
}

.thumb-link:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}


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

.modal-content {
    display: block;
    margin: auto;
    max-width: 95%;
    max-height: 95%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
}


/* Footer */
footer {
    margin-top: 40px;
    text-align: center;
    color: #888;
    font-size: 0.9em;
}