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

/* Base */
body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
        sans-serif;
    color: #1d1d1f;
    background-color: #ffffff;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid #e5e5e7;
    z-index: 1000;
}

.nav-container {
    max-width: 2000px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Logo */
.logo {
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    color: #1d1d1f;
}

/* Nav links (desktop) */
.nav-links {
    list-style: none;
    display: flex;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    font-size: 14px;
    color: #1d1d1f;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 1;
}

/* Style for the login button */
.nav-links li a.login-button {
    background-color: rgb(28, 32, 57); /* Brand navy */
    color: #fff; /* White text */
    padding: 10px 20px; /* Padding for spacing */
    border-radius: 5px; /* Slightly rounded corners */
    text-decoration: none; /* Remove underline from link */
    font-weight: bold; /* Make the text bold */
    transition:
        background-color 0.3s,
        color 0.3s; /* Smooth transition for both background and text color */
}

/* Style for the hover effect */
.nav-links li a.login-button:hover {
    background-color: rgb(45, 51, 88); /* Lighter brand navy on hover */
    color: #fff; /* Ensure text remains white on hover */
}

/* Hide checkbox */
#menu-toggle {
    display: none;
}

/* Hamburger */
.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px 0;
    background-color: #1d1d1f;
    transition: all 0.3s ease;
}

/* Hero */
.hero {
    max-width: 900px;
    margin: 120px auto;
    padding: 0 24px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero p {
    font-size: 20px;
    color: #6e6e73;
}

/* Footer */
.footer {
    border-top: 1px solid #e5e5e7;
    padding: 24px;
    text-align: center;
    font-size: 13px;
    color: #6e6e73;
}

/* Images */
.centered-image {
    display: block;
    margin: 80px auto;
    max-width: 100%;
    height: auto;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 32px; /* adjust to taste (28–36px works well) */
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .logo img {
        height: 28px;
    }
}

/* Actions */
.table-actions {
    vertical-align: middle;
}

.actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.action-card {
    display: block;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e5e7;
    text-decoration: none;
    color: #1d1d1f;
    font-size: 16px;
    font-weight: 500;
    transition:
        background-color 0.2s ease,
        transform 0.1s ease;
}

.action-card:hover {
    background-color: #f5f5f7;
    transform: translateY(-1px);
}

.action-card.danger {
    color: #c92c2c;
}

.footer a {
    color: #1d1d1f;
    text-decoration: none;
    position: relative;
    transition: color 0.25s ease;
}

.footer a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s ease;
}

.footer a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.footer a:hover {
    color: #000;
}

.footer a:focus-visible {
    outline: 2px solid #1d1d1f;
    outline-offset: 2px;
}

/* ------------------ */
/* Image banner       */
/* ------------------ */
.img-banner {
    width: 100%;
    height: 340px;
    overflow: hidden;
}

.img-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 768px) {
    .img-banner {
        height: 220px;
    }
}

/* ------------------ */
/* Mobile styles */
/* ------------------ */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 24px 0;
        display: none;
        border-bottom: 1px solid #e5e5e7;
    }

    /* Show menu when checkbox is checked */
    #menu-toggle:checked + .menu-toggle + .nav-links {
        display: flex;
    }
}
