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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography Styles */
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.3;
    color: #ffffff;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    border-left: 6px solid #5cb85c;
    padding-left: 25px;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 20px;
    border-left: 4px solid #5cb85c;
    padding-left: 20px;
    margin-top: 40px;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    margin-bottom: 15px;
    color: #b8e6b8;
    margin-top: 30px;
}

h4 {
    font-size: clamp(1.3rem, 2.5vw, 1.5rem);
    margin-bottom: 12px;
    color: #b8e6b8;
    margin-top: 25px;
}

h5 {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 10px;
    color: #c0c0c0;
    margin-top: 20px;
}

h6 {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    margin-bottom: 8px;
    color: #c0c0c0;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Text Elements */
p {
    margin-bottom: 20px;
    color: #c0c0c0;
    line-height: 1.7;
}

strong, b {
    color: #ffffff;
    font-weight: 600;
}

em, i {
    color: #b8e6b8;
    font-style: italic;
}

small {
    color: #888;
    font-size: 0.85em;
}

mark {
    background-color: #5cb85c;
    color: #000;
    padding: 2px 4px;
    border-radius: 3px;
}

code {
    background-color: #2a2a2a;
    color: #5cb85c;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    border: 1px solid #3a3a3a;
}

pre {
    background-color: #2a2a2a;
    color: #e0e0e0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #3a3a3a;
    line-height: 1.4;
}

pre code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
}

/* Lists */
ul, ol {
    margin: 20px 0;
    padding-left: 30px;
    color: #c0c0c0;
}

li {
    margin-bottom: 8px;
    line-height: 1.6;
}

ul li::marker {
    color: #5cb85c;
}

ol li::marker {
    color: #5cb85c;
    font-weight: bold;
}

/* Nested lists */
ul ul, ol ol, ul ol, ol ul {
    margin: 10px 0;
    padding-left: 20px;
}

/* Definition Lists */
dl {
    margin: 20px 0;
}

dt {
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 5px;
}

dd {
    color: #c0c0c0;
    margin-left: 20px;
    margin-bottom: 15px;
}

/* Blockquotes */
blockquote {
    background-color: #2a2a2a;
    border-left: 4px solid #5cb85c;
    padding: 20px;
    margin: 30px 0;
    border-radius: 6px;
    color: #e0e0e0;
    font-style: italic;
    position: relative;
}

blockquote::before {
    content: '"';
    font-size: 3rem;
    color: #5cb85c;
    position: absolute;
    top: -10px;
    left: 15px;
    opacity: 0.3;
}

blockquote p {
    margin-bottom: 10px;
}

blockquote cite {
    display: block;
    text-align: right;
    color: #888;
    font-style: normal;
    font-size: 0.9em;
    margin-top: 10px;
}

blockquote cite::before {
    content: '— ';
}

/* Links */
a {
    color: #5cb85c;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #4cae4c;
    text-decoration: underline;
}


/* Horizontal Rule */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #5cb85c, transparent);
    margin: 40px 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background-color: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #3a3a3a;
}

th {
    background-color: #5cb85c;
    color: #000;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tr:hover {
    background-color: #333;
}

tr:last-child td {
    border-bottom: none;
}

/* Forms */
input, textarea, select {
    background-color: #2a2a2a;
    border: 2px solid #3a3a3a;
    color: #e0e0e0;
    padding: 12px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #5cb85c;
    box-shadow: 0 0 0 3px rgba(92, 184, 92, 0.2);
}

button {
    background: #5cb85c;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: inherit;
    font-size: 1rem;
}

button:hover {
    background: #4cae4c;
    color: white;
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* Additional Utility Classes */
.text-center {
    text-align: center;
}

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

.text-right {
    text-align: right;
}

.text-green {
    color: #5cb85c;
}

.text-muted {
    color: #888;
}

.bg-dark {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #3a3a3a;
}

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

.hero-section {
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.712) 0%, rgba(0, 0, 0, 0.705) 50%, rgba(26, 46, 10, 0.8) 100%),
        url('/images/background-1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(92, 184, 92, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(51, 122, 183, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(240, 173, 78, 0.1) 0%, transparent 50%);
    animation: shimmer 10s ease-in-out infinite alternate;
}

@keyframes shimmer {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2; /* Above the character image */
    max-width: 800px;
    padding: 40px 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    color: #ffffff;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: #b8e6b8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0; /* Above background but below text */
    pointer-events: none; /* Don't interfere with text interactions */
}

.hero-character {
    position: absolute;
    right: 10%;
    bottom: 0;
    height: 80%;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.blog-posts {
    padding: 60px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.post-card {
    background: #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #3a3a3a;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.post-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #4a4a4a 25%, #5a5a5a 25%, #5a5a5a 50%, #4a4a4a 50%, #4a4a4a 75%, #5a5a5a 75%);
    background-size: 20px 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image::after {
    content: '🏗️';
    font-size: 3rem;
    opacity: 0.7;
}

.post-header-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.post-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffffff;
    line-height: 1.3;
}

.post-date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.post-excerpt {
    color: #c0c0c0;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.read-more {
    background: #5cb85c;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    margin-top: auto;
    align-self: flex-start;
}

.read-more:hover {
    background: #5cb85c;
    color: white;
    transform: translateY(-1px);
}

.footer {
    background: #111;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #333;
    margin-top: auto;
}

.footer p {
    color: #888;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
        background-attachment: scroll; /* Fixed attachment can cause issues on mobile */
    }
    
    .hero-content {
        padding: 20px;
    }
    
    .hero-character {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        height: 60%;
        opacity: 0.7; /* Slightly more transparent on mobile to not overwhelm the text */
    }
    
    .blog-posts {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 40px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .post-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .blog-posts {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 30px 0;
    }
    
    .post-card {
        margin: 0 10px;
    }
    
    .hero-title {
        letter-spacing: 1px;
    }
}
