:root {
    --bg-url: url("/shared/images/background.jpg");
    --card-max-width: 1000px;
    --card-padding: clamp(1rem, 1.5vw + 0.5rem, 2rem);
    --radius-2xl: 1.25rem;
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.35);
    --text: #111827;
    --muted: #4b5563;
    --ring: rgba(255, 255, 255, 0.35);
    --primary: #7d1313;
    --inactive: #137d13;
    --icon-backdrop: rgba(0, 0, 0, 0.1);
    --photo-max-h: clamp(260px, 45vh, 560px);
}

/* Global */
html,
body {
    height: 100%;
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial;
    color: var(--text);
    background: var(--bg-url) center / cover fixed no-repeat;
    padding-top: 64px;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(80% 65% at 50% 35%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.45)), linear-gradient(0deg, rgba(20, 24, 28, 0.25), rgba(20, 24, 28, 0.25));
    pointer-events: none;
    z-index: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Typography */
h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 1.2rem + 2vw, 2.25rem);
    line-height: 1.1;
}
h3 {
    margin: 0 0 1rem;
    font-weight: 600;
    font-size: clamp(1rem, 0.9rem + 0.6vw, 1.25rem);
    color: var(--muted);
}
p {
    margin: 0 0 1rem;
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
    line-height: 1.65;
}
a {
    color: var(--text);
    transition: color 0.2s ease;
}
a:hover {
    color: var(--inactive);
}
a.clicked {
    color: var(--primary);
}

/* ======================= */
/* Navbar (Desktop + Mobile) */
/* ======================= */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
}

/* Left: Logo */
.nav-left {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    position: relative;
    transition: background 0.2s;
}

.nav-logo:hover {
    background: rgba(0, 0, 0, 0.05);
}

.nav-logo.active {
    background: var(--primary);
}

.nav-logo img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
    filter: grayscale(100%) brightness(70%) contrast(90%);
    transition: filter 0.3s;
}

.nav-logo:hover img {
    filter: grayscale(0%) brightness(100%) contrast(100%);
}

/* Center: Main Links */
.nav-links {
    display: flex;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background 0.2s;
    display: block;
}

.nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

.nav-link.active {
    background: var(--primary);
    color: white;
}

/* Right: Dropdown / Drawer */
.nav-right {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex: 0 0 auto;
}

/* ======================= */
/* Dropdown (Desktop)      */
/* ======================= */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    padding: 0.25rem;
    transition: background 0.2s;
}

.dropdown-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.dropdown-menu {
    position: absolute;
    top: 110%;
    right: 0;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 160px;
    display: none;
    flex-direction: column;
    z-index: 9999;
}

.dropdown.open .dropdown-menu {
    display: flex;
}

.dropdown-menu a {
    padding: 0.5rem 1rem;
    text-align: left;
    white-space: nowrap;
}

/* ======================= */
/* Mobile Navbar + Drawer  */
/* ======================= */
@media (max-width: 600px) {
    nav {
        justify-content: space-between;
        padding: 0 0.5rem;
        gap: 0.5rem;
    }

    .nav-left {
        flex: 0 0 auto;
        margin-right: 0.5rem;
    }

    /* Main links scroll horizontally within bounding box */
    .nav-links {
        flex: 1 1 auto;
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        white-space: nowrap;
        padding-left: calc(3.5rem + 24pt);
        padding-right: 0.5rem;
        justify-content: flex-start;
    	box-sizing: content-box;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links a {
        flex: 0 0 auto;
    }

    .nav-right {
        flex: 0 0 auto;
    }

    /* Drawer menu (right) */
    .dropdown-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 75%;
        max-width: 300px;
        background: white;
        box-shadow: -4px 0 12px rgba(0,0,0,0.25);
        display: flex;
        flex-direction: column;
        padding: 1rem;
        transition: right 0.3s ease-in-out;
        z-index: 9999;
    }

    .dropdown.open .dropdown-menu {
        right: 0;
    }

    .dropdown-menu a {
        padding: 0.75rem 1rem;
        white-space: nowrap;
        border-radius: 0.5rem;
    }
}

/* Wrap/Layout container */
.wrap {
    width: 100vw;
    min-height: 100vh;
    display: block;
    position: relative;
    z-index: 1;
    overflow: visible;
    padding: 64px 0;
}

@media (max-width: 600px) {
    .wrap {
        padding-top: 32px;
    }
}

/* Cards */
.card {
    width: min(90%, var(--card-max-width));
    margin-inline: auto;
    display: block;
    padding: var(--card-padding);
    border-radius: var(--radius-2xl);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    box-shadow: var(--shadow-lg);
    outline: 1px solid rgba(255, 255, 255, 0.25);
    box-sizing: border-box;
    overflow: visible;
}

.card.has-photo {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.5rem;
    align-items: start;
    height: auto;
}

.card.has-photo > * {
    min-width: 0;
}

.card.has-photo .photo-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
}

.card.has-photo .photo-column .photo {
    width: 100%;
    aspect-ratio: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: calc(var(--radius-2xl) - 0.25rem);
    outline: 1px solid rgba(255, 255, 255, 0.5);
}

.card.has-photo .photo-column .photo img {
    width: auto;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.card.has-photo .photo-column .btn-container {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .card.has-photo {
        grid-template-columns: 1fr;
    }

    .card.has-photo .photo-column {
        width: 100%;
    }
}

.cards-stack {
    display: flex;
    flex-direction: column;
    gap: 64px;
    align-items: center;
}

.photo {
    align-self: start;
    width: 100%;
    max-width: 100%;
    max-height: var(--photo-max-h);
    margin: 0;
    overflow: hidden;
    aspect-ratio: 4 / 5;
}

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

@media (max-width: 820px) {
    .photo {
        aspect-ratio: 16 / 9;
        max-height: clamp(200px, 35vh, 420px);
    }
}

.meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.pill {
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.6);
    outline: 1px solid var(--ring);
    backdrop-filter: blur(6px);
}

.icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    padding: 1rem;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.icon-link::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    background: transparent;
    transition: background 0.2s;
    z-index: 0;
}

.icon-link:hover::before {
    background: var(--icon-backdrop);
}

.icon-link img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    z-index: 1;
    filter: grayscale(100%) brightness(70%) contrast(90%);
    transition: filter 0.3s;
}

.icon-link:hover img {
    filter: grayscale(0%) brightness(100%) contrast(100%);
}

.icon-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.four-by-x-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
}

/* Link styling from inline styles */
.icon-link {
    text-decoration: none;
}

/* Figure and image styling */
.icon-link figure {
    text-align: center;
    margin: 0;
}

.icon-link img {
    display: block;
    margin: 0 auto;
    width: 24pt; /* from the second image */
    height: 24pt;
}

/* Figcaption styling */
.icon-link figcaption {
    font-size: 12pt;
    text-align: center;
}

/* Responsive grid adjustments */
@media (max-width: 900px) {
    .four-by-x-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 400px) {
    .four-by-x-grid {
        grid-template-columns: 1fr;
    }
}

.round-btn {
    display: inline-block;
    align: right;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.875rem;
    background: var(--inactive);
    outline: 1px solid var(--ring);
    backdrop-filter: blur(6px);
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.round-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.round-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.square-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    background: var(--inactive);
    outline: 1px solid var(--ring);
    backdrop-filter: blur(6px);
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.square-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.square-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}


#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--inactive);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

#backToTop.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#backToTop.avoid-footer {
    transform: translateY(-40px);
}

#backToTop:hover {
    background: var(--primary);
    transform: translateY(-44px);
}

footer.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    margin-top: 2rem;
}

footer .copyright {
    flex: 1;
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted);
}
:root {
    --bg-url: url("/shared/images/background.jpg");
    --card-max-width: 1000px;
    --card-padding: clamp(1rem, 1.5vw + 0.5rem, 2rem);
    --radius-2xl: 1.25rem;
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.35);
    --text: #111827;
    --muted: #4b5563;
    --ring: rgba(255, 255, 255, 0.35);
    --primary: #7d1313;
    --inactive: #137d13;
    --icon-backdrop: rgba(0, 0, 0, 0.1);
    --photo-max-h: clamp(260px, 45vh, 560px);
}

html,
body {
    height: 100%;
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial;
    color: var(--text);
    background: var(--bg-url) center / cover fixed no-repeat;
    padding-top: 64px;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(80% 65% at 50% 35%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.45)), linear-gradient(0deg, rgba(20, 24, 28, 0.25), rgba(20, 24, 28, 0.25));
    pointer-events: none;
    z-index: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Typography */
h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 1.2rem + 2vw, 2.25rem);
    line-height: 1.1;
}

h3 {
    margin: 0 0 1rem;
    font-weight: 600;
    font-size: clamp(1rem, 0.9rem + 0.6vw, 1.25rem);
    color: var(--muted);
}

p {
    margin: 0 0 1rem;
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
    line-height: 1.65;
}

a {
    color: var(--text);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--inactive);
}

a.clicked {
    color: var(--primary);
}

/* ======================= */
/* Navbar (Desktop)        */
/* ======================= */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.nav-left {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.2s;
}

.nav-logo:hover {
    background: rgba(0, 0, 0, 0.05);
}

.nav-logo img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: grayscale(100%) brightness(70%) contrast(90%);
    transition: filter 0.3s;
}

.nav-logo:hover img {
    filter: grayscale(0%) brightness(100%) contrast(100%);
}

/* Center Links */
.nav-links {
    display: flex;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background 0.2s;
    display: block;
}

.nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

.nav-link.active {
    background: var(--primary);
    color: white;
}

/* Right Links / Dropdown */
.nav-right {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex: 0 0 auto;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    padding: 0.25rem;
    transition: background 0.2s;
}

.dropdown-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.dropdown-menu {
    position: absolute;
    top: 110%;
    right: 0;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    display: none;
    flex-direction: column;
    z-index: 1000;
}

.dropdown.open .dropdown-menu {
    display: flex;
}

.dropdown-menu a {
    padding: 0.5rem 1rem;
    white-space: nowrap;
    text-align: left;
}

/* ======================= */
/* Mobile Navbar & Drawer  */
/* ======================= */
@media (max-width: 600px) {
    nav {
        justify-content: space-between;
        padding: 0 0.5rem;
        gap: 0.5rem;
    }

    .nav-left {
        flex: 0 0 auto;
        margin-right: 0.5rem;
    }

    /* Horizontal scroll for nav-links */
    .nav-links {
        flex: 1 1 auto; /* take remaining horizontal space */
        display: flex;
        gap: 1rem;
        overflow-x: auto; /* enable horizontal scrolling */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        white-space: nowrap; /* keep text on 1 line */
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links a {
        flex: 0 0 auto; /* prevent shrinking */
        padding: 0.5rem 1rem;
    }

    /* Drawer */
    .dropdown-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 75%;
        max-width: 300px;
        background: white;
        display: flex;
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        overflow-y: auto;
        transition: right 0.3s ease-in-out;
        z-index: 9999;
    }

    .dropdown.open .dropdown-menu {
        right: 0;
    }

    .dropdown-menu a {
        padding: 0.75rem 1rem;
        white-space: nowrap;
        border-radius: 0.5rem;
    }

    /* Overlay behind drawer */
    body.drawer-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 9998; /* just below drawer */
    }
}

/* Wrap/Layout container */
.wrap {
    width: 100vw;
    min-height: 100vh;
    display: block;
    position: relative;
    z-index: 1;
    overflow: auto;
    padding: 64px 0;
}

@media (max-width: 600px) {
    .wrap {
        padding-top: 32px;
    }
}

/* Cards */
.card {
    width: min(90%, var(--card-max-width));
    margin-inline: auto;
    display: block;
    padding: var(--card-padding);
    border-radius: var(--radius-2xl);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    box-shadow: var(--shadow-lg);
    outline: 1px solid rgba(255, 255, 255, 0.25);
    box-sizing: border-box;
    overflow: hidden;
}

.card.has-photo {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.5rem;
    align-items: start;
    height: auto;
}

.card.has-photo > * {
    min-width: 0;
}

.card.has-photo .photo-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
}

.card.has-photo .photo-column .photo {
    width: 100%;
    aspect-ratio: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: calc(var(--radius-2xl) - 0.25rem);
    outline: 1px solid rgba(255, 255, 255, 0.5);
}

.card.has-photo .photo-column .photo img {
    width: auto;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.card.has-photo .photo-column .btn-container {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .card.has-photo {
        grid-template-columns: 1fr;
    }

    .card.has-photo .photo-column {
        width: 100%;
    }
}

.cards-stack {
    display: flex;
    flex-direction: column;
    gap: 64px;
    align-items: center;
}

.photo {
    align-self: start;
    width: 100%;
    max-width: 100%;
    max-height: var(--photo-max-h);
    margin: 0;
    overflow: hidden;
    aspect-ratio: 4 / 5;
}

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

@media (max-width: 820px) {
    .photo {
        aspect-ratio: 16 / 9;
        max-height: clamp(200px, 35vh, 420px);
    }
}

.meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.pill {
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.6);
    outline: 1px solid var(--ring);
    backdrop-filter: blur(6px);
}

.icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    padding: 1rem;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.icon-link::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    background: transparent;
    transition: background 0.2s;
    z-index: 0;
}

.icon-link:hover::before {
    background: var(--icon-backdrop);
}

.icon-link img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    z-index: 1;
    filter: grayscale(100%) brightness(70%) contrast(90%);
    transition: filter 0.3s;
}

.icon-link:hover img {
    filter: grayscale(0%) brightness(100%) contrast(100%);
}

.icon-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.three-by-x-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

@media (max-width: 900px) {
    .three-by-x-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 400px) {
    .three-by-x-grid {
        grid-template-columns: 1fr;
    }
}

.four-by-x-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
}

@media (max-width: 900px) {
    .four-by-x-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 400px) {
    .four-by-x-grid {
        grid-template-columns: 1fr;
    }
}


a.round-btn {
    display: inline-block;
    align: right;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.875rem;
    background: var(--inactive);
    outline: 1px solid var(--ring);
    backdrop-filter: blur(6px);
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

a.round-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

a.round-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

a.square-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    background: var(--inactive);
    outline: 1px solid var(--ring);
    backdrop-filter: blur(6px);
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

a.square-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

a.square-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--inactive);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

#backToTop.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#backToTop.avoid-footer {
    transform: translateY(-40px);
}

#backToTop:hover {
    background: var(--primary);
    transform: translateY(-44px);
}

footer.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    margin-top: 2rem;
}

footer .copyright {
    flex: 1;
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted);
}