/* CSS Variables */
:root {
    --primary-color: #f5387b;
    --primary-hover: #d62b66;
    --secondary-color: #2c2949;
    --bg-color: #f7f9fa;
    --bg-white: #ffffff;
    --text-main: #333333;
    --text-muted: #6c757d;
    --border-color: #eaedf0;
    --font-main: 'Inter', sans-serif;
    --radius-lg: 16px;
    --radius-md: 8px;
    --radius-sm: 4px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

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

/* Icons */
.icon-small {
    width: 16px;
    height: 16px;
    object-fit: contain;
}
.icon-tiny {
    width: 12px;
    height: 12px;
    object-fit: contain;
}

/* Top Bar */
.top-bar {
    background-color: #f1ebd8;
    font-size: 12px;
    color: #555;
    padding: 8px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-date, .top-notice {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Header */
.main-header {
    background-color: var(--bg-white);
    padding: 20px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

.logo img {
    height: 40px;
}

.logo h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    font-weight: 500;
    font-size: 14px;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.icon-btn img {
    width: 18px;
    height: 18px;
}

.icon-btn:hover {
    background-color: #e2e6ea;
}

.btn-assine {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.btn-assine:hover {
    background-color: var(--primary-hover);
}

/* News Ticker */
.news-ticker {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    margin: 20px 0;
    padding: 5px 15px;
    box-shadow: var(--shadow-sm);
    gap: 15px;
}

.ticker-label {
    background-color: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.ticker-content {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.content-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Featured Post */
.featured-post {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
}

.featured-image {
    width: 50%;
    position: relative;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-arrow.left { left: 10px; }
.nav-arrow.right { right: 10px; }
.nav-arrow img { width: 14px; height: 14px; }

.featured-content {
    width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Badges & Tags */
.tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.badge {
    background-color: #ffd6e4;
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.badge.light {
    background-color: #f1f3f5;
    color: var(--text-muted);
}

.featured-content h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.featured-content p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.read-more {
    color: var(--text-main);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.avatar, .avatar-small {
    border-radius: 50%;
    object-fit: cover;
}
.avatar { width: 24px; height: 24px; }
.avatar-small { width: 20px; height: 20px; }

.dot {
    margin: 0 2px;
}

/* List Post */
.list-post {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    gap: 20px;
    box-shadow: var(--shadow-sm);
}

.list-image {
    width: 250px;
    height: 180px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.list-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.list-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

/* Sidebar */
.widget {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.widget h3 {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget h3::after {
    content: '';
    height: 2px;
    flex-grow: 1;
    background: var(--border-color);
}

.widget h3::before {
    content: '•';
    color: var(--primary-color);
}

.search-widget form {
    display: flex;
    gap: 10px;
}

.search-widget input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
}

.btn-search {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

/* Missed Section */
.missed-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}

.section-header h2 {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.section-header h2::after {
    content: '';
    height: 2px;
    flex-grow: 1;
    background: var(--border-color);
}

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

.missed-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 200px;
}

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

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

.card-overlay h4 {
    font-size: 14px;
    margin: 10px 0;
    line-height: 1.3;
}

.text-white {
    color: #e0e0e0;
}

/* Partners */
.partners-section {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.partner-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    max-width: 400px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.partner-logo {
    margin: 20px 0;
}

.partner-card p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Welcome Section Before Footer */
.welcome-section {
    background: linear-gradient(135deg, #fff 0%, #f0f4f8 100%);
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.welcome-section h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 28px;
}

.welcome-section p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
}

/* Footer */
.main-footer {
    background-color: var(--secondary-color);
    color: #b0b3c6;
    padding: 60px 0 20px;
    font-size: 13px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.disclaimer-col .disclaimer {
    line-height: 1.6;
    color: #9aa0b8;
}

.disclaimer-col strong {
    color: white;
}

.footer-col h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

/* Cookie Modal (Right side floating) */
.cookie-modal {
    position: fixed;
    right: -400px;
    bottom: 30px;
    width: 320px;
    background: var(--bg-white);
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: right 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid var(--primary-color);
}

.cookie-modal.show {
    right: 30px;
}

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

.cookie-content p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.btn-accept {
    flex: 1;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    border-radius: var(--radius-sm);
    font-weight: bold;
}

.btn-decline {
    flex: 1;
    background: #e2e6ea;
    color: var(--text-main);
    padding: 8px;
    border-radius: var(--radius-sm);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    .featured-post {
        flex-direction: column;
    }
    .featured-image, .featured-content {
        width: 100%;
    }
    .missed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 15px;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .list-post {
        flex-direction: column;
    }
    .list-image {
        width: 100%;
        height: auto;
    }
    .missed-grid {
        grid-template-columns: 1fr;
    }
    .cookie-modal {
        width: calc(100% - 40px);
        right: -100%;
        bottom: 20px;
    }
    .cookie-modal.show {
        right: 20px;
    }
}
/* Inner page styles */
/* Single Article Container */
.single-article {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.article-header {
    margin-bottom: 30px;
}

.article-header h1 {
    font-size: 32px;
    color: var(--secondary-color);
    margin: 15px 0;
    line-height: 1.25;
    font-weight: 800;
}

/* Article Images */
.article-main-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin-bottom: 35px;
    object-fit: cover;
    box-shadow: var(--shadow-md);
    max-height: 500px;
}

.article-inline-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 30px 0;
    max-height: 400px;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

/* Table of Contents (TOC) */
.article-toc {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    margin-bottom: 40px;
}

.article-toc h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 18px;
    font-weight: 700;
}

.article-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-toc ul li {
    margin-bottom: 12px;
}

.article-toc ul li::before {
    content: "→";
    color: var(--primary-color);
    margin-right: 10px;
    font-weight: bold;
}

.article-toc ul li a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 15px;
}

.article-toc ul li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Article Typography */
.article-content h1, 
.article-content h2, 
.article-content h3, 
.article-content h4, 
.article-content h5, 
.article-content h6 {
    color: var(--secondary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.article-content h2 {
    font-size: 26px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
}

.article-content h3 {
    font-size: 22px;
}

.article-content h4 {
    font-size: 18px;
}

.article-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.article-content span.highlight {
    background-color: #ffd6e4;
    color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* Article Lists */
.article-content ul, 
.article-content ol {
    margin-bottom: 30px;
    padding-left: 25px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
}

.article-content ul li {
    margin-bottom: 12px;
    position: relative;
    list-style-type: disc;
}

.article-content ul li::marker {
    color: var(--primary-color);
}

.article-content ol li {
    margin-bottom: 12px;
    list-style-type: decimal;
}

.article-content ol li::marker {
    color: var(--primary-color);
    font-weight: 700;
}

.article-content li strong {
    color: var(--text-main);
}

/* Article Table */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 35px 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.article-content th, 
.article-content td {
    padding: 15px 20px;
    text-align: left;
    border: 1px solid var(--border-color);
    font-size: 15px;
}

.article-content th {
    background-color: var(--secondary-color);
    color: white;
    font-weight: 600;
}

.article-content tr:nth-child(even) {
    background-color: var(--bg-color);
}

.article-content tr:hover td {
    background-color: #f0f4f8;
}

/* Custom Forms (Comments & Contact) */
.comment-form-section {
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

.comment-form-section h3 {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.custom-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-color);
}

.custom-form input, 
.custom-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 15px;
    color: var(--text-main);
    background-color: var(--bg-color);
    transition: all 0.3s ease;
}

.custom-form input:focus, 
.custom-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(245, 56, 123, 0.1);
}

.custom-form textarea {
    resize: vertical;
    min-height: 140px;
}

.btn-submit {
    background: var(--primary-color);
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 16px;
    align-self: flex-start;
    transition: background 0.3s, transform 0.2s;
}

.btn-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* Responsive adjustments for internal page */
@media (max-width: 768px) {
    .single-article {
        padding: 25px 20px;
    }
    
    .article-header h1 {
        font-size: 24px;
    }
    
    .article-content h2 {
        font-size: 22px;
    }

    .article-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .btn-submit {
        width: 100%;
    }
}