/**
 * Valley View University - News Portal Styles
 * Modern, responsive news page styling
 */

/* =====================================================
   CSS VARIABLES
   ===================================================== */
:root {
    --news-primary: #002147;
    --news-secondary: #f26838;
    --news-accent: #00a0d2;
    --news-success: #28a745;
    --news-warning: #ffc107;
    --news-danger: #dc3545;
    --news-light: #f8f9fa;
    --news-dark: #1a1a2e;
    --news-gray: #6c757d;
    --news-gray-light: #e9ecef;

    --news-gradient: linear-gradient(135deg, var(--news-primary) 0%, #003366 100%);
    --news-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --news-shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.15);
    --news-border-radius: 12px;
    --news-transition: all 0.3s ease;
}

/* =====================================================
   NEWS PORTAL BASE
   ===================================================== */
.news-portal {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 100vh;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.news-hero {
    position: relative;
    min-height: 550px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.news-hero-default {
    min-height: 350px;
    align-items: center;
}

.news-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    transition: transform 8s ease;
}

.news-hero:hover .news-hero-bg {
    transform: scale(1);
}

.news-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top,
            rgba(0, 33, 71, 0.95) 0%,
            rgba(0, 33, 71, 0.7) 30%,
            rgba(0, 33, 71, 0.3) 70%,
            rgba(0, 33, 71, 0.1) 100%);
}

.news-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 60px 0;
}

.news-hero-content .container {
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(242, 104, 56, 0.95);
    color: white;
    padding: 8px 18px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease;
}

.badge-icon {
    display: flex;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.hero-category {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-title {
    color: white !important;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-excerpt {
    color: #ffffff !important;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 700px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #ffffff !important;
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-meta i {
    margin-right: 8px;
    color: #ffffff !important;
    opacity: 1 !important;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--news-secondary);
    color: white !important;
    padding: 16px 32px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--news-transition);
    animation: fadeInUp 0.6s ease 0.5s both;
    box-shadow: 0 4px 20px rgba(242, 104, 56, 0.4);
}

.hero-btn:hover {
    background: white;
    color: var(--news-primary) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.hero-btn i {
    transition: transform 0.3s ease;
}

.hero-btn:hover i {
    transform: translateX(5px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   FILTERS SECTION
   ===================================================== */
.news-filters {
    background: white;
    padding: 24px 0;
    border-bottom: 1px solid var(--news-gray-light);
    position: sticky;
    top: 120px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filters-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filters-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    background: var(--news-light);
    color: var(--news-gray) !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--news-transition);
    border: 2px solid transparent;
}

.filter-btn:hover {
    background: rgba(242, 104, 56, 0.1);
    color: var(--news-secondary) !important;
    text-decoration: none;
}

.filter-btn.active {
    background: var(--news-secondary);
    color: white !important;
    box-shadow: 0 4px 15px rgba(242, 104, 56, 0.3);
}

.filters-search {
    flex-shrink: 0;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--news-gray);
}

.search-input-wrapper input {
    width: 280px;
    padding: 12px 40px 12px 44px;
    border: 2px solid var(--news-gray-light);
    border-radius: 25px;
    font-size: 14px;
    transition: var(--news-transition);
    background: white;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--news-secondary);
    box-shadow: 0 0 0 4px rgba(242, 104, 56, 0.1);
}

.search-clear {
    position: absolute;
    right: 12px;
    color: var(--news-gray);
    padding: 5px;
}

.search-clear:hover {
    color: var(--news-danger);
}

.search-btn {
    padding: 12px 24px;
    background: var(--news-primary);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--news-transition);
}

.search-btn:hover {
    background: var(--news-secondary);
    transform: translateY(-2px);
}

.search-results-info {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--news-gray-light);
    color: var(--news-gray);
    font-size: 14px;
}

.search-results-info strong {
    color: var(--news-primary);
}

/* =====================================================
   NEWS GRID
   ===================================================== */
.news-grid-section {
    padding: 60px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: var(--news-border-radius);
    overflow: hidden;
    box-shadow: var(--news-shadow);
    transition: var(--news-transition);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--news-shadow-hover);
}

.news-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-card-link:hover {
    text-decoration: none;
}

.news-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

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

.news-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card:hover .news-card-overlay {
    opacity: 1;
}

.featured-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--news-secondary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-card-content {
    padding: 24px;
}

.news-card-category {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Category Colors */
.news-category-news {
    background: rgba(0, 160, 210, 0.15);
    color: #00a0d2;
}

.news-category-events {
    background: rgba(156, 39, 176, 0.15);
    color: #9c27b0;
}

.news-category-announcements {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
}

.news-category-press {
    background: rgba(0, 33, 71, 0.15);
    color: var(--news-primary);
}

.news-category-academic {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.news-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--news-primary);
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

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

.news-card-excerpt {
    color: var(--news-gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--news-gray);
    font-size: 13px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--news-gray-light);
}

.news-card-meta i {
    margin-right: 6px;
    color: var(--news-secondary);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--news-secondary);
    font-size: 14px;
    font-weight: 700;
    transition: gap 0.3s ease;
}

.news-card:hover .read-more {
    gap: 12px;
}

/* =====================================================
   NO ARTICLES
   ===================================================== */
.no-articles {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: var(--news-border-radius);
    box-shadow: var(--news-shadow);
}

.no-articles-icon {
    font-size: 60px;
    color: var(--news-gray-light);
    margin-bottom: 24px;
}

.no-articles h3 {
    font-size: 24px;
    color: var(--news-primary);
    margin-bottom: 12px;
}

.no-articles p {
    color: var(--news-gray);
    margin-bottom: 24px;
}

.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--news-primary);
    color: white !important;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--news-transition);
}

.btn-primary:hover {
    background: var(--news-secondary);
    transform: translateY(-2px);
    text-decoration: none;
}

/* =====================================================
   PAGINATION
   ===================================================== */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    color: var(--news-primary) !important;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--news-shadow);
    transition: var(--news-transition);
}

.pagination-btn:hover {
    background: var(--news-primary);
    color: white !important;
    text-decoration: none;
}

.pagination-numbers {
    display: flex;
    gap: 6px;
}

.pagination-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: white;
    color: var(--news-primary) !important;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--news-shadow);
    transition: var(--news-transition);
}

.pagination-num:hover,
.pagination-num.active {
    background: var(--news-secondary);
    color: white !important;
    text-decoration: none;
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--news-gray);
}

/* =====================================================
   NEWSLETTER
   ===================================================== */
.news-newsletter {
    padding: 80px 0;
    background: var(--news-gradient);
    margin-top: 40px;
}

.newsletter-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.newsletter-content {
    flex: 1;
    min-width: 300px;
}

.newsletter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    font-size: 24px;
    color: white;
    margin-bottom: 20px;
}

.newsletter-content h2 {
    color: white !important;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 16px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 15px;
    transition: var(--news-transition);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.newsletter-form button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--news-secondary);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--news-transition);
}

.newsletter-form button:hover {
    background: white;
    color: var(--news-primary);
    transform: translateY(-2px);
}

/* =====================================================
   ARTICLE DETAIL PAGE
   ===================================================== */
.news-detail-page {
    background: var(--news-light);
}

/* Article Header */
.article-header {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.article-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.article-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top,
            rgba(0, 33, 71, 0.95) 0%,
            rgba(0, 33, 71, 0.6) 50%,
            rgba(0, 33, 71, 0.2) 100%);
}

.article-header-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 40px 0 60px 0;
}



.article-category {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.article-title {
    color: white !important;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 1000px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.5px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    color: #ffffff !important;
    font-size: 15px;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 24px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-meta span,
.article-meta i,
.meta-item span,
.meta-item i {
    color: #ffffff !important;
    opacity: 1 !important;
}



.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item i {
    color: #ffffff;
    opacity: 0.9;
}

.meta-item.author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-avatar i {
    color: white;
    font-size: 16px;
}

/* Article Content Section */
.article-content-section {
    padding: 60px 0;
}

.article-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.article-main {
    background: white;
    border-radius: var(--news-border-radius);
    padding: 40px;
    box-shadow: var(--news-shadow);
    overflow: hidden;
    max-width: 100%;
}

.article-featured-image {
    margin: 0 0 32px 0;
    border-radius: 12px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-lead {
    font-size: 20px;
    font-weight: 500;
    color: var(--news-primary);
    line-height: 1.6;
    padding: 20px 24px;
    background: var(--news-light);
    border-left: 4px solid var(--news-secondary);
    border-radius: 0 8px 8px 0;
    margin-bottom: 32px;
}

.article-body {
    color: #333;
    font-size: 17px;
    line-height: 1.8;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    overflow-x: hidden;
}

/* Constrain all CKEditor-generated child elements */
.article-body * {
    max-width: 100% !important;
    box-sizing: border-box;
}

.article-body pre {
    overflow-x: auto;
    white-space: pre-wrap;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    color: var(--news-primary);
    margin-top: 36px;
    margin-bottom: 16px;
}

.article-body h2 {
    font-size: 28px;
}

.article-body h3 {
    font-size: 22px;
}

.article-body h4 {
    font-size: 18px;
}

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body blockquote {
    margin: 30px 0;
    padding: 24px 30px;
    background: var(--news-light);
    border-left: 4px solid var(--news-secondary);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 18px;
    color: var(--news-gray);
}

.article-body table {
    width: 100%;
    max-width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
}

.article-body table td,
.article-body table th {
    padding: 12px 16px;
    border: 1px solid var(--news-gray-light);
}

.article-body table th {
    background: var(--news-primary);
    color: white;
}

.article-body table tr:nth-child(even) {
    background: var(--news-light);
}

.article-body a {
    color: var(--news-secondary);
    text-decoration: underline;
}

.article-body a:hover {
    color: var(--news-primary);
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Article Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid var(--news-gray-light);
}

.tags-label {
    color: var(--news-gray);
    font-weight: 600;
}

.tags-label i {
    margin-right: 6px;
}

.tag-item {
    padding: 6px 14px;
    background: var(--news-light);
    color: var(--news-gray) !important;
    border-radius: 15px;
    font-size: 13px;
    text-decoration: none;
    transition: var(--news-transition);
}

.tag-item:hover {
    background: var(--news-secondary);
    color: white !important;
    text-decoration: none;
}

/* Article Share */
.article-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    margin-top: 24px;
    border-top: 1px solid var(--news-gray-light);
}

.share-label {
    color: var(--news-gray);
    font-weight: 600;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white !important;
    font-size: 18px;
    text-decoration: none;
    transition: var(--news-transition);
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-3px);
}

.share-facebook {
    background: #1877f2;
}

.share-twitter {
    background: #1da1f2;
}

.share-linkedin {
    background: #0077b5;
}

.share-whatsapp {
    background: #25d366;
}

.share-copy {
    background: var(--news-gray);
}

.share-copy.copied {
    background: var(--news-success);
}

/* Article Navigation */
.article-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--news-gray-light);
}

.nav-back,
.nav-category {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--news-light);
    color: var(--news-primary) !important;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--news-transition);
}

.nav-back:hover,
.nav-category:hover {
    background: var(--news-primary);
    color: white !important;
    text-decoration: none;
}

/* Article Sidebar */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: white;
    border-radius: var(--news-border-radius);
    padding: 24px;
    box-shadow: var(--news-shadow);
}

.sidebar-card h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--news-primary);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--news-secondary);
}

.sidebar-card h4 i {
    color: var(--news-secondary);
}

/* Event Info Card */
.event-details {
    margin-bottom: 20px;
}

.event-detail {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--news-gray-light);
}

.event-detail:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--news-gray);
    font-weight: 600;
}

.detail-value {
    color: var(--news-primary);
    font-weight: 600;
}

.btn-event-register {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: var(--news-secondary);
    color: white !important;
    border-radius: 25px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--news-transition);
}

.btn-event-register:hover {
    background: var(--news-primary);
    text-decoration: none;
}

/* Categories Card */
.categories-list,
.quick-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li,
.quick-links-list li {
    margin-bottom: 8px;
}

.categories-list li:before,
.quick-links-list li:before {
    display: none !important;
}

.categories-list a,
.quick-links-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--news-primary) !important;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--news-transition);
}

.categories-list a:hover,
.quick-links-list a:hover {
    background: var(--news-light);
    color: var(--news-secondary) !important;
    text-decoration: none;
}

.categories-list a i,
.quick-links-list a i {
    color: var(--news-secondary);
    width: 20px;
}

/* Recent Posts Sidebar */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recent-post-item {
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--news-gray-light);
    text-decoration: none !important;
    transition: var(--news-transition);
}

.recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-image {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recent-post-item:hover .recent-post-image img {
    transform: scale(1.1);
}

.recent-post-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recent-post-info h5 {
    color: var(--news-primary);
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.recent-post-item:hover h5 {
    color: var(--news-secondary);
}

.recent-post-date {
    font-size: 12px;
    color: var(--news-gray);
}


/* Related Articles */
.related-articles-section {
    padding: 60px 0;
    background: white;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--news-primary);
    font-size: 28px;
    font-weight: 800;
    margin: 0;
}

.section-header h2 i {
    color: var(--news-secondary);
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--news-secondary) !important;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.view-all-link:hover {
    gap: 12px;
    text-decoration: none;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-article-card {
    border-radius: var(--news-border-radius);
    overflow: hidden;
    box-shadow: var(--news-shadow);
    transition: var(--news-transition);
}

.related-article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--news-shadow-hover);
}

.related-article-card a {
    display: block;
    text-decoration: none;
}

.related-image {
    height: 180px;
    overflow: hidden;
}

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

.related-article-card:hover .related-image img {
    transform: scale(1.1);
}

.related-content {
    padding: 20px;
    background: white;
}

.related-category {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.related-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--news-primary);
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-article-card:hover .related-content h3 {
    color: var(--news-secondary);
}

.related-date {
    color: var(--news-gray);
    font-size: 13px;
}

.related-date i {
    margin-right: 6px;
    color: var(--news-secondary);
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media screen and (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .article-wrapper {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-card {
        flex: 1;
        min-width: 280px;
    }

    .news-hero {
        min-height: 450px;
    }

    .hero-title {
        font-size: 32px;
    }

    .article-title {
        font-size: 32px;
    }
}

@media screen and (max-width: 768px) {
    .news-hero {
        min-height: 400px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-excerpt {
        font-size: 16px;
    }

    .news-filters {
        position: static;
    }

    .filters-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .filters-categories {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        flex-wrap: nowrap;
    }

    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .filters-search {
        width: 100%;
    }

    .search-form {
        flex-direction: column;
    }

    .search-input-wrapper {
        width: 100%;
    }

    .search-input-wrapper input {
        width: 100%;
    }

    .search-btn {
        width: 100%;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-grid-section {
        padding: 40px 0;
    }

    .article-main {
        padding: 16px;
        overflow: hidden;
    }

    .article-body iframe,
    .article-body video,
    .article-body embed,
    .article-body object {
        max-width: 100% !important;
        width: 100% !important;
    }

    .article-content-section {
        padding: 30px 0;
    }

    .article-title {
        font-size: 26px;
    }

    .article-header {
        min-height: 400px;
    }

    .article-meta {
        gap: 16px;
    }

    .article-navigation {
        flex-direction: column;
    }

    .nav-back,
    .nav-category {
        justify-content: center;
    }

    .related-articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .newsletter-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
        max-width: 100%;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    .pagination-btn span {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }

    .news-card-content {
        padding: 20px;
    }

    .news-card-title {
        font-size: 18px;
    }

    .article-body {
        font-size: 16px;
        overflow-x: hidden;
    }

    .article-main {
        padding: 12px;
    }

    .article-lead {
        font-size: 18px;
        padding: 16px 20px;
    }

    .share-buttons {
        flex-wrap: wrap;
    }

    .sidebar-card {
        min-width: 100%;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--news-secondary);
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(242, 104, 56, 0.4);
    border: none;
    outline: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--news-primary);
    transform: translateY(-5px);
}

/* =====================================================
   BREADCRUMB NAVIGATION
   ===================================================== */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breadcrumb-nav,
.breadcrumb-nav a {
    color: #ffffff !important;
    opacity: 0.9;
    transition: var(--news-transition);
}

.breadcrumb-nav a:hover {
    color: white !important;
    text-decoration: none;
}

/* =====================================================
   EVENT DATE BADGE
   ===================================================== */
.event-date-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: white;
    padding: 10px 14px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    z-index: 5;
    transition: transform 0.3s ease;
}

.news-card:hover .event-date-badge {
    transform: translateY(-5px);
}

.event-date-badge .month {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--news-secondary);
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 2px;
}

.event-date-badge .day {
    display: block;
    font-size: 24px;
    font-weight: 900;
    color: var(--news-primary);
    line-height: 1;
}

/* =====================================================
   ANIMATIONS & TRANSITIONS
   ===================================================== */
@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.news-card {
    animation: slideUp 0.5s ease backwards;
}

.news-card:nth-child(2) {
    animation-delay: 0.1s;
}

.news-card:nth-child(3) {
    animation-delay: 0.2s;
}

.news-card:nth-child(4) {
    animation-delay: 0.3s;
}

.news-card:nth-child(5) {
    animation-delay: 0.4s;
}

.news-card:nth-child(6) {
    animation-delay: 0.5s;
}