/* Trend Bulletin - Main Stylesheet */

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

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #333;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #fff;
    --border-color: #ddd;
    --hover-color: #f5f5f5;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

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

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #c0392b;
}

/* Header */
.site-header {
    background: var(--primary-color);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.logo img {
    height: 40px;
    width: auto;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    display: block;
    transition: 0.3s;
}

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

.main-nav a {
    color: white;
    font-weight: 500;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover {
    border-bottom-color: var(--accent-color);
}

/* Advertisement Containers */
.ad-container {
    margin: 20px auto;
    text-align: center;
    background: #f9f9f9;
    border: 1px solid var(--border-color);
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-placeholder {
    color: var(--light-text);
    font-size: 14px;
}

.ad-header {
    max-width: 728px;
}

.ad-sidebar {
    min-height: 250px;
    margin-bottom: 20px;
}

.ad-in-content {
    margin: 30px 0;
}

/* Breadcrumb */
.breadcrumb {
    background: var(--hover-color);
    padding: 12px 0;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--light-text);
}

.breadcrumb span {
    color: var(--text-color);
}

/* Main Content Grid */
.main-content {
    padding: 40px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

/* Page Title */
.page-title {
    font-size: 32px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-color);
}

/* Featured Article */
.featured-article {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

.featured-article .article-content {
    padding: 30px;
}

/* Article Cards Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.article-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.article-card .article-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card .article-content {
    padding: 20px;
}

/* Article Meta */
.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
}

.category {
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 600;
}

.date {
    color: var(--light-text);
}

/* Article Headings */
.article-content h2,
.article-content h3 {
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-content h2 a,
.article-content h3 a {
    color: var(--text-color);
}

.article-content h2 a:hover,
.article-content h3 a:hover {
    color: var(--accent-color);
}

.featured-article h2 {
    font-size: 28px;
}

.article-card h3 {
    font-size: 18px;
}

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

.read-more {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 600;
    margin-top: 10px;
}

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

.pagination a,
.pagination span {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination .current-page {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.pagination a:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.widget {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
}

.widget h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

/* Search Widget */
.search-widget input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 10px;
}

.search-widget button {
    width: 100%;
    padding: 10px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.search-widget button:hover {
    background: #c0392b;
}

/* Recent Posts Widget */
.recent-posts ul {
    list-style: none;
}

.recent-posts li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.recent-posts li:last-child {
    border-bottom: none;
}

.recent-posts a {
    color: var(--text-color);
    font-size: 14px;
}

.recent-posts a:hover {
    color: var(--accent-color);
}

/* Article Page Styles */
.article-page .content-grid {
    margin-top: 20px;
}

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

.article-header h1 {
    font-size: 36px;
    line-height: 1.3;
    margin: 15px 0 20px;
}

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

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.meta-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.author a {
    color: var(--accent-color);
    font-weight: 600;
}

.featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.article-body {
    font-size: 18px;
    line-height: 1.8;
}

.article-body h2 {
    font-size: 28px;
    margin: 30px 0 20px;
}

.article-body h3 {
    font-size: 22px;
    margin: 25px 0 15px;
}

.article-body p {
    margin-bottom: 20px;
    color: var(--text-color);
}

.article-body ul,
.article-body ol {
    margin: 20px 0 20px 30px;
}

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

.related-link {
    background: var(--hover-color);
    padding: 20px;
    border-left: 4px solid var(--accent-color);
    margin: 30px 0;
}

/* Article Footer */
.article-footer {
    border-top: 2px solid var(--border-color);
    margin-top: 40px;
    padding-top: 30px;
}

.article-tags {
    margin-bottom: 20px;
}

.article-tags span {
    font-weight: 600;
    margin-right: 10px;
}

.article-tags a {
    display: inline-block;
    background: var(--hover-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-right: 8px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.article-tags a:hover {
    background: var(--accent-color);
    color: white;
}

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

.share-btn {
    padding: 8px 20px;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.share-btn.facebook {
    background: #3b5998;
}

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

.share-btn.linkedin {
    background: #0077b5;
}

/* Footer */
.site-footer {
    background: var(--primary-color);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-widget h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-widget p {
    color: #ccc;
    line-height: 1.6;
}

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

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

.footer-widget a {
    color: #ccc;
}

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

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    color: #999;
}

/* Responsive Design */
@media (max-width: 968px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .main-nav {
        display: none;
    }
    
    .main-nav.active {
        display: block;
        margin-top: 15px;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .article-header h1 {
        font-size: 28px;
    }
    
    .featured-article .article-image img {
        height: 250px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-body {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .article-header h1 {
        font-size: 24px;
    }
    
    .featured-article .article-content,
    .article-card .article-content {
        padding: 15px;
    }
}

/* Page-Specific Styles */
.page-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
}

.page-content h1 {
    font-size: 36px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.page-content h2 {
    font-size: 26px;
    margin: 35px 0 20px;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.page-content h3 {
    font-size: 20px;
    margin: 25px 0 15px;
    color: var(--secondary-color);
}

.page-content section {
    margin-bottom: 40px;
}

.page-content ul,
.page-content ol {
    margin: 15px 0 15px 30px;
    line-height: 1.8;
}

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

.page-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.last-updated {
    color: var(--light-text);
    font-style: italic;
    margin-bottom: 30px;
    padding: 10px;
    background: var(--hover-color);
    border-left: 4px solid var(--accent-color);
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-form {
    background: var(--hover-color);
    padding: 30px;
    border-radius: 8px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    background: var(--accent-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #c0392b;
}

.contact-info-box {
    background: white;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.contact-info-box h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.contact-info-box a {
    color: var(--accent-color);
    text-decoration: underline;
}

.info-note {
    font-size: 14px;
    color: var(--light-text);
    margin-top: 5px;
}

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

.social-link {
    padding: 8px 16px;
    background: var(--accent-color);
    color: white;
    border-radius: 4px;
    font-size: 14px;
}

.social-link:hover {
    background: #c0392b;
}

.faq-section {
    margin-top: 60px;
}

.faq-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

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

/* Disclaimer Page Styles */
.important-notice,
.final-warning {
    background: #fff3cd;
    border: 2px solid #ffc107;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
}

.important-notice h2,
.final-warning h2 {
    color: #856404;
    margin-top: 0;
}

.important-notice p,
.final-warning p {
    color: #856404;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .page-content {
        padding: 20px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .page-content h1 {
        font-size: 28px;
    }
    
    .page-content h2 {
        font-size: 22px;
    }
}