@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&family=Cairo:wght@200..1000&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: 'Almarai', sans-serif;
}

.header-banner {
    position: relative;
    height: 180px;
    background-image: url('../media/intro.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
    direction: rtl;
    z-index: -1; 
}

.arrow-left {
    transform: rotate(90deg);
    display: inline-block;
}

.header-banner::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.header-banner .overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 2;
    color: #fff;
    text-align: center;
    padding: 30px;
}

.header-banner h1 {
    font-size: 35px;
    font-weight: bold;
    display: flex;
    justify-content: right;
}

.header-banner p {
    margin-top: 10px;
    font-size: 20px;
    color: #f2c64d;
    font-weight: bold;
    display: flex;
    justify-content: right;
}

.header-banner a{
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: normal;
    transition: color 0.3s ease;
}

.header-banner a:hover {
    color: #c2c2c2;
}

.container {
    width: 100%;
}

.news {
    margin-top: 50px !important;
    width: 85%;
    margin: 20px auto;
}

/* Filter and Search Styles */
.filter-container {
    margin: 20px auto;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 15px;
    border-radius: 20px;
    border: none;
    background-color: #f0f0f0;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Almarai', sans-serif;
}

.filter-btn.active {
    background-color: #c7a23e;
    color: #fff;
}

.filter-btn:hover:not(.active) {
    background-color: #e4e4e4;
}

.search-container {
    margin: 20px auto;
    width: 100%;
    max-width: 500px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border-radius: 30px;
    border: 1px solid #ddd;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Almarai', sans-serif;
}

.search-input:focus {
    border-color: #c7a23e;
    box-shadow: 0 0 0 2px rgba(199, 162, 62, 0.2);
}

.search-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

/* Cards Layout */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 50px;
    margin: 25px auto;
}

.cards .card {
    width: 100%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cards .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

.image-section {
    position: relative;
}

.image-section img {
    width: 100%;
    height: auto;
    display: block;
}

.content {
    padding: 15px 20px;
}

.content h4 {
    margin: 0px 6px 10px 6px;
    font-size: 24px;
    color: #222;
    font-weight: 500;
}

.content a {
    display: inline-block;
    padding: 8px 15px;
    color: #fff;
    background-color: #c7a23e;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transition: background-color 0.25s ease,
                transform 0.25s ease,
                box-shadow 0.25s ease,
                color 0.25s ease;
    margin-top: 10px;
}

.content a:hover {
    color: #fff;
    background-color: #e4ba47;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px) scale(1.00);
    cursor: pointer;
}

.content a:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.card .posted-date {
    margin: 6px 6px;
    color: #777777;
}

/* Category Tags */
.category-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    z-index: 5;
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    gap: 10px;
}

.page-btn {
    padding: 8px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn.active {
    background-color: #c7a23e;
    color: #fff;
}

/* No Results Message */
.no-results-msg {
    text-align: center;
    margin: 30px 0;
    color: #777;
    font-size: 18px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #c7a23e;
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.back-to-top:hover {
    background-color: #e4ba47;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-container {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 768px) {
    .cards {
        grid-template-columns: 1fr;
    }
    
    .header-banner h1 {
        font-size: 28px;
    }
    
   
    .content h4 {
        font-size: 20px;
    }
}