@import './navbar.css';
@import './footer.css';


.main-container {
    margin-top: calc(150*var(--rpx));
    padding-inline: calc(145*var(--rpx));
}

.main-header {
    color: #272E67;
    font-size: calc(25 * var(--rpx));
    font-family: Alexandria, serif;
    font-weight: 700;
    word-wrap: break-word;
    text-align: center;
    margin-bottom: calc(53 * var(--rpx));
}


.gallery-container {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    background: white;
    padding: calc(20*var(--rpx));
    border-radius: calc(10*var(--rpx));
    box-shadow: 0 calc(2*var(--rpx)) calc(10*var(--rpx)) rgba(0,0,0,0.1);
    margin-bottom: calc(100*var(--rpx));
}

.image-page {
    display: none;
    animation: flipIn 0.6s ease-out forwards;
}

.image-page.active {
    display: block;
}

.gallery-image {
    width: 100%;
    height: calc(300*var(--rpx));
    object-fit: cover;
    margin-bottom: calc(15*var(--rpx));
    border-radius: calc(8*var(--rpx));
    box-shadow: 0 calc(3*var(--rpx)) calc(6*var(--rpx)) rgba(0,0,0,0.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 95%;
    background: rgba(0, 0, 0, 0.5); /* semi-transparent black */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.overlay-text {
    text-align: center;
    color: white;
    padding: calc(20*var(--rpx));
}

.image-container {
    position: relative;
    margin-bottom: calc(20*var(--rpx));
}

.image-container:hover .overlay {
    opacity: 1;
}

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

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: calc(25*var(--rpx));
}

.page-btn {
    background: #4a6fa5;
    color: white;
    border: none;
    width: calc(40*var(--rpx));
    height: calc(40*var(--rpx));
    border-radius: 50%;
    font-size: calc(20*var(--rpx));
    cursor: pointer;
    margin: 0 calc(15*var(--rpx));
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(:disabled) {
    background: #3a5a8f;
    transform: scale(1.1);
}

.page-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.page-indicator {
    font-size: calc(18*var(--rpx));
    min-width: calc(80*var(--rpx));
    text-align: center;
    color: #555;
}

@keyframes flipIn {
    0% {
        opacity: 0;
        transform: perspective(500px) rotateX(30deg);
    }
    100% {
        opacity: 1;
        transform: perspective(500px) rotateX(0);
    }
}

.second-header {
    color: var(--main);
    font-size: calc(25 * var(--rpx));
    font-family: Alexandria, serif;
    font-weight: 700;
    word-wrap: break-word;
    text-align: center;
    margin-bottom: calc(53 * var(--rpx));
}

.photo-showcase {
    max-width: calc(900*var(--rpx));
    margin: 0 auto;
    padding: calc(20*var(--rpx));
    margin-bottom: calc(90 * var(--rpx));
}

.photo-grid {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(15*var(--rpx));
    animation: slideIn 0.5s ease-out;
}

.photo-grid.current {
    display: grid;
}

.photo-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 calc(3*var(--rpx)) calc(10*var(--rpx)) rgba(0,0,0,0.2);
    position: relative;
}

.photo-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* semi-transparent black */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.photo-card-overlay-text {
    text-align: center;
    color: white;
}

.photo-card:hover .photo-card-overlay {
    opacity: 1;
}


.photo-img {
    width: 100%;
    height: calc(200*var(--rpx));
    object-fit: cover;
    display: block;
}

.photo-caption {
    padding: calc(10*var(--rpx));
    text-align: center;
    background: white;
    font-size: calc(14*var(--rpx));
    color: #555;
}

.nav-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: calc(30*var(--rpx));
}

.nav-arrow {
    background: #5a7eb5;
    color: white;
    width: calc(40*var(--rpx));
    height: calc(40*var(--rpx));
    border-radius: 50%;
    border: none;
    font-size: calc(18*var(--rpx));
    cursor: pointer;
    margin: 0 calc(20*var(--rpx));
    transition: all 0.3s;
}

.nav-arrow:hover:not(:disabled) {
    background: #3a5a8f;
    transform: scale(1.1);
}

.nav-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #cccccc;
}

.page-counter {
    font-size: calc(16*var(--rpx));
    color: #666;
    min-width: calc(80*var(--rpx));
    text-align: center;
}

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

.triple-links-line {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    margin-bottom: calc(80*var(--rpx));
}

.blue-link {
    color: #272E67;
    text-align: center;
    font-family: Alexandria;
    font-size: calc(25*var(--rpx));
    font-style: normal;
    font-weight: 800;
    line-height: normal;
}

.oman-vision-image {
    width: 100%;
}

.competition-image-div {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: calc(60*var(--rpx));
}


a {
    text-decoration: none;
}
