@font-face {
    font-family: "AdorHairlineExtraBold";
    src: url("../fonnts.com-212185/fonts/fonnts.com-Ador_Hairline_ExtraBold.otf") format("opentype");
}

body {
    overflow: auto;
    background-color: rgba(248, 247, 247, 1);
}

/* navbar */

.navbar-nav {
    /* background-color: rgba(248, 247, 247, 1); */
    padding: 20px 20px;
}

.offcanvas {
    width: 350px;
    border-radius: 10px 0 0 10px;
}

.navbar-nav .nav-link {
    font-family: "AdorHairlineExtraBold", sans-serif !important;
    color: rgba(156, 156, 156, 1);
    font-size: 18px;
    margin-left: 15px;
    font-weight: 400;
}

.nav-link.active {
    border-bottom: 1.5px solid rgba(211, 171, 85, 1) !important;
    color: rgba(211, 171, 85, 1) !important;
}

.navbar-nav .nav-link:hover {
    color: rgba(211, 171, 85, 1) !important;
    border-bottom: 1.5px solid rgba(211, 171, 85, 1);
}

.navbar-nav {
    text-align: center;
}

.btn-custom {
    background-color: rgb(216, 162, 47);
    color: rgba(248, 247, 247, 1);
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
}

.btn-outline-custom {
    background-color: rgba(248, 247, 247, 1);
    color: rgba(211, 171, 85, 1);
    border: rgba(211, 171, 85, 1) 1px solid;
    padding: 15px 22px;
    border-radius: 50px;
}

.btn-custom:hover {
    background-color: rgb(207, 145, 10);
    color: rgba(248, 247, 247, 1);
}

.btn-outline-custom:hover {
    background-color: rgba(211, 171, 85, 1);
    color: rgba(248, 247, 247, 1);
}

.navbar-brand {
    font-size: 24px;
    /* color: #333; */
}

.user-bar {
    padding: 8px 16px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 16px;
    width: fit-content;
}

.user-bar img.profile {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}

.user-bar .icon {
    font-size: 18px;
    color: #555;
    cursor: pointer;
}

.search-box {
    background-color: #eee;
    border-radius: 25px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    width: 200px;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 14px;
    padding-right: 10px;
}

.search-box i {
    color: #999;
}

@media (max-width: 576px) {
    .user-bar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .search-box {
        width: 100%;
    }


}

@media (max-width: 990px) {
    .navbar-nav .nav-link {
        display: inline-block;
        width: auto;
    }

    .nav-link.active {
        border-bottom: 1.5px solid rgba(211, 171, 85, 1) !important;
    }

    .navbar-nav .nav-link:hover {
        border-bottom: 1.5px solid rgba(211, 171, 85, 1);
    }
}


/* header */

header .content {
    position: relative;
    background: url("../images/2e6bfffcc1a9eb25a63d97999f44e64ec3ed99a0.jpg") no-repeat center center;
    background-size: cover;
    display: flex;
    width: 100%;
    align-items: center;
    min-height: 50vh;
    padding: 20px;
    color: white;
    overflow: hidden;
}

/* الطبقة الغامقة */
header .content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

header .text-content {
    max-width: 50%;
    margin: auto 20px;
    line-height: 2;
    color: white;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }

    .text-content,
    .image-content {
        max-width: 100%;
    }
}

header .navbar-brand {
    color: #fff !important;
}

/* content */
h5 {
    color: #333;
}

.btn-outline-warning {
    font-size: 0.85rem;
    padding: 2px 10px;
    border-radius: 10px;
}

.photo-card {
    border-radius: 20px;
    width: 100%;
    height: auto;
    overflow: hidden;
    padding: 1rem;
}

.photo-card img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px !important;
}


.photo-title {
    font-size: 18px !important;
    font-weight: 400;
    color: rgba(39, 58, 65, 1) !important;
}

.photo-date {
    font-size: 16px;
    color: rgba(123, 123, 123, 1) !important;
}

/* footer */

.hero {
    position: relative;
    background: url('../images/1e62528a145e980386e7758f8a281587e5714810.jpg') center bottom/cover no-repeat;
    color: white;
    text-align: center;
    padding: 150px 20px;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    /* طبقة غامقة */
}

.hero h1,
.hero p,
.hero a {
    position: relative;
    z-index: 1;
}


.hero h1 {
    font-size: 3rem;
    color: rgba(248, 247, 247, 1);
    font-family: "AdorHairlineExtraBold", sans-serif !important;
    font-weight: bolder !important;
    margin-bottom: 2rem;
}

.hero p {
    font-size: 1.1rem;
    font-family: "AdorHairlineExtraBold", sans-serif !important;
    font-weight: bolder !important;
    margin-bottom: 2rem;
    color: rgba(248, 247, 247, 1);
}

footer {
    padding: 70px 20px 20px;
    direction: ltr;
    text-align: end;
}

.footer-column h6 {
    margin-bottom: 1.5rem;
    font-weight: bold;
    color: rgba(39, 58, 65, 1);
    font-size: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    text-decoration: none;
    color: rgba(156, 156, 156, 1);
    font-size: 16px;
}

.footer-column ul li a:hover {
    text-decoration: underline;
}

.social-icons img {
    margin-left: 10px;
}

.footer-bottom {
    border-top: 1px solid #ccc;
    margin-top: 30px;
    padding-top: 10px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

/* تصميم الخبر المحسن */
.news-article {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-article:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.news-image-container {
    position: relative;
    overflow: hidden;
}

.news-image-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.1));
}

.news-content {
    position: relative;
}

.news-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 1rem;
}

.news-title {
    font-family: "AdorHairlineExtraBold", sans-serif;
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.news-meta {
    background: rgba(248, 247, 247, 0.8);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border-right: 4px solid rgba(211, 171, 85, 1);
}

.news-divider {
    margin: 1.5rem 0;
    height: 2px;
    background: linear-gradient(to left, rgba(211, 171, 85, 0.8), rgba(211, 171, 85, 0.2));
    border: none;
}

.news-summary .lead {
    background: rgba(211, 171, 85, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    border-right: 4px solid rgba(211, 171, 85, 0.3);
    position: relative;
}

.news-summary .lead::before {
    content: "💡";
    position: absolute;
    top: -10px;
    right: -10px;
    background: rgba(211, 171, 85, 1);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.news-paragraph {
    text-indent: 2rem;
    margin-bottom: 1.5rem;
}

.news-footer {
    background: rgba(248, 247, 247, 0.5);
    border-radius: 10px;
    padding: 1rem;
}

.share-buttons .btn {
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.share-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.back-button .btn {
    transition: all 0.3s ease;
}

.back-button .btn:hover {
    transform: translateX(5px);
}

/* تحسينات للجوال */
@media (max-width: 768px) {
    .news-title {
        font-size: 24px !important;
    }
    
    .news-summary .lead {
        font-size: 16px !important;
        padding: 1rem;
    }
    
    .news-paragraph {
        font-size: 14px !important;
        text-indent: 1rem;
    }
    
    .news-footer {
        flex-direction: column;
        gap: 1rem;
    }
    
    .share-buttons {
        text-align: center;
    }
    
    .back-button {
        text-align: center;
    }
}

/* تأثيرات التحميل */
.news-article.loading {
    opacity: 0.7;
    pointer-events: none;
}

.news-article.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid rgba(211, 171, 85, 0.3);
    border-top: 4px solid rgba(211, 171, 85, 1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}