/*
Theme Name: AhmHost Urdu News
Theme URI: https://ahmhost.com/themes/urdu-news
Author: SAJID Ishaq Meo
Author URI: https://www.facebook.com/sajidishaqmeoofficial
Description: A modern RTL WordPress news theme for Urdu-language publishers.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arabi-news
Tags: news, rtl, urdu, blog, responsive
*/

body {
    direction: rtl;
    font-family: 'Noto Nastaliq Urdu', 'Noto Sans Arabic', Tahoma, Arial, sans-serif;
    background: #f7f7f7;
    color: #222;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

header, footer {
    background: #222;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

nav {
    margin: 15px 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: #222;
    text-decoration: none;
    font-weight: bold;
}

.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.content {
    flex: 3;
    min-width: 0;
}

.sidebar {
    flex: 1;
    min-width: 250px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    direction: rtl;
}

.post {
    background: #fff;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.post-title {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #0073aa;
}

/* --- Top Bar --- */
.top-bar {
    background: #232f4b;
    color: #fff;
    font-size: 1rem;
    padding: 0;
}
.top-bar-inner {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}
.top-bar-inner.social-right {
    flex-direction: row;
}
.social-icons {
    display: flex;
    gap: 8px;
}
.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #2d3a5a;
    color: #fff;
    font-size: 1.3rem;
    transition: background 0.2s;
}
.social-icons a:hover {
    background: #0073aa;
}
.social.pinterest { background: #e60023; }
.social.youtube { background: #ff0000; }
.social.instagram { background: #e4405f; }
.social.linkedin { background: #0077b5; }
.social.twitter { background: #1da1f2; }
.social.facebook { background: #1877f3; }

.header-date-time {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Noto Nastaliq Urdu', 'Noto Sans Arabic', Tahoma, Arial, sans-serif;
}
.time-box {
    background: #fff;
    color: #232f4b;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.95rem;
}

/* --- Main Header --- */
.main-header {
    background: linear-gradient(90deg, #1e2a47 0%, #2563eb 100%);
    padding: 0;
}
.main-header:not([style*='background-image']) {
    background-image: url('https://www.transparenttextures.com/patterns/diamond-upholstery.png');
    background-repeat: repeat;
}
.header-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 120px;
}
.site-branding {
    text-align: right;
    color: #fff;
}
.site-branding h1, .site-branding a {
    color: #fff;
    text-decoration: none;
    font-size: 2.2rem;
    font-weight: bold;
}
.site-branding p {
    margin: 0;
    font-size: 1.1rem;
}

/* --- Logo Position --- */
.site-branding.left {
    text-align: left !important;
    align-items: flex-start;
    margin-left: 0;
    margin-right: auto;
}
.site-branding.center {
    text-align: center !important;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}
.site-branding.right {
    text-align: right !important;
    align-items: flex-end;
    margin-left: auto;
    margin-right: 0;
}
.site-branding {
    display: flex;
    flex-direction: column;
    color: #fff;
}

/* --- Navigation Bar --- */
.main-nav {
    background: #232f4b;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
    padding: 0.2rem 0;
}
.nav-right {
    order: 1;
    margin-left: 10px;
}
.nav-menu {
    order: 2;
    display: flex;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}
.nav-left {
    order: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 10px;
}
.toggle-mode, .subscribe-btn, .search-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background 0.2s;
}
.toggle-mode:hover, .subscribe-btn:hover, .search-btn:hover {
    background: #2d3a5a;
}
.subscribe-btn {
    background: #2563eb;
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
}
.subscribe-btn i {
    color: #fff;
}
.nav-menu li {
    position: relative;
}
.nav-menu li a {
    color: #fff;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 4px;
    transition: background 0.2s;
}
.nav-menu li a:hover, .nav-menu li.current-menu-item a {
    background: #2563eb;
}
.nav-home {
    margin-right: 10px;
}
.home-icon {
    background: #2563eb;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 1.3rem;
    display: inline-block;
}
.home-icon.active {
    background: #fff;
    color: #2563eb;
}

/* --- RTL Support --- */
body, .container, .main-header, .main-nav, .header-inner, .nav-inner, .top-bar-inner {
    direction: rtl;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .header-inner, .nav-inner, .top-bar-inner {
        flex-direction: column;
        align-items: flex-end;
    }
    .nav-menu {
        flex-wrap: wrap;
        gap: 10px;
    }
}
@media (max-width: 600px) {
    .header-inner, .nav-inner, .top-bar-inner {
        padding: 0 5px;
    }
    .site-branding h1 {
        font-size: 1.3rem;
    }
    .nav-menu {
        font-size: 1rem;
    }
    .social-icons a {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    .top-bar-inner, .top-bar-inner.social-right {
        flex-direction: column-reverse !important;
        align-items: stretch;
        gap: 6px;
    }
    .header-date-time, .social-icons {
        justify-content: flex-start;
    }
}

/* --- Header Search Overlay --- */
.header-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(34,47,75,0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.header-search-overlay.active {
    display: flex;
}
.search-form {
    display: flex;
    gap: 8px;
    background: #fff;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.15);
    align-items: center;
}
.search-field {
    font-size: 1.2rem;
    padding: 8px 12px;
    border: 1px solid #2563eb;
    border-radius: 4px;
    outline: none;
    min-width: 220px;
}
.search-submit {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 1.2rem;
    cursor: pointer;
}
.search-close {
    background: none;
    border: none;
    color: #232f4b;
    font-size: 1.3rem;
    margin-right: 4px;
    cursor: pointer;
}
@media (max-width: 600px) {
    .search-form {
        flex-direction: column;
        gap: 10px;
        padding: 12px 8px;
    }
    .search-field {
        min-width: 120px;
        width: 100%;
    }
} 

/* --- Latest News Ticker --- */
.latest-ticker-bar {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: #fff;
    border: 1px solid #ffb31a;
    position: relative;
    z-index: 10;
    min-height: 40px;
    border-radius: 0 0 0 0;
    height: 48px;
    margin-bottom: 24px;
}
.latest-ticker-label {
    background: #2563eb;
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 0 28px;
    display: flex;
    align-items: center;
    min-width: 120px;
    justify-content: center;
    position: relative;
    border-radius: 0px 0 0 0px;
    margin-right: 0;
    border-right: 1px solid #ffb31a;
    height: 100%;
}
.latest-ticker-wrap {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 10px;
    height: 100%;
}
.latest-ticker {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker-marquee-ltr 30s linear infinite;
    direction: ltr;
}
.ticker-item {
    color: #222;
    text-decoration: none;
    font-weight: 500;
    margin: 0 18px;
    font-size: 1rem;
    display: inline-block;
    transition: color 0.2s;
    font-family: inherit;
}
.ticker-item:hover {
    color: #ffb31a;
    text-decoration: underline;
}
.ticker-sep {
    color: #ffb31a;
    font-size: 1.5em;
    margin-left: 8px;
    margin-right: 8px;
}
#news-star-sign {
    color: inherit;
}
@keyframes ticker-marquee-ltr {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
@media (max-width: 600px) {
    .latest-ticker-label {
        font-size: 0.95rem;
        padding: 0 12px;
        min-width: 80px;
    }
    .ticker-item {
        font-size: 0.9rem;
        margin: 0 8px;
    }
} 

/* Video Section Styles */
.video-section {
    margin-top: 30px;
    padding: 20px 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.video-section-header {
    background: #2563eb;
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 10px 30px;
    border-radius: 6px;
    margin-bottom: 18px;
    display: inline-block;
    margin-right: 20px;
}
.video-cards-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-around;
}
.video-card {
    width: calc(25% - 15px);
    min-width: 200px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}
.video-thumb-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}
.video-thumb {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}
.video-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}
.video-duration {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
}
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.video-play-btn svg {
    width: 30px;
    height: 30px;
}
.video-meta-bar {
    width: 100%;
    background: #111;
    color: #fff;
    font-size: 0.9rem;
    padding: 8px 10px;
    border-radius: 0 0 10px 10px;
    text-align: right;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.video-views, .video-date {
    display: flex;
    align-items: center;
    gap: 4px;
}
.video-title {
    font-size: 1.05rem;
    color: #222;
    font-weight: 500;
    text-decoration: none;
    display: block;
    margin-top: 10px;
    padding: 0 10px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.video-title:hover {
    color: #e74c3c;
}
@media (max-width: 900px) {
    .video-cards-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .video-card {
        width: 100%;
        min-width: auto;
    }
}
@media (max-width: 600px) {
    .video-card {
        width: 100%;
        min-width: auto;
    }
    .video-thumb {
        height: 120px;
    }
    .video-duration {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    .video-play-btn {
        width: 40px;
        height: 40px;
    }
    .video-play-btn svg {
        width: 20px;
        height: 20px;
    }
    .video-meta-bar {
        font-size: 0.7rem;
        padding: 6px 8px;
    }
    .video-title {
        font-size: 0.9rem;
        margin-top: 5px;
        padding: 0 5px;
    }
} 

/* Video Modal Popup Styles */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}
.video-modal-content {
    background: #111;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 700px;
    position: relative;
    box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}
.video-modal-close {
    color: #fff;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s;
}
.video-modal-close:hover {
    color: #e74c3c;
}
.video-modal-iframe-wrapper {
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    position: relative;
}
.video-modal-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 0 10px 10px;
}
@media (max-width: 700px) {
    .video-modal-content {
        width: 98%;
        max-width: 98vw;
    }
} 

/* Block 4 Styles */
.three-col-section {
    margin-top: 40px;
    padding: 30px 0 10px 0;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.three-col-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-around;
}
.three-col-card {
    width: calc(25% - 15px); /* 4 columns */
    min-width: 200px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    margin-bottom: 10px;
    transition: box-shadow 0.2s;
}
.three-col-card:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.13);
}
.three-col-header {
    width: 100%;
    background: #ffb400;
    color: #222;
    font-weight: bold;
    font-size: 1.25rem;
    padding: 12px 0 12px 0;
    border-radius: 0 0 12px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-bottom: 2px solid #eee;
}
.three-col-icon {
    font-size: 1.5rem;
    margin-left: 8px;
}
.three-col-title {
    font-size: 1.1rem;
    color: #222;
    font-weight: bold;
}
.three-col-top-post {
    width: 100%;
    background: #222;
    border-radius: 0 0 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 18px;
    position: relative;
    min-height: 180px;
}
/* Update for three-col-top-thumb to show full image, not cropped */
.three-col-top-thumb {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 0;
    background: #222;
    margin: 0 auto;
    box-shadow: none;
}
.three-col-top-title {
    font-size: 1.25rem;
    color: #222;
    font-weight: bold;
    text-decoration: none;
    text-align: right;
    margin: 0;
    background: #fff;
    padding: 16px 18px 12px 18px;
    border-radius: 0 0 12px 12px;
    display: block;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-top: 1px solid #eee;
    transition: color 0.2s, background 0.2s;
}
.three-col-top-title:hover {
    color: #ffb400;
    background: #f7f7f7;
}
/* Remove .three-col-meta from top post (no changes needed if only used in list) */
.three-col-meta {
    width: 100%;
    background: none;
    color: #222;
    font-size: 1rem;
    padding: 0;
    border-radius: 0;
    text-align: right;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
}
.three-col-list-title {
    font-size: 1.05rem;
    color: #2563eb;
    font-weight: bold;
    text-decoration: none;
    display: block;
    flex: 1;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 6px;
    transition: color 0.2s;
}
.three-col-list-title:hover {
    color: #e74c3c;
}
.three-col-date, .three-col-views { display: none !important; }

.three-col-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 10px 10px 10px;
}
.three-col-list-item {
    display: flex;
    align-items: center;
    min-height: 56px;
    background: #f7f7f7;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    margin-bottom: 2px;
    transition: background 0.2s;
}
.three-col-list-item:hover {
    background: #ffe7b2;
}
.three-col-list-thumb {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    margin-left: 10px;
    background: #eee;
    object-fit: cover;
    display: block;
}
.three-col-list-title {
    font-size: 0.98rem;
    color: #222;
    font-weight: 500;
    text-decoration: none;
    display: block;
    flex: 1;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 6px;
    transition: color 0.2s;
}
.three-col-list-title:hover {
    color: #ffb400;
}
.three-col-list .three-col-meta {
    background: none;
    color: #888;
    font-size: 0.85rem;
    padding: 0 0 0 0;
    border-radius: 0;
    gap: 10px;
    justify-content: flex-end;
}
@media (max-width: 1200px) {
    .three-col-card {
        width: calc(50% - 15px);
    }
}
@media (max-width: 700px) {
    .three-col-section {
        padding: 10px 0 0 0;
    }
    .three-col-header {
        font-size: 1rem;
        padding: 8px 0 8px 0;
    }
    .three-col-icon {
        font-size: 1.2rem;
    }
    .three-col-title {
        font-size: 0.95rem;
    }
    .three-col-top-post {
        min-height: 120px;
    }
    .three-col-top-thumb {
        height: 120px;
    }
    .three-col-top-title {
        font-size: 0.95rem;
        margin-top: -30px;
        padding: 7px 10px 7px 10px;
    }
    .three-col-meta {
        font-size: 0.8rem;
        padding: 5px 8px 5px 8px;
    }
    .three-col-list-item {
        min-height: 40px;
    }
    .three-col-list-thumb {
        width: 40px;
        height: 40px;
        margin-left: 7px;
    }
    .three-col-list-title {
        font-size: 0.8rem;
        padding-right: 3px;
    }
} 

/* Block 2 Newspaper Section Styles */
.newspaper-block-section {
  margin: 40px 0 30px 0;
  padding: 0;
  background: none;
}
.newspaper-block-wrapper {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.newspaper-block-card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
}
.newspaper-block-label {
  background: #2563eb;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 500;
  padding: 18px 0 18px 0;
  border-radius: 14px 14px 0 0;
  margin-bottom: 0;
  margin-top: 0;
  text-align: center;
  letter-spacing: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  box-shadow: none;
}
.newspaper-block-label i {
  font-size: 1.5rem;
  margin-left: 0;
  margin-right: 0;
  vertical-align: middle;
}
.newspaper-block-img-link {
  display: block;
  width: 100%;
  max-width: 340px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.newspaper-block-img-link:hover {
  box-shadow: 0 4px 24px rgba(184,0,28,0.13);
}
.newspaper-block-img {
  width: 100%;
  height: 480px;
  object-fit: contain;
  background: #fff;
  display: block;
  border-radius: 10px;
  margin: 0 auto;
}
@media (max-width: 1200px) {
  .newspaper-block-wrapper { gap: 16px; }
  .newspaper-block-img { height: 340px; }
}
@media (max-width: 900px) {
  .newspaper-block-wrapper { flex-wrap: wrap; }
  .newspaper-block-card { flex: 1 1 45%; margin-bottom: 30px; }
  .newspaper-block-img { height: 220px; }
}
@media (max-width: 600px) {
  .newspaper-block-wrapper { flex-direction: column; gap: 10px; }
  .newspaper-block-card { flex: 1 1 100%; }
  .newspaper-block-img { height: 120px; }
  .newspaper-block-label { font-size: 1rem; padding: 6px 18px; }
} 

/* Custom Slider Styles */
.custom-slider-section {
  width: 100%;
  background: #2563eb;
  padding: 40px 0 30px 0;
  position: relative;
  overflow: hidden;
}
.custom-slider-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.custom-slide.two-col-layout {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  width: 100%;
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  transition: opacity 0.7s, transform 0.7s;
  opacity: 0;
  z-index: 1;
}
.custom-slide.two-col-layout.active {
  display: flex;
  opacity: 1;
  position: relative;
  z-index: 2;
}
.custom-slide-left, .custom-slide-right {
  width: 50%;
  box-sizing: border-box;
  padding: 40px 40px 40px 40px;
}
.custom-slide-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  text-align: left;
  min-height: 340px;
}
.custom-slide-title {
  font-size: 3rem;
  font-family: 'Oswald', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 18px;
  color: #fff;
  letter-spacing: 1px;
}
.custom-slide-desc {
  font-size: 1.2rem;
  color: #d1d1d1;
  line-height: 1.7;
}
.custom-slide-right {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}
.custom-slide-img {
  max-width: 100%;
  max-height: 340px;
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(255,78,106,0.15);
  background: #222;
}
.custom-slider-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 30px;
}
.custom-slider-prev, .custom-slider-next {
  background: rgba(255,78,106,0.9);
  color: #fff;
  border: none;
  font-size: 2.2rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: background 0.2s;
}
.custom-slider-prev:hover, .custom-slider-next:hover {
  background: #ff4e6a;
}
.custom-slider-dots {
  text-align: center;
  margin-top: 20px;
}
.custom-slider-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: #444;
  border-radius: 50%;
  margin: 0 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.custom-slider-dot.active {
  background: #ff4e6a;
}
/* Animations */
.animate-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 0.7s, transform 0.7s;
}
.custom-slide.two-col-layout.active .animate-left {
  opacity: 1;
  transform: translateX(0);
}
/* Animation Tweaks */
.animate-bottom {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.4s cubic-bezier(0.77,0,0.175,1), transform 0.4s cubic-bezier(0.77,0,0.175,1);
}
.animate-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.4s cubic-bezier(0.77,0,0.175,1), transform 0.4s cubic-bezier(0.77,0,0.175,1);
}
.animate-top {
  opacity: 0;
  transform: translateY(-50px);
  transition: opacity 0.4s cubic-bezier(0.77,0,0.175,1), transform 0.4s cubic-bezier(0.77,0,0.175,1);
}
.animate-fade {
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.77,0,0.175,1);
}
.animate-zoom {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.4s cubic-bezier(0.77,0,0.175,1), transform 0.4s cubic-bezier(0.77,0,0.175,1);
}
.custom-slide.two-col-layout.active .animate-bottom,
.custom-slide.two-col-layout.active .animate-right,
.custom-slide.two-col-layout.active .animate-top,
.custom-slide.two-col-layout.active .animate-fade,
.custom-slide.two-col-layout.active .animate-zoom {
  opacity: 1;
  transform: none;
}
/* Staggered Animation Delays */
.custom-slide.two-col-layout.active .custom-slide-right {
  transition-delay: 0s;
}
.custom-slide.two-col-layout.active .custom-slide-title {
  transition-delay: 0.15s;
}
.custom-slide.two-col-layout.active .custom-slide-desc {
  transition-delay: 0.3s;
}
.custom-slide.two-col-layout.active .custom-slide-img {
  transition-delay: 0.05s;
}
/* Custom Slide Title from Top */
.custom-slide-title.animate-top {
  opacity: 0;
  transform: translateY(-50px);
}
.custom-slide.two-col-layout.active .custom-slide-title.animate-top {
  opacity: 1;
  transform: none;
}
/* Custom Slide Desc fade from below */
.custom-slide-desc.animate-fade {
  opacity: 0;
  transform: translateY(30px);
}
.custom-slide.two-col-layout.active .custom-slide-desc.animate-fade {
  opacity: 1;
  transform: none;
}
/* Custom Slide Img zoom */
.custom-slide-img.animate-zoom {
  opacity: 0;
  transform: scale(0.92);
}
.custom-slide.two-col-layout.active .custom-slide-img.animate-zoom {
  opacity: 1;
  transform: scale(1);
}
/* Styling Tweaks */
.custom-slide-title {
  font-size: 2.5rem;
  font-family: 'Oswald', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 14px;
  color: #fff;
  letter-spacing: 1px;
}
.custom-slide-desc {
  font-size: 1.1rem;
  color: #f3f3f3;
  line-height: 1.7;
}
.custom-slide-left, .custom-slide-right {
  padding: 30px 24px 30px 24px;
}
.custom-slider-dots {
  text-align: center;
  margin-top: 28px;
}
.custom-slider-dot {
  display: inline-block;
  width: 22px;
  height: 22px;
  background: #fff;
  border: 2px solid #2563eb;
  border-radius: 50%;
  margin: 0 10px;
  cursor: pointer;
  transition: background 0.2s, border 0.2s;
  box-sizing: border-box;
}
.custom-slider-dot.active {
  background: #ff4e6a;
  border-color: #ff4e6a;
}
@media (max-width: 900px) {
  .custom-slide-title {
    font-size: 1.5rem;
  }
  .custom-slide-desc {
    font-size: 0.95rem;
  }
  .custom-slide-left, .custom-slide-right {
    padding: 12px 6px 12px 6px;
  }
  .custom-slider-dot {
    width: 28px;
    height: 28px;
    margin: 0 8px;
  }
}
@media (max-width: 600px) {
  .custom-slide-title {
    font-size: 1.1rem;
  }
  .custom-slide-desc {
    font-size: 0.8rem;
  }
  .custom-slide-left, .custom-slide-right {
    padding: 6px 2px 6px 2px;
  }
  .custom-slider-dot {
    width: 36px;
    height: 36px;
    margin: 0 6px;
  }
} 

/* Footer Redesign */
footer {
  background: #18191b;
  color: #fff;
  margin-top: 40px;
  border-top: 2px solid #333;
  font-family: inherit;
}
.footer-main {
  display: flex;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px 18px 24px;
  border-bottom: 1px solid #333;
}
.footer-col {
  flex: 1 1 0;
  padding: 0 18px;
  min-width: 180px;
  text-align: center;
}
.footer-heading {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 18px;
  border-bottom: 2px solid #333;
  padding-bottom: 8px;
  letter-spacing: 1px;
}
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-list li {
  margin: 14px 0;
}
.footer-list a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.2s;
}
.footer-list a:hover {
  color: #ff4e6a;
}
.footer-bottom {
  background: #111;
  text-align: center;
  padding: 12px 0 10px 0;
  font-size: 1rem;
  letter-spacing: 0.5px;
}
.footer-bottom a {
  color: #ffb800;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 1px dotted #ffb800;
  transition: color 0.2s, border 0.2s;
}
.footer-bottom a:hover {
  color: #fff;
  border-bottom: 1px solid #fff;
}
@media (max-width: 900px) {
  .footer-main {
    flex-direction: column;
    align-items: center;
    padding: 24px 6px 10px 6px;
  }
  .footer-col {
    min-width: 0;
    padding: 0 0 18px 0;
    margin-bottom: 18px;
    border-bottom: 1px solid #222;
  }
  .footer-col:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }
  .footer-heading {
    font-size: 1.2rem;
    margin-bottom: 10px;
    padding-bottom: 5px;
  }
  .footer-list a {
    font-size: 1rem;
  }
}
@media (max-width: 600px) {
  .footer-main {
    padding: 10px 2px 6px 2px;
  }
  .footer-heading {
    font-size: 1rem;
  }
  .footer-list a {
    font-size: 0.95rem;
  }
  .footer-bottom {
    font-size: 0.9rem;
    padding: 8px 0 6px 0;
  }
} 

/* Category Archive Styles */
.category-archive-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.category-archive-header {
  text-align: center;
  margin-bottom: 40px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 20px;
}
.category-title {
  font-size: 2.8rem;
  font-weight: bold;
  color: #2563eb;
  margin-bottom: 12px;
}
.category-description {
  font-size: 1.1rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
}
/* 1. Grid: 2 columns desktop, 1 on mobile */
.category-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}
@media (max-width: 900px) {
  .category-posts-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .post-thumbnail img {
    height: 180px;
  }
}

/* 2. Card background to #f9f9f9 */
.category-post-card {
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  margin: 0;
  width: 100%;
}
.post-thumbnail {
  width: 100%;
  margin: 0;
}
.post-thumbnail img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: transform 0.3s ease-out;
}

/* 3. Blue color for grid/list toggle icons */
.toggle-btn i {
  color: #2563eb !important;
}
.toggle-btn.active i {
  color: #fff !important;
}

/* 4. Author name below post title in list mode */
.list-post-author {
  color: #888;
  font-size: 0.98rem;
  margin-bottom: 4px;
  margin-top: 2px;
}

/* 5. Increase gap between cards in list mode */
.category-list-posts {
  gap: 32px;
}
.category-post-card:hover .post-thumbnail img {
  transform: scale(1.05);
}
.post-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.post-title a {
  font-size: 1.4rem;
  font-weight: bold;
  color: #222;
  text-decoration: none;
  transition: color 0.2s;
}
.post-title a:hover {
  color: #2563eb;
}
.post-excerpt {
  color: #666;
  margin-top: 12px;
  flex-grow: 1;
}
.read-more-link {
  margin-top: 18px;
  color: #2563eb;
  font-weight: bold;
  text-decoration: none;
  align-self: flex-start;
}
/* Pagination */
.pagination {
  margin-top: 40px;
  text-align: center;
}
.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.pagination .page-numbers {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  color: #333;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
@media (max-width: 768px) {
  .category-title {
    font-size: 2rem;
  }
  .category-posts-grid {
    grid-template-columns: 1fr;
  }
} 

/* Category Toggle Buttons */
.category-toggle-view {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 24px;
}
.toggle-btn {
  background: #fff;
  border: 1px solid #2563eb;
  color: #2563eb;
  font-size: 1.5rem;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.toggle-btn.active, .toggle-btn:hover {
  background: #2563eb;
  color: #fff;
}

/* List Mode Layout */
.category-posts-list {
  width: 100%;
}
.category-list-layout {
  display: flex;
  flex-direction: row;
  gap: 32px;
}
.category-list-posts {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.category-list-sidebar {
  flex: 1;
  min-width: 280px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.widget.ad-widget, .widget.fb-widget {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 12px 16px;
  text-align: center;
}
.ad-placeholder {
  background: #ffb31a;
  color: #222;
  font-weight: bold;
  font-size: 1.2rem;
  padding: 32px 0;
  border-radius: 6px;
  margin-top: 8px;
}
.fb-placeholder {
  background: #e9f0fb;
  color: #2563eb;
  font-size: 1.1rem;
  padding: 24px 0;
  border-radius: 6px;
  margin-top: 8px;
}

/* List card: beautiful thumbnail and content like grid view */
.category-list-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #f9f9f9;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  overflow: hidden;
  padding: 0 0 18px 0;
  margin: 0;
}
.list-post-thumbnail {
  width: 100%;
  height: 250px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  position: relative;
  background: #fff;
}
.list-post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 24px 24px 0 0;
  display: block;
  background: #fff;
}
.list-post-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff !important;
    margin: 0;
    text-align: right;
    padding: 10px 18px 8px 18px;
    background: #2563eb;
    box-shadow: none;
    display: block;
    margin-top: 0;
}
.list-post-title a {
    color: #fff !important;
    text-decoration: none !important;
}

@media (max-width: 700px) {
  .list-post-thumbnail {
    height: 120px;
    border-radius: 16px 16px 0 0;
  }
  .list-post-thumbnail img {
    border-radius: 16px 16px 0 0;
  }
  .list-post-title {
    font-size: 1.05rem;
    padding: 8px 8px 6px 8px;
    border-radius: 0 0 12px 12px;
  }
  .category-list-card {
    border-radius: 16px;
    padding: 0 0 12px 0;
  }
  .list-post-content {
    padding: 0 8px 0 8px;
    margin-top: 12px;
  }
}

@media (max-width: 900px) {
  .category-list-layout {
    flex-direction: column-reverse;
    gap: 24px;
  }
  .category-list-sidebar {
    max-width: 100%;
    min-width: 0;
  }
}
@media (max-width: 600px) {
  .category-list-card {
    flex-direction: column-reverse;
    gap: 12px;
    padding: 12px;
  }
  .list-post-thumbnail {
    max-width: 100%;
    height: auto;
  }
  .list-post-thumbnail img {
    height: 100px;
  }
} 

/* Category Archive Header Row */
.category-archive-header {
  background: #f3f3f3;
  border-bottom: 3px solid #111;
  padding: 18px 18px 0 18px;
  margin-bottom: 32px;
}
/* Update header row order for new layout */
.category-header-row {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}
.category-count-block {
  order: 1;
  flex: 0 0 auto;
  margin-left: 18px;
  margin-right: 0;
  display: flex;
  align-items: center;
  color: #111;
}
.category-title-toggle-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 48px;
  order: 3;
}
.category-title {
  font-size: 2rem;
  font-weight: bold;
  color: #111;
  margin: 0;
  margin-left: 10px;
}
.category-toggle-view {
  display: flex;
  flex-direction: row;
  gap: 6px;
  align-items: center;
}
.toggle-btn {
  background: #fff;
  border: 2px solid #111;
  color: #111;
  font-size: 1.5rem;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.toggle-btn.active {
  background: #111;
  color: #fff;
  border-color: #111;
}
.toggle-btn:not(.active):hover {
  background: #e0e0e0;
  color: #111;
}
.toggle-btn i {
  pointer-events: none;
}
@media (max-width: 600px) {
  .category-header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .category-title-toggle-group, .category-count-block {
    margin: 0;
    text-align: right;
    justify-content: flex-start;
  }
  .category-title {
    font-size: 1.3rem;
  }
  .category-count-block {
    font-size: 1rem;
  }
} 

.list-post-meta-row {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 18px;
  width: 100%;
  justify-content: flex-end;
  color: #888;
  font-size: 1rem;
  margin: 8px 0 0 0;
  white-space: nowrap;
}
.list-post-meta-row i {
  margin-left: 4px;
  vertical-align: middle;
}
@media (max-width: 700px) {
  .list-post-meta-row {
    font-size: 0.95rem;
    gap: 10px;
  }
} 

.single-main {
    direction: rtl;
} 

.single-title {
    background: #2563eb;
    color: #fff;
    padding: 24px 0;
    border-radius: 8px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 18px;
} 

.single-share-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 24px 0 24px 0;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    font-size: 1.5rem;
    color: #fff;
    background: #888;
    border: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    outline: none;
}
.share-btn i {
    pointer-events: none;
}
.share-btn.share-fb { background: #1877f3; }
.share-btn.share-tw { background: #1da1f2; }
.share-btn.share-wa { background: #25d366; }
.share-btn.share-mail { background: #e74c3c; }
.share-btn.share-copy { background: #555; }
.share-btn:hover, .share-btn:focus {
    filter: brightness(1.15);
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    transform: scale(1.08);
} 

.single-image {
    position: relative;
}
.post-views-box {
    position: absolute;
    left: 12px;
    bottom: 12px;
    direction: ltr;
    align-items: center;
    background: #111;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    border-radius: 6px;
    padding: 6px 16px 6px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.7);
    z-index: 2;
    margin: 0;
    font-family: 'Roboto', sans-serif !important;
}
.post-views-box i {
    margin-right: 8px;
    font-size: 1.2rem;
} 

.single-meta {
    color: #000;
    font-size: 20px;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: var(--border-radius);
}
.single-meta .post-info .font-size-controls {
    margin-right: auto;
    font-size: 18px;
}
.single-meta .post-info .font-size-controls a,
.single-meta .post-info .font-size-controls a i {
    line-height: 1;
} 

.fa-search-plus {
    color: #999 !important;
} 

.fa-search-minus {
    color: #999 !important;
} 

.latest-news-widget {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 0 0 8px 0;
    direction: rtl;
}
.latest-news-widget .widget-header {
    background: #f3f3f3;
    color: #222;
    font-size: 2rem;
    font-weight: bold;
    padding: 18px 18px 12px 18px;
    border-radius: 10px 10px 0 0;
    border-bottom: 5px solid #2563eb;
    text-align: right;
    margin-bottom: 0;
    letter-spacing: 0.5px;
}
.latest-news-list {
    list-style: none;
    margin: 0;
    padding: 0 10px;
}
.latest-news-item {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 10px;
    border-bottom: 1px solid #ececec;
    padding: 12px 0 12px 0;
    position: relative;
    min-height: 64px;
}
.latest-news-item:last-child {
    border-bottom: none;
}
.latest-news-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 7px;
    overflow: hidden;
    display: block;
    margin-right: 0;
    margin-left: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.latest-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
    display: block;
}
.latest-news-title {
    font-size: 1.08rem;
    color: #222;
    font-weight: 500;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
    margin-top: 0;
    text-align: right;
    line-height: 1.4;
    transition: color 0.2s;
    max-width: 220px;
    white-space: normal;
}
.latest-news-title:hover {
    color: #2563eb;
}
.latest-news-meta {
    display: flex;
    flex-direction: row-reverse;
    gap: 8px;
    font-size: 0.93rem;
    color: #888;
    margin-bottom: 2px;
    align-items: center;
}
.latest-news-meta i {
    margin-left: 2px;
    color: #888;
    font-size: 1em;
    vertical-align: middle;
}
.latest-news-date, .latest-news-views {
    display: flex;
    align-items: center;
    gap: 2px;
} 

.newspaper-widget {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 0 0 12px 0;
    direction: rtl;
}
.newspaper-widget .widget-header {
    background: #f3f3f3;
    color: #222;
    font-size: 2rem;
    font-weight: bold;
    padding: 18px 18px 12px 18px;
    border-radius: 10px 10px 0 0;
    border-bottom: 5px solid #ffb400;
    text-align: right;
    margin-bottom: 0;
    letter-spacing: 0.5px;
}
.newspaper-slider {
    position: relative;
    width: 100%;
    margin: 0 auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    min-height: 220px;
    margin-bottom: 0;
}
.newspaper-img {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    display: block;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.newspaper-prev, .newspaper-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #222;
    color: #fff;
    border: none;
    border-radius: 6px;
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2;
    opacity: 0.95;
    transition: background 0.2s, opacity 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.newspaper-prev { right: 8px; }
.newspaper-next { left: 8px; }
.newspaper-prev:hover, .newspaper-next:hover {
    background: #2563eb;
    opacity: 1;
}
.newspaper-caption {
    background: #111;
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    padding: 14px 0 12px 0;
    border-radius: 0 0 10px 10px;
    margin: 0 8px 0 8px;
    margin-top: 0;
    letter-spacing: 0.5px;
} 

.single-related {
    margin: 40px 0 0 0;
    direction: rtl;
}
.related-header {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 12px;
    margin-top: 0;
    background: #fff;
    border-bottom: 4px solid #ffb400;
    padding-bottom: 8px;
    letter-spacing: 0.5px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 18px;
    margin-top: 18px;
}
.related-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
}
.related-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    transform: translateY(-4px) scale(1.02);
}
.related-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: #eee;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.related-title {
    font-size: 1.1rem;
    color: #222;
    font-weight: 500;
    text-align: center;
    padding: 14px 8px 12px 8px;
    background: #fff;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
}
@media (max-width: 900px) {
    .related-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .related-header {
        font-size: 1.2rem;
        padding-bottom: 4px;
    }
    .related-grid {
        grid-template-columns: 1fr;
        gap: 14px 0;
    }
    .related-title {
        font-size: 0.98rem;
        padding: 10px 4px 8px 4px;
        min-height: 36px;
    }
} 
