/* --- Global Styles & Variables --- */
:root {
    --primary-color: #6E44FF;
    --primary-dark: #5634CC;
    --secondary-color: #05d5b4;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e9ecef;
    --font-family: 'Poppins', sans-serif;
    --header-height: 80px;
}

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

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

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

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

a:hover {
    color: var(--primary-dark);
}

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

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--bg-white);
    height: var(--header-height);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

.nav-links {
    list-style: none;
    display: none; /* Hidden on mobile */
    gap: 30px;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 16px;
    padding: 5px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

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

/* --- Hamburger Menu --- */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* --- Hero Section (Home Page) --- */
.hero {
    background: linear-gradient(120deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-white);
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* --- Blog Grid Section --- */
.blog-grid-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text-dark);
}

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

.blog-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-card a {
    display: block;
    color: inherit;
}

.blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-content {
    padding: 25px;
}

.card-category {
    display: inline-block;
    background-color: rgba(110, 68, 255, 0.1);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.blog-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.blog-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.read-more {
    font-weight: 600;
    color: var(--primary-color);
}

/* --- Standard Page Content (About, Privacy, etc.) --- */
.page-content {
    padding: 60px 0;
    background-color: var(--bg-white);
    min-height: calc(100vh - var(--header-height) - 250px);
}

.page-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 10px;
}

.page-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.page-content p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* --- Blog Post Page (NEW STYLES) --- */
.blog-post-content {
    padding: 60px 0;
    background-color: var(--bg-white);
}

.blog-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-post-container .post-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

.post-meta {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 0.9rem;
    display: flex;
    gap: 20px;
}

.post-main-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 40px;
    height: 400px;
    object-fit: cover;
}

.post-body h2 {
    font-size: 1.8rem;
    margin-top: 50px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.post-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 25px;
}


/* --- Contact Page --- */
.contact-info {
    margin-top: 40px;
}

.contact-email {
    font-size: 1.2rem;
    font-weight: 600;
    display: inline-block;
    background-color: var(--bg-light);
    padding: 10px 20px;
    border-radius: 8px;
}

/* --- Footer --- */
.site-footer {
    background-color: #111827;
    color: #9ca3af;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
    text-align: center;
}

.footer-links h4 {
    color: var(--bg-white);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: #9ca3af;
}
.footer-links a:hover {
    color: var(--bg-white);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (min-width: 768px) {
    .blog-post-container .post-title {
        font-size: 3rem;
    }
}

/* Mobile Nav Active State */
.main-nav.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
}

.main-nav.active .nav-links {
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: center;
}

.main-nav.active .nav-links a {
    font-size: 1.5rem;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Tablet */
@media (min-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-content {
        flex-direction: row;
        justify-content: center;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .hamburger {
        display: none;
    }
    .main-nav {
        display: block;
    }
    .nav-links {
        display: flex;
        flex-direction: row;
    }
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .page-content .container {
        max-width: 800px;
    }
}