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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa; /* Changed to light grey to match the "cards on background" look */
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.site-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background-color: #fff; /* Fallback if no image */
}

.header-text {
    text-align: left;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.header h1 a {
    color: white;
    text-decoration: none;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Navigation */
.nav {
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #667eea;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section (Single Post) */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -40px; /* Pull content up slightly */
    padding-bottom: 80px;
}

.feature-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

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

.hero-meta {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.hero-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tag {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    text-decoration: none;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hero-tag:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    color: white;
    text-decoration: none;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

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

.post-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    display: block;
}

.post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-content h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.post-content h2 a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
}

.post-content h2 a:hover {
    color: #667eea;
}

.post-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1rem;
}

.post-excerpt {
    color: #555;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.2rem;
    background-color: #667eea;
    color: white !important;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none !important;
    border-radius: 20px;
    transition: background-color 0.2s, transform 0.2s;
}

.read-more:hover {
    background-color: #5a6fd6;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    background: #333;
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-top: auto;
}

.dancing-to {
    margin-top: 1rem;
    font-style: italic;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header-text {
        text-align: center;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Single Post Content - The "Card" Look */
.post-content {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.post-content p {
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
}

.post-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #222;
}

.post-content h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.post-content blockquote {
    border-left: 5px solid #667eea;
    padding-left: 1.5rem;
    font-style: italic;
    color: #555;
    margin: 2rem 0;
}

.post-content a {
    color: #667eea;
    text-decoration: underline;
}

.post-content ul, .post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 20px;
    align-items: center;
}

.page-link {
    padding: 10px 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 25px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}

.page-link:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.page-number {
    color: #666;
}

/* Hero Waves & Decorations */
.hero-wave-grey {
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 140px;
    z-index: 2;
    overflow: hidden;
}

.hero-wave-light-purple {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 3;
    overflow: hidden;
}

.hero-wave-purple {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 4;
    overflow: hidden;
}

.hero-wave-white {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 5;
    overflow: hidden;
}

.hero-wave-grey svg,
.hero-wave-light-purple svg,
.hero-wave-purple svg,
.hero-wave-white svg {
    width: 100%;
    height: 100%;
}

.hero-circle-1 {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    z-index: 1;
    animation: circleFloat1 8s ease-in-out infinite;
}

.hero-circle-2 {
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    z-index: 1;
    animation: circleFloat2 10s ease-in-out infinite;
}

.hero-triangle {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(255,255,255,0.08);
    z-index: 1;
    animation: triangleFloat 7s ease-in-out infinite;
}

@keyframes circleFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-20px, 10px) scale(1.1); }
    66% { transform: translate(10px, -15px) scale(0.9); }
}

@keyframes circleFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(15px, -20px) scale(1.05); }
}

@keyframes triangleFloat {
    0%, 100% { transform: rotate(0deg) translateY(0px); }
    33% { transform: rotate(5deg) translateY(-5px); }
    66% { transform: rotate(-3deg) translateY(3px); }
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0 !important;
}

/* Tables */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.post-content th, .post-content td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.post-content th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.post-content tr:nth-child(even) {
    background-color: #f9f9f9;
}