:root {
    --primary-color: #2c3e50; /* Deep Slate Gray */
    --secondary-color: #34495e; /* Wet Asphalt */
    --accent-color: #3498db; /* Peter River Blue */
    --success-color: #13BA93;
    --danger-color: #e53935;
    --text-color: #333333;
    --text-light: #ffffff;
    --text-secondary: #757575;
    --background-light: #f9f9f9;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Vazirmatn FD, sans-serif;
    background: linear-gradient(to right, #DCDCDC, #DADFE4);
    color: var(--text-color);
    direction: rtl;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.darkmode {
    background: linear-gradient(to right, #1e272e, #2f3640);
    color: #bdc3c7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

img {
    max-width: 100%;
}

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

.header {
background: hsla(236, 100%, 8%, 1);

background: linear-gradient(90deg, hsla(236, 100%, 8%, 1) 0%, hsla(211, 100%, 28%, 1) 100%);

background: -moz-linear-gradient(90deg, hsla(236, 100%, 8%, 1) 0%, hsla(211, 100%, 28%, 1) 100%);

background: -webkit-linear-gradient(90deg, hsla(236, 100%, 8%, 1) 0%, hsla(211, 100%, 28%, 1) 100%);

filter: progid: DXImageTransform.Microsoft.gradient( startColorstr="#000328", endColorstr="#00458E", GradientType=1 );
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-left: 10px;
}

.logo-text {
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.4rem;
}

.nav-toggle {
    display: none;
    color: var(--text-light);
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-item {
    margin: 0 17px;
    position: relative;
}

@media (min-width: 993px) {
    .nav-item:not(:last-child)::after {
        content: '';
        position: absolute;
        left: -15px;
        top: 50%;
        transform: translateY(-50%);
        height: 16px;
        width: 1px;
        background-color: rgba(255, 255, 255, 0.15);
    }
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 12px 0;
    display: flex;
    align-items: center;
    background-color: transparent;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--text-light);
    background-color: transparent;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    transform: translateX(-101%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.nav-link:hover::after {
    transform: translateX(0);
}

.nav-link i {
    margin-left: 8px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-actions {
    display: flex;
    align-items: center;
}

.action-btn {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.favorite-counter {
    position: absolute;
  top: -4px;
  right: -8px;
  background-color: var(--danger-color);
  color: white;
  font-size: 13px;
  font-family: Vazirmatn FD, sans-serif;
  font-weight: 700;
  line-height: 1;
  min-width: 20px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  transform: scale(0);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease;
  pointer-events: none;
  border-radius: 50%;
}

.favorite-counter.visible {
    transform: scale(1);
    opacity: 1;
}

.search-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed), visibility var(--transition-speed);
}

.search-container.active {
    opacity: 1;
    visibility: visible;
}

.search-form {
    width: 80%;
    max-width: 600px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 70px 15px 15px;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-family: Vazirmatn FD, sans-serif;
}

.darkmode .search-input {
    background-color: #2d2d2d;
    color: #eaeaea;
}

.search-submit {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    background-color: var(--accent-color);
    color: var(--text-light);
    border: none;
    padding: 0 20px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 0 8px 8px 0;
}

.search-close {
    position: absolute;
    top: 20px;
    left: 20px;
    color: var(--text-light);
    background: var(--danger-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Featured Headline Section */
.featured-headline {
    margin: 0;
}

.featured-headline-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.featured-headline-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    height: 420px;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-headline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.featured-headline-img-wrapper {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.featured-headline-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-headline-card:hover .featured-headline-img {
    transform: scale(1.05);
}

.featured-headline-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.8));
    pointer-events: none;
}

.featured-headline-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    color: #fff;
    z-index: 2;
}

.featured-headline-label {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.featured-headline-card:hover .featured-headline-label {
    transform: translateY(-5px);
}

.featured-headline-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 150%;
}

/* Featured headline meta: date right, button left, always in one row */
.featured-headline-meta {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0;
    width: 100%;
}

.featured-headline-date {
    order: 1;
    margin-right: 0;
    margin-left: auto;
}

.featured-headline-date i {
    margin-left: 5px;
}

.featured-headline-btn {
order: 2;
  margin-left: 0;
  margin-right: auto;
  background: var(--primary-color);
  border-radius: 4px;
  padding-right: 4px;
  padding-left: 4px;
}

.featured-headline-btn i {
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.featured-headline-btn:hover {
    background-color: #0d62b3;
}

.featured-headline-btn:hover i {
    transform: translateX(-3px);
}

/* Content badge styles */
.content-type-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1rem;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.news-badge {
    background-color: var(--accent-color);
}

.photo-badge {
    background-color: var(--success-color);
}

.video-badge {
    background-color: var(--danger-color);
}

.podcast-badge {
    background-color: #9c27b0;
}

@media (max-width: 992px) {
    .featured-headline-card {
        height: 380px;
    }
    
    .featured-headline-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .featured-headline-card {
        height: 320px;
    }
    
    .featured-headline-content {
        padding: 20px;
    }
    
    .featured-headline-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .featured-headline-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .featured-headline-date {
        margin-bottom: 10px;
    }
}

/* Dark Mode Adjustments */
.darkmode .featured-headline-card {
    background-color: #1e1e1e;
}

.main {
    flex: 1 0 auto;
}

/* Main Layout - Two Column */
.main-layout {
    display: flex;
    flex-wrap: wrap;
    margin: 20px 0;
    gap: 20px;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.main-sidebar {
    width: 350px;
    margin-left: 0px;
}

.sidebar-block {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px var(--shadow-color);
    margin-bottom: 20px;
    overflow: hidden;
}

.sidebar-header, .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    padding: 12px 15px;
    border-right: 3px solid var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e9ecef;
}
.darkmode .sidebar-header .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    padding: 12px 15px;
    border-right: 3px solid var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #515354;
}

.darkmode .header{
	background: linear-gradient(135deg, rgba(29, 39, 51, 0.8), rgba(38, 50, 64, 0.85));
}
.darkmode .news-card-title-link{
	color: #d2d2d2 !important;
}
.sidebar-header h3, .section-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    color: var(--primary-color);
}

.sidebar-header h3 i, .section-title i {
    font-size: 1.1rem;
    margin-left: 10px;
    color: var(--primary-color);
    background-color: rgba(22, 37, 89, 0.1);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.sidebar-header .more-link, .archive-link {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    padding: 4px 10px;
    border-radius: 4px;
    background-color: #ebeef5;
}

.sidebar-header .more-link:hover, .archive-link:hover {
    color: var(--accent-color);
    background-color: #e1e5f0;
}

.sidebar-header .more-link i, .archive-link i {
    margin-left: 5px;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.sidebar-header .more-link:hover i, .archive-link:hover i {
    transform: translateX(-3px);
}

.sidebar-content {
    padding: 15px;
}

.sidebar-news-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-news-item:last-child {
    border-bottom: none;
}

.sidebar-news-img {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    margin-left: 10px;
    position: relative;
}

.sidebar-news-content {
    flex: 1;
    min-width: 0;
}

.sidebar-news-title {
    font-size: 0.95rem;
    margin: 0 0 5px 0;
    font-weight: 500;
    line-height: 170%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sidebar-news-date {
    font-size: 0.7rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.sidebar-news-date i {
    margin-left: 5px;
}

@media (max-width: 992px) {
    .nav-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw; /* MODIFIED: Full viewport width */
        height: 100vh; /* MODIFIED: Full viewport height */
       background: hsla(236, 100%, 8%, 1);

background: linear-gradient(90deg, hsla(236, 100%, 8%, 1) 0%, hsla(211, 100%, 28%, 1) 100%);

background: -moz-linear-gradient(90deg, hsla(236, 100%, 8%, 1) 0%, hsla(211, 100%, 28%, 1) 100%);

background: -webkit-linear-gradient(90deg, hsla(236, 100%, 8%, 1) 0%, hsla(211, 100%, 28%, 1) 100%);

filter: progid: DXImageTransform.Microsoft.gradient( startColorstr="#000328", endColorstr="#00458E", GradientType=1 );
        backdrop-filter: blur(10px); /* ADDED: Modern blur effect */
        -webkit-backdrop-filter: blur(10px); /* ADDED: Safari blur effect */
        display: flex;
        flex-direction: column; /* MODIFIED: Align items vertically */
        align-items: center; /* MODIFIED: Center content horizontally */
        justify-content: center; /* MODIFIED: Center content vertically */
        padding: 20px; /* ADDED: Padding for modal content */
        z-index: 1500;
        opacity: 0;
        transform: scale(0.95) translateY(30px); /* MODIFIED: Animation start state */
        visibility: hidden;
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.4s;
        overflow-y: auto; /* ADDED: Allow scrolling if content overflows */
        box-sizing: border-box;
        /* REMOVED: border-radius, box-shadow from panel style */
    }
    
    .main-nav.active {
        opacity: 1;
        transform: scale(1) translateY(0); /* MODIFIED: Animation end state */
        visibility: visible;
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s;
    }
    
    .nav-list {
        display: grid; /* MODIFIED: Grid layout for nav items */
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* MODIFIED: 2-column responsive grid */
        gap: 15px; /* ADDED: Gap between grid items */
        width: 100%;
        max-width: 400px; /* ADDED: Max width for the grid */
        padding: 0;
        list-style: none;
        margin-top: 20px; /* ADDED: Space from top or close button */
        /* REMOVED: flex properties from panel style */
    }
    
    .nav-item {
        margin: 0;
        width: auto; /* MODIFIED: Let grid control width */
    }
    
    .nav-link {
        display: flex; /* MODIFIED: Flex for icon/text alignment */
        flex-direction: column; /* MODIFIED: Icon above text */
        align-items: center;
        justify-content: center;
        gap: 8px; /* ADDED: Space between icon and text */
        background-color: rgba(255, 255, 255, 0.09); /* MODIFIED: Background for grid items */
        border-radius: 12px; /* ADDED: Rounded corners for grid items */
        padding: 20px 15px; /* MODIFIED: Padding for grid items */
        font-size: 0.9rem; /* MODIFIED: Font size for grid items */
        font-weight: 500;
        color: var(--text-light);
        text-align: center;
        border-bottom: none; /* REMOVED: Border from panel style */
        transition: background-color 0.2s ease, transform 0.2s ease;
    }

    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.15); /* MODIFIED: Hover background */
        transform: translateY(-3px) scale(1.03); /* ADDED: Hover transform effect */
        padding-right: 15px; /* Ensure padding consistency on hover */
    }
    
    .nav-link i {
        font-size: 1.6rem; /* MODIFIED: Larger icons */
        margin-left: 0; /* Reset margin */
        background-color: transparent; /* Reset previous styles */
        width: auto;
        height: auto;
        border-radius: 0;
    }
    
    nav.main-nav > .nav-close {
        position: absolute;
        top: 25px; /* MODIFIED: Position for modal */
        left: 25px; /* ADDED: Positioned to top-left */
        right: auto; /* ADDED: Ensure right doesn't interfere */
        color: var(--text-light);
        background: rgba(255, 255, 255, 0.1); /* MODIFIED: Slightly different base background */
        border: none;
        font-size: 1.3rem; /* MODIFIED: Slightly larger close icon */
        cursor: pointer;
        width: 40px; /* MODIFIED: Larger touch target */
        height: 40px; /* MODIFIED: Larger touch target */
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1510; /* Ensure it's above nav-list */
        transition: all 0.3s ease;
        transform: none; /* Reset any previous transform on base state */
    }
    
    .nav-close:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: rotate(90deg) scale(1.1);
    }
    
    .nav-close {
        display: flex !important;
    }
    
    .mobile-nav-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 2rem;
    }

    .mobile-nav-logo {
        width: 93px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    padding: 8px;
    box-shadow: 0 0 25px rgba(255,255,255,0.2);
    height: 80px;
    }

    .mobile-nav-header h3 {
        color: #fff;
        opacity: 0.9;
        font-weight: 500;
    }
    
    .mobile-nav-header::before {
        display: none; /* HIDDEN: Drag indicator not needed for modal */
    }
    
    .mobile-nav-footer {
        display: none; /* HIDDEN: Cleaner modal look */
    }
    
    /* .mobile-nav-overlay remains for JS click-to-close, but visually behind/covered by .main-nav */
    .mobile-nav-overlay.active {
        opacity: 1; /* Ensure it's active for JS, though might be visually covered */
        visibility: visible;
        /* z-index: 1400; (original) ensure .main-nav is on top (1500) */
    }
    
    .main-layout {
        flex-direction: column;
    }
    
    .main-sidebar {
        width: 100%;
        margin-left: 0;
        order: 2;
    }
    
    .main-content {
        order: 1;
    }
}

@media (max-width: 992px) {
  .main-nav.active .nav-close {
    display: flex !important;
  }
}

/* Latest News Section - Mobile App Style */
.latest-news {
    margin: 25px 0;
}

.news-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0;
}

.news-card {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-height: 120px;
}

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

.news-card-img-link {
    display: block;
    position: relative;
    flex-shrink: 0;
    width: 150px;
}

.news-card-img-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f0f2f5;
    overflow: hidden;
}

.news-card-img-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card:hover .news-card-img-container::after {
    opacity: 1;
}

.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-img {
    transform: scale(1.1);
}

.news-card-badge--special {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--danger-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 20px;
    z-index: 2;
}

.news-card-type-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 3;
    border: 2px solid rgba(255,255,255,0.7);
    background-color: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.news-card:hover .news-card-type-badge {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: rgba(0,0,0,0.5);
}

.news-card-duration {
position: absolute;
  top: 8px;
  right: 8px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0px 8px;
  border-radius: 4px;
  z-index: 2;
  backdrop-filter: blur(2px);
}

.news-card-content {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0; /* Fix for flexbox overflow */
}

.news-card-title-link {
    color: var(--text-color);
    text-decoration: none;
}

.news-card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 10px 0;
    color: #2c3e50;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.news-card-title-link:hover .news-card-title {
    color: var(--accent-color);
}

.news-card-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #f0f2f5;
}

.news-card-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.news-card-date i {
    margin-left: 6px;
    font-size: 0.85rem;
}

.news-card-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-card-actions .action-btn {
    background-color: #f0f2f5;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.news-card-actions .action-btn:hover {
    background-color: var(--accent-color);
    color: white;
}

.news-card-actions .action-btn.bookmark-btn.bookmarked {
background-color: #0b85ce;
  color: #fff;
}

.news-card-actions .action-btn.bookmark-btn.bookmarked:hover {
    background-color: #fbc02d;
}

.news-card-actions .action-btn .fa-bookmark {
    font-weight: 400; /* Use 'far' style */
}

.news-card-actions .action-btn.bookmarked .fa-bookmark {
    font-family: "Font Awesome 6 Free";
    font-weight: 900; /* Use 'fas' solid style */
}


/* Dark Mode Adjustments */
.darkmode .news-card {
    background-color: #2c3e50;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.darkmode .news-card-img-container {
    background-color: #34495e;
}

.darkmode .news-card-content {
    border-top-color: #34495e;
}

.darkmode .news-card-title {
    color: #ecf0f1;
}

.darkmode .news-card-title-link:hover .news-card-title {
    color: #5dade2;
}

.darkmode .news-card-meta {
    border-top-color: #34495e;
}

.darkmode .news-card-date {
    color: #bdc3c7;
}

.darkmode .news-card-actions .action-btn {
    background-color: #34495e;
    color: #bdc3c7;
}

.darkmode .news-card-actions .action-btn:hover {
    background-color: #5dade2;
    color: #1a2533;
}

.darkmode .news-card-actions .action-btn.bookmark-btn.bookmarked {
    background-color: #fdd835;
    color: #424242;
}


@media (max-width: 576px) {
    .news-card {
        min-height: 100px;
    }
    .news-card-img-link {
        width: 110px;
    }
    .news-card-content {
        padding: 12px 15px;
    }
    .news-card-title {
        font-size: 0.9rem;
    }
    .news-card-date {
        font-size: 0.75rem;
    }
}


/* Modern Footer Styles */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0;
    position: relative;
    border-top: 4px solid transparent;
    border-image: linear-gradient(to right, #e74c3c, #3498db, #2ecc71) 1;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    min-height: 70px;
}

.footer-copyright {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.footer-logo-small {
    height: 40px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}
.footer-logo-small:hover {
    opacity: 1;
}

.copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 25px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.footer-nav a:hover {
    color: #fff;
}
.footer-nav a:hover::after {
    width: 100%;
}

.footer-nav a i {
    margin-left: 8px;
    font-size: 1rem;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #fff;
}

.footer-social a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 10px rgba(25, 118, 210, 0.4);
}

.darkmode .footer {
    background-color: #121728;
}

@media (max-width: 992px) {
    .footer-container {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
    }
    .footer-right {
        width: 100%;
        justify-content: space-between;
        align-items: center;
		padding: 20px;
    }
    .footer-copyright {
       flex-direction: column;
       gap: 15px;
       text-align: center;
    }
}

@media (max-width: 576px) {
    .footer-nav {
        gap: 15px;
    }
    .footer-nav a {
        font-size: 0.85rem;
    }
    .copyright {
        font-size: 0.75rem;
    }
}


/* Share Button */
.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 5px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
    font-family: Vazirmatn FD, sans-serif;
}

.share-btn:hover {
    background-color: #0d62b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
}

.share-btn i {
    
    font-size: 0.9rem;
}

/* Share Modal */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10010;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.share-modal.active {
    display: flex;
    opacity: 1;
}

.share-modal-content {
    background-color: white;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.share-modal.active .share-modal-content {
    transform: translateY(0);
}

.share-modal-header {
    background-color: var(--primary-color);
    color: white;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.share-modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
}

.share-modal-header h3 {
    font-size: 1.2rem;
    margin: 0;
    display: flex;
    align-items: center;
}

.share-modal-header h3 i {
    margin-left: 8px;
}

.share-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
}

.share-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.share-modal-body {
    padding: 25px;
}

.share-title {
    font-size: 1.1rem;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-color);
    line-height: 1.5;
}

.share-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.share-option {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 15px;
    border-radius: 15px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.share-option::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
    pointer-events: none;
}

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

.share-option i {
    font-size: 1.8rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.share-option span {
    font-size: 0.9rem;
    font-weight: 500;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.telegram {
    background-color: #0088cc;
}

.whatsapp {
    background-color: #25D366;
}

.twitter {
    background-color: #494949;
}

.instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D, #F56040, #F77737, #FCAF45);
    background-size: 200% 200%;
    animation: instagramGradient 5s ease infinite;
}

@keyframes instagramGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.short-link-section {
    background-color: rgba(0, 0, 0, 0.03);
    padding: 15px;
    border-radius: 15px;
    position: relative;
}

.short-link-section h5 {
    font-size: 1rem;
    margin: 0 0 12px 0;
    color: var(--text-color);
}

.short-link-container {
    display: flex;
    align-items: center;
}

.short-link-container input {
    flex: 1;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: white;
    padding: 9px 15px;
    border-radius: 0 12px 12px 0;
    font-family: Vazirmatn FD, sans-serif;
    color: var(--text-color);
    font-size: 0.9rem;
    direction: ltr;
    text-align: left;
}

.short-link-container button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 12px 0 0 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    font-family: Vazirmatn FD, sans-serif;
}

.short-link-container button:hover {
    background-color: #0d62b3;
}

.short-link-container button i {
    margin-left: 5px;
    font-size: 0.9rem;
}

.copy-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.copy-message.active {
    opacity: 1;
    visibility: visible;
}

/* Dark Mode Adjustments */
.darkmode .share-modal-content {
    background-color: #1e1e1e;
}

.darkmode .share-title {
    color: #eaeaea;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.darkmode .short-link-section {
    background-color: rgba(255, 255, 255, 0.05);
}

.darkmode .short-link-section h5 {
    color: #eaeaea;
}

.darkmode .short-link-container input {
    background-color: #2d2d2d;
    border-color: rgba(255, 255, 255, 0.1);
    color: #eaeaea;
}

@media (max-width: 576px) {
    .share-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .share-modal-content {
        width: 95%;
    }
    
    .share-modal-body {
        padding: 20px;
    }
}

/* Modern Budget 1404 Photo Gallery Section */
.budget-photo-block {
    margin-bottom: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.budget-photo-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.photo-gallery-content {
    padding: 20px;
}

.budget-photo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.budget-photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.budget-photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.budget-photo-img-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.budget-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.budget-photo-item:hover .budget-photo-img {
    transform: scale(1.08);
}

.budget-photo-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.2), transparent);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: opacity 0.3s ease;
}

.budget-photo-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 0;
}

.budget-photo-label {
    display: inline-flex;
    align-items: center;
    background-color: var(--success-color);
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 20px;
}

.budget-photo-date {
    font-size: 0.7rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 3px 8px;
    border-radius: 20px;
}

.budget-photo-title {
    font-size: 0.85rem;
    margin: 0;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    align-self: flex-end;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 3px;
    border-radius: 5px;
    backdrop-filter: blur(1px);
	line-height: 200%;
}

.no-results {
    padding: 15px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Dark Mode Adjustments */
.darkmode .budget-photo-block {
    background-color: #1e1e1e;
}

.darkmode .no-results {
    color: #a0a7af;
}

.darkmode .budget-photo-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

@media (max-width: 992px) {
    .budget-photo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .budget-photo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .budget-photo-grid {
        grid-template-columns: 1fr;
    }
    
    .budget-photo-title {
        font-size: 0.8rem;
    }
}

.budget-photo-label i {
    margin-left: 4px;
    font-size: 0.65rem;
}

.budget-photo-date i {
    margin-left: 4px;
    font-size: 0.65rem;
}

/* Creative Header for "در صحن" Section */
.creative-header {
    background: none;
    background-size: unset;
    animation: none;
    border-radius: 0;
    padding: 0;
}

.creative-header::before {
    content: none;
}

.creative-header h3 {
    font-size: inherit;
    font-weight: inherit;
}

.creative-header h3 i {
    font-size: inherit;
    margin-left: inherit;
    background-color: inherit;
    width: inherit;
    height: inherit;
    box-shadow: none;
}

.creative-header .more-link {
    background-color: inherit;
    padding: inherit;
    border-radius: inherit;
    font-size: inherit;
}

.creative-header .more-link:hover {
    background-color: inherit;
}

.creative-header .more-link i {
    margin-left: inherit;
    font-size: inherit;
}

/* Dark mode adjustments for section headers */
.darkmode .sidebar-header, 
.darkmode .section-header {
    background-color: #393f58;
    border-right-color: var(--accent-color);
}

.darkmode .sidebar-header h3, 
.darkmode .section-title {
    color: white;
}

.darkmode .sidebar-header h3 i, 
.darkmode .section-title i {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.darkmode .sidebar-header .more-link, 
.darkmode .archive-link {
    background-color: #3c4057;
    color: #c5c8d3;
}

.darkmode .sidebar-header .more-link:hover, 
.darkmode .archive-link:hover {
    background-color: #464c6a;
    color: white;
}

/* Video item styling for the Conversation section */
.video-item .budget-photo-img-wrapper {
    position: relative;
    overflow: hidden;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: all 0.3s ease;
    z-index: 2;
}

.video-item:hover .video-play-overlay {
    opacity: 1;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}

.video-play-button {
    width: 50px;
    height: 50px;
    background-color: rgba(229, 57, 53, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.video-play-button i {
    margin-left: 3px;
}

.video-item:hover .video-play-button {
    transform: scale(1.1);
    background-color: #e53935;
}

.video-duration-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-duration-badge i {
    font-size: 0.7rem;
}

.video-label {
    background-color: #e53935;
}

/* Dark mode adjustments */
.darkmode .video-play-button {
    background-color: rgba(229, 57, 53, 0.85);
}

.darkmode .video-item:hover .video-play-button {
    background-color: #e53935;
}

/* Podcast item styling */
.podcast-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: all 0.3s ease;
    z-index: 2;
}

.podcast-item:hover .podcast-play-overlay {
    opacity: 1;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}

.podcast-play-button {
    width: 50px;
    height: 50px;
    background-color: rgba(156, 39, 176, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.podcast-play-button i {
    margin-left: 3px;
}

.podcast-item:hover .podcast-play-button {
    transform: scale(1.1);
    background-color: #9c27b0;
}

.podcast-duration-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.podcast-duration-badge i {
    font-size: 0.7rem;
}

.podcast-label {
    background-color: #9c27b0;
}

/* Audio wave animation for podcast items */
.podcast-item .budget-photo-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 20px;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIgMTBDMiAxMCAyIDE1IDIgMTVDMiAxNSA2IDE1IDYgMTBDNiA1IDYgNSA2IDVDNiA1IDIgNSAyIDEwWk0xMCAxOEMxMCAxOCAxMCAxOSAxMCAxOUMxMCAxOSAxNCAxOSAxNCAxMEMxNCAyIDE0IDIgMTQgMkMxNCAyIDEwIDIgMTAgMTBDMTAgMTggMTAgMTggMTAgMThaTTE4IDdDMTggNyAxOCAxNCAxOCAxNEMxOCAxNCAyMiAxNCAyMiAxMEMyMiA2IDIyIDYgMjIgNkMyMiA2IDE4IDYgMTggN1pNMjYgNUMyNiA1IDI2IDEyIDI2IDEyQzI2IDEyIDMwIDEyIDMwIDEwQzMwIDggMzAgOCAzMCA4QzMwIDggMjYgOCAyNiA1WkMzNCAxMkMzNCAxMiAzNCAxNiAzNCAxNkMzNCAxNiAzOCAxNiAzOCAxMkMzOCA4IDM4IDggMzggOEMzOCA4IDM0IDggMzQgMTJaIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjYiLz48L3N2Zz4=');
    background-repeat: no-repeat;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.podcast-item:hover .budget-photo-img-wrapper::after {
    opacity: 1;
}

/* Dark mode adjustments */
.darkmode .podcast-play-button {
    background-color: rgba(156, 39, 176, 0.85);
}

.darkmode .podcast-item:hover .podcast-play-button {
    background-color: #9c27b0;
}

/* Instagram Promo Button Styling */
.instagram-promo-container {
    margin: 0 0 20px;
    padding: 0 5px;
}

.instagram-promo-button {
    display: flex;
    align-items: center;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 12px;
    padding: 5px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.instagram-promo-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMzAgODBMNzAgMTIwTDExMCA4MEw3MCA0MEwzMCA4MFoiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4xKSIvPjxwYXRoIGQ9Ik0xMzAgNjBMMTcwIDEwMEwxMzAgMTQwTDkwIDEwMEwxMzAgNjBaIiBmaWxsPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMSkiLz48L3N2Zz4=') repeat;
    opacity: 0.2;
    z-index: 0;
    animation: bgMove 30s linear infinite;
}

.instagram-promo-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.instagram-icon-container {
    width: 55px;
    height: 55px;
    background-color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.instagram-icon-container i {
    font-size: 32px;
    background: -webkit-linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.instagram-promo-text {
    display: flex;
    flex-direction: column;
    margin: 0 15px;
    color: white;
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

.instagram-follow-text {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 3px;
}

.instagram-username {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.instagram-arrow {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.instagram-promo-button:hover .instagram-arrow {
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.instagram-promo-button:hover .instagram-icon-container {
    animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes bgMove {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 200px 200px;
    }
}

/* Dark mode adjustments */
.darkmode .instagram-icon-container {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Twitter/X Promo Button Styling */
.twitter-promo-container {
    margin: 0 0 20px;
    padding: 0 5px;
}

.twitter-promo-button {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #000000, #141d26);
    border-radius: 12px;
    padding: 5px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.twitter-promo-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQwLDIwIEwxNjAsMjAgTDE2MCw0MCBMMTQ1LDU1IEwxNDUsNzUgTDE2MCw5MCBMMTY1LDExMCBMMTQ1LDEyNSBMMTQwLDEQ1IEwxMjAsMzAgTDEzNSw0MCBMMTM1LDYwIEwxMjAsNzUgTDEwNSw3NSBMMTA1LDU1IEwxMjAsMzUgTDE0MCwyMFoiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wMykiLz48L3N2Zz4=') no-repeat center center;
    background-size: cover;
    opacity: 1;
    z-index: 0;
}

.twitter-promo-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.twitter-icon-container {
    width: 55px;
    height: 55px;
    background-color: #000000;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    transition: all 0.3s ease;
	color: #c9c9c9;
}

.twitter-icon-container i {
    font-size: 28px;
    color: white;
}

.twitter-promo-text {
    display: flex;
    flex-direction: column;
    margin: 0 15px;
    color: white;
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

.twitter-follow-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3px;
}

.twitter-username {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.twitter-arrow {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.twitter-promo-button:hover .twitter-arrow {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateX(-5px);
}

.twitter-promo-button:hover .twitter-icon-container {
    border-color: rgba(255, 255, 255, 0.3);
    transform: rotate(10deg);
}

/* For older Font Awesome versions that don't have fa-x-twitter */
.fa-x-twitter:before {
    content: "\58";
    font-family: sans-serif;
    font-weight: bold;
}

/* Dark mode adjustments */
.darkmode .twitter-promo-button {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.darkmode .twitter-promo-button:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* News Grid Desktop List View */
@media (min-width: 992px) {
    .header-container {
        justify-content: flex-start;
    }
    .header-right {
        margin-left: 0;
    }
    .main-nav {
        margin-left: 0;
    }
    .header-actions {
        margin-right: auto;
        margin-left: 0;
    }
    .news-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
        counter-reset: news-item;
    }
    
    .news-grid .news-card {
        display: flex;
        flex-direction: row;
        padding: 0;
        border-radius: 15px;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        border-right: 4px solid var(--accent-color);
        position: relative;
        z-index: 1;
        height: auto;
        min-height: 140px;
    }
    
    .news-grid .news-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to left, rgba(255,255,255,0.03), rgba(255,255,255,0));
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: -1;
        pointer-events: none;
    }
    
    .news-grid .news-card:hover::after {
        opacity: 1;
    }
    
    .news-grid .news-card:hover {
        transform: translateX(5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .news-grid .news-card-link {
        display: flex;
        flex-direction: row;
        height: 100%;
    }
    
    .news-grid .news-card-img-container {
        width: 132px;
        height: 100%;
        flex-shrink: 0;
        aspect-ratio: auto;
        border-radius: 12px;
       margin: 10px;
    }
    
    .news-grid .news-card-content {
        flex: 1;
        padding: 12px 20px;
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    
    .news-grid .news-card-content::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(to right, var(--accent-color), transparent);
        opacity: 0;
        transform: translateY(-3px);
        transition: all 0.3s ease;
    }
    
    .news-grid .news-card:hover .news-card-content::before {
        opacity: 1;
        transform: translateY(0);
    }
    
    .news-grid .news-card-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
        line-height: 1.6;
        position: relative;
        padding-right: 12px;
        transition: all 0.3s ease;
        display: block;
        overflow: visible;
        max-height: none;
        -webkit-line-clamp: unset;
        -webkit-box-orient: unset;
    }
    
    .news-grid .news-card-title::before {
        content: '';
        position: absolute;
        right: 0;
        top: 15%;
        height: 70%;
        width: 3px;
        background-color: var(--accent-color);
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .news-grid .news-card:hover .news-card-title {
        transform: translateX(3px);
        color: var(--accent-color);
    }
    
    .news-grid .news-card-excerpt {
        max-width: 95%;
        font-size: 0.85rem;
        margin-bottom: 10px;
        padding: 6px 18px 6px 10px;
        line-height: 1.6;
        border-right: 2px solid var(--accent-color);
        background-color: rgba(25, 118, 210, 0.03);
        border-radius: 4px;
        transition: all 0.3s ease;
        display: block;
        overflow: visible;
        max-height: none;
        -webkit-line-clamp: unset;
        -webkit-box-orient: unset;
    }
    
    .news-grid .news-card:hover .news-card-excerpt {
        transform: translateX(3px);
        background-color: rgba(25, 118, 210, 0.05);
    }
    
    .news-grid .news-card-meta {
        margin-top: 5px;
        display: flex;
        justify-content: space-between;
    }
    
    .news-grid .news-card-date {
        font-size: 0.75rem;
    }
    
    .news-grid .share-btn {
        padding: 3px 10px;
        font-size: 0.75rem;
        transform: scale(0.95);
        transition: all 0.3s ease;
    }
    
    .news-grid .news-card:hover .share-btn {
        transform: scale(1);
    }
    
    /* Number indicators on news items */
    .news-grid .news-card {
        counter-increment: news-item;
    }
    
    .news-grid .news-card::before {
        
        position: absolute;
        top: 12px;
        right: 15px;
        font-size: 1.5rem;
        font-weight: 700;
        color: rgba(0, 0, 0, 0.04);
        z-index: 1;
        transition: all 0.3s ease;
    }
    
    /* Different colors for different types of content */
    .news-grid .video-card {
        border-right-color: var(--danger-color);
    }
    
    .news-grid .photo-card {
        border-right-color: var(--success-color);
    }
    
    .news-grid .video-card .news-card-title::before {
        background-color: var(--danger-color);
    }
    
    .news-grid .photo-card .news-card-title::before {
        background-color: var(--success-color);
    }
    
    .news-grid .video-card:hover .news-card-title {
        color: var(--danger-color);
    }
    
    .news-grid .photo-card:hover .news-card-title {
        color: var(--success-color);
    }
    
    .news-grid .video-card .news-card-content::before {
        background: linear-gradient(to right, var(--danger-color), transparent);
    }
    
    .news-grid .photo-card .news-card-content::before {
        background: linear-gradient(to right, var(--success-color), transparent);
    }
    
    /* Dark mode specifics */
    .darkmode .news-grid .news-card {
        background-color: #1e1e1e;
    }
    
    .darkmode .news-grid .news-card::before {
        color: rgba(255, 255, 255, 0.06);
    }
}

@media (max-width: 992px) {
    .header-container {
        flex-direction: row;
    }
    .header-actions {
        margin-right: auto;
    }
}

/* Hide mobile elements in desktop version */
.nav-close,
.mobile-nav-footer,
.mobile-nav-overlay {
    display: none;
}

@media (min-width: 993px) {
    .mobile-nav-header {
        display: none;
    }
    
    .main-nav {
        position: static;
        background: transparent;
        box-shadow: none;
        padding: 0;
        height: auto;
        transform: none;
        border-radius: 0;
        overflow: visible;
        display: flex;
        flex-direction: row;
    }
    
    .nav-list {
        flex-direction: row;
        padding: 0;
        overflow: visible;
        width: auto;
    }
    
    .nav-link i {
        background-color: transparent;
        width: auto;
        height: auto;
        display: inline;
        border-radius: 0;
        margin-left: 5px;
    }
} 

 .news-grid {
    
    padding-right: 0px !important;
    padding-left: 0px !important;
  }

/* Modern Dark Mode Toggle Button */
#headerDarkModeButton {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: #f2f2f2;
    color: #f8c471; /* Sun color */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#headerDarkModeButton:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

#headerDarkModeButton i {
    position: absolute;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

#headerDarkModeButton .fa-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

#headerDarkModeButton .fa-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
    color: #85929e; /* Moon color */
}

/* Dark Mode Active Button Styles */
.darkmode #headerDarkModeButton {
    background-color: #2c3e50;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.darkmode #headerDarkModeButton .fa-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

.darkmode #headerDarkModeButton .fa-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    color: #f7dc6f; /* A nice yellow for the moon in dark mode */
}

/* Toast container for notifications */
.toast-container {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
    display: flex;
    align-items: center;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 280px;
    border-right: 3px solid var(--accent-color);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast i {
    margin-left: 12px;
    font-size: 18px;
}

.toast.dark-mode-on i {
    color: var(--accent-color);
}

.toast.dark-mode-off i {
    color: #f8a100;
}

.toast.bookmarked { border-right-color: #0b85ce; }
.toast.bookmarked i { color: #0b85ce; }

.toast.unbookmarked { border-right-color: #90a4ae; }
.toast.unbookmarked i { color: #90a4ae; }


.toast-message {
    font-size: 0.9rem;
    font-weight: 500;
}

.darkmode .toast {
    background-color: rgba(40, 40, 40, 0.9);
    color: #fff;
}

.darkmode .toast.dark-mode-on { border-right-color: var(--accent-color); }
.darkmode .toast.dark-mode-off { border-right-color: #f8a100; }
.darkmode .toast.bookmarked { border-right-color: #fdd835; }
.darkmode .toast.unbookmarked { border-right-color: #90a4ae; }

/* Favorites Modal */
.favorites-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.favorites-modal.active {
    display: flex;
    opacity: 1;
}

.favorites-modal-content {
    background-color: var(--background-light);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    height: 85vh;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.favorites-modal.active .favorites-modal-content {
    transform: translateY(0) scale(1);
}

.favorites-modal-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.favorites-modal-header h3 {
    font-size: 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
}

.favorites-modal-header h3 i {
    margin-left: 10px;
}

.favorites-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.favorites-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

.favorites-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.favorites-modal-body .news-grid {
    gap: 12px;
}

.favorites-modal-body .news-card {
    min-height: 110px;
}

.favorites-modal-body .news-card-img-link {
    width: 130px;
}

.favorites-modal-body .empty-favorites {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-secondary);
	line-height: 200%;
}

.favorites-modal-body .empty-favorites i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    color: var(--border-color);
}

.darkmode .favorites-modal-content {
    background-color: #212c42;
}
.darkmode .favorites-modal-body .empty-favorites {
    color: #9ab;
}
.darkmode .favorites-modal-body .empty-favorites i {
    color: #34495e;
}

/* Article Page Styles */
.article-card {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px var(--shadow-color);
    margin-bottom: 20px;
    overflow: hidden;
}

.article-header {
    padding: 25px 30px 20px;
    
}

.article-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.article-date i {
    margin-left: 8px;
}

.article-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-actions .action-btn {
    background-color: #f0f2f5;
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
}

.article-actions .action-btn.bookmarked,
.darkmode .article-actions .action-btn.bookmarked {
background-color: #0b85ce;
  color: #fff;
}

.article-actions .action-btn .fa-bookmark {
    font-weight: 400; /* Regular icon */
}

.article-actions .action-btn.bookmarked .fa-bookmark {
    font-family: "Font Awesome 6 Free";
    font-weight: 900; /* Solid icon */
}

.darkmode .article-actions .action-btn {
    background-color: #34495e;
    color: #bdc3c7;
}

.article-lead {
    margin-top: 20px;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    background-color: #ededed;
    padding: 15px 20px;
    border-radius: 8px;
    border-right: 3px solid var(--accent-color);
	text-align: justify;
}

.article-featured-image {
    padding: 10px;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
}

.article-content {
    padding: 20px 30px 30px;
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-color);
	padding-top: 0px;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

.article-content p {
margin-bottom: 1.5em;
  text-align: justify;
  line-height: 200% !important;
}

.article-content a {
    color: var(--accent-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.article-content blockquote {
    background-color: #f4f4f4;
    border-right: 4px solid var(--primary-color);
    margin: 20px 0;
    padding: 15px 20px;
    font-style: italic;
    color: #555;
}

.article-content .embedded-video {
    margin: 20px 0;
    text-align: center;
}

.article-content .embedded-video video {
    border-radius: 12px;
    background: #000;
    max-width: 100%;
}

.article-content .download-video-btn {
    display: inline-block;
  
  background: #0e875f;
  color: white;
  padding: 5px 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  text-align: center;
}

.article-content .download-video-btn:hover {
    background-color: var(--secondary-color);
}

.article-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
    background-color: #fafafa;
}

.article-tags, .article-source {
    margin-bottom: 10px;
}

.article-tags a, .article-source a {
    display: inline-block;
    background-color: #e9ecef;
    color: var(--text-secondary);
    padding: 5px 12px;
    margin: 3px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}
.article-tags a:hover, .article-source a:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Comments Section */
.comments-section {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px var(--shadow-color);
    padding: 25px 30px;
}

.comment-form .form-row {
    display: flex;
    gap: 20px;
}

.comment-form .form-group {
    flex: 1;
    margin-bottom: 15px;
}
.comment-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}
.comment-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.comment-form .form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.2);
}

.comment-form .btn-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
	font-family: Vazirmatn FD, sans-serif;
}
.comment-form .btn-submit:hover {
    background-color: var(--secondary-color);
}

.comment-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}
.comment-message.is-success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.comment-message.is-error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.comment-message.is-loading { background-color: #e2e3e5; color: #383d41; border: 1px solid #d6d8db; }


.comment-list-wrapper {
    margin-top: 30px;
}

.comment-item {
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 20px;
    position: relative;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}
.comment-author { font-weight: 600; color: var(--text-color); }
.comment-author i, .comment-date i { margin-left: 5px; }

.comment-body p {
    line-height: 1.8;
    margin: 0;
}

.comment-footer {
    margin-top: 15px;
}
.reply-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
	font-family: Vazirmatn FD, sans-serif;
}

.comment-replies {
    margin-top: 20px;
    padding-right: 25px;
    border-right: 3px solid #e9ecef;
}
.comment-item.is-reply {
    background-color: #f8f9fa;
    border-color: #e9ecef;
}

.reply-form-wrapper {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.is-reply-form .form-actions {
    display: flex;
    gap: 10px;
}
.is-reply-form .btn-cancel {
    background: #6c757d;
}

/* Dark Mode Article & Comments */
.darkmode .article-card,
.darkmode .comments-section {
    background-color: #1e1e1e;
    color: #eaeaea;
}
.darkmode .article-header,
.darkmode .article-footer {
    border-color: rgba(255,255,255,0.1);
}
.darkmode .article-footer { background-color: #212121; }
.darkmode .article-title { color: #fff; }
.darkmode .article-meta { color: #aaa; }
.darkmode .article-lead {
    background-color: #2d2d2d;
    color: #ccc;
    border-color: var(--accent-color);
}
.darkmode .article-content { color: #ccc; }
.darkmode .article-content a { color: #69a6d9; }
.darkmode .article-content blockquote {
    background-color: #2d2d2d;
    border-color: var(--accent-color);
    color: #ccc;
}
.darkmode .article-tags a, .darkmode .article-source a {
    background-color: #333;
    color: #ccc;
}
.darkmode .article-tags a:hover, .darkmode .article-source a:hover {
    background-color: var(--accent-color);
    color: white;
}

.darkmode .comment-form .form-control {
    background-color: #2d2d2d;
    border-color: #444;
    color: #eaeaea;
}
.darkmode .comment-item { border-color: #444; }
.darkmode .comment-author { color: #fff; }
.darkmode .comment-item.is-reply {
    background-color: #2d2d2d;
    border-color: #444;
}
.darkmode .comment-replies { border-color: #444; }


@media (max-width: 768px) {
    .article-header, .article-content, .article-footer, .comments-section {
        padding-left: 15px;
        padding-right: 15px;
    }
    .article-title {
        font-size: 1.5rem;
    }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Skeleton Loader for Lazy-loaded Images */
img.lazy:not(.loaded) {
    background: linear-gradient(
    90deg,
    #e0e0e0 25%,
    #f0f0f0 50%,
    #e0e0e0 75%
  );
    position: relative;
    overflow: hidden;
	animation: shimmer 1.5s infinite;
}



.darkmode img.lazy:not(.loaded) {
    background-color: #3a3a3a; /* Darker gray for dark mode */
}

img.lazy:not(.loaded)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: skeleton-loading 1.5s infinite;
}

.darkmode img.lazy:not(.loaded)::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

@keyframes skeleton-loading {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(100%);
    }
}

/* Reply Modal */
.reply-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 5000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reply-modal.active {
    display: flex;
    opacity: 1;
}

.reply-modal-content {
    background: #fff;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.reply-modal.active .reply-modal-content {
    transform: translateY(0) scale(1);
}

.reply-modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 18px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reply-modal-header h3 {
    font-size: 1.2rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reply-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.reply-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.reply-modal-body {
    padding: 25px;
}

.reply-to-info {
    background-color: #f0f2f5;
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    border-left: 4px solid var(--accent-color);
}

.reply-to-info span {
    color: var(--text-secondary);
}

.reply-to-info strong {
    color: var(--primary-color);
    font-weight: 600;
}

#reply-form .form-group {
    margin-bottom: 15px;
}

#reply-form .btn-submit {
    width: 100%;
    margin-top: 10px;
}

/* Dark Mode Reply Modal */
.darkmode .reply-modal-content {
    background: #1e273b;
}

.darkmode .reply-modal-body {
    color: #e0e0e0;
}

.darkmode .reply-to-info {
    background-color: #2c3e50;
    border-left-color: #3498db;
}

.darkmode .reply-to-info span {
    color: #bdc3c7;
}

.darkmode .reply-to-info strong {
    color: #ecf0f1;
}

.darkmode #reply-form .form-control {
    background-color: #2c3e50;
    border-color: #4a5a70;
    color: #ecf0f1;
}

.darkmode #reply-form .form-control::placeholder {
    color: #7f8c9b;
}

/* Video Explore Grid Styles */
.video-explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.video-grid-item {
    position: relative;
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: block;
}

.video-grid-item:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.video-grid-item-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-grid-item:hover .video-grid-item-thumb {
    transform: scale(1.1);
}

.video-grid-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%, rgba(0,0,0,0.2) 100%);
    opacity: 1; /* Make overlay always visible for title/date */
    transition: background 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    color: white;
}

.video-grid-item:hover .video-grid-item-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%, rgba(0,0,0,0.4) 100%);
}

.video-grid-item-top {
    display: flex;
    justify-content: flex-end;
}

.video-grid-item-duration {
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.video-grid-item-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 1;
}

.video-grid-item:hover .video-grid-item-play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-grid-item-bottom {
    text-align: right;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

.video-grid-item-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 200%;
}

.video-grid-item-date {
    font-size: 0.8rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
}

.darkmode .video-explore-grid .video-grid-item {
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.darkmode .video-explore-grid .video-grid-item:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

@media (max-width: 576px) {
    .video-explore-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .video-grid-item {
        aspect-ratio: 4 / 5;
    }

    .video-grid-item-title {
        font-size: 0.9rem;
    }
}

/* Photo Explore Grid Styles */
.photo-explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-auto-rows: 250px;
    grid-auto-flow: dense;
    gap: 15px;
}

.photo-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.photo-grid-item:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transform: scale(1.03);
}

.photo-grid-item:nth-child(5n+1) { grid-column: span 2; grid-row: span 2; }
.photo-grid-item:nth-child(5n+4) { grid-column: span 2; grid-row: span 1; }

.photo-grid-item-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.photo-grid-item:hover .photo-grid-item-thumb {
    transform: scale(1.1);
}

.photo-grid-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    transition: background 0.3s ease;
}

.photo-grid-item:hover .photo-grid-item-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
}

.photo-grid-item-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.photo-grid-item:hover .photo-grid-item-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.photo-grid-item-content {
    width: 100%;
    color: white;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.photo-grid-item-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.photo-grid-item-date {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .photo-explore-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
    .photo-grid-item:nth-child(n) { grid-column: auto; grid-row: auto; }
    .photo-grid-item:nth-child(3n+1) { grid-column: span 2; grid-row: span 1; }
}

.darkmode .sidebar-header .more-link:hover, 
.darkmode .archive-link:hover {
    background-color: #464c6a;
    color: white;
}

.darkmode .sidebar-block {
    background-color: #414d66;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.darkmode .sidebar-news-item {
    border-bottom-color: #3a4b5d;
    transition: background-color 0.2s ease;
}

.darkmode .sidebar-news-item:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

.darkmode .sidebar-news-title {
    color: #ecf0f1;
    transition: color 0.2s ease;
}

.darkmode .sidebar-news-item:hover .sidebar-news-title {
    color: #5dade2;
}

.darkmode .sidebar-news-date {
    color: #9ab;
}

.main-container {
  min-height: calc(100vh - 150px);
}

.darkmode .favorites-modal-body .empty-favorites i {
    color: #34495e;
}

/* Favorites Skeleton Loader */
.favorites-skeleton-loader {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-card.skeleton {
    background-color: transparent !important;
    pointer-events: none;
    border: none !important;
    box-shadow: none !important;
}

.news-card.skeleton:hover {
    transform: none !important;
}

.news-card.skeleton .skeleton-img-container,
.news-card.skeleton .skeleton-line {
    background: linear-gradient(
        110deg,
        #f0f2f5 8%,
        #e6e8eb 18%,
        #f0f2f5 33%
    );
    background-size: 200% 100%;
    animation: 1.5s skeleton-shine infinite linear;
    border-radius: 8px;
    color: transparent;
}

.darkmode .news-card.skeleton .skeleton-img-container,
.darkmode .news-card.skeleton .skeleton-line {
    background: linear-gradient(
        110deg,
        #2c3e50 8%,
        #34495e 18%,
        #2c3e50 33%
    );
    background-size: 200% 100%;
}

.news-card.skeleton .news-card-img-link {
    background-color: transparent;
    width: 130px;
    flex-shrink: 0;
}

.news-card.skeleton .skeleton-img-container {
    width: 100%;
    height: 110px;
}

.news-card.skeleton .news-card-content {
    justify-content: space-between;
}

.news-card.skeleton .action-btn-skeleton {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

@keyframes skeleton-shine {
    to {
        background-position-x: -200%;
    }
}

/* Mobile Style Loader */
.favorites-loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    width: 100%;
}

.mobile-loader {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-loader div {
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: mobile-loader-pulse 1.4s infinite ease-in-out both;
}

.mobile-loader div:nth-child(1) {
    animation-delay: -0.32s;
}

.mobile-loader div:nth-child(2) {
    animation-delay: -0.16s;
}

.darkmode .mobile-loader div {
    background-color: var(--accent-color);
}

@keyframes mobile-loader-pulse {
  0%, 80%, 100% { 
    transform: scale(0.5);
    opacity: 0.5;
  } 40% { 
    transform: scale(1.0);
    opacity: 1;
  }
}