/* ===== NEWS DETAIL PAGE PROFESSIONAL DESIGN ===== */

/* Hero Section with Breadcrumb */
.news-detail-hero {
    background: linear-gradient(135deg, #00a8cc 0%, #0090b0 100%);
    padding: 30px 0 20px;
    position: relative;
    overflow: hidden;
}

.news-detail-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.breadcrumb-item {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb-item a:hover {
    opacity: 0.8;
}

.breadcrumb-item.active {
    color: rgba(255,255,255,0.9);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.6);
}

/* Main Article Content */
.news-detail-content {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.article-meta .badge-category {
    background: linear-gradient(135deg, #00a8cc 0%, #0090b0 100%);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.article-date,
.article-views {
    color: #6c757d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-date i,
.article-views i {
    color: #00a8cc;
}

.article-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
    margin: 20px 0;
}

/* Share Section */
.share-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.share-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
}

.share-buttons-inline {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #6c757d;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.share-btn:hover {
    transform: translateY(-3px);
    color: #fff;
}

.share-btn.facebook:hover { background: #1877f2; }
.share-btn.twitter:hover { background: #1da1f2; }
.share-btn.whatsapp:hover { background: #25d366; }
.share-btn.linkedin:hover { background: #0a66c2; }
.share-btn.copy:hover { background: #00a8cc; }

.share-btn.copied {
    background: #28a745;
    color: #fff;
}

/* Article Image */
.article-image {
    margin: 30px -40px;
    position: relative;
}

.article-image img {
    width: 100%;
    height: auto;
    border-radius: 0;
}

.image-caption {
    padding: 15px 40px;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 0.9rem;
    font-style: italic;
    margin: 0;
    text-align: center;
}

/* Article Summary */
.article-summary {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #495057;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #00a8cc;
    border-radius: 10px;
    margin: 30px 0;
    font-weight: 500;
}

/* Article Content */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin: 30px 0;
}

.article-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #00a8cc;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 25px 0 15px;
}

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

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

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

.article-content blockquote {
    padding: 20px;
    margin: 30px 0;
    background: #f8f9fa;
    border-left: 4px solid #00a8cc;
    font-style: italic;
    color: #495057;
}

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

/* Article Footer */
.article-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.tags-section {
    margin-bottom: 30px;
}

.tags-section i {
    color: #00a8cc;
    margin-right: 10px;
}

.tag {
    display: inline-block;
    padding: 5px 15px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #495057;
    margin: 5px;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #00a8cc;
    color: #fff;
    transform: translateY(-2px);
}

.share-section-bottom {
    text-align: center;
    padding: 50px 40px;
    background: linear-gradient(135deg, #00a8cc 0%, #0090b0 100%);
    border-radius: 25px;
    margin: 40px 0;
    box-shadow: 0 15px 40px rgba(0, 168, 204, 0.15);
    position: relative;
    overflow: hidden;
}

.share-section-bottom::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.share-cta {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 30px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.share-section-bottom .share-buttons-inline {
    display: flex;
    gap: 20px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.share-section-bottom .share-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.3);
    cursor: pointer;
    font-size: 1.4rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.share-section-bottom .share-btn:hover {
    transform: translateY(-5px) scale(1.1);
    background: #fff;
    border-color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.share-section-bottom .share-btn.facebook:hover { 
    color: #1877f2;
}
.share-section-bottom .share-btn.twitter:hover { 
    color: #1da1f2;
}
.share-section-bottom .share-btn.whatsapp:hover { 
    color: #25d366;
}

/* Add pulse animation for call to action */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 168, 204, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(0, 168, 204, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 168, 204, 0);
    }
}

.share-section-bottom {
    animation: pulse 3s infinite;
}

/* Similar Articles Section */
.similar-articles {
    margin-top: 60px;
}

.section-title-detail {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #00a8cc;
    position: relative;
}

.news-card-horizontal {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

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

.news-card-horizontal .card-img-wrapper {
    flex: 0 0 40%;
    overflow: hidden;
}

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

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

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

.news-card-horizontal .card-date {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.news-card-horizontal .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

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

.news-card-horizontal .card-title a:hover {
    color: #00a8cc;
}

.news-card-horizontal .card-excerpt {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Sidebar */
.news-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title i {
    color: #00a8cc;
}

/* Search Widget */
.search-form .input-group {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border-radius: 25px;
    overflow: hidden;
}

.search-form .form-control {
    border: none;
    padding: 12px 20px;
}

.search-form .btn {
    border: none;
    padding: 12px 20px;
    background: #00a8cc;
}

.search-form .btn:hover {
    background: #0090b0;
}

/* Categories Widget */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
}

.category-list a:hover {
    background: #00a8cc;
    color: #fff;
    transform: translateX(5px);
}

.category-list .count {
    background: #fff;
    color: #00a8cc;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.category-list a:hover .count {
    background: rgba(255,255,255,0.9);
}

/* Recent News Widget */
.recent-news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recent-news-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.recent-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-thumb {
    flex: 0 0 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 10px;
}

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

.recent-news-item:hover .news-thumb img {
    transform: scale(1.1);
}

.news-info {
    flex: 1;
}

.news-info .news-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.news-info .news-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-info .news-title a:hover {
    color: #00a8cc;
}

.news-info .news-date {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, #00a8cc 0%, #0090b0 100%);
    color: #fff;
}

.newsletter-widget .widget-title {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.2);
}

.newsletter-widget p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
}

.newsletter-form .form-control {
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding: 12px;
    border-radius: 10px;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255,255,255,0.7);
}

.newsletter-form .form-control:focus {
    background: rgba(255,255,255,0.2);
    border-color: #fff;
    box-shadow: none;
}

.newsletter-form .btn {
    background: #fff;
    color: #00a8cc;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.newsletter-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Social Links Widget */
.social-links-sidebar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-links-sidebar .social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #6c757d;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.1rem;
}

.social-links-sidebar .social-link:hover {
    transform: translateY(-5px);
    color: #fff;
}

.social-links-sidebar .facebook:hover { background: #1877f2; }
.social-links-sidebar .twitter:hover { background: #1da1f2; }
.social-links-sidebar .instagram:hover { background: #e1306c; }
.social-links-sidebar .linkedin:hover { background: #0a66c2; }
.social-links-sidebar .whatsapp:hover { background: #25d366; }

/* Responsive Design */
@media (max-width: 991px) {
    .news-detail-content {
        padding: 25px;
    }
    
    .article-image {
        margin: 20px -25px;
    }
    
    .image-caption {
        padding: 15px 25px;
    }
    
    .news-sidebar {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 1.5rem;
    }
    
    .article-meta {
        gap: 10px;
    }
    
    .share-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .news-card-horizontal {
        flex-direction: column;
    }
    
    .news-card-horizontal .card-img-wrapper {
        flex: none;
        height: 200px;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-summary {
        font-size: 1.1rem;
    }
}

/* Category Badge Colors (matching news.php) */
.badge-category.cat-education { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important; 
}
.badge-category.cat-event { 
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important; 
}
.badge-category.cat-announcement { 
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important; 
}
.badge-category.cat-research { 
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%) !important; 
}

/* Animation */
@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, -30px) rotate(180deg); }
}

/* ===== ADDITIONAL STYLES FOR SECTIONS AND MEDIA ===== */

/* Badge Event */
.badge-event {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.article-author {
    color: #6c757d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-author i {
    color: #00a8cc;
}

/* Content Sections */
.content-sections {
    margin: 40px 0;
}

.content-section {
    margin-bottom: 40px;
    padding: 30px 0;
    border-bottom: 1px solid #e9ecef;
}

.content-section:last-child {
    border-bottom: none;
}

.section-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.section-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 30px 0 20px;
}

.section-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 25px 0 15px;
}

.section-file {
    margin: 20px 0;
}

.section-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.section-image:hover {
    transform: scale(1.02);
}

.pdf-viewer {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}

/* Media Gallery */
.media-gallery {
    margin: 50px 0;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
}

.gallery-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #00a8cc;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-title i {
    color: #00a8cc;
}

.media-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    background: #fff;
}

.media-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.media-item:hover .media-thumbnail {
    transform: scale(1.05);
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.media-item:hover .media-overlay {
    opacity: 1;
}

.media-overlay i {
    color: #fff;
    font-size: 2rem;
}

.media-caption {
    padding: 10px 15px;
    background: #fff;
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
    border-top: 1px solid #e9ecef;
}

/* Video Item */
.video-item .video-player {
    width: 100%;
    height: auto;
    border-radius: 15px 15px 0 0;
}

/* YouTube Item */
.youtube-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.youtube-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Source Section */
.source-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #00a8cc;
    border-radius: 10px;
}

.source-label {
    margin: 0;
    color: #495057;
    font-size: 0.95rem;
}

.source-label i {
    color: #00a8cc;
    margin-right: 8px;
}

.source-label a {
    color: #00a8cc;
    text-decoration: none;
    font-weight: 600;
}

.source-label a:hover {
    text-decoration: underline;
}

/* Newsletter Feedback */
.newsletter-feedback .alert {
    padding: 10px;
    margin: 0;
    font-size: 0.9rem;
    border-radius: 8px;
}

.newsletter-feedback .alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.newsletter-feedback .alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Lightbox Customization */
.lb-data .lb-caption {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.lb-data .lb-number {
    font-size: 13px;
    color: #999;
}

/* Responsive adjustments for media gallery */
@media (max-width: 768px) {
    .media-gallery {
        padding: 20px;
    }
    
    .media-thumbnail {
        height: 150px;
    }
    
    .gallery-title {
        font-size: 1.3rem;
    }
    
    .content-section {
        padding: 20px 0;
    }
}

/* Print styles */
@media print {
    .news-sidebar,
    .share-section,
    .share-section-bottom,
    .similar-articles,
    .media-overlay,
    .newsletter-widget {
        display: none !important;
    }
    
    .news-detail-content {
        box-shadow: none;
        padding: 0;
    }
    
    .article-image img {
        max-height: 400px;
    }
}