html, body {
    overflow-x: hidden;
    width: 100%;
}

:root {
    --primary-purple: #6f42c1;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
}


.navbar {
    background-color: white;
    /*padding: 0 10px;*/
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    border-bottom: none;
    box-shadow: none;
}

.search-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-icon {
    width: 36px;
    height: 36px;
    color: #111;
    opacity: 1;
    stroke-width: 2.5;
}

.search-button {
    background-color: #181816;
    color: #fff;
    border: none;
    padding: 14px 60px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 400;
    transition: background 0.2s;
    box-shadow: none;
}

.search-button:hover {
    background-color: #222;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 48px;
    align-items: center;
    margin: 0;
    padding: 0;
    justify-content: center;
    flex: 2;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-size: 22px;
    font-weight: 400;
    transition: color 0.2s;
    padding: 4px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1.5px;
    background: #181816;
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.25s cubic-bezier(.4,0,.2,1);
    transform-origin: center;
}

.nav-links a.active::after,
.nav-links a[href="#main"].active::after {
    transform: scaleX(1);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-links a.active,
.nav-links a[href="#main"].active {
    color: #181816;
    font-weight: 700;
}

.nav-links a:hover {
    color: #181816;
}

.logo {
    height: 40px;
    width: auto;
}

.logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    color: #181816;
    font-size: 12px;
    width: 120px;
    height: 60px;
    border-radius: 0;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-placeholder .logo-img {
    width: 90px;
    height: 32px;
    object-fit: contain;
    margin-bottom: 2px;
}

.logo-placeholder .logo-text {
    color: #888;
    font-size: 13px;
    letter-spacing: 4px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 992px) {
    .navbar {
        padding: 0 10px;
        height: 70px;
    }
    .nav-links {
        gap: 18px;
    }
    .search-button {
        padding: 10px 30px;
        font-size: 15px;
    }
    .search-icon {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        padding: 0 5px;
    }
    .search-section {
        justify-content: flex-start;
        margin-bottom: 8px;
    }
    .nav-links {
        justify-content: center;
        gap: 10px;
    }
    .logo-placeholder {
        align-items: flex-end;
        width: 100%;
        height: 40px;
    }
}

@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        align-items: stretch;
        padding: 5px 2px ;
    }
    .search-section {
        justify-content: center;
        margin-bottom: 0;
    }
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 0;
        width: 100%;
        padding: 0;
        margin: 0;
    }
    .nav-links li {
        width: 100%;
        text-align: center;
        margin: 0;
    }
    .nav-links a {
        display: block;
        width: 100%;
        padding: 10px 0;
        font-size: 18px;
    }
    .logo-placeholder {
        width: 100%;
        height: 30px;
        font-size: 10px;
    }
}

.text-right{
    text-align: right;
}
.text-left{
    text-align: left;
}
.head-section{
    position: relative;
    background: linear-gradient(135deg , #2c3e50 0%  , blueviolet 50% );
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.news{
    margin-right: 20px;
    margin-left: 20px;
}
.news .content{
    border-radius: 5px;
    box-shadow: 0 0 2px 0 #777;
    margin-bottom: 20px;
}

.news .content .element{
    margin-left: 25px;
    margin-right: 25px;
}

.news .content .element p{

    color: #777777;
}

/* Footer Styles */
.site-footer {
    background: #11121a;
    color: #e0e0e0;
    padding: 48px 0 0 0;
    position: relative;
    margin-top: 40px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.footer-main {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-logo-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
    display: block;
}
.footer-about-text {
    margin-top: 10px;
    font-size: 15px;
    color: #bdbdbd;
}
.footer-social {
    margin-top: 18px;
}
.footer-social-icon {
    display: inline-block;
    width: 38px;
    height: 38px;
    background: #23243a;
    color: #fff;
    border-radius: 6px;
    text-align: center;
    line-height: 38px;
    font-size: 18px;
    margin-right: 8px;
    transition: background 0.2s, color 0.2s;
}
.footer-social-icon:hover {
    background: #6f42c1;
    color: #fff;
}
.footer-title {
    color: #fff;
    font-size: 22px;
    margin-bottom: 18px;
    font-weight: 500;
}
.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li,
.footer-contact li {
    margin-bottom: 12px;
    font-size: 16px;
    color: #bdbdbd;
}
.footer-links a {
    color: #bdbdbd;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #6f42c1;
    text-decoration: underline;
}
.footer-contact i {
    color: #6f42c1;
    margin-right: 8px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}
.footer-divider {
    border: none;
    border-top: 1px solid #23243a;
    margin: 32px 0 16px 0;
}
.footer-bottom {
    font-size: 15px;
    color: #bdbdbd;
    padding-bottom: 32px;
}
.footer-scrolltop {
    position: fixed;
    right: 32px;
    bottom: 32px;
    background: #6f42c1;
    color: #fff;
    border: none;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 100;
    transition: background 0.2s;
}
.footer-scrolltop:hover {
    background: #4b2a8a;
}
@media (max-width: 992px) {
    .footer-main .row > div {
        margin-bottom: 32px;
    }
}
@media (max-width: 768px) {
    .site-footer {
        padding: 32px 0 0 0;
    }
    .footer-title {
        font-size: 18px;
    }
    .footer-logo-img {
        width: 60px;
        height: 60px;
    }
    .footer-bottom {
        font-size: 13px;
    }
    .footer-scrolltop {
        right: 12px;
        bottom: 12px;
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
}
@media (max-width: 576px) {
    .footer-main .row > div {
        margin-bottom: 24px;
    }
    .footer-title {
        font-size: 16px;
    }
    .footer-logo-img {
        width: 48px;
        height: 48px;
    }
    .footer-about-text {
        font-size: 13px;
    }
    .footer-links li, .footer-contact li {
        font-size: 14px;
    }
}

.full-article-btn {
    background: transparent;
    border: 1px solid #340D70;
    color: #340D70;
    border-radius: 8px;
    padding: 10px 32px;
    font-family: inherit;
    font-weight: 400;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: none;
    outline: none;
    cursor: pointer;
    display: inline-block;
}
.full-article-btn:hover, .full-article-btn:focus {
    background: #4b2a8a;
    color: #fff;
    border-color: #4b2a8a;
}

h1.custom-arabic-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
}

/*@media (max-width: 768px) {
    html, body {
        width: 100vw;
        min-width: 0;
        overflow-x: hidden;
    }
    .container, .content, .main, .wrapper {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100vw !important;
        padding-left: 8px;
        padding-right: 8px;
        box-sizing: border-box;
    }
}*/

.box {
    background: white;
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.icon {
    font-size: 60px;
    color: red;
}

.text {
    margin: 20px 0;
    font-size: 18px;
}

.pages img{
    width: 500px;
    height: 500px;
}
.news img{
    /*width: 100%;*/
    border-radius: 5px;
    max-width: 100%;
}

.content img{
    display: block;
    margin-left: auto;
    margin-right: auto;
}
