/* News Pages Specific Styles */

/* Common Page Header Styles */
.news-header,
.news-detail-header {
    background: linear-gradient(rgba(0, 0, 32, 0.7), rgba(0, 0, 32, 0.7)), url('../images/news-header-bg.jpg') no-repeat center center;
    background-size: cover;
    padding: 80px 0;
    color: #fff;
    text-align: center;
}

.page-header-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breadcrumb {
    font-size: 16px;
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Common Section Styles */
.news-list-section,
.news-detail-section {
    padding: 80px 0;
    background-color: #fff;
}

/* Common Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header .subtitle {
    color: #5e2d91;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.section-header .title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    position: relative;
    padding-bottom: 20px;
}

.section-header .title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #5e2d91;
}

/* Common Content Layout */
.news-content {
    display: flex;
    gap: 40px;
}

/* Common Sidebar Styles */
.news-sidebar {
    width: 350px;
    flex-shrink: 0;
}

.news-sidebar > div {
    margin-bottom: 40px;
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
}

.news-sidebar h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.news-sidebar h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #5e2d91;
}

/* Search Box */
.search-box form {
    display: flex;
    position: relative;
}

.search-box input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    font-size: 14px;
}

.search-box button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 50px;
    background-color: #5e2d91;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: #4a2372;
}

/* Categories */
.news-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-categories li {
    border-bottom: 1px solid #e1e1e1;
}

.news-categories li:last-child {
    border-bottom: none;
}

.news-categories a {
    display: block;
    padding: 12px 0;
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-categories a:hover {
    color: #5e2d91;
    padding-left: 5px;
}

/* Popular Posts */
.popular-posts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-posts li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e1e1;
}

.popular-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-posts a {
    text-decoration: none;
    color: #333;
}

.post-title {
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.popular-posts a:hover .post-title {
    color: #5e2d91;
}

.post-date {
    font-size: 13px;
    color: #888;
}

/* Tags */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud a {
    display: inline-block;
    padding: 6px 12px;
    background-color: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 30px;
    color: #555;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-cloud a:hover {
    background-color: #5e2d91;
    color: #fff;
    border-color: #5e2d91;
}

/* Newsletter Box */
.newsletter-box p {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.newsletter-box form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-box input[type="email"] {
    padding: 12px 15px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    font-size: 14px;
}

.newsletter-box button {
    padding: 12px 15px;
    background-color: #5e2d91;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.newsletter-box button:hover {
    background-color: #4a2372;
}

/* Contact CTA Box */
.contact-cta-box {
    text-align: center;
    background-color: #5e2d91 !important;
    color: #fff;
}

.contact-cta-box h3 {
    color: #fff;
}

.contact-cta-box h3:after {
    background-color: #fff;
}

.contact-cta-box p {
    margin-bottom: 20px;
    font-size: 14px;
}

.contact-cta-box .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #fff;
    color: #5e2d91;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.contact-cta-box .btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Newsletter Section */
.newsletter-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.newsletter-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.newsletter-text {
    flex: 1;
}

.newsletter-text h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
}

.newsletter-text p {
    color: #666;
    font-size: 16px;
}

.newsletter-form {
    flex: 1;
    display: flex;
}

.newsletter-form form {
    display: flex;
    width: 100%;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 15px;
    border: 1px solid #e1e1e1;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.newsletter-form button {
    padding: 15px 25px;
    background-color: #5e2d91;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #4a2372;
}

/* CTA Section */
.cta-section {
    background-color: #5e2d91;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-white {
    display: inline-block;
    padding: 15px 30px;
    background-color: #fff;
    color: #5e2d91;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-white:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Pagination */
.pagination {
    margin-top: 50px;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    text-decoration: none;
    color: #555;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination span.current {
    background-color: #5e2d91;
    color: #fff;
    border-color: #5e2d91;
}

/* News List Page Specific Styles */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #5e2d91;
    color: #fff;
    padding: 5px 10px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}

.news-details {
    padding: 25px;
    position: relative;
}

.news-date {
    position: absolute;
    top: -25px;
    left: 25px;
    width: 60px;
    height: 60px;
    background-color: #5e2d91;
    color: #fff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.news-date .day {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.news-date .month {
    font-size: 14px;
    text-transform: uppercase;
}

.news-title {
    margin: 15px 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #5e2d91;
}

.news-excerpt {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 13px;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    color: #5e2d91;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: #4a2372;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* News Detail Page Specific Styles */
.news-main {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.news-header {
    margin-bottom: 30px;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    color: #666;
    font-size: 14px;
}

.news-meta span {
    display: flex;
    align-items: center;
}

.news-meta i {
    margin-right: 5px;
    color: #5e2d91;
}

.news-featured-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.news-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-body {
    padding: 30px;
    color: #444;
    line-height: 1.8;
    font-size: 16px;
}

.news-body h2 {
    margin: 30px 0 15px;
    font-size: 24px;
    color: #333;
}

.news-body h3 {
    margin: 25px 0 15px;
    font-size: 20px;
    color: #333;
}

.news-body p {
    margin-bottom: 20px;
}

.news-body ul,
.news-body ol {
    margin: 0 0 20px 20px;
}

.news-body li {
    margin-bottom: 10px;
}

.news-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.news-body blockquote {
    border-left: 4px solid #5e2d91;
    padding: 15px 20px;
    margin: 20px 0;
    background-color: #f8f9fa;
    font-style: italic;
    color: #555;
}

.news-body pre {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.news-body code {
    font-family: monospace;
}

/* News Tags */
.news-tags {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    border-top: 1px solid #e1e1e1;
    border-bottom: 1px solid #e1e1e1;
}

.tag-label {
    font-weight: 600;
    margin-right: 10px;
    color: #333;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-list a {
    display: inline-block;
    padding: 5px 10px;
    background-color: #f8f9fa;
    border-radius: 30px;
    color: #555;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-list a:hover {
    background-color: #5e2d91;
    color: #fff;
}

/* News Share */
.news-share {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e1e1e1;
}

.share-label {
    font-weight: 600;
    margin-right: 15px;
    color: #333;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    transition: transform 0.3s ease;
}

.share-buttons a:hover {
    transform: translateY(-3px);
}

.share-buttons .linkedin {
    background-color: #0077b5;
}

.share-buttons .twitter {
    background-color: #1da1f2;
}

.share-buttons .facebook {
    background-color: #3b5998;
}

.share-buttons .email {
    background-color: #666;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 20px;
    padding: 30px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e1e1e1;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h3 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #333;
}

.author-info p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.author-social {
    display: flex;
    gap: 10px;
}

.author-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #5e2d91;
    color: #fff;
    transition: background-color 0.3s ease;
}

.author-social a:hover {
    background-color: #4a2372;
}

/* Related Articles */
.related-articles {
    padding: 30px;
}

.related-articles h2 {
    margin: 0 0 20px;
    font-size: 24px;
    color: #333;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-image {
    height: 150px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.05);
}

.related-details {
    padding: 15px;
}

.related-details h3 {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.4;
}

.related-details h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-details h3 a:hover {
    color: #5e2d91;
}

.related-meta {
    color: #888;
    font-size: 13px;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    border-top: 1px solid #e1e1e1;
}

.prev-post,
.next-post {
    flex: 1;
    padding: 20px;
}

.next-post {
    text-align: right;
    border-left: 1px solid #e1e1e1;
}

.post-navigation a {
    text-decoration: none;
    color: #333;
    display: block;
}

.nav-label {
    display: block;
    color: #5e2d91;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.nav-title {
    font-size: 16px;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-navigation a:hover .nav-title {
    color: #5e2d91;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 992px) {
    .news-content {
        flex-direction: column;
    }
    
    .news-sidebar {
        width: 100%;
        order: 2;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form form {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .news-featured-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .page-header-content h1 {
        font-size: 32px;
    }
    
    .news-header,
    .news-detail-header {
        padding: 60px 0;
    }
    
    .news-list-section,
    .news-detail-section {
        padding: 60px 0;
    }
    
    .section-header .title {
        font-size: 28px;
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .news-meta {
        gap: 10px;
        padding: 15px;
    }
    
    .news-body {
        padding: 20px;
    }
    
    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .author-social {
        justify-content: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .post-navigation {
        flex-direction: column;
    }
    
    .next-post {
        text-align: left;
        border-left: none;
        border-top: 1px solid #e1e1e1;
    }
}

@media (max-width: 576px) {
    .page-header-content h1 {
        font-size: 28px;
    }
    
    .news-header,
    .news-detail-header {
        padding: 40px 0;
    }
    
    .news-list-section,
    .news-detail-section {
        padding: 40px 0;
    }
    
    .section-header .title {
        font-size: 24px;
    }
    
    .news-featured-image {
        height: 200px;
    }
    
    .news-tags,
    .news-share {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tag-label,
    .share-label {
        margin-bottom: 10px;
    }
    
    .cta-content h2 {
        font-size: 24px;
    }
    
    .cta-content p {
        font-size: 16px;
    }
} 