/* News Page Styles */

/* Featured News */
.featured-news .card {
    transition: transform 0.3s ease;
}

.featured-news .card:hover {
    transform: translateY(-5px);
}

.featured-news .card-img-top {
    height: 400px;
    object-fit: cover;
}

.featured-news .card-title {
    font-weight: 600;
    line-height: 1.4;
}

/* News Grid */
.news-card {
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

.news-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.news-card .card-title {
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card .card-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #6c757d;
}

.news-card .btn-link {
    color: #007bff;
    font-weight: 500;
    transition: all 0.3s ease;
}

.news-card .btn-link:hover {
    color: #0056b3;
    text-decoration: none;
    transform: translateX(5px);
}

/* News Meta */
.news-meta {
    font-size: 0.875rem;
}

.news-meta .badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Sidebar */
.card {
    border-radius: 0.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Search Box */
.input-group .form-control {
    border-right: 0;
}

.input-group .btn {
    border-left: 0;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Categories */
.list-unstyled li a {
    color: #495057;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.list-unstyled li a:hover {
    color: #007bff;
    text-decoration: none;
    transform: translateX(5px);
}

.list-unstyled li a .badge {
    transition: all 0.3s ease;
}

.list-unstyled li a:hover .badge {
    background-color: #0056b3;
}

/* Recent Posts */
.recent-post-item {
    transition: all 0.3s ease;
}

.recent-post-item:hover {
    transform: translateX(5px);
}

.recent-post-img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.25rem;
}

.recent-post-content h5 {
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-post-content a {
    color: #212529;
}

.recent-post-content a:hover {
    color: #007bff;
}

/* Tags */
.tags .badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
    transition: all 0.3s ease;
}

.tags .badge:hover {
    background-color: #007bff !important;
    color: #fff !important;
    text-decoration: none;
}

/* Pagination */
.pagination {
    margin-top: 2rem;
}

.pagination .page-link {
    color: #007bff;
    border: none;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    color: #fff;
}

.pagination .page-link:hover {
    background-color: #e9ecef;
    color: #0056b3;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .featured-news .card-img-top {
        height: 300px;
    }
}

@media (max-width: 767.98px) {
    .featured-news .card-img-top {
        height: 250px;
    }

    .news-card .card-img-top {
        height: 180px;
    }

    .recent-post-img {
        width: 70px;
        height: 50px;
    }

    .card-body {
        padding: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .featured-news .card-img-top {
        height: 200px;
    }

    .news-card .card-img-top {
        height: 160px;
    }

    .recent-post-img {
        width: 60px;
        height: 45px;
    }

    .card-body {
        padding: 1rem;
    }
}

/* News Detail Page Styles */
.news-header {
    margin-bottom: 2rem;
}

.news-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.news-meta .badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.news-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

.news-featured-image {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.news-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.news-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark);
}

.news-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--primary);
}

.news-content p {
    margin-bottom: 1.5rem;
}

.news-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.news-content ul li {
    margin-bottom: 0.5rem;
}

.news-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background-color: var(--light);
    border-radius: 0.25rem;
}

.news-content blockquote p {
    font-style: italic;
    margin-bottom: 0.5rem;
}

.news-content blockquote footer {
    font-size: 0.875rem;
    color: var(--gray);
}

.news-tags {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.news-tags .badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: var(--light);
    color: var(--dark);
    transition: all 0.3s ease;
}

.news-tags .badge:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.share-buttons {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.share-buttons .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.btn-facebook {
    background-color: #1877f2;
    color: white;
}

.btn-twitter {
    background-color: #1da1f2;
    color: white;
}

.btn-whatsapp {
    background-color: #25d366;
    color: white;
}

.share-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.related-news {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.related-news .news-card {
    transition: all 0.3s ease;
}

.related-news .news-card:hover {
    transform: translateY(-5px);
}

.related-news .card-img-top {
    height: 200px;
    object-fit: cover;
}

.related-news .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.related-news .btn-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.related-news .btn-link:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.related-news .btn-link i {
    transition: transform 0.3s ease;
}

.related-news .btn-link:hover i {
    transform: translateX(5px);
}

/* Sidebar Styles */
.sidebar .card {
    margin-bottom: 2rem;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.sidebar .card-body {
    padding: 1.5rem;
}

.sidebar h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
}

.sidebar .input-group {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.sidebar .input-group .form-control {
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
}

.sidebar .input-group .btn {
    padding: 0.75rem 1rem;
}

.sidebar .list-unstyled li a {
    color: var(--dark);
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    display: block;
}

.sidebar .list-unstyled li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.sidebar .badge-pill {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
}

.recent-post-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.recent-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.25rem;
}

.recent-post-content h5 {
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.recent-post-content h5 a {
    color: var(--dark);
    transition: color 0.3s ease;
}

.recent-post-content h5 a:hover {
    color: var(--primary);
}

.recent-post-content small {
    font-size: 0.75rem;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .news-title {
        font-size: 2rem;
    }

    .news-content {
        font-size: 1rem;
    }

    .sidebar {
        margin-top: 3rem;
    }
}

@media (max-width: 767.98px) {
    .news-title {
        font-size: 1.75rem;
    }

    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .share-buttons .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }

    .share-buttons .btn {
        width: 100%;
    }

    .related-news .card-img-top {
        height: 180px;
    }
}

@media (max-width: 575.98px) {
    .news-title {
        font-size: 1.5rem;
    }

    .news-content h3 {
        font-size: 1.25rem;
    }

    .news-content blockquote {
        padding: 1rem;
    }

    .related-news .card-img-top {
        height: 160px;
    }
}

/* Page Header */
.page-header {
    background-color: var(--light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.page-header h1 {
    color: var(--dark);
    font-weight: 700;
}

.page-header .lead {
    color: var(--secondary);
}

/* News Filter */
.news-filter {
    margin-bottom: 2rem;
}

.news-filter .btn {
    border-radius: 2rem;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.news-filter .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* News Item */
.news-item {
    transition: all 0.3s ease;
    overflow: hidden;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

.news-item .card-body {
    padding: 1.5rem;
}

.news-item .badge {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
}

.news-item .card-title {
    font-weight: 600;
    line-height: 1.4;
}

.news-item .card-title a {
    transition: color 0.3s ease;
}

.news-item .card-title a:hover {
    color: var(--primary) !important;
}

.news-item .card-text {
    font-size: 0.95rem;
    line-height: 1.6;
}

.news-item .btn-outline-primary {
    border-radius: 2rem;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.news-item .btn-outline-primary:hover {
    transform: translateX(5px);
}

/* Recent News Item */
.recent-news-item {
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.recent-news-item:hover {
    background-color: var(--light);
}

.recent-news-item img {
    object-fit: cover;
    border-radius: 0.5rem;
}

.recent-news-item h4 {
    font-weight: 600;
    line-height: 1.4;
}

.recent-news-item h4 a {
    transition: color 0.3s ease;
}

.recent-news-item h4 a:hover {
    color: var(--primary) !important;
}

/* Sidebar */
.program-sidebar .card {
    transition: all 0.3s ease;
}

.program-sidebar .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

.program-sidebar .card-body {
    padding: 1.5rem;
}

.program-sidebar h3 {
    font-weight: 600;
    color: var(--dark);
}

.program-sidebar .list-unstyled li {
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.program-sidebar .list-unstyled li:last-child {
    margin-bottom: 0;
}

.program-sidebar .list-unstyled li a {
    transition: all 0.3s ease;
}

.program-sidebar .list-unstyled li a:hover {
    color: var(--primary) !important;
    transform: translateX(5px);
}

.program-sidebar .badge {
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
}

.program-sidebar .btn-outline-secondary {
    border-radius: 2rem;
    padding: 0.35rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.program-sidebar .btn-outline-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Search Box */
.search-box .form-control {
    border-radius: 2rem 0 0 2rem;
    padding: 0.75rem 1.25rem;
    border-right: none;
}

.search-box .btn {
    border-radius: 0 2rem 2rem 0;
    padding: 0.75rem 1.25rem;
}

/* Pagination */
.pagination {
    margin-top: 3rem;
}

.pagination .page-link {
    border-radius: 0.5rem;
    margin: 0 0.25rem;
    padding: 0.5rem 1rem;
    color: var(--dark);
    border: none;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pagination .page-item.disabled .page-link {
    background-color: var(--light);
    color: var(--secondary);
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .page-header {
        padding: 3rem 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .news-item .card-body {
        padding: 1.25rem;
    }

    .program-sidebar {
        margin-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .page-header {
        padding: 2rem 0;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .news-filter .btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }

    .news-item .card-body {
        padding: 1rem;
    }

    .news-item .card-title {
        font-size: 1.1rem;
    }

    .news-item .card-text {
        font-size: 0.9rem;
    }

    .program-sidebar .card-body {
        padding: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .page-header h1 {
        font-size: 1.5rem;
    }

    .page-header .lead {
        font-size: 1rem;
    }

    .news-filter {
        margin-bottom: 1.5rem;
    }

    .news-filter .btn {
        padding: 0.35rem 0.75rem;
        font-size: 0.85rem;
    }

    .news-item .card-body {
        padding: 0.75rem;
    }

    .news-item .card-title {
        font-size: 1rem;
    }

    .news-item .card-text {
        font-size: 0.85rem;
    }

    .news-item .btn-outline-primary {
        padding: 0.35rem 0.75rem;
        font-size: 0.85rem;
    }

    .program-sidebar .card-body {
        padding: 1rem;
    }

    .program-sidebar h3 {
        font-size: 1.1rem;
    }

    .program-sidebar .list-unstyled li {
        font-size: 0.9rem;
    }

    .pagination .page-link {
        padding: 0.35rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1001;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
} 