:root {
    --primary-red: #e63946;
    --secondary-black: #000000;
    --accent-white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #343a40;
    --text-dark: #2d3436;
    --text-light: #636e72;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    background-color: var(--light-gray);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* Loader Styles */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--secondary-black) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out;
}

.loader-content {
    text-align: center;
    animation: fadeInUp 1s ease;
}

.loader-icon {
    font-size: 5rem;
    color: var(--accent-white);
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

.loader-text {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-white);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.loader-subtext {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.progress-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin-top: 1.5rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 0%;
    background: var(--accent-white);
    border-radius: 2px;
    transition: width 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Header Styles */
.top-bar {
    background-color: var(--secondary-black);
    color: var(--accent-white);
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar a {
    color: var(--accent-white);
    text-decoration: none;
    margin-right: 15px;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--primary-red);
}

.navbar {
    background-color: var(--accent-white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 15px 0;
    transition: all 0.3s;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 2rem;
    color: var(--primary-red) !important;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    margin-right: 10px;
    color: var(--secondary-black);
}

.nav-link {
    font-weight: 500;
    color: var(--dark-gray) !important;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-red) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-red) !important;
}

.nav-link.active::after {
    width: 100%;
}

/* Breadcrumb */
.breadcrumb-section {
    background-color: var(--accent-white);
    padding: 1rem 0;
    border-bottom: 1px solid var(--medium-gray);
    margin-bottom: 2rem;
}

.breadcrumb {
    background-color: transparent;
    margin-bottom: 0;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: var(--primary-red);
}

.breadcrumb-item.active {
    color: var(--text-dark);
}

/* Article Header */
.article-header {
    background-color: var(--accent-white);
    border-radius: 15px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.article-category {
    display: inline-flex;
    align-items: center;
    background: var(--secondary-black);
    color: var(--accent-white);
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.article-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.article-excerpt {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 300;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 2px solid var(--medium-gray);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.meta-item i {
    color: var(--primary-red);
    font-size: 1.1rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-red);
}

.author-name {
    font-weight: 600;
    color: var(--text-dark);
}

/* Article Image */
.article-image {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    background-color: rgba(0,0,0,0.7);
    color: var(--accent-white);
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    font-style: italic;
}

/* Article Content */
.article-content {
    background-color: var(--accent-white);
    border-radius: 15px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-dark);
}

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

.article-body h2 {
    font-size: 1.8rem;
    color: var(--primary-red);
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    padding-left: 15px;
    border-left: 5px solid var(--secondary-black);
}

.article-body h3 {
    font-size: 1.5rem;
    color: var(--dark-gray);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-body blockquote {
    background-color: var(--light-gray);
    border-left: 5px solid var(--primary-red);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--dark-gray);
}

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

.article-body li {
    margin-bottom: 0.8rem;
}

/* Article Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--medium-gray);
}

.tag {
    background-color: var(--light-gray);
    color: var(--text-dark);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.tag:hover {
    background-color: var(--primary-red);
    color: var(--accent-white);
    transform: translateY(-2px);
}

/* Social Share */
.social-share {
    background-color: var(--accent-white);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.share-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--accent-white);
    transition: all 0.3s;
}

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

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

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

.share-btn.whatsapp {
    background-color: #25d366;
}

.share-btn.telegram {
    background-color: #0088cc;
}

.share-btn.email {
    background-color: var(--dark-gray);
}

/* Sidebar */
.sidebar-widget {
    background-color: var(--accent-white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 1.2rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--medium-gray);
    display: flex;
    align-items: center;
}

.widget-title i {
    margin-right: 10px;
    color: var(--secondary-black);
}

.related-article {
    display: flex;
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--medium-gray);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
}

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

.related-article:hover {
    transform: translateX(5px);
}

.related-thumb {
    width: 90px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
}

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

.related-article:hover .related-thumb img {
    transform: scale(1.1);
}

.related-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
    color: var(--text-dark);
}

.related-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Author Box */
.author-box {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--accent-white) 100%);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.author-box-content {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.author-box-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-red);
    flex-shrink: 0;
}

.author-box-info h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.author-box-role {
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 1rem;
}

.author-box-bio {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.author-social {
    display: flex;
    gap: 10px;
}

.author-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: var(--secondary-black);
    color: var(--accent-white);
    border-radius: 50%;
    transition: all 0.3s;
}

.author-social a:hover {
    background-color: var(--primary-red);
    transform: translateY(-3px);
}

/* Comments Section */
.comments-section {
    background-color: var(--accent-white);
    border-radius: 15px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.comments-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 2rem;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--medium-gray);
    display: flex;
    align-items: center;
}

.comment-count {
    color: var(--text-light);
    font-size: 1.3rem;
    margin-left: 5px;
}

.comments-list {
    margin-bottom: 3rem;
}

.comment-item {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--medium-gray);
}

.comment-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.comment-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--light-gray);
    flex-shrink: 0;
}

.comment-content {
    flex-grow: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 10px;
}

.comment-author {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.comment-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.comment-text {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.comment-reply-btn {
    background: transparent;
    border: none;
    color: var(--primary-red);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    padding: 5px 15px;
    border-radius: 20px;
}

.comment-reply-btn:hover {
    background-color: var(--light-gray);
    transform: translateX(5px);
}

.comment-form {
    background-color: var(--light-gray);
    border-radius: 10px;
    padding: 2.5rem;
    margin-top: 3rem;
}

.form-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(230, 57, 70, 0.15);
}

.form-check-input {
    border: 2px solid var(--medium-gray);
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

.form-check-label {
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
}

.form-check-label a {
    color: var(--primary-red);
    text-decoration: none;
}

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

.btn-submit-comment {
    background: linear-gradient(135deg, var(--primary-red) 0%, #b71c1c 100%);
    color: var(--accent-white);
    border: none;
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

.btn-submit-comment:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.5);
}

/* Social Media Fixed Buttons */
.social-fixed {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-white);
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.social-btn.whatsapp {
    background: #25D366;
}

.social-btn.telegram {
    background: #0088cc;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--secondary-black) 0%, #1a1a1a 100%);
    color: var(--accent-white);
    padding: 5rem 0 2rem;
    margin-top: 6rem;
    position: relative;
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
    will-change: clip-path;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1511379938547-c1f69419868d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
    opacity: 0.05;
    z-index: -1;
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.8rem;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-red);
    border-radius: 3px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-links a:hover {
    color: var(--primary-red);
    padding-left: 8px;
}

.footer-links a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: var(--primary-red);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    color: var(--accent-white);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.social-icons a:hover {
    background: var(--primary-red);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    position: relative;
    z-index: 2;
}

.footer-bottom a {
    color: var(--accent-white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: var(--primary-red);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
    .article-title {
        font-size: 2.2rem;
    }
    
    .article-excerpt {
        font-size: 1.1rem;
    }
    
    .article-header, .article-content {
        padding: 2rem;
    }
    
    .author-box-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .social-fixed {
        display: none;
    }
}

.article-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.article-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--primary-red);
    border: none;
    border-radius: 25px;
    color: var(--accent-white);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.article-action-btn:hover {
    background: var(--secondary-black);
    color: white;
}