html, body {
    height: 100%;
    margin: 0;
}

body{
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: #dbe4f5;
    background-color: #05070f;
    background-image:
        linear-gradient(to bottom, rgba(3,5,10,0.94) 0%, rgba(6,10,26,0.88) 40%, rgba(3,5,10,0.97) 100%),
        url('/images/culture/milky-way-night-sky.jpg');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    background-attachment: fixed;
}

h1, h2, h3, .logo-text, .page-title, .post-title {
    font-family: 'Space Grotesk', 'Trebuchet MS', sans-serif;
}

a { color: inherit; }

#container{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#main-content {
    box-sizing: border-box;
    flex: 1;
    max-width: 1320px;
    width: 100%;
    margin: auto;
    padding: 0 32px;
}

/*START OF NAVBAR*/
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background: rgba(6, 10, 26, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 214, 130, 0.18);
}

.nav-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 12px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #f5d98a;
}

.logo-image {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding: 0;
    flex: 1;
}

.nav-links li {
    font-size: 14px;
}

.nav-links a {
    display: block;
    text-decoration: none;
    color: #b9c6e8;
    padding: 8px 12px;
    border-radius: 999px;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.nav-links a:hover {
    background: rgba(63, 208, 224, 0.12);
    color: #6fe3ef;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    overflow: hidden;
}

input[type="search"] {
    border: none;
    background: transparent;
    padding: 8px 6px 8px 14px;
    font-size: 14px;
    outline: none;
    width: 150px;
    color: #dbe4f5;
    font-family: inherit;
}

input[type="search"]::placeholder {
    color: #7686ad;
}

button {
    background-color: transparent;
    color: #f5d98a;
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 999px;
    transition: background-color 0.2s;
}

button:hover {
    background-color: rgba(245, 217, 138, 0.18);
}
/*END OF SEARCH BAR*/

.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 6px;
    justify-content: center;
    gap: 5px;
}

.line {
    height: 2px;
    width: 24px;
    background-color: #f5d98a;
}
/*END OF NAVBAR*/

/*START OF BREADCRUMB*/
#breadcrumb {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 18px 0 6px;
    font-size: 13px;
    color: #7686ad;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#breadcrumb a {
    text-decoration: none;
    color: #6fe3ef;
}

#breadcrumb img {
    height: 14px;
    width: auto;
    opacity: 0.8;
}

#breadcrumb span {
    margin: 0 6px;
}
/*END OF BREADCRUMB*/

/*START OF FOOTER*/
footer {
    background: rgba(4, 7, 18, 0.92);
    color: #b9c6e8;
    padding: 48px 0 0;
    border-top: 1px solid rgba(255, 214, 130, 0.15);
    margin-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
    color: #8b9ac2;
    max-width: 320px;
}

.footer-links h3, .footer-hours h3 {
    margin: 0 0 14px;
    color: #f5d98a;
    font-size: 15px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.footer-links a {
    color: #b9c6e8;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: #6fe3ef;
}

.footer-social {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.footer-social img {
    width: 16px;
    height: 16px;
    filter: grayscale(1) brightness(2);
}

.hours-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    font-size: 14px;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.footer-note {
    font-size: 13px;
    color: #7686ad;
}

.footer-bottom {
    text-align: center;
    margin-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
    font-size: 13px;
    color: #7686ad;
}
/*END OF FOOTER*/

/*START OF LIST PAGE*/
.page-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.page-list.home {
    display: block;
    margin-top: 0;
}

.page-list h1{
    font-size: 34px;
    text-align: left;
    color: #f2f6ff;
    grid-column: 1 / -1;
}

.page-list.home h1 {
    font-size: 26px;
    margin: 8px 0 18px;
}

#search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.page-authors-container, .author-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.page-item{
    display: none;
    text-decoration: none;
    color: inherit;
    border-radius: 14px;
    background: rgba(16, 22, 46, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    flex-direction: column;
}

#search-results .page-item {
    display: flex;
}

.page-item:hover, .page-item-home:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
    border-color: rgba(111, 227, 239, 0.35);
}

.styled-hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(111, 227, 239, 0.5), transparent);
    margin: 40px 0;
}

/* START OF AUTHOR SINGLE */
.single-author-profile {
    width: 100%;
    padding: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin: 24px 0;
    background: rgba(16, 22, 46, 0.7);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.author-posts {
    width: 100%;
    padding: 10px 0 0;
    box-sizing: border-box;
    margin-top: 10px;
}

.author-posts h1{
    font-size: 26px;
    color: #f2f6ff;
    grid-column: 1 / -1;
    margin-bottom: 4px;
}

.single-author-box {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 24px;
    box-sizing: border-box;
}

.single-author-icon {
    display: flex;
    width: 160px;
    flex: 0 0 160px;
    justify-content: center;
    align-items: flex-start;
}

.single-author-icon img {
    border-radius: 50%;
    width: 100%;
    max-width: 160px;
    height: auto;
    object-fit: cover;
    border: 2px solid rgba(111, 227, 239, 0.4);
}

.single-author-details {
    flex: 1;
}

.single-author-details h1 {
    margin: 0 0 6px;
    color: #f2f6ff;
}

.single-author-bio {
    margin-top: 5px;
    color: #b9c6e8;
    line-height: 1.6;
}

@media (max-width: 700px) {
    .single-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
/* END OF AUTHOR SINGLE */

/* START OF SWIPER */
.page-item-home {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    background: rgba(16, 22, 46, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    max-height: none;
    min-height: 420px;
    height: 100%;
}

.swiper-container {
    width: 100%;
    height: 480px;
    position: relative;
    overflow: hidden;
}

.swiper-wrapper {
    display: flex;
}

.swiper-slide {
    display: flex;
    flex-direction: column;
    height: 460px;
    padding: 4px;
    box-sizing: border-box;
}

.swiper-pagination-bullet {
    background: #6fe3ef !important;
    opacity: 0.4 !important;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
}
/* END OF SWIPER */

.page-item-home:hover .page-title,
.page-item:hover .page-title{
    color: #6fe3ef;
}

.page-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0a0e1f;
}

.page-item-home .page-image {
    flex: 0 0 auto;
}

.page-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-height: none;
}

.page-content {
    flex: 1;
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
}

.page-title {
    font-size: 1.15em;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.3;
    color: #eef2fb;
}

.page-description {
    margin: 0 0 12px;
    font-size: 0.92em;
    line-height: 1.5;
    color: #9baacb;
    flex: 1;
}

.page-date {
    color: #6a78a0;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.button-container {
    display: flex;
    justify-content: center;
    margin: 36px auto 20px;
}

#load-more {
    background: linear-gradient(120deg, #f5d98a, #e7b563);
    color: #17131a;
    font-weight: 600;
    border: none;
    display: none;
    padding: 12px 28px;
    font-size: 15px;
    cursor: pointer;
    border-radius: 999px;
    transition: transform 0.2s, box-shadow 0.2s;
}

#load-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 217, 138, 0.25);
}

#load-more:focus {
    outline: none;
}
/*END OF LIST PAGE*/

/*START OF SINGLE PAGE*/
.post{
    font-size: 1.05em;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.7;
    color: #c4cfe8;
}

.post-title {
    font-size: 2.1em;
    font-weight: 700;
    margin-bottom: 0.35em;
    color: #f2f6ff;
}

.post-date {
    font-size: 0.9em;
    color: #7686ad;
    margin-bottom: 0.6em;
}

.post-author {
    display: flex;
    align-items: center;
    font-size: 0.9em;
    color: #9baacb;
    margin-bottom: 1.4em;
    text-decoration: none;
    width: fit-content;
}

.post-author:hover {
    color: #6fe3ef;
}

.author-icon {
    vertical-align: middle;
    margin-right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.post-image {
    margin: 1.4em 0;
}

.post-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.post-image .image-alt {
    margin-top: 8px;
    color: #7686ad;
    font-size: 0.85em;
}

.post-description {
    font-weight: 500;
    font-size: 1.1em;
    color: #eef2fb;
    margin-bottom: 1.2em;
    padding-left: 14px;
    border-left: 3px solid #6fe3ef;
}

.post-content strong {
    color: #f5d98a;
}

.post-content{
    margin-bottom: 5em;
}
/*END OF SINGLE PAGE*/

/*START OF HOME PAGE*/
.image-container {
    position: relative;
    width: 100%;
    max-width: none;
    overflow: hidden;
    margin: 24px auto 0;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.image-container a{
    text-decoration: none;
    display: block;
}

.image-container img {
    width: 100%;
    height: min(60vh, 560px);
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, filter 0.6s ease;
}

.image-title {
    position: absolute;
    inset: auto 0 0 0;
    padding: 60px 40px 30px;
    background: linear-gradient(to top, rgba(4, 6, 16, 0.95) 10%, rgba(4, 6, 16, 0.55) 55%, transparent 100%);
    color: #f2f6ff;
}

.eyebrow {
    display: inline-block;
    background: rgba(245, 217, 138, 0.15);
    color: #f5d98a;
    border: 1px solid rgba(245, 217, 138, 0.4);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.image-title h2 {
    margin: 0;
    font-size: 2em;
    max-width: 800px;
    line-height: 1.25;
}

/* Hover effects */
.image-container:hover img {
    transform: scale(1.04);
    filter: brightness(0.75);
}
/*END OF HOME PAGE*/

/*START OF LOADING BUTTON*/
[id^="summary-"] {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
}

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-loading {
    border: 10px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    border-top: 10px solid #6fe3ef;
    width: 70px;
    height: 70px;
    -webkit-animation: spin 1.2s linear infinite;
    animation: spin 1.2s linear infinite;
}

@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/*END OF LOADING BUTTON*/

@media screen and (max-width: 900px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 3;
        gap: 2px;
        background: rgba(6, 10, 26, 0.98);
        border-radius: 12px;
        padding: 8px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        border-radius: 8px;
    }

    .burger-menu {
        display: flex;
    }

    .nav-inner {
        padding: 12px 20px;
    }

    #main-content {
        padding: 0 18px;
    }

    input[type="search"] {
        width: 110px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        padding: 0 24px;
        text-align: center;
    }

    .footer-brand p {
        max-width: none;
        margin: 0 auto;
    }

    .footer-social {
        justify-content: center;
    }

    .hours-list li {
        justify-content: center;
        gap: 14px;
    }

    .image-title {
        padding: 30px 20px 22px;
    }

    .image-title h2 {
        font-size: 1.4em;
    }

    .image-container img {
        height: 320px;
    }

    .swiper-container, .swiper-slide {
        height: auto;
    }

    .page-item-home {
        min-height: 380px;
    }

    #breadcrumb {
        flex-wrap: wrap;
    }
}

/* =========================================================
   EXERCISE WATERMARK
   ========================================================= */
body::before {
    content: "EXERCISE";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);

    font-size: 20vw;              /* Big text, scales with screen */
    font-weight: bold;
    color: rgba(255, 0, 0, 0.08); /* Light red, non-intrusive */

    pointer-events: none;         /* Click-through */
    z-index: 9999;                   /* Behind content */
    white-space: nowrap;
}
