:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #141925;
    --bg-card: #1a1f2e;
    --bg-hover: #232937;
    --text-primary: #e4e6eb;
    --text-secondary: #b0b3b8;
    --p1: 246, 87, 30; /* RGB color */
    --accent: rgb(var(--p1));
    --accent-hover: #d54d1b;
    --border-color: #2a3142;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.container-single {
    margin: 0 auto;
    padding: 20px;
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    font-size: 13px;
    color: var(--text-secondary);
}
.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}
.breadcrumb a:hover {
    color: var(--accent);
}

/* Layout Wrapper */
.news-layout {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

/* Sidebar Column */
.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
    flex: 0 0 25%; /* 3 از 12 */
}

/* Sidebar عمومی */
.sidebar {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.sidebar-title {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 20px;
    position: relative;
}
.sidebar-title::after {
    content: "";
    position: absolute;
    bottom: -9px;
    right: 0;
    width: 50%;
    height: 3px;
    background: var(--gradient);
    border-radius: 4px;
}

.sidebar-item {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}
.sidebar-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.sidebar-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.sidebar-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-link {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.3s;
}
.sidebar-link:hover {
    color: var(--accent);
}

.sidebar-date {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 4px;
}

/* Main Article */
.news-article {
    flex: 0 0 75%; /* 9 از 12 */
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    margin: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.news-image-container {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
}
.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.news-image-container:hover .news-image {
    transform: scale(1.05);
}

.news-content {
    padding: 30px;
}

.news-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 700;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}
.news-meta-item {
    display: flex;
    align-items: center;
}
.news-meta-item i {
    margin-left: 8px;
    color: var(--accent);
    font-size: 13px;
}

.news-description {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--text-primary);
}
.news-description p {
    line-height: 50px;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 25px;
}

.tag {
    background-color: var(--bg-hover);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s;
    cursor: pointer;
}
.tag:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-2px);
}

/* Related News Slider */
.related-news {
    margin-top: 50px;
    position: relative;
}

.section-title {
    font-size: 22px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient);
}

.slider-container {
    position: relative;
    overflow: hidden;
    padding: 10px 50px 30px;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.4s ease;
}

.news-card {
    flex: 0 0 280px;
    background-color: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    margin-left: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    cursor: pointer;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.news-card-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.news-card-content {
    padding: 15px;
}
.news-card-title {
    font-size: 15px;
    margin-bottom: 10px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}
.news-card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 12px;
}
.news-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.news-card-meta i {
    color: var(--accent);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--bg-hover);
    color: var(--text-primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.slider-btn:hover:not(:disabled) {
    background-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
}
.slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.slider-btn.prev {
    right: 10px;
}
.slider-btn.next {
    left: 10px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: all 0.3s;
}
.dot.active {
    background-color: var(--accent);
    width: 24px;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .news-layout {
        flex-direction: column;
    }
    .sidebar-column {
        order: 2;
        width: 100%;
        flex: 0 0 auto;
    }
    .news-article {
        order: 1;
        flex: 0 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .news-title {
        font-size: 24px;
    }
    .news-image-container {
        height: 250px;
    }
    .news-card {
        flex: 0 0 240px;
    }
    .slider-btn {
        width: 35px;
        height: 35px;
    }
    .news-description p{
        line-height: 30px;
        text-align: justify;
    }
}

.red-ball{
    background-color: #0a0e1a;
}

h2{
    font-weight: 700;
    font-size: 1.5rem;
}
