:root {
    --primary-color: #4caf50;
    --primary-dark: #388e3c;
    --text-main: #333333;
    --text-light: #666666;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --footer-bg: #1a1a1e;
    --footer-bottom: #111113;
    --accent-red: #e53935;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

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

/* Header */
.main-header {
    background-color: var(--bg-white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    height: 40px;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    color: #2c3e50;
}

.logo-text small {
    font-size: 12px;
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.main-nav a {
    font-weight: 500;
    transition: color 0.3s;
}

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

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

.btn-subscribe {
    background: none;
    border: none;
    color: var(--text-main);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.search-box {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.search-box input {
    border: none;
    padding: 8px 12px;
    outline: none;
}

.search-box button {
    background: var(--bg-white);
    border: none;
    padding: 0 10px;
    cursor: pointer;
}

.ui-icon {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.ui-icon-small {
    width: 12px;
    height: 12px;
    vertical-align: middle;
    margin-right: 4px;
}

/* Ticker */
.news-ticker {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.ticker-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.ticker-label {
    background-color: var(--accent-red);
    color: white;
    padding: 8px 15px;
    font-weight: bold;
}

.ticker-text {
    padding: 0 15px;
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticker-links {
    display: flex;
    gap: 15px;
    padding: 0 15px;
    align-items: center;
}

.ticker-links a:hover {
    color: var(--primary-color);
}

/* Section Titles */
.section-title {
    font-size: 20px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
}

/* Hot Topics Grid */
.hot-topics-section {
    padding: 30px 0;
    background: var(--bg-light);
}

.grid-hot-topics {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
    height: 400px;
}

.card-hot-topic {
    position: relative;
    overflow: hidden;
    display: block;
}

.card-hot-topic.large {
    grid-row: span 2;
}

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

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

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

.badge {
    background-color: var(--primary-color);
    color: white;
    padding: 4px 8px;
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-block;
}

.card-content h3 {
    font-size: 24px;
    margin: 5px 0;
    line-height: 1.2;
}

.card-hot-topic.small .card-content h3 {
    font-size: 16px;
}

.card-content p {
    font-size: 14px;
    color: #ddd;
    display: none;
}

.card-hot-topic.large .card-content p {
    display: block;
}

.meta-info {
    font-size: 12px;
    color: #bbb;
}

.card-hot-topic .meta-info {
    color: #eee;
}

/* Main Layout */
.main-layout {
    display: flex;
    gap: 30px;
    padding: 30px 15px;
}

.content-area {
    flex: 1;
    background: var(--bg-white);
    padding: 25px;
    border: 1px solid var(--border-color);
}

.sidebar {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* News Layout */
.news-layout {
    display: flex;
    gap: 20px;
}

.main-article {
    flex: 1;
}

.main-article img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.main-article h3 {
    font-size: 22px;
    margin: 10px 0;
}

.main-article p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.side-articles {
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.side-article {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--bg-light);
    padding-bottom: 15px;
}

.side-article img {
    width: 80px;
    height: 60px;
    object-fit: cover;
}

.side-article-content h4 {
    font-size: 13px;
    line-height: 1.3;
    margin-top: 5px;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

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

.full-width {
    width: 100%;
}

/* Widgets */
.widget {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 5px;
    color: var(--text-light);
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 13px;
}

.login-links {
    margin-top: 15px;
    text-align: center;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.login-links a {
    color: var(--primary-color);
}

.widget-title {
    color: var(--primary-color);
    text-align: center;
    font-size: 16px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

/* Calendar Simple CSS */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
}

.cal-nav {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 5px;
    font-size: 12px;
}

.cal-day-header {
    color: var(--text-light);
    margin-bottom: 5px;
}

.cal-day {
    padding: 5px 0;
    color: var(--text-main);
}

.cal-day.active {
    color: var(--primary-color);
    font-weight: bold;
    border-bottom: 2px solid var(--primary-color);
}

.cal-day.weekend {
    color: var(--accent-red);
}

.cal-day.empty {
    color: transparent;
}

/* Welcome Section */
.welcome-section {
    background-color: #e8f5e9;
    text-align: center;
    padding: 40px 15px;
    margin-top: 20px;
    border-top: 2px solid var(--primary-color);
}

.pre-title {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 1px;
}

.welcome-section h2 {
    font-size: 28px;
    margin: 10px 0;
}

.welcome-section p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light);
}

/* Footer */
.main-footer {
    background-color: var(--footer-bg);
    color: white;
    padding-top: 40px;
}

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

.footer-nav h4 {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 14px;
    text-transform: uppercase;
}

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

.footer-nav li {
    margin-bottom: 8px;
}

.footer-nav a {
    color: #ccc;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: white;
}

.disclaimer {
    border-top: 1px solid #333;
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: #888;
    line-height: 1.5;
}

.footer-bottom {
    background-color: var(--footer-bottom);
    padding: 15px 0;
    text-align: center;
    font-size: 12px;
    color: #666;
}

/* Cookie Modal (Right aligned) */
.cookie-modal {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    background: var(--bg-white);
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    padding: 20px;
    z-index: 1000;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookie-modal.hidden {
    transform: translateX(120%);
    opacity: 0;
}

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

.cookie-modal p {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .grid-hot-topics {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        height: auto;
    }
    .card-hot-topic.large {
        height: 300px;
    }
    .card-hot-topic.small {
        height: 200px;
    }
    .main-layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .news-layout {
        flex-direction: column;
    }
    .side-articles {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .side-article {
        width: calc(50% - 10px);
    }
    .footer-columns {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav, .ticker-links {
        display: none;
    }
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    .side-article {
        width: 100%;
    }
    .footer-columns {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
/* Inner page styles */
/* Breadcrumbs */
.breadcrumbs {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
}
.breadcrumbs a {
    color: var(--primary-color);
}
.breadcrumbs a:hover {
    text-decoration: underline;
}
.breadcrumbs .current {
    color: var(--text-main);
}

/* Article Headers */
.article-title {
    font-size: 32px;
    line-height: 1.2;
    color: #2c3e50;
    margin-bottom: 15px;
}

/* Article Meta Information */
.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
    color: var(--text-light);
    font-size: 13px;
}
.meta-item {
    display: flex;
    align-items: center;
}
.share-buttons {
    margin-left: auto;
    display: flex;
    gap: 10px;
}
.ui-icon-share {
    width: 24px;
    height: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}
.ui-icon-share:hover {
    opacity: 1;
}

/* Images Responsive Styles */
.article-hero-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.article-inline-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 25px auto;
    display: block;
    border: 1px solid var(--border-color);
}

/* Article Text Content (h1-h6, p, span) */
.article-content {
    color: var(--text-main);
}
.article-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}
.article-content span.highlight {
    background-color: #e8f5e9;
    color: var(--primary-dark);
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
}
.article-content h2 {
    font-size: 26px;
    margin: 35px 0 15px;
    color: #2c3e50;
}
.article-content h3 {
    font-size: 22px;
    margin: 30px 0 15px;
    color: #34495e;
}
.article-content h4 {
    font-size: 18px;
    margin: 25px 0 10px;
    color: #34495e;
}
.article-content h5 {
    font-size: 16px;
    margin: 20px 0 10px;
    color: var(--text-main);
}
.article-content h6 {
    font-size: 14px;
    margin: 20px 0 10px;
    color: var(--text-light);
    text-transform: uppercase;
}

/* Lists Styling (ul, ol) */
.article-content ul,
.article-content ol {
    margin: 0 0 25px 20px;
    padding-left: 20px;
    font-size: 16px;
    line-height: 1.7;
}
.article-content li {
    margin-bottom: 10px;
    position: relative;
}
.article-content ul li::marker {
    color: var(--primary-color);
}
.article-content ol li::marker {
    color: var(--primary-dark);
    font-weight: bold;
}

/* Table Styling */
.table-responsive {
    overflow-x: auto;
    margin: 30px 0;
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    text-align: left;
}
.article-content table th,
.article-content table td {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
}
.article-content table th {
    background-color: var(--bg-light);
    color: #2c3e50;
    font-weight: bold;
}
.article-content table tr:nth-child(even) {
    background-color: #fafafa;
}
.article-content table tr:hover {
    background-color: #f1f8f1;
}

/* Shared Custom Forms (Comment and Contact) */
.custom-form .form-group {
    margin-bottom: 20px;
}
.custom-form label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 8px;
}
.custom-form .form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccd1d9;
    border-radius: 4px;
    font-family: var(--font-family);
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.custom-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}
.custom-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Comments Section Specific */
.comments-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}
.comment-form-container {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}
.form-instructions {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}
.form-row {
    display: flex;
    gap: 20px;
}
.half-width {
    flex: 1;
}

/* Contact Form Sidebar Widget */
.widget-desc {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
    text-align: center;
}
.contact-form .form-control {
    padding: 10px;
    font-size: 13px;
}

/* Responsive adjust for forms */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .article-title {
        font-size: 24px;
    }
}