:root {
    --primary-red: #e62429;
    --dark-bg: #111625;
    --darker-bg: #0b0e18;
    --text-dark: #333;
    --text-light: #fff;
    --gray-bg: #f4f5f7;
    --gray-text: #666;
    --border-color: #eaeaea;
    --font-main: 'Roboto', sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-red);
    color: var(--text-light);
    font-size: 0.85rem;
    padding: 8px 0;
}

/* Header */
.main-header {
    background: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    padding: 20px 0;
    text-align: left;
}

.logo img {
    max-height: 80px;
}

/* Navigation */
.main-nav {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--text-light);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li a {
    display: block;
    padding: 15px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.home-link {
    background-color: var(--primary-red);
    padding: 15px 20px;
}

.ui-icon {
    width: 16px;
    height: 16px;
    display: block;
}

.nav-actions .search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 15px;
}

/* Ticker */
.news-ticker {
    display: flex;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 15px;
    background: var(--gray-bg);
}

.ticker-label {
    background: var(--primary-red);
    color: var(--text-light);
    padding: 8px 15px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.ticker-content {
    flex-grow: 1;
    padding: 0 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.ticker-content span {
    margin-right: 15px;
}

/* Tags */
.tag {
    background-color: var(--primary-red);
    color: var(--text-light);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
    margin-right: 5px;
}

/* Featured Grid */
.featured-section {
    margin-bottom: 40px;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    height: 450px;
}

.hero-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    height: 100%;
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-card:hover img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: var(--text-light);
}

.hero-card h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.center-hero h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.meta {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ccc;
}

.meta-icon {
    width: 12px;
    height: 12px;
}

/* Sidebar Tabs */
.hero-sidebar {
    background: var(--text-light);
    display: flex;
    flex-direction: column;
}

.tabs {
    display: flex;
    margin-bottom: 15px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: #333;
    color: var(--text-light);
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.tab-btn.active {
    background: var(--primary-red);
}

.tab-content {
    display: none;
    flex-direction: column;
    gap: 15px;
}

.tab-content.active {
    display: flex;
}

.mini-post {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mini-post img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
}

.mini-post-info h4 {
    font-size: 0.9rem;
    line-height: 1.3;
    margin-top: 5px;
}

/* Main Layout */
.main-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* List Posts */
.list-post {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.list-post-img {
    flex: 0 0 350px;
    height: 220px;
    overflow: hidden;
}

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

.list-post:hover .list-post-img img {
    transform: scale(1.05);
}

.list-post-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.list-post-content .meta {
    color: var(--gray-text);
    margin-bottom: 15px;
}

.list-post-content p {
    color: var(--gray-text);
    font-size: 0.95rem;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.page-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    font-weight: 700;
}

.page-num.active {
    background: var(--primary-red);
    color: var(--text-light);
    border-color: var(--primary-red);
}

/* Widgets */
.widget {
    background: var(--text-light);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.widget-header {
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.widget-header h3 {
    background: var(--primary-red);
    color: var(--text-light);
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    text-transform: uppercase;
    position: relative;
}

.widget-header h3::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 0;
    border-top: 42px solid var(--primary-red);
    border-right: 15px solid transparent;
}

.widget-body {
    padding: 20px;
}

.search-widget input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
    font-family: inherit;
}

.btn-red {
    background: var(--primary-red);
    color: var(--text-light);
    border: none;
    padding: 12px 20px;
    width: 100%;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

.btn-red:hover {
    background: #c11f24;
}

/* Ai Pierdut Section */
.missed-section {
    margin-bottom: 40px;
}

.section-header-red {
    border-bottom: 2px solid var(--primary-red);
    margin-bottom: 20px;
}

.section-header-red h3 {
    background: var(--primary-red);
    color: var(--text-light);
    display: inline-block;
    padding: 8px 20px;
    text-transform: uppercase;
    font-size: 1rem;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
    padding-right: 30px;
}

.missed-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.missed-card {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.missed-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.missed-card .card-overlay {
    padding: 15px;
}

.missed-card h4 {
    font-size: 1rem;
    line-height: 1.2;
}

/* Pre-footer Welcome */
.pre-footer-welcome {
    margin-bottom: 40px;
}

.welcome-box {
    background: var(--text-light);
    border: 1px solid var(--border-color);
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.welcome-box h2 {
    color: var(--primary-red);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.welcome-box p {
    color: var(--gray-text);
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* Footer */
.main-footer {
    background: var(--dark-bg);
    color: #a0a5b5;
}

.footer-top {
    padding: 60px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    border-bottom: 1px solid #1f2536;
}

.footer-disclaimer {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-disclaimer strong {
    color: var(--text-light);
}

.footer-logo-img {
    max-height: 60px;
    opacity: 0.8;
}

.footer-bottom {
    background: var(--darker-bg);
    padding: 20px 0;
    font-size: 0.8rem;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a:hover {
    color: var(--text-light);
}

/* Scroll Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: var(--primary-red);
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99;
    opacity: 0.8;
}

.scroll-top img {
    width: 20px;
    height: 20px;
    filter: invert(1);
}

.scroll-top:hover {
    opacity: 1;
}

/* Cookie Modal (Right side) */
.cookie-modal {
    position: fixed;
    right: 20px;
    bottom: 90px;
    width: 300px;
    background: var(--text-light);
    border-left: 4px solid var(--primary-red);
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    z-index: 1000;
    transform: translateX(120%);
    transition: transform 0.4s ease-in-out;
    border-radius: 4px;
}

.cookie-modal.show {
    transform: translateX(0);
}

.cookie-content {
    padding: 20px;
}

.cookie-content h4 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.cookie-content p {
    font-size: 0.85rem;
    color: var(--gray-text);
    margin-bottom: 15px;
}

.cookie-content button {
    padding: 8px 15px;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
    .featured-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    .center-hero {
        height: 350px;
        order: -1;
    }
    .left-hero {
        height: 250px;
    }
    .main-layout {
        grid-template-columns: 1fr;
    }
    .missed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-top {
        flex-direction: column;
        text-align: center;
    }
    .bottom-flex {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile hide for demo */
    }
    .list-post {
        flex-direction: column;
    }
    .list-post-img {
        flex: 0 0 200px;
    }
    .missed-grid {
        grid-template-columns: 1fr;
    }
    .cookie-modal {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 20px;
    }
}

/* Inner page styles */
/* =========================================
   NEW STYLES FOR INNER PAGE
   ========================================= */

/* Layout Setup */
.inner-page-layout {
    margin-top: 30px;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--gray-text);
    margin-bottom: 20px;
}
.breadcrumbs a {
    color: var(--primary-red);
    font-weight: 500;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}
.breadcrumbs .sep {
    margin: 0 5px;
}
.breadcrumbs .current {
    color: var(--text-dark);
}

/* Article Header */
.article-header {
    margin-bottom: 25px;
}
.article-header h1 {
    font-size: 2.4rem;
    line-height: 1.25;
    color: var(--dark-bg);
    margin: 15px 0;
    font-weight: 900;
}
.article-meta {
    font-size: 0.85rem;
    color: var(--gray-text);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}
.meta-icon {
    vertical-align: middle;
    margin-right: 5px;
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

/* Article Main Image */
.article-main-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.article-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Content & Typography */
.article-content {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.8;
}
.article-content p {
    margin-bottom: 20px;
}
.article-content span {
    font-weight: 700;
    color: var(--primary-red);
    background-color: rgba(230, 36, 41, 0.05);
    padding: 0 4px;
}

/* Headings h1-h6 */
.article-content h1, 
.article-content h2, 
.article-content h3, 
.article-content h4, 
.article-content h5, 
.article-content h6 {
    color: var(--dark-bg);
    margin: 35px 0 15px 0;
    font-weight: 700;
    line-height: 1.3;
}
.article-content h2 { font-size: 2rem; border-bottom: 2px solid var(--gray-bg); padding-bottom: 10px; }
.article-content h3 { font-size: 1.7rem; }
.article-content h4 { font-size: 1.4rem; }
.article-content h5 { font-size: 1.2rem; }
.article-content h6 { font-size: 1.1rem; text-transform: uppercase; color: var(--gray-text); }

/* Lists */
.article-content ul,
.article-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
    background: var(--gray-bg);
    padding: 20px 20px 20px 40px;
    border-radius: 6px;
}
.article-content ul li,
.article-content ol li {
    margin-bottom: 10px;
}
.article-content ul li::marker {
    color: var(--primary-red);
}
.article-content ol li::marker {
    color: var(--primary-red);
    font-weight: bold;
}

/* Table of Contents */
.toc-box {
    background-color: var(--gray-bg);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary-red);
    padding: 25px;
    margin-bottom: 35px;
    border-radius: 4px;
    display: inline-block;
    min-width: 50%;
}
.toc-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-bg);
    text-transform: uppercase;
}
.toc-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}
.toc-list li {
    margin-bottom: 12px !important;
}
.toc-list a {
    color: var(--text-dark);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.toc-list a:hover {
    color: var(--primary-red);
}

/* Inner Images */
.in-post-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 20px 0 5px 0;
    border: 1px solid var(--border-color);
}
.image-caption {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-text);
    text-align: center;
    margin-bottom: 25px;
    font-style: italic;
}

/* Table Styling */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 30px;
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}
.article-content th, 
.article-content td {
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    text-align: left;
}
.article-content th {
    background-color: var(--primary-red);
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.article-content tr:nth-child(even) {
    background-color: var(--gray-bg);
}
.article-content tr:hover {
    background-color: #fce9ea;
}

/* General Form Styles */
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.9rem;
}
.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}
.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

/* Comment Section */
.comment-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid var(--gray-bg);
}
.comment-section h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}
.comment-note {
    font-size: 0.85rem;
    color: var(--gray-text);
    margin-bottom: 20px;
}
.form-row {
    display: flex;
    gap: 20px;
}
.half-width {
    flex: 1;
}
.submit-btn {
    display: inline-block;
    width: auto;
    padding: 12px 30px;
    border-radius: 4px;
}

/* Related Articles (Internal Linking) */
.related-articles {
    margin-top: 60px;
}
.related-articles h3 {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: inline-block;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.related-card {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.related-content {
    padding: 15px;
}
.related-content h4 {
    font-size: 1.1rem;
    margin-top: 10px;
    line-height: 1.4;
}

/* Sidebar Contact Form */
.widget-desc {
    font-size: 0.85rem;
    color: var(--gray-text);
    margin-bottom: 15px;
    line-height: 1.5;
}
.form-group-with-icon {
    position: relative;
    margin-bottom: 15px;
}
.form-group-with-icon .input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    opacity: 0.5;
}
.form-group-with-icon input {
    width: 100%;
    padding: 10px 10px 10px 40px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
}
.sidebar-contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    resize: vertical;
}
.sidebar-contact-form .btn-red {
    border-radius: 4px;
}

/* Responsive Inner Page */
@media (max-width: 768px) {
    .article-header h1 {
        font-size: 1.8rem;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
    .toc-box {
        width: 100%;
    }
}
