/* Library Hero Section */
.library-hero {
    background: linear-gradient(rgba(48, 70, 116, 0.8), rgba(48, 70, 116, 0.8)), 
                url('https://images.unsplash.com/photo-1589998059171-988d887df646?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1476&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
}

.opsti-podaci-hero {
    background: linear-gradient(rgba(48, 70, 116, 0.8), rgba(48, 70, 116, 0.8)), 
                url('https://kcobeocin.rs/files/other/header/opsti-podaci.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
}

.kulturni-centar-hero {
    background: linear-gradient(rgba(48, 70, 116, 0.8), rgba(48, 70, 116, 0.8)), 
                url('https://kcobeocin.rs/files/dom-kulture-slike/zgrada/dom-kulture-014.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
}

/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #304674;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 10px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: white;
    border: 4px solid #304674;
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

.left {
    left: 0;
    padding-right: 70px;
}

.right {
    left: 50%;
    padding-left: 70px;
}

.left::after {
    right: -12px;
}

.right::after {
    left: -12px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}

.timeline-content h3 {
    color: #304674;
    margin-bottom: 15px;
}

/* Services Section */
.services-section {
    padding: 5rem 0;
    background: white;
}

.service-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    background: #f8f9fa;
    padding: 2rem;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Membership Cards */
.membership-card {
    border-left: 5px solid #304674;
    transition: all 0.3s ease;
    height: 100%;
}

.membership-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.membership-card .card-header {
    background-color: #304674;
    color: white;
}

/* Collection Cards */
.collection-card {
    transition: all 0.3s ease;
    height: 100%;
}

.collection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Responsive Timeline */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item::after {
        left: 18px;
    }
    
    .left::after, .right::after {
        left: 18px;
    }
    
    .right {
        left: 0%;
    }
}

/* Image Styles */
.collection-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

/* Local Collection Images */
.local-collection-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.portrait-img {
    height: 300px;
    object-fit: cover;
    width: 100%;
}