/* Frontend News Page Styles */

:root {
    --otrc-navy: #212550;
    --otrc-gold: #d4af37;
    --otrc-light: #f8f9fa;
    --otrc-gray: #6c757d;
}

/* News Hero Section */
.news-hero {
    position: relative;
    min-height: 400px;
    background: linear-gradient(135deg, var(--otrc-navy) 0%, #1a1c3d 100%);
    background-image: url('/images/frontend/news-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.news-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(33, 37, 80, 0.85);
    z-index: 1;
}

.news-hero .container {
    position: relative;
    z-index: 2;
}

/* Featured Article */
.featured-article {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.featured-image {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

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

.featured-article:hover .featured-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--otrc-gold);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.featured-content {
    padding: 2rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--otrc-gray);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-title {
    color: var(--otrc-navy);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-excerpt {
    color: #64748b;
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* News Cards Grid */
.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

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

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

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

.news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(33, 37, 80, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.read-more-btn {
    background: white;
    color: var(--otrc-navy);
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: var(--otrc-gold);
    color: white;
    transform: scale(1.05);
}

.news-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--otrc-gray);
}

.news-meta .views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.news-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    flex: 1;
}

.news-title a {
    color: var(--otrc-navy);
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-title a:hover {
    color: var(--otrc-gold);
}

.news-excerpt {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* No Articles */
.no-articles {
    background: white;
    border-radius: 12px;
    padding: 4rem 2rem;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--otrc-navy) 0%, #1a1c3d 100%);
    padding: 4rem 0;
    margin-top: 5rem;
}

.newsletter-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.newsletter-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.newsletter-form .input-group {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    overflow: hidden;
}

.newsletter-form .form-control {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    height: auto;
}

.newsletter-form .btn {
    border-radius: 0;
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Article Page Styles */
.article-header {
    position: relative;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
}

.article-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(33, 37, 80, 0.9);
}

.article-header-content {
    position: relative;
    z-index: 2;
    padding: 4rem 0;
}

.article-header .breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 2rem;
}

.article-header .breadcrumb-item {
    color: rgba(255, 255, 255, 0.7);
}

.article-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-header .breadcrumb-item a:hover {
    color: var(--otrc-gold);
}

.article-header .breadcrumb-item.active {
    color: white;
}

.article-title {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.article-header .article-meta {
    color: rgba(255, 255, 255, 0.8);
    gap: 2rem;
}

.article-header .article-meta i {
    color: var(--otrc-gold);
}

/* Article Content */
.article-body {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

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

.article-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
}

.article-text h2 {
    color: var(--otrc-navy);
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-text h3 {
    color: var(--otrc-navy);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-text p {
    margin-bottom: 1.5rem;
}

.article-text ul,
.article-text ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-text li {
    margin-bottom: 0.5rem;
}

.article-text blockquote {
    border-left: 4px solid var(--otrc-gold);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--otrc-navy);
}

/* Share Section */
.share-section {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
}

.share-title {
    color: var(--otrc-navy);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.share-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

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

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

.share-btn.email {
    background: var(--otrc-navy);
}

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

/* Article Navigation */
.article-navigation {
    padding: 2rem 0;
    border-top: 1px solid #e5e7eb;
}

.nav-label {
    display: block;
    font-size: 0.875rem;
    color: var(--otrc-gray);
    margin-bottom: 0.5rem;
}

.nav-link {
    color: var(--otrc-navy);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--otrc-gold);
}

/* Sidebar Widgets */
.sidebar-widget {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.widget-title {
    color: var(--otrc-navy);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--otrc-gold);
}

/* Recent Articles Widget */
.recent-article {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.recent-article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

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

.recent-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-content {
    flex: 1;
}

.recent-title {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.recent-title a {
    color: var(--otrc-navy);
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-title a:hover {
    color: var(--otrc-gold);
}

.recent-date {
    font-size: 0.8rem;
    color: var(--otrc-gray);
}

/* Related Articles */
.related-articles {
    background: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 992px) {
    .article-title {
        font-size: 2rem;
    }

    .featured-title {
        font-size: 1.5rem;
    }

    .article-body {
        padding: 2rem;
    }
}

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

    .featured-image img {
        height: 250px;
    }

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

    .article-title {
        font-size: 1.75rem;
    }

    .article-header .article-meta {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .article-body {
        padding: 1.5rem;
    }

    .article-text {
        font-size: 1rem;
    }

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

    .sidebar-widget {
        padding: 1.5rem;
    }
}