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

/* --- CSS Variables --- */
:root {
    --font-family: 'Poppins', sans-serif;
    --primary-color: #0d1b2a;
    --secondary-color: #1b263b;
    --text-color: #e0e1dd;
    --accent-color: #415a77;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --hover-color: rgba(255, 255, 255, 0.3);
}

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

body {
    font-family: var(--font-family);
    background-image: linear-gradient(to right top, #051937, #004d7a, #008793, #00bf72, #a8eb12);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
    padding: 20px;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 0.8em;
    line-height: 1.3;
    color: #fff;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1.2em;
}

/* --- Glassmorphism Card Style --- */
.glass-card {
    background: var(--glass-bg);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 2rem;
}

/* --- Header & Navigation --- */
.site-header {
    background: var(--glass-bg);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-header .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* --- Main Content Layout --- */
.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 992px) {
    .main-layout {
        grid-template-columns: 3fr 1fr;
    }
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* --- Blog Post Grid --- */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.blog-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.blog-card h3 {
    margin-top: 0;
}

.blog-card .read-more {
    display: inline-block;
    margin-top: auto;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
}

.blog-card .read-more:hover {
    background: var(--accent-color);
    text-decoration: none;
}

/* --- Sidebar --- */
.sidebar .widget {
    margin-bottom: 2rem;
}

.sidebar .widget:last-child {
    margin-bottom: 0;
}

.sidebar h3 {
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 0.5rem;
}

/* --- Article Page --- */
.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.article-meta {
    font-size: 0.9rem;
    color: #ccc;
    margin-top: -1rem;
    margin-bottom: 1rem;
}

.article-content a {
    text-decoration: underline;
    font-weight: 600;
}

.article-content a:hover {
    text-decoration: none;
}

.cta-section {
    margin-top: 2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--glass-bg);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
}

/* Contact Form Placeholder */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-color);
    font-family: var(--font-family);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #bbb;
}

.contact-form button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: var(--accent-color);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    align-self: flex-start;
}

.contact-form button:hover {
    background: #5a7594;
}
