/* =====================
   01 COMPONENTS
===================== */

/* ---------------------
   HERO
--------------------- */

.sv-hero {
    position: relative;
    height: 45vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sv-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sv-hero .swiper-slide img:hover {
    transform: none;
}

.sv-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sv-hero-overlay {
    max-width: 70%;
    position: absolute;
    text-align: center;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 0, 0, 5);
    z-index: 30;
}

.sv-hero-overlay p {
    font-size: clamp(1rem, 1.5vw, 1.35rem);
}

.sv-hero-swiper {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.sv-hero-swiper,
.sv-hero-swiper .swiper-wrapper,
.sv-hero-swiper .swiper-slide {
    height: 100%;
}

.sv-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 10;
    pointer-events: none;
}

/* ---------------------
   Media
--------------------- */

.sv-media {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.sv-media-body {
    max-width: 240px;
    width: 100%;
}

.sv-media-title {
    margin-bottom: 20px;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.sv-media-subtitle {
    margin-bottom: 2px;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    font-weight: bold;
}

.sv-media-text {
    margin-bottom: 2px;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.sv-media-img {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
}

/* ---------------------
   Content
--------------------- */

.sv-content {
    font-size: 1.25rem;
    margin: 0 auto;
}

.sv-content-title {
    margin-bottom: 20px;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.sv-content-subtitle {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 300;
    text-align: center;
    padding: 0.5rem 0 2rem 0;
    margin: 0;
    line-height: 1.3;
    color: #000;
    font-optical-sizing: auto;
}

.sv-content-text {
    margin-bottom: 2px;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.sv-content p {
    margin-bottom: 1.2em;
    line-height: 1.6;
    text-align: justify;
    text-justify: inter-word;
}

.sv-content-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 2rem auto 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    object-fit: contain;
}

/* ---------------------
   Paragraph
--------------------- */

.sv-paragraph-title {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    color: #006600;
    font-weight: bold;
    text-align: left;
    text-decoration: none;
    display: block;
    align-self: flex-start;
    margin-top: 1rem;
}

.sv-paragraph-title:first-of-type {
    margin-top: 0;
}

/* ---------------------
   Gallery
--------------------- */

#sv-gallery section:first-of-type .sv-gallery-title {
    margin-top: 0;
}

.sv-gallery-title {
    text-align: left;
    font-size: clamp(1.25rem, 1.6vw, 1.75rem);
    font-weight: 500;
    margin-bottom: 0.75rem;
    margin-top: 3rem;
}

.sv-gallery-img {
    width: 100%;
    display: block;
    border-radius: 8px;
    box-shadow: var(--sv-shadow-1);
    margin-bottom: 1.5rem;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.sv-gallery-grid-img {
    width: 100%;
    border-width: 6px;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
    border-radius: 8px;
}

.sv-gallery-square-img {
    border-width: 6px;
    border-radius: 8px;
    object-position: top;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 2px solid #fff;
}

.sv-autogallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.sv-autogallery a {
    display: block;
}

.sv-autogallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

/* ---------------------
   card
--------------------- */

.sv-card {
    text-align: left;
    padding: 0px;
}

.sv-card{
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    text-align: left;
    display: block;
    line-height: 1.2;
    font-weight: 500;
}

.sv-card img {
    width: 100%;
    max-height: 320px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
    border: 2px solid #eee;
}

.sv-card button {
    max-width: 180px;
    border-radius: 30px;
    text-align: center;
    margin-top: 15px;
}

.sv-card-name a {
    pointer-events: auto;
    position: relative;
    z-index: 10;
    color: blue;
    text-decoration: underline;
}

.sv-card-role,
.sv-card-email {
    color: #006600;
}

/* ---------------------
   list
--------------------- */

.sv-list {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    text-align: left;
    display: block;
    line-height: 1.2;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
}

.sv-list-title {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    text-decoration: underline;
    font-weight: bold;
    text-align: left;
    margin-top: 20px;
}

.sv-list-title:first-of-type {
    margin-top: 0;
}

.sv-list-entry {
    display: flex;
    align-items: center;
    margin-bottom: 0.5em;
    padding: 0.5em;
    border-bottom: 1px solid #ccc;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.sv-list-entry>div {
    display: flex;
    align-items: center;
}

.sv-list-entry>div:not(:first-child) {
    flex: 1;
}

.sv-list-entry>div:last-child {
    margin-left: auto;
}

.sv-list-entry div.sv-list-entry-date {
    min-width: 140px;
    margin-right: 10px;
}

.sv-list-entry div.sv-list-entry-name {
    min-width: 120px;
    margin-right: 20px;
}

.sv-list-entry div.sv-list-entry-name {
    min-width: 120px;
    margin-right: 20px;
}

.sv-list-entry div.sv-list-entry-role {
    min-width: 150px;
    margin-right: 20px;
}

.sv-list-entry div.sv-list-entry-year {
    min-width: 50px;
    margin-right: 10px;
}

.sv-list-entry p {
    margin-left: auto;
    margin-top: 0px;
    margin-bottom: 0px;
    color: #000000;
}

.sv-list-entry a {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    text-align: left;
    margin-left: auto;
    color: #006600;
    text-decoration: underline;
}

.sv-list-entry:not(:has(+ .sv-list-entry)) {
    border-bottom: none;
}

.sv-list-entry[data-index]:hover .sv-list-entry-name {
    color: #004d00;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease-out;
}

.sv-legend {
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
}

.sv-legend-frame {
    margin-top: 20px;
    padding: 5px;
    border: 2px solid #006600;
    border-radius: 0;
    max-width: 600px;
    background-color: #f9f9f9;
}

/* ---------------------
   buttons / navigation
--------------------- */

.sv-button {
    text-align: center;
    display: inline-block;
    background: #006600;
    color: #ffffff;
    border: none;
    padding: 8px 20px;
    margin: 1rem 0 0 0;
    font-family: "Dosis", sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    border-radius: 30px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sv-button:hover {
    background: #004d00;
    transform: translateY(-2px);
}

#sv-event-nav .sv-button {
    margin-top: 0;
}

.sv-year-nav .sv-button {
    width: 85px;
}

.sv-year-nav .sv-button {
    margin-top: 0;
}

/* ---------------------
   button layout
--------------------- */

.sv-event-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 300px;
    margin: 0 auto 12px auto;
}

.sv-year-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 14px;
    max-width: 1000px;
    margin: 0 auto 12px auto;
}

.sv-button-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sv-button-column a.sv-button {
    width: 220px;
    text-align: center;
}

.sv-button-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.sv-button-row a.sv-button {
    width: 220px;
    text-align: center;
}

/* ---------------------
   links
--------------------- */

.sv-link-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    max-width: 180px;
}

.sv-link-box img {
    max-width: 150px !important;
    height: 120px;
    object-fit: contain; object-position: center;
    background: #fff;
    padding: 10px;
}

.sv-link-box p {
    margin-top: 10px;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    color: #000;
}

/* ---------------------
   countdown
--------------------- */

.sv-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.sv-countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-weight: 400;
    color: #000;
    font-size: clamp(1rem, 5vw, 2rem);
}

.sv-countdown-timeblock {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    flex-shrink: 0;
}

.sv-countdown-label {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    margin-top: 5px;
}

.sv-countdown-subtext {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    margin-top: 1em;
    margin-bottom: 0;
    font-weight: 400;
}

/* ---------------------
   cookie banner
--------------------- */

#sv-cookie-banner {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.sv-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #111;
    color: #fff;
    padding: 15px;
    text-align: center;
    z-index: 9999;
}

.sv-cookie-banner button {
    margin-left: 15px;
    padding: 6px 14px;
    background: #fff;
    border: none;
    cursor: pointer;
}

.sv-cookie-box {
    background: white;
    max-width: 600px;
    width: 90%;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.sv-cookie-box h2 {
    margin-top: 0;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.sv-cookie-box p {
    color: #444;
    line-height: 1.5;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.sv-cookie-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.sv-cookie-buttons button {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 1.25rem;
    min-width: 150px;
}

.sv-cookie-buttons button.primary {
    background: #006600;
    color: white;
    border: none;
}

.sv-cookie-buttons button.primary:hover {
    background: #004d00;
    transform: translateY(-2px);
}

.sv-cookie-buttons button:hover {
    transform: translateY(-2px);
}

.sv-cookie-links {
    margin-top: 15px;
    text-align: center;
}

.sv-cookie-links a {
    color: #555;
    margin: 0 8px;
    text-decoration: none;
}

.sv-cookie-options {
    margin-top: 20px;
}

.sv-cookie-option {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
    align-items: center;
}

.sv-cookie-option input {
    margin-top: 5px;
}

.sv-cookie-option strong {
    display: block;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.sv-cookie-option p {
    margin: 3px 0 0 0;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    color: #666;
}

/* ---------------------
   consent placeholder
--------------------- */

.sv-external-iframe {
    display: none;
}

.sv-external-placeholder {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    display: none;
}

.sv-external-placeholder p {
    margin-bottom: 20px;
    color: #555;
}

.sv-load-external-btn {
    background: #006600;
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    cursor: pointer;
    font-family: "Dosis", sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.sv-load-external-btn:hover {
    background: #004d00;
    transform: translateY(-2px);
}

/* ---------------------
   scroll top button
--------------------- */

.sv-scroll-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: none;
    z-index: 999;
}

.sv-scroll-top-btn svg {
    transition: transform 0.2s ease;
}

.sv-scroll-top-btn:hover svg {
    transform: scale(1.1);
}

/* ---------------------
   calendar
--------------------- */

.sv-calendar {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    height: 0;
    overflow: hidden;
}

.sv-calendar iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* =====================
   02 MEDIA QUERIES
===================== */

@media (max-width: 991.98px) {

    .sv-hero {
        height: 30vh;
    }

    .sv-media {
        flex-direction: column;
        max-width: 320px;
        width: 100%;
    }

    .sv-content-subtitle {
        padding: -0.5rem 0 1rem 0;
    }

    .sv-autogallery {
        gap: 5px;
    }

    .sv-gallery-img-square {
        aspect-ratio: 1 / 1;
        object-fit: cover;
        max-height: 100px;
    }

    .sv-cookie-box {
        padding: 10px 20px;
    }

    .sv-cookie-box p {
        margin-bottom: 0px;
    }

    .sv-cookie-box,
    .sv-cookie-box p,
    .sv-cookie-box h2 {
        line-height: 1.3;
    }

    .sv-cookie-buttons {
        flex-direction: column;
        margin-top: 10px;
    }

    .sv-cookie-buttons button {
        width: 100%;
    }

    .sv-cookie-links {
        margin-top: 10px;
    }

    .sv-cookie-options {
        margin-top: 10px;
    }
}