﻿/* ==========================================================================
   Glina - public site theme (glina.al)
   Shared by Site.Master and every public content page.
   Companion to Content/AdminPanel.css, which themes the back office.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
    --glina-blue: #062e83;
    --glina-blue-600: #0a3da8;
    --glina-blue-400: #2d7bd2;
    --glina-sky: #8fc3ef;
    --glina-mist: #e8f5fd;
    --glina-ink: #0f1b34;
    --glina-muted: #5b6b86;
    --glina-line: rgba(6, 46, 131, .12);
    --glina-surface: #ffffff;
    --glina-radius: 18px;
    --glina-radius-sm: 12px;
    --glina-shadow: 0 18px 45px -22px rgba(6, 46, 131, .45);
    --glina-shadow-lg: 0 30px 70px -30px rgba(6, 46, 131, .55);
    --glina-nav-h: 78px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--glina-nav-h) + 16px);
}

body.glina-body {
    margin: 0;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--glina-ink);
    background: linear-gradient(178.6deg, var(--glina-mist) 3.3%, #fcfdff 109.6%);
    background-attachment: fixed;
    overflow-x: hidden;
    /* Long Albanian compounds and pasted URLs must never widen the page. */
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Nothing embedded may exceed its column - the usual source of a phone
   side-scroll is an image, iframe, video or table with an intrinsic width. */
.glina-body img,
.glina-body svg,
.glina-body video,
.glina-body iframe,
.glina-body embed,
.glina-body object {
    max-width: 100%;
}

.glina-body table {
    max-width: 100%;
}

.glina-main {
    padding-top: var(--glina-nav-h);
    min-height: 60vh;
}

a {
    text-decoration: none;
}

::selection {
    background: var(--glina-blue-400);
    color: #fff;
}

/* --------------------------------------------------------------------------
   3. Navbar
   -------------------------------------------------------------------------- */
.navbar-custom {
    min-height: var(--glina-nav-h);
    padding-top: .35rem;
    padding-bottom: .35rem;
    background: rgba(6, 46, 131, .92);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    transition: background .3s ease, box-shadow .3s ease;
}

.navbar-custom.is-scrolled {
    background: rgba(6, 46, 131, .98);
    box-shadow: 0 10px 30px -18px rgba(3, 20, 60, .9);
}

.navbar-custom .navbar-brand {
    padding: 0;
}

.navbar-custom .navbar-brand img,
.navbar-custom #logo {
    height: 58px;
    width: auto;
    object-fit: contain;
    transition: transform .3s ease;
}

.navbar-custom .navbar-brand:hover img {
    transform: scale(1.04);
}

.navbar-custom .nav-link {
    position: relative;
    color: rgba(255, 255, 255, .85) !important;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: .2px;
    padding: .55rem .9rem;
    border-radius: 999px;
    transition: color .25s ease, background .25s ease;
}

.navbar-custom .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: .3rem;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--glina-sky);
    transform: translateX(-50%);
    transition: width .25s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link:focus {
    color: #fff !important;
}

.navbar-custom .nav-link:hover::after {
    width: 55%;
}

.navbar-custom .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, .12);
}

.navbar-custom .nav-link.active::after {
    width: 55%;
}

/* Animated hamburger */
.navbar-custom .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 10px;
    padding: .45rem .6rem;
}

.navbar-custom .navbar-toggler:focus {
    box-shadow: 0 0 0 .2rem rgba(143, 195, 239, .35);
}

.navbar-toggler .icon-bar {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    border-radius: 2px;
    background-color: #fff;
    transition: transform .3s ease, opacity .25s ease;
}

.navbar-toggler:not(.collapsed) .top-bar {
    transform: translateY(7px) rotate(45deg);
}

.navbar-toggler:not(.collapsed) .middle-bar {
    opacity: 0;
}

.navbar-toggler:not(.collapsed) .bottom-bar {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 991.98px) {
    .navbar-custom .navbar-collapse {
        margin-top: .75rem;
        padding: .5rem;
        border-radius: var(--glina-radius-sm);
        background: rgba(255, 255, 255, .08);
    }

    .navbar-custom .nav-link {
        padding: .7rem 1rem;
    }
}

/* --------------------------------------------------------------------------
   4. Hero carousel / page banners
   -------------------------------------------------------------------------- */
.glina-hero {
    position: relative;
    overflow: hidden;
    background: var(--glina-blue);
}

/* Banner artwork is authored at 1920x850, so the slide frame keeps exactly that
   ratio at every width and the image scales with it - nothing is cropped on a
   phone or on a wide monitor. A fixed ratio (rather than letting each photo set
   its own height) also stops the hero jumping on every transition, because
   Bootstrap only lays out the active item. An upload with a different ratio is
   letterboxed against the brand blue instead of being cut or stretched. */
.glina-hero .carousel-item {
    aspect-ratio: 1920 / 850;
    background: var(--glina-blue);
}

.glina-hero .carousel-img,
.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* The subtle gradient is the only overlay a slide gets when the database row
   carries no title - see the caption block below. */
.glina-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(6, 46, 131, .35) 0%, rgba(6, 46, 131, 0) 45%, rgba(6, 46, 131, .35) 100%);
}

/* Rendered only for slides that have a real title, so it never needs a
   placeholder. Readable on a phone too, hence no `d-none d-md-block`. */
.glina-hero .carousel-caption {
    z-index: 3;
    left: 8%;
    right: 8%;
    bottom: 14%;
    padding-bottom: .5rem;
    text-shadow: 0 6px 24px rgba(3, 20, 60, .85);
}

.glina-hero .carousel-caption h2 {
    font-size: clamp(1.5rem, 3.4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -.5px;
    margin: 0;
}

/* The bar reads as 4px tall, but the transparent top/bottom borders keep
   Bootstrap's ~24px touch area - `border: 0` here would make the indicators
   almost untappable on a phone. */
.glina-hero .carousel-indicators [data-bs-target] {
    box-sizing: content-box;
    width: 34px;
    height: 4px;
    border-radius: 4px;
    border-left: 0;
    border-right: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    background-clip: padding-box;
    opacity: .45;
}

.glina-hero .carousel-indicators .active {
    opacity: 1;
}

.glina-hero .carousel-control-prev,
.glina-hero .carousel-control-next {
    width: 8%;
    opacity: 1;
}

.glina-hero .carousel-control-prev-icon,
.glina-hero .carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    padding: .9rem;
    border-radius: 50%;
    background-color: rgba(6, 46, 131, .55);
    background-size: 45%;
}

/* Inner page banner */
.glina-banner {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 var(--glina-radius) var(--glina-radius);
    box-shadow: var(--glina-shadow);
}

.glina-banner img {
    width: 100%;
    height: clamp(240px, 46vh, 460px);
    object-fit: cover;
    display: block;
}

.glina-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 46, 131, .30) 0%, rgba(6, 46, 131, 0) 55%);
}

.glina-banner-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 2rem 1.5rem 1.6rem;
    color: #fff;
    background: linear-gradient(0deg, rgba(6, 46, 131, .88) 0%, rgba(6, 46, 131, 0) 100%);
}

.glina-banner-caption h1 {
    font-size: clamp(1.7rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -.6px;
    margin: 0;
    text-shadow: 0 6px 24px rgba(3, 20, 60, .6);
}

.glina-banner-caption p {
    margin: .4rem 0 0;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .85);
}

/* --------------------------------------------------------------------------
   5. Section headings
   -------------------------------------------------------------------------- */
.section-intro {
    padding: 3.25rem 1rem 1.25rem;
}

.section-intro h1 {
    font-size: clamp(1.45rem, 2.9vw, 2.35rem);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.4px;
    color: var(--glina-blue);
    max-width: 62rem;
    margin: 0 auto;
}

.divider {
    width: 96px;
    height: 4px;
    margin: 1.15rem auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--glina-blue), var(--glina-blue-400), var(--glina-sky));
}

/* Small eyebrow label used above section titles */
.glina-eyebrow,
.produkte {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin: 2.5rem auto 0;
    padding: .45rem 1.15rem;
    border-radius: 999px;
    background: rgba(6, 46, 131, .08);
    color: var(--glina-blue);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.produkte-text h1 {
    font-size: clamp(1.1rem, 2.1vw, 1.5rem);
    font-weight: 500;
    line-height: 1.7;
    color: var(--glina-muted);
}

.move-down {
    display: inline-block;
}

/* --------------------------------------------------------------------------
   6. Feature (split text / image) sections
   -------------------------------------------------------------------------- */
.content-section {
    position: relative;
    margin-bottom: 2.5rem;
    padding: clamp(1.75rem, 4vw, 3.25rem) !important;
    border-radius: var(--glina-radius);
    background: linear-gradient(140deg, var(--glina-blue) 0%, #0b3fae 55%, #1258c9 100%) !important;
    box-shadow: var(--glina-shadow-lg);
    color: #fff;
    overflow: hidden;
}

.content-section::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -12%;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(143, 195, 239, .22) 0%, rgba(143, 195, 239, 0) 68%);
    pointer-events: none;
}

.content-section > * {
    position: relative;
    z-index: 1;
}

.content-section .sec-title h1 {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--glina-sky);
    margin-bottom: 1rem;
}

.content-section .sec-title h2 {
    font-size: clamp(1.3rem, 2.4vw, 1.9rem);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -.3px;
    color: #fff;
    margin-bottom: .75rem;
}

.content-section .sec-title p,
.content-section .text {
    font-size: 1.03rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, .84);
}

.content-section .inner-column {
    max-width: 38rem;
}

/* Historiku mini-entries */
.historiku {
    position: relative;
    margin-top: 1rem;
    padding: .9rem 1.1rem .9rem 1.35rem;
    border-radius: var(--glina-radius-sm);
    background: rgba(255, 255, 255, .08);
    border-left: 3px solid var(--glina-sky);
}

.historiku h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--glina-sky);
    margin: 0 0 .3rem;
}

.historiku p {
    margin: 0;
    font-size: .98rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, .84);
}

/* Image columns inside feature sections */
.image-wrapper,
.image-wrapper1,
.image-wrapper2 {
    gap: 1rem;
    width: 100%;
}

.image-wrapper figure,
.image-wrapper1 figure,
.image-wrapper2 figure {
    margin: 0;
}

.responsive-image,
.responsive-image1,
.responsive-image2 {
    display: block;
    width: 100%;
    max-width: 100%;
    border-radius: var(--glina-radius-sm);
    box-shadow: 0 24px 50px -24px rgba(3, 16, 48, .85);
    transition: transform .4s ease;
}

.image-wrapper .image-1 .responsive-image {
    transform: translateY(-.75rem);
}

.image-wrapper .image-2 .responsive-image {
    transform: translateY(.75rem);
}

.image-wrapper:hover .responsive-image,
.image-wrapper1:hover .responsive-image1,
.image-wrapper2:hover .responsive-image2 {
    transform: translateY(0) scale(1.02);
}

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */
.theme-btn,
.btn-style-one {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .72rem 1.6rem;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--glina-blue) !important;
    font-weight: 600;
    letter-spacing: .3px;
    box-shadow: 0 14px 30px -16px rgba(3, 16, 48, .9);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.theme-btn:hover,
.btn-style-one:hover {
    transform: translateY(-2px);
    background: var(--glina-mist);
    box-shadow: 0 20px 40px -18px rgba(3, 16, 48, .95);
}

.btn-box {
    margin-top: 1.75rem;
}

.glina-body .btn-primary {
    --bs-btn-bg: var(--glina-blue);
    --bs-btn-border-color: var(--glina-blue);
    --bs-btn-hover-bg: var(--glina-blue-600);
    --bs-btn-hover-border-color: var(--glina-blue-600);
    --bs-btn-active-bg: #04225f;
    --bs-btn-active-border-color: #04225f;
    --bs-btn-focus-shadow-rgb: 45, 123, 210;
    border-radius: 999px;
    font-weight: 600;
    padding-inline: 1.25rem;
}

.glina-body .btn-outline-primary {
    --bs-btn-color: var(--glina-blue);
    --bs-btn-border-color: var(--glina-blue);
    --bs-btn-hover-bg: var(--glina-blue);
    --bs-btn-hover-border-color: var(--glina-blue);
    --bs-btn-focus-shadow-rgb: 45, 123, 210;
    border-radius: 999px;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   8. Cards (products, blog)
   -------------------------------------------------------------------------- */
.glina-body .card {
    border: 1px solid var(--glina-line);
    border-radius: var(--glina-radius);
    background: var(--glina-surface);
    box-shadow: 0 10px 30px -22px rgba(6, 46, 131, .55);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.glina-body .card:hover {
    transform: translateY(-6px);
    border-color: rgba(45, 123, 210, .35);
    box-shadow: var(--glina-shadow);
}

.glina-body .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--glina-blue);
    line-height: 1.4;
}

.glina-body .card-text {
    font-size: .96rem;
    line-height: 1.65;
    color: var(--glina-muted);
}

/* Bottles and cans are tall, so the frame is a 3:4 portrait box (about 260x345
   in a four-up desktop row) that scales with the card width. The image fills
   the frame edge to edge with no padding, and `contain` keeps every product
   complete - never cropped or stretched. The max-height only stops a wide
   single-column card on a phone getting huge.
   Kept white on purpose: the product artwork is shot on an opaque white
   background, so any tint here would show as a visible box behind the bottle.
   Separation from the card body comes from the bottom rule instead.
   `isolation` gives the frame its own stacking context so the glow below can
   sit behind the image (z-index -1) without dropping behind the card. */
.product-media {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    aspect-ratio: 3 / 4;
    max-height: 420px;
    background: #fff;
    border-bottom: 1px solid var(--glina-line);
}

/* No hover zoom here: with zero padding any scale-up would push the art past
   the frame edge and clip it. The card's own hover lift still gives feedback. */
.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0;
    background: transparent;
}

/* Soft glow behind the bottle so it reads against the card */
.product-media::after {
    content: "";
    z-index: -1;
    position: absolute;
    left: 50%;
    bottom: 6%;
    width: 68%;
    height: 14%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(6, 46, 131, .16) 0%, rgba(6, 46, 131, 0) 70%);
    pointer-events: none;
}

.blog-image,
.blog-card-image {
    height: 280px;
    width: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.card:hover .blog-image,
.card:hover .blog-card-image {
    transform: scale(1.06);
}

.blog-date {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .6rem;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .3px;
    color: var(--glina-blue-400);
    text-transform: uppercase;
}

.blog-media {
    overflow: hidden;
}

/* Blog carousel on the home page. Two instances share these rules:
   #blogCarouselDesktop (three cards per slide, md and up) and
   #blogCarouselMobile (one card per slide, below md). */
.blog-carousel {
    padding-bottom: 3.25rem;
}

/* `.carousel-inner` clips, and a Bootstrap row pulls itself half a gutter past
   its container on each side - together that sheared the outer cards. Zeroing
   the row margins keeps every slide inside the visible frame. */
.blog-carousel .carousel-item > .row {
    margin-left: 0;
    margin-right: 0;
}

/* Cards in one slide end up the same height regardless of title length. */
.blog-carousel .carousel-item .card {
    height: 100%;
}

.blog-carousel .carousel-control-prev,
.blog-carousel .carousel-control-next {
    top: auto;
    bottom: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glina-blue);
    opacity: 1;
    transition: background .25s ease, transform .25s ease;
}

.blog-carousel .carousel-control-prev {
    left: calc(50% - 56px);
}

.blog-carousel .carousel-control-next {
    right: calc(50% - 56px);
}

.blog-carousel .carousel-control-prev:hover,
.blog-carousel .carousel-control-next:hover {
    background: var(--glina-blue-400);
    transform: translateY(-2px);
}

.blog-carousel .carousel-control-prev-icon,
.blog-carousel .carousel-control-next-icon {
    width: 1.1rem;
    height: 1.1rem;
}

/* --------------------------------------------------------------------------
   9. Blog detail
   -------------------------------------------------------------------------- */
.blog-detail-image {
    width: 100%;
    border-radius: var(--glina-radius);
    box-shadow: var(--glina-shadow);
    object-fit: cover;
}

.blog-detail-title {
    font-size: clamp(1.5rem, 3vw, 2.15rem);
    font-weight: 700;
    letter-spacing: -.4px;
    color: var(--glina-blue);
}

.blog-detail-body p {
    font-size: 1.06rem;
    line-height: 1.85;
    color: var(--glina-muted);
}

.blog-detail-body .lead-paragraph {
    font-size: 1.16rem;
    font-weight: 500;
    color: var(--glina-ink);
}

/* --------------------------------------------------------------------------
   10. Pagination (markup emitted by Blog.aspx.cs)
   -------------------------------------------------------------------------- */
.pagination-container .pagination {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .4rem;
    padding: .4rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 30px -22px rgba(6, 46, 131, .6);
}

.pagination-container .page-item .page-link {
    min-width: 42px;
    border: 0;
    border-radius: 999px;
    color: var(--glina-blue);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.pagination-container .page-item .page-link:hover {
    background: var(--glina-mist);
    color: var(--glina-blue);
}

.pagination-container .page-item.active .page-link {
    background: var(--glina-blue);
    color: #fff;
}

.pagination-container .page-link:focus {
    box-shadow: 0 0 0 .2rem rgba(45, 123, 210, .25);
}

/* --------------------------------------------------------------------------
   11. Timeline (HistorikuTimeline.aspx)
   -------------------------------------------------------------------------- */
.glina-timeline {
    position: relative;
}

.glina-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, transparent 0%, var(--glina-sky) 8%, var(--glina-sky) 92%, transparent 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-image {
    width: 100%;
    border-radius: var(--glina-radius);
    box-shadow: var(--glina-shadow);
    object-fit: cover;
    transition: transform .35s ease;
}

.timeline-image:hover {
    transform: scale(1.02);
}

.timeline-line {
    display: none;
}

.timeline-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--glina-blue);
    box-shadow: 0 0 0 6px rgba(45, 123, 210, .18);
    z-index: 2;
}

.timeline-year {
    display: inline-block;
    margin-bottom: .6rem;
    padding: .3rem 1rem;
    border-radius: 999px;
    background: var(--glina-blue);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .5px;
}

.timeline-description {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--glina-muted);
}

/* On phones the three-column row (image | rail | text) would squeeze each
   column to a third of the screen, so the entry becomes a stacked card
   instead: image on top, year and text below, centre rail hidden. */
@media (max-width: 767.98px) {
    .glina-timeline::before {
        display: none;
    }

    .timeline-item {
        display: block !important;
        margin-bottom: 1.5rem;
        padding: 1rem;
        border-radius: var(--glina-radius);
        background: var(--glina-surface);
        border: 1px solid var(--glina-line);
        box-shadow: 0 10px 30px -24px rgba(6, 46, 131, .55);
    }

    .timeline-item > div {
        padding-left: 0;
        padding-right: 0;
    }

    .timeline-item > .text-end {
        text-align: left !important;
    }

    /* The rail column carries no content of its own on mobile. */
    .timeline-item > .col-md-2 {
        display: none !important;
    }

    .timeline-image {
        margin-bottom: 1rem;
        max-height: 280px;
        object-fit: cover;
    }

    .timeline-year {
        font-size: 1.05rem;
    }
}

/* --------------------------------------------------------------------------
   12. Long-form article pages (Brandi, Fabrika, Vetite-Kurative)
   -------------------------------------------------------------------------- */
.container1 {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container2 {
    margin-top: 3rem;
}

.container1 .section,
.container1 .kurorti {
    margin-bottom: 1.5rem;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: var(--glina-radius);
    background: var(--glina-surface);
    border: 1px solid var(--glina-line);
    box-shadow: 0 10px 30px -24px rgba(6, 46, 131, .55);
}

.container1 .section h2,
.container1 .kurorti h2 {
    position: relative;
    margin-bottom: 1rem;
    padding-left: 1rem;
    font-size: clamp(1.25rem, 2.3vw, 1.65rem);
    font-weight: 700;
    letter-spacing: -.3px;
    color: var(--glina-blue);
}

.container1 .section h2::before,
.container1 .kurorti h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .15em;
    bottom: .15em;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--glina-blue), var(--glina-blue-400));
}

.container1 .section p,
.container1 .kurorti p {
    font-size: 1.04rem;
    line-height: 1.85;
    color: var(--glina-muted);
    margin-bottom: 0;
}

.container1 .section.intro {
    background: linear-gradient(140deg, var(--glina-blue) 0%, #0b3fae 100%);
    border-color: transparent;
    box-shadow: var(--glina-shadow-lg);
}

.container1 .section.intro p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .88);
}

.kurorti {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(1.25rem, 3vw, 2.25rem);
    align-items: center;
}

.kurorti .text p {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .kurorti {
        grid-template-columns: 1fr;
    }
}

.image-container {
    margin-bottom: 1.5rem;
    border-radius: var(--glina-radius);
    overflow: hidden;
    box-shadow: var(--glina-shadow);
    line-height: 0;
}

.image-container img,
.image-container video,
.image-container .video {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .5s ease;
}

.image-container img:hover {
    transform: scale(1.03);
}

.kurorti .image-container {
    margin-bottom: 0;
}

.section.libri .link a {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .72rem 1.5rem;
    border-radius: 999px;
    background: var(--glina-blue);
    color: #fff;
    font-weight: 600;
    transition: transform .25s ease, background .25s ease;
}

.section.libri .link a:hover {
    transform: translateY(-2px);
    background: var(--glina-blue-400);
    color: #fff;
}

/* --------------------------------------------------------------------------
   13. Contact (map + form)
   -------------------------------------------------------------------------- */
.location,
.map-frame {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
    border-radius: var(--glina-radius);
    box-shadow: var(--glina-shadow);
}

.contact-col {
    width: 100%;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: var(--glina-radius);
    background: var(--glina-surface);
    border: 1px solid var(--glina-line);
    box-shadow: var(--glina-shadow);
}

.glina-body .form-control,
.input-box {
    margin-bottom: 1rem;
    padding: .78rem 1rem;
    border: 1px solid var(--glina-line);
    border-radius: var(--glina-radius-sm);
    background: #fbfdff;
    font-size: 1rem;
    color: var(--glina-ink);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.glina-body .form-control:focus,
.input-box:focus {
    background: #fff;
    border-color: var(--glina-blue-400);
    box-shadow: 0 0 0 .2rem rgba(45, 123, 210, .18);
}

.glina-body .form-control::placeholder {
    color: #9aa8bf;
}

.message-box {
    min-height: 130px;
    resize: vertical;
}

.input-spacing {
    margin: .75rem 0 .25rem;
}

.custom-btn {
    border-radius: 999px !important;
    padding: .8rem 1.5rem !important;
    font-weight: 600;
    letter-spacing: .3px;
}

.contact-col .form-label {
    font-size: .88rem;
    font-weight: 600;
    color: var(--glina-blue);
    margin-bottom: .35rem;
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.footer {
    position: relative;
    margin-top: 3.5rem;
    padding: 3rem 1.5rem 2rem;
    background: linear-gradient(140deg, var(--glina-blue) 0%, #04225f 100%);
    color: rgba(255, 255, 255, .82);
    text-align: center;
}

.footer h3 {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: .85rem;
    margin-bottom: 2.25rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 1.25rem;
    transition: transform .25s ease, background .25s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    background: var(--glina-blue-400);
    color: #fff;
}

.contact-info p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    margin-bottom: .6rem;
    font-size: 1rem;
}

.contact-info i {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: var(--glina-sky);
    font-size: .9rem;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .9rem;
    color: rgba(255, 255, 255, .6);
}

/* --------------------------------------------------------------------------
   15. Scroll-to-top
   -------------------------------------------------------------------------- */
.glina-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1030;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--glina-blue);
    color: #fff;
    box-shadow: var(--glina-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease, background .25s ease;
}

.glina-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.glina-to-top:hover {
    background: var(--glina-blue-400);
}

/* --------------------------------------------------------------------------
   15b. Guards
   -------------------------------------------------------------------------- */

/* AOS's horizontal entrances park an element 100px to the side until it is
   scrolled into view, which widens the document and creates a side-scroll on
   narrow screens. Vertical and zoom entrances are unaffected, so only the
   horizontal ones are neutralised. */
[data-aos="fade-left"],
[data-aos="fade-right"],
[data-aos="fade-up-left"],
[data-aos="fade-up-right"],
[data-aos="fade-down-left"],
[data-aos="fade-down-right"],
[data-aos="slide-left"],
[data-aos="slide-right"] {
    transform: none !important;
}

/* Footer contact links and breadcrumbs are text-sized by default; give them a
   comfortable touch height without changing how they read. */
.contact-info a,
.footer a:not(.social-icon) {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    color: inherit;
}

.contact-info a:hover,
.footer a:not(.social-icon):hover {
    color: #fff;
    text-decoration: underline;
}

.breadcrumb-item a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding-inline: .15rem;
    color: var(--glina-blue);
}

.breadcrumb-item.active {
    color: var(--glina-muted);
}

/* --------------------------------------------------------------------------
   16. Responsive
   Breakpoints follow Bootstrap 5: xs <576, sm >=576, md >=768, lg >=992,
   xl >=1200. Rules are written mobile-first where practical; the max-width
   blocks below undo desktop-only layout decisions.
   -------------------------------------------------------------------------- */

/* ---- Tablets and below (<992px) ---------------------------------------- */
@media (max-width: 991.98px) {
    /* Stacked feature sections read better text-first; on desktop the image
       column is ordered first so it sits on the left. */
    .content-section .content-column {
        order: 0 !important;
    }

    .content-section .image-column {
        order: 1;
        margin-top: 1.75rem;
    }

    .content-section .inner-column {
        max-width: none;
    }

    .section-intro {
        padding: 2.5rem 1rem 1rem;
    }

    .location,
    .map-frame {
        min-height: 340px;
    }
}

/* ---- Phones (<768px) ---------------------------------------------------- */
@media (max-width: 767.98px) {
    :root {
        --glina-nav-h: 66px;
    }

    .navbar-custom .navbar-brand img,
    .navbar-custom #logo {
        height: 44px;
    }

    .section-intro {
        padding: 2rem .75rem .75rem;
    }

    .glina-eyebrow,
    .produkte {
        margin-top: 1.5rem;
        font-size: .82rem;
        padding: .4rem .9rem;
    }

    /* Hero. The frame keeps its 1920:850 ratio, so on a phone it is short
       (about 165px at 375px wide); the controls, indicators and caption below
       are sized to fit inside that band without covering each other. */
    .glina-hero .carousel-control-prev,
    .glina-hero .carousel-control-next {
        width: 18%;
    }

    /* 44px is the comfortable tap target; the old 2.4rem fell just under it. */
    .glina-hero .carousel-control-prev-icon,
    .glina-hero .carousel-control-next-icon {
        width: 2.75rem;
        height: 2.75rem;
        padding: .8rem;
        background-color: rgba(6, 46, 131, .65);
    }

    .glina-hero .carousel-indicators {
        margin-bottom: .25rem;
    }

    .glina-hero .carousel-indicators [data-bs-target] {
        width: 26px;
    }

    /* Clears the indicator strip (24px touch area + margin) at the bottom. */
    .glina-hero .carousel-caption {
        left: 18%;
        right: 18%;
        bottom: 2.25rem;
        padding: 0;
    }

    .glina-hero .carousel-caption h2 {
        font-size: clamp(.95rem, 4.4vw, 1.5rem);
    }

    /* Inner page banner */
    .glina-banner img {
        height: clamp(180px, 32vh, 280px);
    }

    .glina-banner-caption {
        padding: 1.5rem 1rem 1rem;
    }

    /* Feature sections. `container-md` is full-width below md, which would put
       the panel hard against both screen edges - width:auto lets the side
       margins apply without pushing the element past the viewport. */
    .content-section {
        width: auto;
        margin-left: .75rem;
        margin-right: .75rem;
        margin-bottom: 1.75rem;
        border-radius: var(--glina-radius-sm);
    }

    .content-section::before {
        width: 260px;
        height: 260px;
    }

    .image-wrapper,
    .image-wrapper1,
    .image-wrapper2 {
        gap: .75rem;
    }

    /* Drop the decorative vertical stagger - it wastes height on a phone. */
    .image-wrapper .image-1 .responsive-image,
    .image-wrapper .image-2 .responsive-image {
        transform: none;
    }

    /* Long-form article pages */
    .container1 {
        padding: 0 .85rem;
    }

    .container1 .section,
    .container1 .kurorti {
        border-radius: var(--glina-radius-sm);
    }

    .container1 .section p,
    .container1 .kurorti p {
        font-size: 1rem;
        line-height: 1.75;
    }

    /* Contact */
    .contact-col {
        padding: 1.15rem;
    }

    .location,
    .map-frame {
        min-height: 280px;
    }

    /* Blog carousel controls sit below the card, keep them thumb-sized. */
    .blog-carousel {
        padding-bottom: 4rem;
    }

    .blog-carousel .carousel-control-prev,
    .blog-carousel .carousel-control-next {
        width: 48px;
        height: 48px;
    }

    /* Footer */
    .footer {
        padding: 2.25rem 1rem 1.5rem;
    }

    .contact-info p {
        flex-wrap: wrap;
        font-size: .95rem;
    }

    .glina-to-top {
        right: .85rem;
        bottom: .85rem;
    }
}

/* ---- Small phones (<576px) ---------------------------------------------- */
@media (max-width: 575.98px) {
    .blog-image,
    .blog-card-image {
        height: 220px;
    }

    .blog-detail-title {
        font-size: 1.4rem;
    }

    .breadcrumb {
        font-size: .88rem;
    }

    .theme-btn,
    .btn-style-one {
        width: 100%;
        justify-content: center;
    }

    .pagination-container .pagination {
        border-radius: var(--glina-radius-sm);
        max-width: 100%;
    }

    .pagination-container .page-item .page-link {
        min-width: 38px;
        padding-inline: .6rem;
    }
}

/* ---- Very narrow phones (<=400px) --------------------------------------- */
/* The reCAPTCHA widget has a fixed 304px width and is the one element that
   can still force a side-scroll, so scale it down rather than clip it. */
@media (max-width: 400px) {
    .g-recaptcha {
        transform: scale(.85);
        transform-origin: 0 0;
        height: 65px;
    }
}

/* ---- Touch devices ------------------------------------------------------ */
/* Hover transforms are meaningless without a pointer and leave cards stuck in
   the hovered state after a tap, so disable them. */
@media (hover: none) {
    .glina-body .card:hover {
        transform: none;
    }

    .card:hover .blog-image,
    .card:hover .blog-card-image,
    .image-container img:hover,
    .timeline-image:hover {
        transform: none;
    }

    /* Comfortable tap targets (WCAG 2.5.8 minimum is 24px; 44px is roomy). */
    .navbar-custom .nav-link,
    .social-icon,
    .theme-btn,
    .btn-style-one,
    .pagination-container .page-link,
    .section.libri .link a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .navbar-custom .nav-link {
        justify-content: center;
    }
}

/* ---- Landscape phones --------------------------------------------------- */
@media (max-height: 480px) and (orientation: landscape) {
    .glina-banner img {
        height: 60vh;
    }
}

/* --------------------------------------------------------------------------
   17. Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}
