/*----Main Style----*/
body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f9f7f1;
}
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}
h1 {
    font-size: 4rem;
    margin-bottom: 0;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.back-link {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1001;
}
.back-link a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.back-link a:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

header p {
    font-size: 1.5rem;
    color: #f4f4f4;
    max-width: 60%;
    margin: 1rem auto;
}
footer {
    background-color: #222;
    color: white;
    text-align: center;
    font-size: .7rem;
    padding: .5rem 0;
    position: relative;    
    bottom: auto;
    width: 100%;
    margin-top: 50px;
}
footer a {
    text-decoration: none;
    color: #f0f0f0;
    padding: .5rem;
}
.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 4rem 0;
}
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.blog-post {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.blog-post img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}
.btn {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}
.btn:hover {
    background: #555;
}

/*----Parent----*/
header.main {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../croatia/media/adriatic_sea.gif') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}
.scroll-cue {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    animation: bounce 2s infinite;
    cursor: pointer;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 2rem;
}
.card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
}
.card:hover {
    transform: translateY(-5px);
}
.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.card-content {
    padding: 1.5rem;
}
.card h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

/*----Child----*/
header {
    position: relative; 
    height: 70vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)); 
    z-index: -1;
}
.meta {
    font-style: italic;
    color: #666;
    margin-bottom: 1rem;
    font-size: 10pt;
}
.carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}
.carousel-item {
    min-width: 100%;
    height: 500px;
}
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 10px 15px;
    text-decoration: none;
    font-size: 18px;
    cursor: pointer;
}
.carousel-control.prev { left: 10px; }
.carousel-control.next { right: 10px; }
.description {
    background: #fff;
    padding: 2rem;
    margin-top: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}


@media (max-width: 768px) {
    .container{
        width: 95%;
        padding: auto; 
    }
    header.main h1{
        font-size: 3rem; 
    }
    header.main p{
        font-size: 1.2rem;
        max-width: 80%;
    }
    body{
        overflow-x: hidden; 
    }
    .back-link a{
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    .grid{
        grid-template-columns: 1fr; 
        gap: 1.5rem;
    }
    .card img{
        height: 200px; 
    }
    .card-content h3{
        font-size: 1.3rem;
    }
    h1, h2, h3{
        line-height: 1.2;
    }
    h1{
        font-size: 3.5rem;
    }
    h2{
        font-size: 2.2rem;
    }
    h3{
        font-size: 1.6rem;
    }
    body{
        font-size: 1rem;
    }
    .video-container,
    .carousel{
        height: 350px; 
    }
    .carousel-item{
        height: 350px;
    }
    .blog-post{
        padding: 1.5rem;
    }
    .blog-post img{
        height: 300px; 
    }
    .scroll-cue{
        font-size: 0.9rem;
        bottom: 20px;
    }
    footer{
        position: relative;
        width: 100vw;
        left: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }
}

@media (max-width: 480px) {
    .container{
        width: 97%;
        padding: auto;
    }
    header.main h1{
        font-size: 2.4rem;
    }
    header.main p{
        font-size: 1rem;
        max-width: 90%;
    }
    .back-link a{
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    .card img{
        height: 150px;  
    }
    .card-content h3{
        font-size: 1.2rem;
    }
    h1{
        font-size: 2.2rem;
    }
    h2{
        font-size: 1.8rem;
    }
    h3{
        font-size: 1.4rem;
    }
    body{
        font-size: 0.95rem;
    }
    .video-container,
    .carousel{
        height: 250px;
    }
    .carousel-item{
        height: 250px;
    }
    .blog-post{
        padding: 1rem;
    }
    .blog-post img{
        height: 200px;
    }
    .scroll-cue{
        font-size: 0.8rem;
        bottom: 15px;
    }
}

.lightbox-overlay{
    background: rgba(0,0,0,.9); 
}