/* History Gallery Styles */
.tj-history-gallery-wrapper {
    padding: 20px;
}

.tj-history-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    margin-bottom: 15px;
}

.tj-history-gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.tj-history-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tj-history-gallery-item:hover img {
    transform: scale(1.1);
}

.tj-history-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 144, 220, 0.9), rgba(74, 158, 255, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 12px;
}

.tj-history-gallery-item:hover .tj-history-gallery-overlay {
    opacity: 1;
}

.tj-history-gallery-overlay i {
    font-size: 24px;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.tj-history-gallery-overlay i:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.tj-history-gallery-link {
    display: block;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .tj-history-gallery-wrapper {
        margin-top: 40px;
        padding: 15px;
    }
    
    .tj-history-gallery-item img {
        height: 180px;
    }
}

@media (max-width: 767px) {
    .tj-history-gallery-item img {
        height: 150px;
    }
    
    .tj-history-gallery-overlay i {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 575px) {
    .tj-history-gallery-wrapper {
        padding: 10px;
    }
    
    .tj-history-gallery-item {
        margin-bottom: 10px;
    }
    
    .tj-history-gallery-item img {
        height: 120px;
    }
}

/* Animation enhancements */
.tj-history-gallery-item {
    animation: fadeInUp 0.6s ease forwards;
}

.tj-history-gallery-item:nth-child(1) {
    animation-delay: 0.1s;
}

.tj-history-gallery-item:nth-child(2) {
    animation-delay: 0.2s;
}

.tj-history-gallery-item:nth-child(3) {
    animation-delay: 0.3s;
}

.tj-history-gallery-item:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section spacing */
.tj-about-3-area {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.tj-about-3-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
}

@media (max-width: 991px) {
    .tj-about-3-area {
        padding: 60px 0;
    }
}

@media (max-width: 767px) {
    .tj-about-3-area {
        padding: 40px 0;
    }
}

/* Branches Map Styles */
.tj-branches-map-wrapper {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.tj-branches-map-container {
    position: relative;
    text-align: center;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(52, 144, 220, 0.15);
    transition: all 0.4s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
}

.tj-branches-map-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(52, 144, 220, 0.25);
}

.tj-branches-map {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.1));
}

.tj-branches-map:hover {
    transform: scale(1.02);
}

/* Responsive adjustments for branches section */
@media (max-width: 991px) {
    .tj-branches-map-wrapper {
        margin-bottom: 40px;
        min-height: 300px;
        padding: 15px;
    }
    
    .tj-branches-map-container {
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .tj-branches-map-wrapper {
        min-height: 250px;
        padding: 10px;
    }
    
    .tj-branches-map-container {
        padding: 15px;
        border-radius: 15px;
    }
    
    .tj-branches-map {
        border-radius: 10px;
    }
}

@media (max-width: 575px) {
    .tj-branches-map-wrapper {
        min-height: 200px;
    }
    
    .tj-branches-map-container {
        padding: 10px;
    }
}