body {
    font-family: 'Roboto Mono', monospace;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #0A0A0A;
    color: #FFFFFF;
}

h1, h2 {
    color: #00FFAA;
    font-weight: bold;
}

a {
    text-decoration: none;
    color: #00FFAA;
    transition: color 0.3s ease;
}

a:hover {
    color: #00CC88;
}

/* Header Styles */
header {
    background-color: #0A0A0A;
    padding: 20px 0;
    text-align: center;
    border-bottom: 2px solid #00FFAA;
}

header h1 {
    font-size: 2.5rem;
    text-transform: uppercase;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li a {
    color: #FFFFFF;
    font-weight: bold;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

section p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Form Styles */
form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #1A1A1A;
    border: 1px solid #00FFAA;
    border-radius: 8px;
}

form input,
form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #00FFAA;
    border-radius: 5px;
    background-color: #0A0A0A;
    color: #FFFFFF;
    font-family: 'Roboto Mono', monospace;
}

form button {
    background-color: #00FFAA;
    color: #0A0A0A;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

form button:hover {
    background-color: #00CC88;
}

/* Footer */
footer {
    background-color: #0A0A0A;
    text-align: center;
    padding: 10px 0;
    margin-top: 40px;
    border-top: 2px solid #00FFAA;
}

/* Blog Posts Grid */
.posts .container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    justify-content: center;
}

/* Post Card */
.post-card {
    position: relative;
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.post-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.3);
}

/* Overlay */
.post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction:column;
    align-items: center;
    justify-content: space-around;
    text-align: center;
    padding: 10px;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* Title inside post */
.post-title {
    color: white;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    max-width: 80%;
    font-size: clamp(0,7rem, 1vw, 1.2rem); /* Adjust between 1rem and 1.5rem */
}

/* Content Preview */
.content-preview {
    font-size: 14px;
    color: #CCCCCC;
    margin-top: 10px;
    padding: 10px;
    max-width: 80%;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 5px;
    display: block;
}

/* Read More Button */
.read-more {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    background-color: #00FFAA;
    color: #0A0A0A;
    text-decoration: none;
    border-radius: 0 0 10px 10px; /* Matches the card border radius */
    font-weight: bold;
    text-transform: uppercase;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.read-more:hover {
    background-color: #86f0b6;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.pagination button {
    background-color: #1e1e1e;
    color: #fff;
    border: 2px solid #444;
    padding: 10px 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.pagination button:hover {
    background-color: #444;
    border-color: #666;
}

.pagination button:disabled {
    background-color: #2a2a2a;
    color: #888;
    border-color: #333;
    cursor: not-allowed;
}


/* Responsive Grid */
@media (max-width: 1024px) {
    .posts .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .posts .container {
        grid-template-columns: 1fr;
    }

    .post-title {
        font-size: 1.2rem;
    }
}