* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-weight: normal;
}

:root {
      --sidebar-width-expanded: 188px;
    --sidebar-width-collapsed: 110px;
     --header-height: 81px;
      --blue-color: #005aa3;
}

body {
  background-color: var(--white-eee);
}

.fa {
  font-family: FontAwesome !important;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

ul {
  list-style: none;
  margin-bottom: 0;
}

p {
  margin: 0;
}
h2 , h3{
  margin-bottom: 0;
}
.hid {
  display: none;
}

@font-face {
  font-family:  B-FFShamelFamily;
  src: url(../fonts/textfonts/ArbFONTS-FFShamelFamily-SansOneBold.ttf);
}

.B-FFShamelFamily {
  font-family: B-FFShamelFamily;
}

.section-title h2 {
    height: 35px;
    line-height: 1;
}

.section-title h2 a,
.section-title {
    font-size: 16px;
    font-family: B-FFShamelFamily;
    color: #4c4d4d;
    transition: 0.3s ease;

}
.section-title a:hover {
    color: var(--blue-color);
}

.news-time {
    font-size: 10px;
    font-family: B-FFShamelFamily;
    color: #777;
    padding: 0 5px;
    margin-bottom: 0.5rem
}
.more-link {
    display: block;
    text-align: end;
    font-size: 14px;
    padding: 5px 10px;
    font-family: B-FFShamelFamily;
    color: var(--blue-color);
    font-weight: 700;
    text-decoration: none;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    width: max-content;
    margin-right: auto;
}

section .more-link:hover {
    text-decoration: underline;
}
.icon-nav svg {
    width: 30px;
    height: 40px;
    color: #555;
}

.news-box {
    border-bottom: 1px solid #e4dede;
    margin: 0 5px;
}
/* icons */
.latest-news {
    background: url(../images/latest-news.svg);
}

.stocks {
    background-image: url(../images/stocks.svg);

}

.banks {
    background-image: url(../images/banks.svg);
}

.investment {
    background-image: url(../images/investments.svg);
}

.insurance {
    background-image: url(../images/insurance.svg);
}

.realestate {
    background-image: url(../images/realestate.svg);
}

.economy-markets {
    background-image: url(../images/economy.svg);
}

.cars {
    background-image: url(../images/cars.svg);
}

.real-estate {
    background-image: url(../images/real-estate.svg);
}

.arab-markets {
    background-image: url(../images/arab-markets.svg);
}

.technology {
    background-image: url(../images/technology.svg);
}

.transportation {
    background-image: url(../images/transportation.svg);
}

.politics {
    background-image: url(../images/politics.svg);
}

.power {
    background-image: url(../images/power.svg);
}

.live {
    background-image: url(../images/life.svg);
}

.opinions {
    background: url(../images/opinions.svg);
}

.pop-news {
    background: url(../images/pop-news.svg);
}
.alexandria {
    background: url(../images/alexandria.svg);
}
.sports {
    background: url(../images/sport.svg);
}
.culture {
    background: url(../images/culture.svg);
}


.stock-title {
    background: url(../images/stocks.svg);
    background-size: 24px 40px;
    background-position: right center;
    background-repeat: no-repeat;
    padding-right: 33px;
    height: 23px;
    margin-right: 10px;
}

.section-icon {
    background-size: 15px 40px;
    background-position: right center;
    background-repeat: no-repeat;
    padding-right: 22px;
    height: 15px;
    display: block;
}
    .container{
        max-width: 1400px;
    }

icon-nav {
    gap:25px;
}



.container-fluid {
    padding: 0;
}



/* --- Header & Top Bar Styles --- */
.subscribe-box {
    background-color: var(--blue-color);
    color: #fff;
    border-radius: 0.375rem;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.subscribe-box .btn-light {
    background-color: #fff;
    color: #081C3D;
    border: none;
    padding: 10px 30px;
    border-radius: 20px;
    font-family: B-FFShamelFamily;
    color: rgba(0, 90, 163);
}

.news-card {
    border: 1px solid #e0e0e0;
    position: relative;
    border-radius: 8px;
}

.subscribe-box h4 {
    font-size: 1.5rem;
    font-family: B-FFShamelFamily;
}

.subscribe-box p {
    font-family: B-FFShamelFamily;
    margin: 5px 0;
}

.search-container {
    max-width: 450px;
}

.search-container .form-control {
    border-radius: 50em;
    padding: 5px 3rem;
    border: 1px solid #d1cece;
    text-align: right;
    font-size: 0.9rem;
    font-family: B-FFShamelFamily;

}

.search-container .form-control:focus {
    box-shadow: none;

}

.search-container .form-control::placeholder {
    color: #aaa;
}

.search-container .search-icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #aaa;
}

.icon-nav .nav-link {
    flex-direction: column;
    font-size: 12px;
}

.icon-nav .nav-link svg {
    margin-bottom: 10px;
    font-size: 25px;

}

.btn-login {
    background-color: #575756;
    color: #c7c7c7;
    font-family: B-FFShamelFamily;
    font-size: 13px;
    padding: 7px 16px;
    border-radius: 16px;
    -webkit-border-radius: 16px;
    -moz-border-radius: 16px;
    -ms-border-radius: 16px;
    -o-border-radius: 16px;
    width: max-content;
}

/* --- Sidebar Styles --- */
.nav-link {
    display: flex
;
    align-items: center;
    padding: 7px 10px;
    text-decoration: none;
    color: #222;
    font-weight: 700;
    white-space: nowrap;
    font-size: 12px;
    border-radius: 6px;
}
 li.has-submenu {
    position: relative;
}

 .submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}


 .arrow-icon {
    font-size: 1.2rem;
    color: #000000;
    transition: transform 0.3s ease;
}

#menu-overlay li.has-submenu.active .arrow-icon {
    transform: rotate(180deg);
}

 .submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease-out;
}

 li.has-submenu.active .submenu {
    max-height: 465px;
}

 .submenu li {
    margin-bottom: 0;
}




.stories-section {
    flex-grow: 1;
    min-width: 0;
}

.sidebar {
    width: var(--sidebar-width-expanded);
    height: calc(100vh - var(--header-height));
    position: fixed;
    top: var(--header-height);
    right: 0;
    background-color: #fff;
    border-left: 1px solid #e0e0e0;
    transition: width 0.3s ease;
    overflow-x: hidden;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.toggle-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1rem;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.nav-list {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.nav-link {
    font-family: B-FFShamelFamily;
}

.nav-link.active,
.nav-link:hover {
    background-color: #f1f1f1;
}

.nav-text {
    margin-right: 11px;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.nav-icon {
    background-size: cover;
    width: 24px;
    height: 24px;
    display: block;
}



/* --- Main Content Styles --- */
    .page-container {
    display: flex;
    overflow: hidden;
    align-items: flex-start;flex-direction: column;
}
.content {
    width: 87%;
    padding: 20px;
    margin-right: var(--sidebar-width-expanded);
    transition: margin-right 0.3s ease;
}

.sidebar.collapsed {
    width: var(--sidebar-width-collapsed);
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
}

.sidebar.collapsed .toggle-btn {
    transform: rotate(180deg);
}

.sidebar.collapsed .nav-text {
    opacity: 0;
    width: 0;
    margin-left: 0;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
}

.sidebar.collapsed+.content {
    margin-right: var(--sidebar-width-collapsed);
        width: 92%;
}





/* footer */
.site-footer {
    background-color: #1a1a1a;
    color: #a9a9a9;
    padding-top: 50px;
    font-family: 'Cairo', sans-serif;
}

.main-footer {
    padding-bottom: 40px;
}

.footer-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
      font-family: B-FFShamelFamily;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.8;
         font-family: B-FFShamelFamily;
}

.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #a9a9a9;
    border: 1px solid #a9a9a9;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
}

.social-icons a:hover {
    color: #fff;
    border-color: #fff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #a9a9a9;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
    font-family: B-FFShamelFamily;
}

.footer-links a:hover {
    color: #fff;
}
.end-footer {
    border-top: 1px solid #333;

}
.end-footer .text{
    font-size: 0.8rem;
}
.sub-footer {
    padding: 20px 0;
    text-align: center;
        display: flex
;
    justify-content: center;
    gap: 5px;
}
.sub-footer  h1 {
    line-height: 1.4;
}
.sub-footer p ,
.sub-footer  h1{
    margin: 0;
    font-size: 0.85rem;
}



/*mobile-nav  */

.mobile-nav {
    border-bottom: 1px solid #eee;
}
.mobile-nav .navbar-brand img {
    height: 35px;
}
.mobile-nav .navbar-toggler,
.mobile-nav .nav-icon-link {
    border: none;
    font-size: 1.25rem;
    color: #555;
    padding: 0.25rem;
}
.mobile-nav .navbar-toggler:focus {
    box-shadow: none;
}
.offcanvas-header {
    border-bottom: 1px solid #eee;
    padding: 0.75rem 1rem;
    justify-content: space-between;
}
.offcanvas-title img {
    height: 35px;
}
.btn-close-offcanvas {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #555;
    opacity: 1;
}
.offcanvas-body {
    padding: 1rem;
}
.top-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 1rem;
}
.top-btn {
    background-color: #f0f2f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    font-weight: 700;
    color: #333;
}
.top-btn .fas, .top-btn .far {
    margin-left: 8px;
}
.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-link.active, .nav-link:hover {
    background-color: #f1f1f1;
}
.nav-text {
    margin-right: 15px;
}
.nav-icon {
    background-size: cover;
    width: 24px;
    height: 24px;
    display: inline-block;
}
.search-view {
    gap: 10px;
}
.search-form .form-control {
    border-radius: 50em;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1px solid #ddd;
    text-align: right;
    font-size: 0.9rem;
}
.search-form .search-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #000000;
}
.close-search-btn {
    border: none;
    background: none;
    font-size: 1.5rem;
    color: #888;
}




/* Responsive */
@media (max-width: 1080px) {
 .sidebar {
        display: none;
    }
        .content {
        margin-right: auto;
        padding: 10px;        width: 100%;
    }
}



@media (max-width: 991px) {
.top-bar{
        display: none;
    }
        .content {
        margin-right: auto;
        padding: 10px;
    }
    .news-block {
    border-radius: 15px;
}
    .featured-card {
        border-top-left-radius: 15px;
                border-bottom-right-radius: 0;
    }
    .news-left {
        border-top-left-radius: 0;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}
.featured-story img {
         border-top-left-radius: 15px;
         border-top-right-radius: 15px;
             border-bottom-right-radius: 0;
}.latest-news-section .section-header {
    margin-top: 30px;
}
}
@media (max-width: 767px)  {

        .navbar .container-fluid  {
        padding: 0 10px;
    }
    .main-news-card {flex-direction: column;}
    .main-news-card img {
    width: 100%;
    height: 170px;
}.latest-news-section .section-header {
    margin-top: 30px;
}
.end-footer {
    flex-direction: column;
    padding: 20px 0;
} 
}