/**
 * News Custom Styles
 */

/* News Card Styles */
.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.news-card-img {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: #f5f5f5;
}

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

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

.news-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-meta {
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}

.news-card-meta i {
    margin-right: 5px;
    color: var(--theme-color, #ff6b35);
}

.news-card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card-title a:hover {
    color: var(--theme-color, #ff6b35);
}

.news-card-text {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.news-card .link-btn {
    color: var(--theme-color, #ff6b35);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    margin-top: auto;
}

.news-card .link-btn i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.news-card .link-btn:hover {
    color: var(--theme-color, #ff6b35);
}

.news-card .link-btn:hover i {
    transform: translateX(5px);
}

/* Gallery Grid */
.gallery-grid {
    margin-top: 20px;
}

.gallery-grid img {
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

.gallery-grid a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

/* Alert Styles */
.alert {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-heading {
    margin-bottom: 10px;
}

/* Article Detail Styles */
#article-featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

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

.blog-content {
    margin-top: 30px;
}

.blog-content .blog-meta {
    margin-bottom: 20px;
}

.blog-content .blog-meta a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.blog-content .blog-meta i {
    margin-right: 5px;
    color: var(--theme-color, #ff6b35);
}

.blog-content .blog-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #333;
}

.blog-content #article-headline {
    font-size: 20px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.blog-content #article-description {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.blog-content #article-description p {
    margin-bottom: 20px;
}

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

.blog-content #article-description h1,
.blog-content #article-description h2,
.blog-content #article-description h3,
.blog-content #article-description h4,
.blog-content #article-description h5,
.blog-content #article-description h6 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

.blog-content #article-description ul,
.blog-content #article-description ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.blog-content #article-description li {
    margin-bottom: 10px;
}

.blog-content #article-description a {
    color: var(--theme-color, #ff6b35);
    text-decoration: none;
}

.blog-content #article-description a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .news-card-img {
        height: 200px;
    }

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

    .blog-content .blog-title {
        font-size: 24px;
    }

    .blog-content #article-headline {
        font-size: 18px;
    }

    .gallery-grid .col-md-4 {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .news-card-content {
        padding: 15px;
    }

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

    .blog-content .blog-title {
        font-size: 20px;
    }
}

/* Empty State */
#news-empty,
#article-not-found {
    padding: 60px 20px;
}

#news-empty .alert,
#article-not-found .alert {
    max-width: 600px;
    margin: 0 auto;
}

/* Error State */
#news-error,
#article-error {
    padding: 60px 20px;
}

#news-error .alert,
#article-error .alert {
    max-width: 600px;
    margin: 0 auto;
}

