*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
@font-face {
    font-family: 'sss';
    src: url(assest/font/Vazirmatn-Regular.ttf);
}
body{
    font-family: 'sss';
    background-color: rgba(101, 101, 101, 0.12);
    line-height: 1.6;}    



#top-bar{
    background:#874444;
    padding:8px 20px;
    display:grid;
    grid-template-columns:1fr auto auto;
    align-items:center;
    gap:20px;
    color:beige;}

    #date-time{
    display:flex;
    gap:20px;
    align-items:center;
    font-size:15px;
    font-weight:600;
}

.top-social{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:15px;
}

.theme-switch{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:10px;
    cursor:pointer;
    direction: ltr;
}

.top-social a{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: 0.3s;}
.top-social a:hover{
    transform:translateY(-3px) scale(1.08);}
.top-social img{
    width: 22px;
    height: 22px;
    object-fit: contain;}

.theme-track{
    position:relative;
    width:55px;
    height:28px;
    background:#d8d8d8;
    border-radius:50px;
    cursor:pointer;
    transition:.3s;
}

.theme-circle{
    position:absolute;
    top:3px;
    left:3px;
    width:22px;
    height:22px;
    background:#fff;
    border-radius:50%;
    transition:.3s;
    box-shadow:0 2px 6px rgba(0,0,0,.3);
}

.icon{
    font-size:18px;
    color:#fff;
    transition:.3s;}

.fa-sun{
    color:#ffd54f;}

.fa-moon{
    color:#fff;}

header{
    top:0;
    z-index: 1000;
    background:linear-gradient(to left, #510101 , #df1616c7);
    padding: 15px 40px;
    box-shadow: 0 4px 20px rgba(221, 106, 106, 0.866);}

header:hover{box-shadow: 0 6px 25px rgba(86, 1, 1, 0.188);}

#header-container{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding: 20px;}

.logo img{
    display: block;
    height: 60px;
    width:auto;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);}

.hamburger{
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    user-select: none;}

#searchbox {
  width: min(350px, calc(100vw - 32px));
box-sizing: border-box;
  height: 52px;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;

  background: rgba(72, 8, 12, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  overflow: hidden;

  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08),
              0 8px 18px rgba(0, 0, 0, 0.18);
  transition: 0.25s ease;
}

#searchbox:focus-within {
  border-color: #f65353;
  background: rgba(61, 5, 8, 0.82);
  box-shadow: 0 0 0 4px rgba(246, 196, 83, 0.14);
}

#search-input {
  flex: 1;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 0 17px;

  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  direction: rtl;
}

#search-input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

#searchbox button {
    
  width: 55px;
  height: 100%;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, #c42027, #8f080d);

  color: #ffffff;
  font-size: 17px;
  cursor: pointer;
  transition: 0.25s ease;
}

#searchbox button:hover {
  background: linear-gradient(135deg, #b10404, #cf7f08);
  color: #3b0808;
}
@media (max-width: 480px) {
  #searchbox {
    height: 48px;
  }

  #searchbox button {
    width: 50px;
  }

  #search-input {
    padding: 0 12px;
    font-size: 14px;
  }
}
@media (max-width: 768px) {
  #header-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
  }

  .logo {
    order: 1;
  }

  .hamburger {
    order: 2;
  }

  #searchbox {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
  }
}
@media (max-width: 380px) {
  #searchbox button {
    flex-basis: 48px;
    min-width: 48px;
  }

  #search-input {
    font-size: 14px;
    padding: 0 10px;
  }
}

#news-bar{
    margin-top: 10px;
    background: #b64b4b82;
    border-radius: 25px;}
 #news-list {
    list-style:none;
    display: flex;
    justify-content:right;
    gap: 25px;
    padding: 12px 20px;
    flex-wrap: wrap;}
 #news-list a{
    color: beige;
    text-decoration:none;
    font-size: 18px;
    font-weight:bold;
    transition: 0.3s;}
 #news-list a:hover{
    color: #450202;}
.breaking-news{
    background: #fffcfc69;
    color: rgb(0, 0, 0);
    padding: 5px;
    display: flex;
    gap:5px;}

.breaking-news p{
    font-weight: bold;
    color:red;}

    .news-ticker {
  color: #303030;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 50px;
}

.news-ticker span {
  margin: 0 28px;
}

.news-ticker span::after {
  content: "●";
  color: #c4161c;
  font-size: 12px;
  margin-right: 28px;
  vertical-align: middle;
}


#hero{
    padding:20px 0;}
#hero-box{
    width:70%;
    margin:auto;
    height: 320px;
    position:relative;
    border-radius:20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);}
#hero-box img{
    width: 100%;
    object-fit: cover;}
#hero-text{
    position: absolute;
    bottom: 0;
    width: 100%;
    padding:30px;
    color:white;
    background: linear-gradient(transparent,rgba(215, 204, 204, 0.85));}
#hero-text h2{
    font-size: 20px;}
#hero-text p{ 
    font-size: 15px;
    color: #000000;
}
#hero-text a{
    color: rgb(255, 255, 255);
    background-color: #01184a;
    padding: 5px 5px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;}
    #hero-text a:hover{
        background-color:#7397e5;
    }
#news-container{
    display:grid;
    grid-template-columns: repeat(2,1fr);
    gap: 30px;;}
.news-card{
    background: white;
    border-radius: 16px;
    overflow:hidden;
    box-shadow: 0 3px 10px rgba(77, 44, 44, 0.436);
    padding: 14px;
    transition: 0.3s;}
.news-card:hover{
    transform: translateY(-5px);}
.news-card img{
    width: 100%;
    height: 160px;
    object-fit: cover;}
.news-card h3{
    margin: 10px 0;}
.news-card p{
    color: #0a0909;
    font-size: 14px;}
.news-card span{
    display: inline-block;
    margin-top: 5px;
    padding: 5px 10px;
    background: #d0d0d0;
    color: rgb(46, 44, 44);
    text-decoration: none;
    border-radius: 6px;}
.news-card a{
    display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;
    background: #01184a;
    color: white;
    text-decoration: none;
    border-radius: 6px;}
.news-card a:hover{
    background: #7397e5; 
    color: #f0f1f3;
}
.news-card:nth-child(1){
    grid-column: span 1;} 

.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
} 
    
.layout-wrapper{
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 25px;
    padding: 30px}
.sidebar{
    position: sticky;
    top:100px;}
.sidebar-box{
    background:rgba(159, 159, 159, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 15px;
    transition: 0.3s;}
.sidebar-box:hover{
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(210, 7, 7, 0.37);}
.sidebar-box h3{
    font-size: 16px;
    margin-bottom: 12px;
    color: #510101;
    position: relative;}
.sidebar-box h3::after{
    content: "";
    width: 40px;
    height: 3px;
    background: #874444;
    position: absolute;
    bottom: -6px;
    right: 0;
    border-radius: 10px;}
.sidebar-box ul li,
.sidebar-box ol li{
    list-style: inside;
    margin-bottom:10px;
    padding-right:8px;
    border-right:3px solid #ac0b0b;}
.sidebar-box ul li a,
.sidebar-box ol li a{
    color:#fffefe;
    text-decoration:none;
    font-weight:bold;
    transition:.2s;
}
.sidebar-box ul li a:hover,
.sidebar-box ol li a:hover{
    color: #690404;}
#update-time{
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
    text-align: left;}
.newsletter-box{
    background: linear-gradient(135deg, #874444, #b64b4b);
    padding: 18px;
    border-radius: 15px;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);}
.newsletter-box h3{
    margin-bottom: 8px;
    font-size: 18px;}
.newsletter-box p{
    font-size: 13px;
    margin-bottom: 12px;
    opacity: 0.9;
    line-height: 1.5;}
.newsletter-box input{
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 10px;
    outline: none;
    margin-bottom: 10px;
    font-size: 14px;}
.newsletter-box button{
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: #111;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
    font-weight: bold;}
.newsletter-box button:hover{
    background: #333;
    transform: translateY(-2px);}
footer{
    background:linear-gradient(to left, #730000 , #df1616c7);
    color: beige;
    margin-top: 30px;}
#footer-container{
    max-width:1200px;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:40px;
    padding:40px 20px;}
.footer-logo{
    width:70px;
    margin-bottom:15px;
    border-radius:50%;}
.footer-box ul li{
    list-style:none;
    margin-bottom:10px;}
.footer-box i{
    margin-left:8px;
    color:#ffd369;}
@media(max-width:900px){
    #footer-container{
        grid-template-columns:repeat(2,1fr);}
}
@media(max-width:600px){
    #footer-container{
        grid-template-columns:1fr;
        text-align:center;
    }
    .footer-social{
        justify-content:center;
    }
}
.footer-box{
 flex: 1;
 min-width: 250px;
}
.footer-box h2,
.footer-box h3{
    margin-bottom:10px;
    font-size:25px;
    position: relative;
}
.footer-box h2::after,
.footer-box h3::after{
    content:"";
    position: absolute;
    right:0;
    bottom: -5px;
    width: 60px;
    height: 3px;
    background: #874444;
    border-radius: 30px;
}
.footer-box p{
    line-height:1.6;
    color: #cbd5e1;
}
.footer-box ul{
    list-style: none;
    margin-top: 20px;
    padding: 0;
}
.footer-box ul li a{
    text-decoration: none;
    color: #cbd5e1;
    font-size: 16px;
    font-weight: 500;
    transition: 0.3s;
}
.footer-box ul li a:hover{
    color: #38bdf8;
    padding-right: 8px;
}
#footer-bottom{
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    padding: 15px;
}
.footer-social{
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.footer-social a{
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.footer-social a:hover{
    transform: translateY(-4px);
}
.footer-social img{
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.featured-news{
    padding: 20px;
}
.featured-news h2{
    margin-bottom: 15px;
    font-size: 22px;
    color: #111;
}
.featured-container{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap:20px;
}
.featured-card{
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
    cursor: pointer;
}
.featured-card:hover{
    transform: translateY(-6px);
}
.featured-card img{
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.featured-card h3{
    padding: 10px;
    font-size: 16px;
    color: #333;
}
@media (max-width:1024px){

    #news-container{
        grid-template-columns:repeat(2,1fr);
}
    .layout-wrapper{
        grid-template-columns: 1fr;
        padding: 20px;    }

    #hero-box{
        width: 90%;
    }
    .featured-container{
        grid-template-columns: repeat(2,1fr);
    }
    .sidebar{
        position: static;
    }
}
@media (max-width: 768px){
    #top-bar{
        grid-template-columns: 1fr;
        gap:10px;
        text-align: center;
    }
    #date-time{
        justify-self: center;
        flex-wrap: wrap;
        justify-content: center;
    }
    .top-social{
        justify-self: center;
        flex-wrap: wrap;
    }
    #header-container{
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        padding: 15px;
        gap: 10px;
    }
    
    #news-list{
        justify-content: center;
        gap: 12px;
    }
    .layout-wrapper{
        grid-template-columns: 1fr;
        padding: 15px;
    }
    #hero-box{
        width: 100%;
        height: 200px;
    }
    #hero-text h2{
        font-size: 20px;
    }
     #news-container{
    grid-template-columns: 1fr;
    }
    .news-card:nth-child(1){
        grid-column: auto;
    }
    .featured-container{
        grid-template-columns: 1fr;
    }
    .sidebar-box{
        margin-bottom: 12px;
    }
    .hamburger{
        display: block;
        justify-self: end;
        font-size: 28px;
        color: white;
        cursor: pointer;
    }
    #news-bar{
        display: none;
        width: 100%;
    }
    #news-bar.active{
        display: block;
    }

    #news-list{
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .logo{
        justify-self: center;
    }
}
@media (max-width:480px){
    header{
        padding: 10px;
    }
    #hero-text{
        padding: 15px;
    }
    .sidebar-box h3{
        font-size: 14px;
    }
}
.news-main{
    display: flex;
    justify-content: center;
    padding: 10px;
}

.news-article{
    width: 900px;

    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.news-title{
    font-size: 28px;
    margin-bottom: 10px;
    color: #111;
}
.news-meta{
    display:contents;
    gap:10px;
    font-size: 23px;
    color: gray;
    margin-bottom: 10px;
}
.news-article img{
    width: 90%;
    border-radius: 12px;
    margin-bottom: 15px;
}
.back-btn{
    display: inline-block;
    margin-top: 20px;
    padding: 10px 15px;
    background: #8b0000;
    color: white;
    text-decoration: none;
    border-radius: 8px;}

html{ scroll-behavior: smooth;}

body.dark{
    background:#302f2f;
    color:#fff;
}

body.dark #top-bar{
    background:#252424;
}

body.dark header{
    background:#2e2d2d;
}

body.dark .theme-track{
    background:#282828;
}

body.dark .theme-circle{
    transform:translateX(27px);
}

body.dark .news-card,
body.dark .sidebar-box{
    background:#403f3f;
    color:#fffefe;
}

.archive-filter{
    background:#fff;
    padding:25px;
    border-radius:15px;
    margin-bottom:30px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.archive-filter h2{
    margin-bottom:20px;
    color:#510101;
}

.filter-box{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.filter-box select,
.filter-box input{
    padding:10px 15px;
    border:1px solid #ccc;
    border-radius:10px;
    font-family:inherit;
}

.filter-box button{
    background:#874444;
    color:#fff;
    border:none;
    border-radius:10px;
    padding:10px 20px;
    cursor:pointer;
}

.filter-box button:hover{
    background:#510101;
}
/* ==========================
   Dark Mode - Footer
========================== */

body.dark footer{
    background: #454444;
    color: #f0eded;
}

body.dark .footer-box p,
body.dark .footer-box ul li,
body.dark .footer-box ul li a{
    color:#efebeb;
}

body.dark .footer-box ul li a:hover{
    color:#e9aeae;
}

body.dark #footer-bottom{
    border-top:1px solid #ffffff;
}

body.dark .footer-box h2::after,
body.dark .footer-box h3::after{
    background:#666;
}
body.dark .breaking-news{
    background:#ae1414;
    color:#000000;
}

body.dark #news-bar{
    background:#ed040469;
}

body.dark #hero-text{
    background:linear-gradient(transparent,rgba(192, 142, 142, 0.85));
}

body.dark .newsletter-box{
    background:#5a4e4e;
}

body.dark .featured-card{
    background:#323233;
    color:#fff;
}

body.dark .archive-filter{
    background:#222;
    color:#fff;
}

body.dark .filter-box select,
body.dark .filter-box input{
    background:#333;
    color:#fff;
    border:1px solid #555;
}
/*==============================
NEWS PAGE
==============================*/

.news-main{
    max-width:900px;
    margin:40px auto;
    padding:0 20px;
}

.news-article{
    background:#fff;
    border-radius:20px;
    padding:35px;
    box-shadow:0 8px 30px rgba(0,0,0,.08);
}

.news-category{
    display:inline-block;
    background:#8b0000;
    color:#fff;
    padding:6px 14px;
    border-radius:30px;
    font-size:14px;
    margin-bottom:18px;
}

.news-title{
    font-size:34px;
    color:#222;
    margin-bottom:20px;
    line-height:1.6;
}

.news-meta{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
    color:#777;
    font-size:15px;
    margin-bottom:30px;
}

.news-meta i{
    color:#8b0000;
    margin-left:5px;
}

.news-image{
    width:100%;
    height:450px;
    object-fit:cover;
    border-radius:15px;
    margin-bottom:25px;
}

.news-lead{
    font-size:20px;
    font-weight:bold;
    color:#333;
    line-height:2;
    margin-bottom:30px;
    border-right:5px solid #8b0000;
    padding-right:18px;
}

.news-content p{
    line-height:2.2;
    color:#444;
    font-size:18px;
    margin-bottom:20px;
    text-align:justify;
}

.news-content img{
    width:100%;
    border-radius:15px;
    margin:30px 0;
}

.news-content blockquote{
    background:#f5f5f5;
    border-right:5px solid #8b0000;
    padding:20px;
    margin:30px 0;
    font-size:20px;
    font-style:italic;
    border-radius:10px;
    color:#444;
}

.news-tags{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:35px;
}

.news-tags a{
    text-decoration:none;
    background:#ececec;
    color:#333;
    padding:8px 18px;
    border-radius:30px;
    transition:.3s;
}

.news-tags a:hover{
    background:#8b0000;
    color:#fff;
}

.share-news{
    margin-top:35px;
    display:flex;
    align-items:center;
    gap:18px;
    font-size:18px;
}

.share-news a{
    width:42px;
    height:42px;
    border-radius:50%;
    background:#8b0000;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    transition:.3s;
}

.share-news a:hover{
    transform:translateY(-4px);
}

.news-navigation{
    display:flex;
    justify-content:space-between;
    margin-top:45px;
    padding-top:25px;
    border-top:1px solid #ddd;
}

.news-navigation a{
    text-decoration:none;
    color:#8b0000;
    font-weight:bold;
    transition:.3s;
}

.news-navigation a:hover{
    color:#c00000;
}

/*==============================
RELATED NEWS
==============================*/

.related-news{
    max-width:1200px;
    margin:60px auto;
    padding:0 20px;
}

.related-news h2{
    font-size:28px;
    margin-bottom:30px;
}

.related-container{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
}

.related-card{
    background:#fff;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 5px 18px rgba(0,0,0,.08);
    transition:.3s;
}

.related-card:hover{
    transform:translateY(-6px);
}

.related-card img{
    width:100%;
    height:180px;
    object-fit:cover;
}

.related-card h3{
    padding:15px;
    font-size:18px;
    color:#222;
    line-height:1.8;
}

.related-card a{
  display:flex;
    margin-top: 10px;
    padding: 6px 12px;
    background: #01184a;
    color: white;
    text-decoration: none;
    border-radius: 6px;}


.related-card a:hover {
    background-color: #469dc2;
}

/*==============================
DARK MODE
==============================*/

body.dark .news-article,
body.dark .related-card{
    background:#222;
}

body.dark .news-title,
body.dark .news-content p,
body.dark .news-lead,
body.dark .related-card h3{
    color:#fff;
}

body.dark .news-meta{
    color:#bbb;
}

body.dark .news-content blockquote{
    background:#333;
    color:#fff;
}

body.dark .news-tags a{
    background:#444;
    color:#fff;
}

body.dark .news-navigation{
    border-color:#444;
}

/*==============================
RESPONSIVE
==============================*/

@media(max-width:992px){

    .related-container{
        grid-template-columns:repeat(2,1fr);
    }

}

@media(max-width:768px){

    .news-title{
        font-size:28px;
    }

    .news-image{
        height:260px;
    }

    .news-meta{
        flex-direction:column;
        gap:10px;
    }

    .news-navigation{
        flex-direction:column;
        gap:15px;
    }

    .related-container{
        grid-template-columns:1fr;
    }

}
.archive-results{
    width:90%;
    max-width:1200px;
    margin:40px auto;
}

.archive-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
}

.archive-top h3{
    color:#8b0000;
    font-size:28px;
}

#resultCount{
    color:#666;
    font-size:15px;
}

.archive-list{
    display:grid;
    gap:25px;
}

.archive-card{
    position: relative;
    display:flex;
    background:#fff;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 5px 18px rgba(0,0,0,.08);
    padding-bottom: 10px;
}

.archive-card img{
    width:260px;
    height:180px;
    object-fit:cover;
}


.archive-category{
    margin-top: 10px;
     display:inline-block;
    background:#8b0000;
    color:#fff;
    padding:6px 14px;
    border-radius:30px;
    font-size:14px;
    margin-bottom:18px;
}


.archive-content a {
  position: absolute;
  left: 32px;
  bottom: 30px;
  z-index: 2;

  display: inline-block;
  padding: 13px 24px;
  background-color: #01184a;
  color: #ffffff;
  border-radius: 10px;

  font-size: 19px;
  font-weight: bold;
  text-decoration: none;

  box-shadow: 0 6px 14px rgba(1, 24, 74, 0.25);
  transition: 0.25s ease;
}

.archive-content a:hover {
  background-color: #249bce;
  transform: translateY(-3px);
}

.archive-content p{
    color:#000000;
    line-height:2;
    font-size: 20px;
}

.archive-info{
    margin-top:18px;
    display:flex;
    gap:25px;
    color:#777;
    font-size:14px;
}

.pagination{
    display:flex;
    justify-content:center;
    gap:12px;
    margin:40px 0;
}

.pagination a{
    width:40px;
    height:40px;
    display:flex;
    justify-content:center;
    align-items:center;
    text-decoration:none;
    border-radius:8px;
    background:#fff;
    color:#8b0000;
    box-shadow:0 3px 10px rgba(0,0,0,.08);
}

.pagination a.active{
    background:#8b0000;
    color:#fff;
}

.pagination a:hover{
    background:#8b0000;
    color:#fff;
}

body.dark .archive-card,
body.dark .pagination a{
    background:#222;
}

body.dark .archive-content h3 a,
body.dark .archive-content p,
body.dark #resultCount{
    color:#fff;
}

@media(max-width:768px){

    .archive-card{
        flex-direction:column;
    }

    .archive-card img{
        width:100%;
        height:220px;
    }

    .archive-top{
        flex-direction:column;
        gap:10px;
        text-align:center;
    }

}
.ad-banner{
    width:90%;
    max-width:1200px;
    margin:25px auto;
    text-align:center;
}

.ad-banner img{
    width:100%;
    max-height:120px;
    object-fit:cover;
    border-radius:15px;
    box-shadow:0 4px 15px rgba(0,0,0,.1);
}
.ad-placeholder{
    height:100px;
    border:2px dashed #999;
    border-radius:15px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#777;
    font-size:20px;
    background:#f5f5f5;
}

@media (max-width: 768px) {
  #searchbox {
    display: flex !important;
    flex-direction: row !important;
    direction: ltr;
    overflow: hidden;
  }

  #search-input {
    order: 2;
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    direction: rtl;
  }

  #searchbox button {
    order: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;

    flex: 0 0 52px;
    width: 52px !important;
    min-width: 52px;
    height: 100%;

    position: static !important;
    margin: 0;
    padding: 0;
    visibility: visible !important;
    opacity: 1 !important;
  }
}