/* =======================
   Tab Buttons
======================= */
.tabnew {
    margin-top: 30px;
    margin-bottom: 40px;
}

.tabnew-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tabnew-btn {
    flex: 1;
    padding: 10px 15px;
    background: #eee;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: 0.3s;
}

.tabnew-btn.active {
    background: #007bff;
    color: #fff;
}

/* =======================
   Tab Content
======================= */
.tabnew-contents {
    position: relative;
}

.tabnew-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.tabnew-content.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

/* =======================
   Gallery Grid
======================= */
.gallery-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.gallery-item {
    flex: 1 1 calc(25% - 15px);
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 5px;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

 /* Hover Icon with circle */
.tab-gallery-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    width: 75px;  /* circle size */
    height: 75px; /* circle size */
    border-radius: 50%;
    background: rgba(0,90,160,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.gallery-item:hover .tab-gallery-icon {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1.1);
}

.tab-gallery-icon span {
    font-size: 36px;  /* Bigger icon inside circle */
    color: #fff;
    font-weight: bold;
    line-height: 1;
    transition: transform 0.3s;
}

.gallery-item:hover .tab-gallery-icon span {
    transform: scale(1.2); /* Slight growth on hover */
}

/* =======================
   Invisible items for spacing consistency
======================= */
.gallery-item.invisible {
    visibility: hidden;
}

/* =======================
   Responsive
======================= */
@media (max-width: 992px) {
    .gallery-item { flex: 1 1 calc(50% - 15px); }
}

@media (max-width: 576px) {
    .gallery-item { flex: 1 1 100%; }
    .tabnew-btn { flex: 100%; }
}
