/* 
  Theme: Dark Mode Elegance
  Font: Poppins (Sans-Serif)
  Primary Colors:
  - Background: #121212
  - Text: #e0e0e0
  - Accent: #FFD700
  - Card Background: #1E1E1E
  - Border: #2c2c2c
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    background-color: #121212;
    color: #e0e0e0;
    font-size: 16px;
}

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

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

a:hover {
    color: #fff2a8;
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.75em;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1em; }

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

/* --- Header & Navigation --- */
.site-header {
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #2c2c2c;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    transition: color 0.3s ease;
}
.logo:hover {
    color: #FFD700;
}

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

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

.main-nav a:hover, .main-nav a.active {
    color: #FFD700;
    border-bottom-color: #FFD700;
}

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

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

/* --- Homepage --- */
.hero {
    text-align: center;
    padding: 40px 20px;
    background-color: #1E1E1E;
    border: 1px solid #2c2c2c;
    border-radius: 8px;
    margin-bottom: 40px;
}

.hero h1 {
    margin-bottom: 0.5em;
    color: #FFD700;
}

.hero p {
    max-width: 700px;
    margin: 0 auto 1em;
    font-size: 1.1rem;
    color: #b0b0b0;
}

.blog-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.article-card {
    background-color: #1E1E1E;
    border: 1px solid #2c2c2c;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.1);
    transform: translateY(-5px);
    border-color: #FFD700;
}

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

.article-card h3 {
    margin-bottom: 0.5em;
}

.article-card p {
    color: #b0b0b0;
    margin-bottom: 1.5em;
}

.read-more-btn {
    display: inline-block;
    background-color: #FFD700;
    color: #121212;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.read-more-btn:hover {
    background-color: #fff2a8;
    color: #121212;
    text-decoration: none;
    transform: scale(1.05);
}

/* --- Sidebar --- */
.sidebar {
    padding: 20px;
    background-color: #1E1E1E;
    border: 1px solid #2c2c2c;
    border-radius: 8px;
}

.sidebar-widget {
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #2c2c2c;
    padding-bottom: 10px;
}

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

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

.sidebar-promo p {
    background-color: #2c2c2c;
    color: #FFD700;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
}

/* --- Article Page --- */
.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #2c2c2c;
}

.article-header h1 {
    font-size: 2.8rem;
    color: #FFD700;
}

.article-meta {
    font-size: 0.9rem;
    color: #b0b0b0;
    margin-bottom: 10px;
}

.article-content h2, .article-content h3 {
    margin-top: 1.5em;
}

.article-content blockquote {
    border-left: 4px solid #FFD700;
    padding-left: 20px;
    margin: 25px 0;
    font-style: italic;
    color: #b0b0b0;
    font-size: 1.1rem;
}

.cta-section {
    background-color: #1E1E1E;
    border: 1px solid #2c2c2c;
    padding: 30px;
    text-align: center;
    margin: 40px 0;
    border-radius: 8px;
}

.cta-section h3 {
    margin-bottom: 0.5em;
    color: #FFD700;
}

/* --- Footer --- */
.site-footer {
    background-color: #1E1E1E;
    color: #b0b0b0;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #2c2c2c;
}

/* --- Responsive Design --- */
@media (min-width: 768px) {
    .layout-grid {
        grid-template-columns: 2fr 1fr;
    }
    
    .article-page-layout {
        grid-template-columns: 3fr 1fr;
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
