/* landing */
.landing.sections {
    width: 100%;
    height: 500px;
    position: relative;
    background-image: url('../../../images/bg/bg1.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
    display: flex;
    flex-direction: column-reverse;
}

.landing.sections::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #0000007d;
}

.landing.sections h1,
.landing.sections p {
    margin: 0 50px 30px 0;
    position: relative;
}

.landing.sections i {
    font-size: 11px;
}

/* post-section1 */
.post-section1 p {
    text-align: justify;
}

/* posts section */
.posts-section {
    background-image: url('../../../images/main-images/ads/إعلان\ معهد\ دار\ الغرباء\ copy.jpg');
    text-align: center;
    color: white;
    /* background-attachment: fixed; */
    background-position: top;
    position: relative;
}
.posts-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.712);
}
.posts-section .post {
    max-width: 40%;
    margin: auto;
}

.posts-section .post .image-container {
    border-radius: 100%;
    width: fit-content;
    overflow: hidden;
    margin: 0px auto 10px auto;
}

.posts-section .post .image-container img {
    max-width: 100%;
}

/* //-----------gallart---------- */
/* .tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tabs li {
    padding: 10px;
    background-color: #f6f4f4;
    border-right: 1px solid white;
    cursor: pointer;
    transition: 0.2s;
}

.tabs li.active,
.tabs li:hover {
    background-color: #4CAF50;
}

.content {
    background-color: white;
}

.content>div {
    padding: 20px;
}

.content>div:not(:first-child) {
    display: none;
} */

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.grid img {
    max-width: 100%;
    transition: 3s;
}

.tabs {
    display: flex;
    border-bottom: 2px solid #ccc;
    margin-bottom: 20px;
}

.tab-button {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s, border-bottom 0.3s;
}

.tab-button.active {
    color: #4CAF50;
    border-bottom: 2px solid #4CAF50;
}

.tab-content {
    position: relative;
    overflow: hidden;
}

.tab-panel {
    display: none;
    padding: 20px;
    background-color: white;
    border: 1px solid #ccc;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.tab-panel.active {
    display: block;
    opacity: 1;
}

/* //------------------------------------------------------ */


.modal {
    display: none;
    /* Hidden by default */
    /* position: fixed; */
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.8);
    /* Black with opacity */
    animation: fadeIn 0.5s;
    /* Animation for modal appearance */
}

.modal-content {
    background-color: #fff;
    margin:50px auto;
    /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 60%;
    /* Could be more or less, depending on screen size */
    animation: slideIn 0.5s;
    /* Animation for content appearance */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Keyframes for animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}