/* PetsHeaven News & Media Stylesheet (Cached) */

/* --- News Listing --- */
/* ===== HERO SLIDER STYLES ===== */
.news-hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: 50px;
}
.news-hero .slides-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.news-hero .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}
.news-hero .slide.active {
    opacity: 1;
    z-index: 1;
}
.news-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 2;
}
.news-hero .hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}
.news-hero .hero-content h1 {
    font-size: 52px;
    margin-bottom: 15px;
    font-weight: 700;
}
.news-hero .hero-content p {
    font-size: 18px;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}
.news-hero .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-hero .slider-arrow:hover {
    background: rgba(255,255,255,0.4);
    transform: translateY(-50%) scale(1.1);
}
.news-hero .prev { left: 20px; }
.news-hero .next { right: 20px; }
.news-hero .slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}
.news-hero .dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}
.news-hero .dot.active {
    background: white;
    width: 25px;
    border-radius: 10px;
}

/* ===== NEWS STYLES ===== */
.news-container {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}
.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}
.news-image {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: #f5f5f5;
}
.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.news-card:hover .news-image img {
    transform: scale(1.05);
}
.news-date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.news-content {
    padding: 20px;
}
.news-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
}
.news-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #c0392b;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
.read-more:hover {
    gap: 10px;
    color: #8b0000;
}
.empty-news {
    text-align: center;
    padding: 80px 20px;
    background: #f8f9fa;
    border-radius: 20px;
    grid-column: 1 / -1;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 992px) {
    .news-hero { height: 450px; }
    .news-hero .hero-content h1 { font-size: 42px; }
}
@media (max-width: 768px) {
    .news-hero { height: 400px; margin-bottom: 30px; }
    .news-hero .hero-content h1 { font-size: 32px; }
    .news-hero .hero-content p { font-size: 14px; }
    .news-hero .slider-arrow { width: 35px; height: 35px; font-size: 16px; }
    .news-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 480px) {
    .news-hero { height: 350px; }
    .news-hero .hero-content h1 { font-size: 26px; }
}

/* --- News Details --- */
/* ===== HERO SLIDER STYLES ===== */
.news-detail-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin-bottom: 50px;
}
.news-detail-hero .slides-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.news-detail-hero .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}
.news-detail-hero .slide.active {
    opacity: 1;
    z-index: 1;
}
.news-detail-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 2;
}
.news-detail-hero .hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}
.news-detail-hero .hero-content h1 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
    max-width: 800px;
}
.news-detail-hero .hero-content p {
    font-size: 16px;
    opacity: 0.95;
}
.news-detail-hero .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-detail-hero .slider-arrow:hover {
    background: rgba(255,255,255,0.4);
    transform: translateY(-50%) scale(1.1);
}
.news-detail-hero .prev { left: 20px; }
.news-detail-hero .next { right: 20px; }
.news-detail-hero .slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}
.news-detail-hero .dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}
.news-detail-hero .dot.active {
    background: white;
    width: 25px;
    border-radius: 10px;
}

/* ===== NEWS DETAIL STYLES ===== */
.news-detail-container {
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 0 20px;
}
.news-detail-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}
.news-detail-header {
    padding: 30px 30px 0;
}
.news-detail-date {
    display: inline-block;
    background: #c0392b;
    color: white;
    padding: 5px 15px;
    border-radius: 25px;
    font-size: 12px;
    margin-bottom: 15px;
}
.news-detail-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.3;
}
.news-detail-meta {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
    color: #666;
    font-size: 14px;
    flex-wrap: wrap;
}
.news-detail-meta i {
    margin-right: 5px;
    color: #c0392b;
}

/* ===== IMAGE GALLERY SECTION ===== */
.news-gallery-section {
    margin-bottom: 30px;
}
.news-main-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    cursor: pointer;
}
.gallery-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}
.gallery-thumb {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}
.gallery-thumb:hover {
    transform: scale(1.02);
}
.gallery-thumb.active {
    border-color: #c0392b;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 100000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.lightbox.active {
    display: flex;
}
.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}
.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
}
.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    padding: 10px;
    background: rgba(0,0,0,0.6);
    border-radius: 8px;
    font-size: 14px;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 45px;
    color: white;
    cursor: pointer;
    z-index: 100001;
    transition: all 0.3s;
}
.lightbox-close:hover {
    color: #c0392b;
    transform: rotate(90deg);
}
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: white;
    cursor: pointer;
    padding: 20px;
    z-index: 100001;
    transition: all 0.3s;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover {
    color: #c0392b;
    transform: translateY(-50%) scale(1.1);
}

/* Content Styles */
.news-detail-content {
    padding: 0 30px 30px;
}
.news-detail-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}
.news-detail-content h2, .news-detail-content h3 {
    margin: 25px 0 15px;
    color: #2c3e50;
}
.news-detail-content ul, .news-detail-content ol {
    margin: 15px 0;
    padding-left: 25px;
}
.news-detail-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}
.news-detail-content hr {
    border: none;
    height: 1px;
    background: #e2e8f0;
    margin: 30px 0;
}
.news-detail-content strong,
.news-detail-content b {
    color: #1e293b;
    font-weight: 600;
}
.news-detail-content a {
    color: #c0392b;
    text-decoration: underline;
    word-break: break-all;
}
.news-detail-content a:hover {
    color: #8b0000;
}
.news-detail-content a.back-button,
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #c0392b !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none !important;
    margin-top: 30px;
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.25);
    transition: all 0.3s ease;
}
.news-detail-content a.back-button:hover,
.back-button:hover {
    background: #8b0000 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    text-decoration: none !important;
    box-shadow: 0 6px 16px rgba(139, 0, 0, 0.35);
}
.news-detail-content a.back-button i,
.back-button i {
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .news-detail-hero { height: 300px; }
    .news-detail-hero .hero-content h1 { font-size: 24px; }
    .news-detail-title { font-size: 24px; }
    .news-detail-header { padding: 20px; }
    .news-detail-content { padding: 0 20px 20px; }
    .gallery-thumb { width: 70px; height: 60px; }
    .lightbox-prev, .lightbox-next { font-size: 30px; padding: 10px; }
    .lightbox-close { top: 10px; right: 20px; font-size: 35px; }
}
