﻿@font-face {
    font-family: 'frutigerltarabic-55roman';
    src: url('../fonts/frutigerltarabic-55roman.ttf') format('truetype');
}

@font-face {
    font-family: 'frutigerltarabic-65bold';
    src: url('../fonts/frutigerltarabic-65bold.ttf') format('truetype');
}

.title {
    font-family: "frutigerltarabic-65bold";
    font-size: 36px;
    font-weight: bolder;
    padding: 20px;
}

.custom-container {
    margin: 0 auto;
    max-width: 60%;
    text-align: center;
    padding: 20px;
    /*background-color: #fff;*/
    border-radius: 8px;
}

/*
ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    max-width:100%;
    font-family:"frutigerltarabic-55roman";
}*/

figure {
    margin: 0;
    position: relative;
    overflow: hidden;
}



figure {
    border-radius: 4px ;
}

    figure::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 200%;
        height: 200%;
        background: rgba(141, 105, 26, 0.6); /*rgba(0, 0, 0, 0.5)*/
        transform-origin: center;
        opacity: 0;
        transform: scale(20);
        transition: opacity 300ms;
    }

figcaption {
    font-family: "frutigerltarabic-55roman";
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    display: grid;
    justify-content: center;
    place-items: center;
    text-align: center;
    padding: 1rem;
    color: white;
    font-size: 60px;
    border: 3px solid #fff;
    z-index: 1;
    opacity: 0;
    transition: opacity 600ms, transform 600ms;
}

a:is(:hover, :focus) figure::after {
    opacity: 1;
}

a:is(:hover, :focus) figcaption {
    opacity: 1;
    transition: opacity 600ms;
}

@media (prefers-reduced-motion: no-preference) {
    figcaption {
        transform: translate3d(0, 2rem, 0);
    }

    figure::after {
        border-radius: 50%;
        opacity: 1;
        transform: scale(0);
        transition: transform 900ms;
    }

    a:is(:hover, :focus) figure::after {
        transform: scale(2.5);
    }

    a:is(:hover, :focus) figcaption {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        transition: opacity 600ms 400ms, transform 600ms 400ms;
    }

    a:is(:hover, :focus) img {
        transform: scale(1.2);
    }
}


/* =====  */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 60px;
    margin-top: 70px;
}

.gallery-card {
    background: rgba(255,255,255,0.99);
    border-radius: 25px;
    overflow: hidden;
   /* cursor: pointer;*/
    transition: all 0.5s ease;
    box-shadow: 0 20px 45px rgba(0,0,0,0.2);
    border: 3px solid rgba(205,164,52,0.4);
    position: relative;
}

    .gallery-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 8px;
        background: linear-gradient(90deg, #CDA434, #F0D07B, #CDA434);
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .gallery-card:hover::before {
        opacity: 1;
    }

    .gallery-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 35px 70px rgba(0,0,0,0.3);
        border-color: #CDA434;
    }

.card-image {
    height: 250px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin: 25px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.1);
}

.external-card .card-image,
.internal-card .card-image {
    background: linear-gradient(105deg, #ddbc6c, #FFE0AA, #e6d09b);
}

.card-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 6rem;
    color: #CDA434;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
    z-index: 2;
    filter: drop-shadow(0 0 18px rgba(205,164,52,0.6));
}

.gallery-card:hover .card-icon {
    transform: translate(-50%, -50%) scale(1.15) rotate(7deg);
    filter: drop-shadow(0 0 30px rgba(240,208,123,0.9));
    color: #A68D33;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    pointer-events: none;
}

.card-content {
    padding: 45px 40px;
    text-align: center;
}

.card-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1A2C4A;
    margin-bottom: 25px;
    letter-spacing: 0.8px;
}

.card-description {
    color: #666;
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 35px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.card-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid rgba(205,164,52,0.3);
}

.stat-item {
    text-align: center;
    flex: 1;
    padding: 0 10px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #CDA434;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1.1rem;
    color: #777;
    margin-top: 10px;
    font-weight: 500;
}

.access-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #CDA434, #A68D33);
    color: white;
    padding: 20px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    margin-top: 30px;
    box-shadow: 0 12px 30px rgba(205,164,52,0.4);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

    .access-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.6s ease;
    }

    .access-button:hover::before {
        left: 100%;
    }

    .access-button:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 45px rgba(205,164,52,0.6);
        background: linear-gradient(135deg, #F0D07B, #CDA434);
        color: #64675d;
    }

.presidential-seal {
    position: fixed;
    top: 40px;
    right: 40px;
    width: 90px;
    height: 90px;
    background: linear-gradient(45deg, #CDA434, #F0D07B);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: white;
    border: 4px solid rgba(255,255,255,0.4);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 1000;
    animation: rotateSeal 10s linear infinite;
}

@keyframes rotateSeal {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.official-badge {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: #CDA434;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 6px 15px rgba(205,164,52,0.4);
    z-index: 10;
    border: 2px solid rgba(255,255,255,0.3);
    max-height:40px;
}

.fade-in {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .presidential-seal {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        top: 20px;
        right: 20px;
    }

    .card-content {
        padding: 35px 25px;
    }

    .card-title {
        font-size: 2rem;
    }

    .card-description {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .access-button {
        padding: 15px 30px;
        font-size: 1.1rem;
    }

    .official-badge {
        top: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 500px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .card-image {
        height: 280px;
        margin: 15px;
    }

    .card-icon {
        font-size: 4.5rem;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 60px;
    margin-top: 70px;
}

.gallery-card {
    background: rgba(255,255,255,0.99);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.5s ease;
    box-shadow: 0 20px 45px rgba(0,0,0,0.2);
    border: 3px solid rgba(205,164,52,0.4);
    position: relative;
}

    .gallery-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 8px;
        background: linear-gradient(90deg, #CDA434, #F0D07B, #CDA434);
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .gallery-card:hover::before {
        opacity: 1;
    }

    .gallery-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 35px 70px rgba(0,0,0,0.3);
        border-color: #CDA434;
    }
/*=== images page ==== */
.card-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin: 25px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 350px;
}

    .card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }


.card-content {
    padding: 45px 40px;
    text-align: center;
}

.card-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1A2C4A;
    margin-bottom: 25px;
    letter-spacing: 0.8px;
}

.card-description {
    color: #555;
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 35px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.card-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 3px solid rgba(205,164,52,0.3);
}



.access-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #CDA434, #A68D33);
    color: white;
    padding: 20px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    margin-top: 30px;
    box-shadow: 0 12px 30px rgba(205,164,52,0.4);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

    .access-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.6s ease;
    }

    .access-button:hover::before {
        left: 100%;
    }

    .access-button:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 45px rgba(205,164,52,0.6);
        background: linear-gradient(135deg, #F0D07B, #CDA434);
        color: #65665d;
    }



@keyframes rotateSeal {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.official-badge {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    background: #CDA434;
    color: white;
    padding:10px 50px 40px 50px;
     border-radius: 5px;
    font-size: 1.5rem;
    font-weight: 600;
    box-shadow: 0 6px 15px rgba(205,164,52,0.4);
    z-index: 10;
    border: 1px solid rgba(255,255,255,0.3);
    white-space: nowrap;
}

.fade-in {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .presidential-seal {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        top: 20px;
        right: 20px;
    }

    .card-content {
        padding: 35px 25px;
    }

    .card-title {
        font-size: 2rem;
    }

    .card-description {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .access-button {
        padding: 15px 30px;
        font-size: 1.1rem;
    }

    .official-badge {
        top: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .page-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 500px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .card-image {
        height: 280px;
        margin: 15px;
    }

    .card-icon {
        font-size: 4.5rem;
    }
}
 