* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
html,
body {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    background-image: url("/images/generalimages/Background-Image.jpg");
}

/* Pashto Font */
@font-face {
    font-family: "BahijMitra";
    src: url("/fonts/Bahij_Mitra.ttf");
}
body {
    font-family: "BahijMitra", serif;
    margin: 0 auto;
}
::-webkit-scrollbar {
    width: 8px;
    height: 10px !important;
}

::-webkit-scrollbar-track {
    background-color: #28dbff;
}

::-webkit-scrollbar-thumb {
    background-color: rgb(223, 219, 219);
    border-radius: 10px;
    box-shadow: 0 0 10px gray;
}

nav {
    background-color: #2cd6f8;
    display: flex;
    justify-content: space-between;
    padding: 0 25px;
    align-items: center;
    height: 50px;
    position: sticky;
    top: 0;
    z-index: 20;
}
nav ul {
    display: flex;
    list-style-type: none;
    align-items: center;
    height: inherit;
    margin: 0;
}
nav ul li a {
    display: inline-block;
    padding: 15px 17px;
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-size: 20px;
}
.staticLinks {
    color: white;
}

.dropdowns-menu {
    position: absolute;
    background-color: #2cd6f8;
    flex-direction: column;
    width: max-content;
    top: 50px;
    box-shadow: 0 0 10px rgb(123, 121, 121);
    padding: 0 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
    border-radius: 10px;
    z-index: 10;
}
.dropdowns:hover .dropdowns-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.search {
    display: flex;
    column-gap: 30px;
    align-items: center;
    position: relative;
}
.search .drpdownLng {
    cursor: pointer;
    color: white;
    font-weight: 900;
    font-size: 20px;
}
.search i {
    color: white;
    font-size: 20px;
    font-weight: 900;
}
.lngdropdown-menu {
    position: absolute;
    background-color: #28dbff;
    top: 55px;
    right: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 100px;
    transition: all 0.5s;
    opacity: 0;
}
.lngdropdown-menu a {
    color: white;
    padding: 10px 0;
    text-decoration: none;
    font-size: 20px;
}
.separater {
    font-size: 30px;
    color: white;
}
header {
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    height: 80px;
}
.social-media {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.social-media a {
    text-decoration: none;
    color: white;
    background-color: #2cd6f8;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border-radius: 50%;
    opacity: 0;
    animation: iconFadeUp 3s ease alternate;
    animation-iteration-count: infinite;
}
/* 🔥 STOP animation on hover */
.social-media a:hover {
    animation-play-state: paused;
}

.humburger {
    color: white;
    font-size: 20px;
    display: none;
}

.containers {
    height: auto;
    display: flex;
    align-items: start;
    flex-direction: column;
    justify-content: center;
    position: relative;
    margin: 15px auto;
    padding: 0 30px;
}
.card-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cards per row */
    gap: 30px;
    align-items: stretch; /* 🔥 equal height cards */
    width: 100%;
}
.cards {
    flex-basis: 30%;
    box-shadow: 0 0 5px #2cd6f8;
    border-radius: 10px;
    transition: all 0.5s;
    position: relative;
    row-gap: 20px;
    height: 65vh;
    overflow: hidden;
}
.cards img {
    width: 100%;
    border-radius: 10px;
    height: 45vh;
}
.cards-title {
    display: block;
    text-align: center;
    text-decoration: none;
    font-size: 20px;
    padding: 0 10px;
    font-weight: 600;
}
.cards-decription {
    font-size: 15px;
    text-align: justify;
    padding: 0 10px; /* padding now works */
    display: -webkit-box; /* required for line-clamp */
    -webkit-line-clamp: 2; /* number of lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; /* adds "..." */
    line-height: 1.5em; /* spacing between lines */
    max-height: 3em; /* 2 lines x line-height */
    word-break: break-word; /* optional, prevent overflow */
}

.title {
    margin: 50px 0 20px;
    border-right: 5px solid #2cd6f8;
    font-weight: 900;
    padding: 10px 3px;
}

.cards:hover {
    cursor: pointer;
    transform: translateY(-5px);
}
.cards-date {
    position: absolute;
    top: 0;
    background-color: #2cd6f8;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0 auto;
    padding: 0 10px;
    color: white;
}

.announce-section {
    background-color: #e3ebec;
}
.btn-all {
    display: inline-block;
    margin: 50px auto 40px;
    font-weight: 800;
    color: #2cd6f8;
    font-size: 15px;
    box-shadow: 0 0 5px #2cd6f8;
    border-radius: 10px;
    padding: 5px 16px;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.5s;
}
.btn-all:hover {
    transform: scale(1.1);
}
.btn-more {
    display: block;
    position: absolute;
    height: inherit;
    width: inherit;
    background-color: #2cd6f898;
    top: -150%;
    left: 0;
    right: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s;
    color: white;
    font-size: 30px;
    text-decoration: none;
}
.cards:hover .btn-more {
    top: 0%;
}
#announce-img {
    height: 50vh;
}
#job-img {
    height: 100%;
}
.job-date {
    position: absolute;
    background-color: white;
    z-index: 5;
    bottom: 0;
    left: 0;
    padding: 10px 16px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0 auto;
    animation: RLMovement 2s ease-in-out infinite;
}
#journal-img {
    height: inherit;
}
/* Main container */
.youtube-container {
    width: 100%;
    padding: 20px;
}

/* Title */
.youtube-container .youtube-title {
    display: block;
    width: fit-content;
    margin: 25px auto;
    border-bottom: dotted 5px #2cd6f8;
    cursor: pointer;
}

/* Flex layout */
.youtube-card-section {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* allow wrapping */
}

/* Card */
.youtube-cards {
    flex: 0 0 calc(33.333% - 20px); /* 3 cards per row */
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 5px #2cd6f8;
    transition: all 0.5s;
}

/* Video */
.youtube-cards iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.youtube-cards:hover {
    transform: translateY(-5px);
}

.btn-youtube {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}
footer {
    background-color: #2cd6f8;
    color: #fff;
    display: flex;
    flex-direction: column;
}
.site-footer {
    background-color: #2cd6f8;
    color: #fff;
    display: flex;
    padding: 15px;
    align-items: flex-start;
}

.site-footer > div {
    padding: 0 30px;
}
#contact-us,
#location,
#social-media {
    width: 20%;
    height: 30vh;
}
#about {
    width: 30%;
    height: 30vh;
}
#about p{
    line-height: 4vh;
}
#links {
    width: 10%;
}
#social-media {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#social-media img {
    width: 50%;
    height: 50%;
}
#location {
    padding: 0;
}
#location iframe {
    height: 100%;
    width: 100%;
}
#footer-title {
    font-weight: 900;
    font-size: 20px;
}
#links {
    display: flex;
    flex-direction: column;
}
#links a {
    text-decoration: none;
    color: white;
}
#contact-us {
    display: flex;
    flex-direction: column;
}
#icons {
    width: 100%;
    display: flex;
    justify-content: space-around;
}
#icons a {
    color: white;
    text-decoration: none;
    font-weight: 900;
    font-size: 20px;
    border-radius: 50%;
}
.copyright {
    text-align: center;
}
.oneCards {
    border-radius: 20px;
    box-shadow: 0 0 5px #2cd6f8;
    width: 80%;
    margin: 20px auto;
    position: relative;
}
.oneCards img {
    width: 100%;
    height: 100%;
    object-position: center;
    object-fit: cover;
}
.oneCards h3 {
    font-weight: 800;
    color: #2cd6f8;
    text-align: center;
    margin: 15px 0;
}
.oneCards .description {
    padding: 15px 20px;
    font-size: 20px;
    text-align: justify;
    line-height: 40px;
}
.oneCards .buttons {
    text-align: center;
    padding: 30px 0;
}
.oneCards .buttons p {
    font-weight: 800;
}
.oneCards .date {
    padding: 15px 20px;
    color: rgb(147, 142, 142);
}
.attachments {
    text-align: center;
}
.center-title {
    font-weight: 900;
    font-size: 30px;
}
.attachments ul {
    list-style-type: none;
}
.list-containers {
    width: 90%;
    margin: 0 auto;
}
.list-card-section {
    display: flex;
    flex-direction: column;
    row-gap: 40px;
}
.list-cards {
    display: flex;
    height: auto;
}
.list-cards img {
    height: 400px;
    width: 400px;
}
.contents {
    width: 70%;
    padding: 20px 30px;
}
.list-title {
    font-weight: 900;
    color: #2cd6f8;
    font-size: 30px;
}
.list-decription {
    margin: 15px 0;
    font-size: 20px;
    text-align: justify;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    direction: ltr;
    height: 40px;
    background-color: transparent;
    width: 100%;
}
.pagination nav {
    background-color: transparent;
}
/* Hide "Showing x to y of z results" */
.pagination nav > div > div:first-child {
    display: none;
}

/* Center pagination numbers */
.pagination nav > div {
    justify-content: center !important;
}
#attachment {
    font-weight: 900;
    font-size: 20px;
}
.about-container {
    padding: 20px;
    box-shadow: 0 0 30px #28dbff inset;
    border-radius: 20px;
    margin: 30px;
    height: auto;
}
.about-container img {
    width: 400px;
    height: 400px;
    border-radius: 20px;
    box-shadow: 0 0 10px gray;
}
#main-title {
    display: flex;
}
#main-title span {
    text-align: justify;
    font-size: 20px;
    padding: 0 20px;
    line-height: 40px;
}
#about-title {
    padding: 0 20px;
    font-weight: 900;
}
.sub-title {
    font-weight: 900;
    padding: 0 20px;
}
.sub-para {
    padding: 0 20px;
    font-size: 20px;
    text-align: justify;
    line-height: 40px;
}
.message-container {
    width: 80%;
    box-shadow: 0 0 10px #28dbff;
    margin: 10px auto;
    padding: 20px;
    border-radius: 20px;
    transition: 0.5s all;
}
.message-container:hover {
    transform: translateY(-5px);
}
.message-container h3 {
    text-align: center;
    font-weight: 900;
}
.search-containers {
    padding: 20px;
    width: 60%;
    margin: 0 auto;
}

/* carousel css */
.news-slide-wrapper {
    display: flex;
    background: #fff;
    margin: 40px auto;
    max-width: 96%;
    height: 70vh;
    border-radius: 6px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* LEFT SIDE */
.news-slide-content {
    width: 50%;
    padding: 60px;
    direction: rtl;
    text-align: right;
}

.news-slide-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #111;
}

.news-slide-date {
    display: block;
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}

.news-slide-desc {
    font-size: 16px;
    color: #444;
    line-height: 1.9;
    margin-bottom: 30px;
}

.news-slide-btn {
    display: inline-block;
    padding: 10px 22px;
    background: #0d6efd;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.news-slide-image {
    width: 50%;
    height: 100%;
    overflow: hidden; /* important */
}

.news-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* fills container nicely */
    object-position: center;
}

/* Social Media Icon Animation Sytle */
.social-media a:nth-child(1) { animation-delay: 0.3s; }
.social-media a:nth-child(2) { animation-delay: 0.5s; }
.social-media a:nth-child(3) { animation-delay: 0.7s; }


/*Responsive 700px */
@media (max-width: 790px) {
    #main-title {
        display: flex;
        flex-direction: column;
        column-gap: 20px;
    }
    #main-title img {
        margin: 20px auto;
        width: 90%;
    }
    /* Carousel Css Style */
    .carousel-inner {
        padding: 0 20px;
    }
    .news-slide-wrapper {
        display: flex;
        flex-direction: column;
        background: #fff;
        margin: 10px auto;
        max-width: 100%;
        height: auto;
        border-radius: 6px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    }
    /* LEFT SIDE */
    .news-slide-content {
        width: 50%;
        height: 50%;
        padding: 60px;
        direction: rtl;
        text-align: right;
    }
    .carousel .carousel-inner img {
        height: 35vh;
        width: 100%;
        object-position: center;
    }
    .news-slide-title {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 10px;
        color: #111;
    }

    .news-slide-date {
        display: block;
        font-size: 14px;
        color: #999;
        margin-bottom: 10px;
    }

    .news-slide-desc {
        font-size: 16px;
        color: #444;
        margin-bottom: 10px;
    }

    .news-slide-btn {
        display: none;
    }
    .humburger {
        display: block;
    }
    nav ul {
        position: absolute;
        left: -100%;
        width: 100%;
        top: 50px;
        z-index: 12;
        display: flex;
        background-color: #2cd6f8;
        flex-direction: column;
        height: auto;
        transition: all 1s;
    }
    nav ul li {
        padding: 0 15px;
        width: inherit;
        margin: 0;
    }
    .dropdowns {
        position: relative;
    }
    .dropdowns-menu {
        position: absolute;
        background-color: #2cd6f8;
        flex-direction: column;
        width: max-content;
        box-shadow: 0 0 10px gainsboro;
        padding: 0 20px;
        opacity: 0;
        visibility: hidden;
        top: 50px;
        right: 40%;
        z-index: 13;
    }
    .dropdowns:hover .dropdowns-menu {
        opacity: 1;
        visibility: visible;
        right: 30%;
    }
    .cards {
        flex-basis: 30%;
        box-shadow: 0 0 5px #2cd6f8;
        border-radius: 10px;
        transition: all 0.5s;
        position: relative;
        row-gap: 20px;
        height: auto;
        overflow: hidden;
    }
    .cards img {
        width: 100%;
        border-radius: 10px;
        height: 45vh;
    }
    .card-section {
        flex-direction: column;
        row-gap: 40px;
        display: grid;
        grid-template-columns: repeat(1, 1fr); /* 3 cards per row */
        align-items: stretch; /* 🔥 equal height cards */
    }
    .youtube-cards {
        flex: 0 0 100%; /* 1 card per row */
    }
    .site-footer {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 15px 0;
        row-gap: 20px;
    }
    #contact-us,
    #location,
    #social-media,
    #about,
    #links {
        width: 100%;
        height: auto;
    }
    .logo {
        width: 100%;
        height: 90px;
    }
    .social-media {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    .social-media a {
        text-decoration: none;
        color: white;
        background-color: #2cd6f8;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        border-radius: 50%;
        transition: all 0.3s ease;
       
    }
    .search {
        display: flex;
        column-gap: 20px;
        align-items: center;
        position: relative;
    }
    #searchIcon i {
        font-size: 16px;
    }
    /* Pagination container */
    .pagination {
        display: flex !important;
        flex-direction: row !important; /* 👈 ONE ROW */
        flex-wrap: nowrap !important;
        justify-content: center;
        align-items: center;
        gap: 4px;
    }

    /* Pagination items */
    .pagination .page-item {
        flex: 0 0 auto;
    }

    /* Pagination links */
    .pagination .page-link {
        padding: 6px 10px;
        font-size: 14px;
        border-radius: 6px;
        min-width: 32px;
        text-align: center;
    }
    .list-containers {
        width: 90%;
        margin: 0 auto;
    }
    .list-cards {
        display: flex;
        flex-direction: column;
        border-radius: 10px;
        box-shadow: 0 0 5px #2cd6f8;
        height: auto;
    }
    .list-cards img {
        width: 100%;
    }
    .contents {
        width: 100%;
        padding: 20px 30px;
    }
    .list-title {
        font-weight: 900;
        color: #2cd6f8;
    }
    .list-decription {
        margin: 15px 0;
        font-size: 20px;
        text-align: justify;
    }
    .news-slide-wrapper {
        flex-direction: column;
    }

    .news-slide-content,
    .news-slide-image {
        width: 100%;
    }

    .news-slide-content {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .logo {
        width: 80%;
        height: 63px;
    }
    .lang {
        display: flex;
        gap: 2px;
    }
    .lang a {
        text-decoration: none;
        color: white;
        background-color: #2cd6f8;
        display: inline-block;
        padding: 4px 10px;
        border-radius: 10px;
        font-size: 12px;
    }
    .list-containers {
        width: 90%;
        margin: 0 auto;
    }
    .list-cards {
        display: flex;
        flex-direction: column;
        border-radius: 10px;
        box-shadow: 0 0 5px #2cd6f8;
        height: auto;
    }
    .list-cards img {
        width: 100%;
    }
    .contents {
        width: 100%;
        padding: 20px 30px;
    }
    .list-title {
        font-weight: 900;
        color: #2cd6f8;
    }
    .list-decription {
        margin: 15px 0;
        font-size: 20px;
        text-align: justify;
    }
    /* Nav wrapper */
    .pagination nav {
        display: flex;
        justify-content: center;
    }

    /* UL pagination */
    .pagination ul.pagination {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important; /* 🔥 prevents vertical stacking */
        justify-content: center !important;
        align-items: center;
        column-gap: 30px;
        padding: 0;
        margin: 0;
    }

    .pagination ul.pagination li .page-link {
        display: block;
        display: flex;
        text-align: center;
    }

    /* Page links */
    .pagination ul.pagination .page-link {
        font-size: 13px;
        border-radius: 6px;
        width: 100px !important;
        margin: 5px 20px;
        display: flex !important;
        align-items: center;
    }
    .job-date {
        position: absolute;
        background-color: white;
        z-index: 5;
        bottom: 0;
        left: 0;
        left: 50%;
        transform: translateX(-50%);
        margin: 0 auto;
        padding: 8px 4px;
    }
}

/* Animation Css */

@keyframes RLMovement {
    0% {
        transform: translateX(-50%) translateX(-5px);
        box-shadow: none;
    }
    50% {
        transform: translateX(-50%) translateX(5px);
        box-shadow: 0 0 15px   #28dbff;;
    }
    100% {
        transform: translateX(-50%) translateX(-5px);
        box-shadow:0 0 15px  #28dbff;;
    }
}

@keyframes iconFadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}