/* ===== CSS Variables for Theme Switching ===== */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-header: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --link-color: #667eea;
    --link-hover: #764ba2;
    --border-color: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.1);
    --code-bg: #f7fafc;
    --nav-bg: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] {
    --bg-primary: #1a202c;
    --bg-secondary: #2d3748;
    --bg-header: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-primary: #f7fafc;
    --text-secondary: #e2e8f0;
    --text-muted: #a0aec0;
    --link-color: #90cdf4;
    --link-hover: #63b3ed;
    --border-color: #4a5568;
    --shadow: rgba(0, 0, 0, 0.3);
    --code-bg: #2d3748;
    --nav-bg: rgba(45, 55, 72, 0.95);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== Header ===== */
header {
    background: var(--bg-header);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 6px var(--shadow);
    position: relative;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* ===== Navigation ===== */
nav {
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px var(--shadow);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

nav a {
    color: var(--link-color);
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    margin: 0 0.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

nav a:hover {
    background-color: var(--bg-secondary);
    color: var(--link-hover);
    transform: translateY(-2px);
}

/* ===== Theme Toggle Button ===== */
.theme-toggle {
    position: absolute;
    top: 1rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* ===== Main Content ===== */
main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow);
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* ===== Links ===== */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* ===== Lists ===== */
ul,
ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

li {
    margin-bottom: 0.5rem;
}

/* ===== Code Blocks ===== */
code {
    background: var(--code-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--text-primary);
}

pre {
    background: var(--code-bg);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1rem;
    border-left: 4px solid var(--link-color);
}

pre code {
    background: none;
    padding: 0;
}

/* ===== Blockquotes ===== */
blockquote {
    border-left: 4px solid var(--link-color);
    padding-left: 1rem;
    margin: 1rem 0;
    color: var(--text-muted);
    font-style: italic;
}

/* ===== Images ===== */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 4px 6px var(--shadow);
}

figure {
    margin: 1.5rem 0;
    text-align: center;
}

figcaption {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ===== Footer ===== */
footer {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
}

/* ===== Blog Posts List ===== */
.post-list {
    list-style: none;
    margin-left: 0;
}

.post-list li {
    background: var(--bg-secondary);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--link-color);
    transition: all 0.3s ease;
}

.post-list li:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 8px var(--shadow);
}

.post-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    main {
        margin: 1rem;
        padding: 1rem;
    }

    nav a {
        display: block;
        margin: 0.5rem 0;
    }

    .theme-toggle {
        position: static;
        margin-top: 1rem;
    }
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 3rem 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--bg-header);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* ===== Featured Section ===== */
.featured-section {
    margin-bottom: 3rem;
}

.featured-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.featured-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow);
    transition: all 0.3s ease;
    border-top: 4px solid var(--link-color);
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px var(--shadow);
}

.featured-card h3 {
    margin: 1rem 0;
    font-size: 1.5rem;
}

.featured-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.featured-card h3 a:hover {
    color: var(--link-hover);
}

.featured-card .excerpt {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.featured-card .read-more {
    color: var(--link-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.featured-card .read-more:hover {
    color: var(--link-hover);
    padding-left: 0.5rem;
}

/* ===== All Posts Section ===== */
.all-posts-section {
    margin-bottom: 3rem;
}

.all-posts-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px var(--shadow);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-card .post-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.date-icon {
    font-size: 1rem;
}

.post-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.category-tag {
    background: var(--link-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.post-title {
    font-size: 1.3rem;
    margin: 0.5rem 0;
}

.post-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--link-hover);
}

.post-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.read-more-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: var(--link-color);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.read-more-btn:hover {
    background: var(--link-hover);
    transform: scale(1.05);
    text-decoration: none;
}

/* ===== Stats Section ===== */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px var(--shadow);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--bg-header);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

/* ===== Responsive for Index Page ===== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .stats-section {
        grid-template-columns: 1fr;
    }
}

/* ===== Smooth Transitions ===== */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ========================================= */
/*            PREMIUM INDEX STYLES           */
/* ========================================= */

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fadeIn {
    animation-name: fadeInUp;
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* --- Hero Section Premium --- */
.hero-wrapper {
    position: relative;
    padding: 6rem 2rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    margin-bottom: 4rem;
    overflow: hidden;
    text-align: center;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.03);
}

.hero-decoration {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-radius: 50%;
    filter: blur(40px);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--link-color), var(--link-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* --- Section Headers --- */
.section {
    margin-bottom: 5rem;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.section-header h2 {
    font-size: 1.8rem;
    margin: 0;
    white-space: nowrap;
}

.section-line {
    height: 2px;
    background: var(--border-color);
    width: 100%;
    border-radius: 2px;
}

/* --- Premium Featured Cards (Gradients) --- */
.grid-featured {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card-premium {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    color: white;
    padding: 2rem;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
}

.card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.3);
}

/* Gradients Presets */
.gradient-0 {
    background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%);
}

.gradient-1 {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

.gradient-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-0[data-theme="dark"] {
    opacity: 0.9;
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-date {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.card-title {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.card-title a {
    color: white !important;
}

.card-excerpt {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-link {
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.card-link .arrow {
    transition: transform 0.3s ease;
}

.card-link:hover .arrow {
    transform: translateX(5px);
}

/* --- Post List (Timeline Style) --- */
.grid-posts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.post-item:hover {
    transform: translateX(10px);
    background: var(--bg-primary);
    box-shadow: 0 4px 15px var(--shadow);
    border-color: var(--border-color);
}

.post-date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    padding: 0.8rem;
    border-radius: 10px;
    min-width: 70px;
    box-shadow: 0 2px 5px var(--shadow);
    border: 1px solid var(--border-color);
}

.post-date-box .day {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--link-color);
    line-height: 1;
}

.post-date-box .month {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
}

.post-info {
    flex: 1;
}

.post-cats {
    margin-bottom: 0.5rem;
}

.badge {
    font-size: 0.75rem;
    background: rgba(102, 126, 234, 0.1);
    color: var(--link-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    margin-right: 5px;
}

.post-info h3 {
    margin: 0;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.post-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* --- Stats Section Premium --- */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 3rem;
    background: linear-gradient(135deg, #2d3748, #1a202c);
    border-radius: 16px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stats-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDUiLz4KPC9zdmc+');
    opacity: 0.3;
}

.stat-box {
    position: relative;
    z-index: 2;
}

.stat-num {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #a0aec0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-text {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* --- Responsive Premium Overrides --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .post-item {
        flex-direction: column;
        gap: 1rem;
    }

    .post-date-box {
        flex-direction: row;
        width: 100%;
        justify-content: flex-start;
        gap: 10px;
        padding: 0.5rem;
        background: transparent;
        box-shadow: none;
        border: none;
    }

    .post-date-box .day {
        font-size: 1.2rem;
    }

    /* Fix stats stacking */
    .stats-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Fix section headers */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .section-line {
        width: 50px;
    }
}

/* ========================================= */
/*            CTA BUTTONS STYLES             */
/* ========================================= */

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--link-color), var(--link-hover));
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    text-decoration: none;
    color: white;
}

.cta-button.secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow);
}

.cta-button.secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--link-color);
    color: var(--link-color);
    transform: translateY(-3px);
    text-decoration: none;
}

/* ========================================= */
/*            PAGE HEADER STYLES             */
/* ========================================= */

.page-header {
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 3rem;
    background: var(--bg-secondary);
    border-radius: 16px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--link-color), var(--link-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ========================================= */
/*            ARTICLES PAGE STYLES           */
/* ========================================= */

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.article-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.article-card:hover {
    transform: translateX(10px);
    background: var(--bg-primary);
    box-shadow: 0 4px 15px var(--shadow);
    border-color: var(--link-color);
}

.article-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--link-color), var(--link-hover));
    color: white;
    padding: 1rem;
    border-radius: 12px;
    min-width: 80px;
    text-align: center;
}

.article-date .day {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.article-date .month {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
}

.article-date .year {
    font-size: 0.8rem;
    opacity: 0.8;
}

.article-content {
    flex: 1;
}

.article-content h2 {
    font-size: 1.4rem;
    margin: 0 0 0.5rem 0;
}

.article-content h2 a {
    color: var(--text-primary);
    text-decoration: none;
}

.article-content h2 a:hover {
    color: var(--link-color);
}

.article-categories {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.category-badge {
    background: var(--link-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.article-excerpt {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.read-more {
    color: var(--link-color);
    font-weight: 600;
    text-decoration: none;
}

.read-more:hover {
    color: var(--link-hover);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

/* ========================================= */
/*            CONTACT PAGE STYLES            */
/* ========================================= */

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px var(--shadow);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.contact-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.contact-card p {
    margin: 0;
    color: var(--text-secondary);
}

.contact-card a {
    color: var(--link-color);
}

.contact-message {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
}

.contact-message h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    padding: 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--link-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* ========================================= */
/*           SUBSCRIBE PAGE STYLES           */
/* ========================================= */

.subscribe-container {
    max-width: 600px;
    margin: 0 auto;
}

.subscribe-card {
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 2rem;
}

.subscribe-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.subscribe-card h2 {
    margin-top: 0;
    font-size: 1.8rem;
}

.subscribe-card > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.subscribe-form {
    margin-bottom: 2rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.form-row input {
    flex: 1;
    max-width: 300px;
    padding: 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-row input:focus {
    outline: none;
    border-color: var(--link-color);
}

.subscribe-benefits {
    text-align: left;
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 12px;
}

.subscribe-benefits h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.subscribe-benefits ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.subscribe-benefits li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.rss-section {
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.rss-section h3 {
    margin-top: 0;
}

.rss-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: #f26522;
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.rss-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(242, 101, 34, 0.4);
    color: white;
    text-decoration: none;
}

/* ========================================= */
/*         RESPONSIVE FOR NEW PAGES          */
/* ========================================= */

@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .article-card {
        flex-direction: column;
    }
    
    .article-date {
        flex-direction: row;
        gap: 0.5rem;
        min-width: auto;
        padding: 0.8rem 1.5rem;
    }
    
    .article-date .day,
    .article-date .month,
    .article-date .year {
        font-size: 1rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        align-items: center;
    }
    
    .form-row input {
        max-width: 100%;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}