/* Main Styles for The African View News Website */

/* General Styles */
body {
    font-family: 'Noto Kufi Arabic', sans-serif;
    background-color: #f8f9fa;
    color: #495057;
    line-height: 1.6;
}


.arrow-stack {
    order: 2;
    display: flex;
    margin: 0px !important;
    background: no-repeat;
    height: 34px;
    width: 105px;
    border-radius: 0px 0px 0px 20px;
    justify-content: center;
}
.arrow-stack button{
    margin: auto;
    margin: 0px 7px;
}
.arrow-stack button i {
    color: #002965;
    font-size: 28px;
}
.arrow-stack .btn {
    line-height: .5;
}


a {
    color: #140b94;
    text-decoration: none;
    transition: color 0.3s ease;
}
  .top-header .dropdown li a {
    color: #140b94;
}
#breakingTicker a {
    color: #2c2c2c !important;
}
.breaking-title.fw-bold.me-3{
        color: #ffffff;
    background: #000;
    padding: 5px 20px;
    border-radius: 0px 0px 18px;
}
.section-title , h4.widget-title {
    color: #002965;
}
div .bg-secondary {
    background-color: #2b5a9f !important;
}
.logo img
 {
    width: 180px;
}
.navbar-dark .navbar-nav .nav-link { 
    color: white;
    font-size: 20px;
    white-space: nowrap
}
a:hover {
    color: var(--heading-color);
    text-decoration: none;
}
img {
    border-radius: 8px;
}
.container {
    max-width: 1200px;
}
.bg-primary { background-color: var(--primary-color) !important; }

/* Header Styles */
.site-header { background-color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); padding: 0; border-bottom: 3px solid var(--accent-color); }

.top-header { background-color: var(--accent-color); color: #fff; padding: 5px 0; }

.top-header a {
    color: #e0fbfc;
}

.breaking-news.py-2 {
    padding-top: 0px !important
}
.flex-grow-1.d-flex.align-items-center.breaking-controls
{
    background: #fff;
    border-radius: 0px 0px 0px 20px;
}

/* News Cards */
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
}

.card-title a {
    color: var(--heading-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    
    text-align: center;
}
.breaking-title {
    min-width: fit-content;
}
.card-title a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* News Article */
.news-article h1 { font-size: 2rem; font-weight: bold; color: var(--heading-color); }

/* Mobile stacked, consistent card layout */
@media (max-width: 576px) {
  .card { display: block; }
  .card .card-img-top { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; }
  .card .card-body { padding: 0.75rem; }
  .card .card-title { font-size: 1rem; line-height: 1.3; margin-top: 0.5rem; }
  .card .card-footer { display: none; }
  .site-footer .footer-widgets .row { align-items: flex-start; }
  .site-footer .footer-widgets .row > [class*="col-"] { margin-bottom: 16px; }

  /* Politics: horizontal compact */
  .category-politics .card { display: flex; flex-direction: row; align-items: center; }
  .category-politics .card .card-img-top { width: 35%; height: 100px; border-radius: 8px 0 0 8px; }
  .category-politics .card .card-body { padding: 0.75rem; }

  /* Sports: 2-column grid, smaller thumbs */
  .category-sports .row > .col-md-6, .category-sports .row > .col-md-4 { width: 50%; }
  .category-sports .card .card-img-top { height: 120px; }

  /* Economy: larger image focus */
  .category-economy .card .card-img-top { height: 200px; }

  /* Culture: italic titles */
  .category-culture .card .card-title a { font-style: italic; }

  /* Technology: compact horizontal */
  .category-technology .card { display: flex; flex-direction: row; }
  .category-technology .card .card-img-top { width: 30%; height: 90px; border-radius: 8px 0 0 8px; }
}

.sidebar-news-item .news-title a,
.carousel-caption h5 a { 
  display: -webkit-box; 
  -webkit-line-clamp: 2; 
  -webkit-box-orient: vertical; 
  overflow: hidden; 
}

.card .card-img-top { width: 100%; height: 200px; object-fit: cover; }
.main-center-in .card-text.small { 
  display: -webkit-box; 
  -webkit-line-clamp: 3; 
  -webkit-box-orient: vertical; 
  overflow: hidden; 
  line-height: 1.6; 
}
@media (max-width: 576px) { .card .card-img-top { height: 180px; } }
.top-header .container > .row:first-child
{
    font-size: 12px;
    
}
.news-meta {
    color: #6c757d;
}

.news-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.news-summary {
    font-weight: 500;
    color: #3d5a80;
}

.image-caption {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Related News */
.related-news-item {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
    transition: background-color 0.3s ease;
}

.related-news-item:hover {
    background-color: #f8f9fa;
}

.related-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mb-4 {
    margin: 15px 0px;
}
/* Footer */
footer {
    background-color: #293241;
    color: #e0fbfc;
    padding: 2rem 0;
}

footer a {
    color: #98c1d9;
}

footer a:hover {
    color: #e0fbfc;
}

footer .footer-links li {
    margin-bottom: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .news-article h1 {
        font-size: 1.5rem;
    }
    
    .news-content {
        font-size: 1rem;
    }
    .flex-grow-1.d-flex.align-items-center
    {
        max-width: 73% !important;
    }
}

/* RTL Specific Adjustments */
.carousel-control-prev {
    right: auto;
    left: 0;
}

.carousel-control-next {
    left: auto;
    right: 0;
}

/* Custom Classes */
.section-title {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
    margin-top: 20px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: #3d5a80;
}

    .show-hidee {
        display: none;
    }
@media (min-width: 768px) {
    .col-md-3 {
        width: 277px;
        padding: 0px;
    }
    .show-hidee {
        display: flex;
    }
    .col-md-7 {
        width: 50%;
    }
    .main-center {
        justify-content: space-between;
    }
     .main-center-in {
        background: #fff;
        border-radius: 5px;
        box-shadow: 0px 0px 7px #0000001c;
    }
    .sidebar {
        background: #fff;
        border-radius: 5px;
        box-shadow: 0px 0px 7px #0000001c;
        padding: 20px;
        height: 100%;
    }
    .sidebar-news-item {
        padding: 12px 5px;
        border-bottom: 1px solid #ccc;
    }
}

@media (min-width: 992px) {
    .navbar-expand-lg {
        flex-wrap: nowrap;
        justify-content: center;
        max-width: 90%;
        margin: 1px auto;
        border-radius: 20px 20px 0px 0px;
    }
    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        justify-content: center;
        font-size: 26px;
    }
    .breaking-news.spp {
        max-width: 90%;
        margin: -1px auto;
        border-radius: 0px 0px 20px 20px;
        padding-bottom: 0px !important;
        border: 2px solid #002965;

    }
}

.breaking-news a { color: #fff; }

.breaking-ticker { position: relative; overflsow: hidden; height: 30px; line-height: 40px; }
.breaking-ticker .ticker-viewport { position: relative; overflow: hidden; height: 40px; padding-right: 48px; }
.ticker-viewport { position: relative; overflow: hidden; height: 30px; }
#breakingTicker { display: flex; align-items: center; min-height: 30px; }
#breakingTicker a { color: #fff; font-weight: 600; display: block; line-height: 1.2; max-height: 1.2em; overflow: hidden; }
.breaking-ticker #breakingTickerTrack { will-change: transform; display: block; transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1); }
.breaking-ticker .ticker-item { height: 40px; display: flex; align-items: center; }
.breaking-ticker a { color: #dc3545 !important; font-weight: 600; display: inline-block; }
.breaking-ticker .breaking-controls { position: absolute; right: 6px; top: 6px; display: flex; flex-direction: column; gap: 4px; }
.breaking-ticker .ticker-btn { width: 24px; height: 24px; border: none; background: #f1f1f1; color: #333; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.breaking-ticker .ticker-btn i { font-size: 12px; line-height: 1; }

@keyframes tickerDown {
  from { transform: translateY(-16px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes tickerUp {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
#breakingTickerTrack.animate-down { animation: tickerDown 600ms cubic-bezier(0.22, 1, 0.36, 1); }
#breakingTickerTrack.animate-up { animation: tickerUp 600ms cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes tickerEnterUp {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes tickerEnterDown {
  from { transform: translateY(-12px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
#breakingTicker.animate-up { animation: tickerEnterUp 600ms cubic-bezier(0.22, 1, 0.36, 1); }
#breakingTicker.animate-down { animation: tickerEnterDown 600ms cubic-bezier(0.22, 1, 0.36, 1); }

@media (max-width: 576px) {
    .breaking-news {
        font-size: 12px;
    }
    .breaking-news.py-2.mb-4.spp{
        display: none;
    }
  .ticker-viewport { height: 48px; }
  #breakingTicker { min-height: 48px; }
  #breakingTicker a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 48px; max-height: 48px; }
}
/* Desktop content pages */
@media (min-width: 992px) {

  .page-content { 
    padding: 1.5rem 2rem; 
    background: #fff; 
    border: 1px solid rgba(0,0,0,0.08); 
    border-radius: 12px; 
    box-shadow: 0 2px 12px rgba(0,0,0,0.05); 
    margin-bottom: 2rem; 
  }
  .page-content img { max-width: 100%; height: auto; border-radius: 8px; }
  .page-content h1, .page-content h2, .page-content h3 { color: var(--heading-color); margin-top: 0; }
  .page-content p { line-height: 1.8; }
}
.floating-whatsapp { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,0.18); z-index: 9999; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.floating-whatsapp i { font-size: 26px; line-height: 1; }
.floating-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.22); }
@media (max-width: 576px) { .floating-whatsapp { width: 52px; height: 52px; right: 14px; bottom: 14px; } .floating-whatsapp i { font-size: 24px; } }

@media (min-width: 992px) and (max-width: 1350px) {

    .navbar-expand-lg .navbar-collapse {
        font-size: 16px;
    }
    .navbar-dark .navbar-nav .nav-link {
        font-size: 16px;
    }
}
