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

body {
    font-family: 'Georgia', serif;
    background-color: #0f0f0f;
    color: #e0e0e0;
    line-height: 1.6;
}

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

section {
    padding: 4rem 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 3px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

p {
    margin-bottom: 1.5rem;
}

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

a:hover {
    color: #ffffff;
}

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

.mb-4 {
    margin-bottom: 1rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.max-w-2xl {
    max-width: 42rem;
}

.space-y-8 > * + * {
    margin-top: 2.5rem;
}

.bg-gray-800 {
    background-color: #1a1a1a;
}

.bg-gray-900 {
    background-color: #0f0f0f;
}

/* Header Styles */
header {
    background-color: #1a1a1a;
    padding: 1.5rem 0;
    border-bottom: 2px solid #333;
    position: relative;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    letter-spacing: 2px;
}

.tagline {
    font-size: 1.1rem;
    color: #888;
    font-style: italic;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #ffffff;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 1.5rem;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle.active {
    background: none;
    color: #e0e0e0;
    outline: none;
}

.mobile-menu-toggle:focus {
    outline: none;
    background: none;
    color: #e0e0e0;
}

.mobile-menu-toggle:active {
    outline: none;
    background: none;
    color: #e0e0e0;
}

.mobile-menu-toggle:hover {
    background: none;
    color: #ffffff;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.9));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero h1 span {
    color: #e0e0e0;
    font-weight: 300;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Button Styles */
button {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Georgia', serif;
}

button:hover {
    background-color: #ffffff;
    color: #0f0f0f;
}

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

.blog-post-card {
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #333;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
    border-color: #555;
}

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

.card-content {
    padding: 1.5rem;
}

.category {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.blog-post-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.excerpt {
    color: #bbb;
    margin-bottom: 1rem;
}

.meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1rem;
}

/* About Section */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 4rem 0;
}

.about-image {
    background-color: #333;
    height: 400px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-image: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
}
.about-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-content h2 {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: #ffffff;
}

.about-content h2:first-child {
    margin-top: 0;
}

.about-content p {
    color: #bbb;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Newsletter Section */
.newsletter {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 4rem 0;
}

.newsletter i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #e0e0e0;
}

.newsletter form {
    display: flex;
    margin-top: 2rem;
}

.newsletter input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background-color: #1a1a1a;
    color: #e0e0e0;
    font-family: 'Georgia', serif;
}

.newsletter button {
    border-left: none;
}

/* Resources Page */
.resources-container {
    max-width: 800px;
    margin: 0 auto;
}

.resource-item {
    display: flex;
    gap: 2rem;
    background-color: #1a1a1a;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #333;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.resource-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: #555;
}

.resource-icon {
    font-size: 2.5rem;
    color: #e0e0e0;
    background-color: rgba(255, 255, 255, 0.05);
    height: 60px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
}

.resource-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resource-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.resource-content p {
    color: #bbb;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.resource-content a {
    display: inline-block;
    margin-top: 0.5rem;
    color: #ffffff;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.resource-content a:hover {
    border-color: transparent;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    padding: 3rem 0;
    border-top: 2px solid #333;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
    text-align: center;
    color: #777;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: block;
}

.modal-content {
    background-color: #1a1a1a;
    margin: 2% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    position: relative;
}

.modal-header {
    position: sticky;
    top: 0;
    background-color: #1a1a1a;
    padding: 1rem 2rem;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    width: 100%;
    box-sizing: border-box;
}

.modal-title {
    font-size: 1.8rem;
    margin: 0;
}

.close {
    color: #888;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ffffff;
}

.modal-body {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.modal-meta {
    color: #777;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.modal-content-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.modal-content-text p {
    margin-bottom: 1.5rem;
}

.modal-content-text h2 {
    margin: 2rem 0 1rem 0;
    font-size: 1.4rem;
}

.modal-content-text h3 {
    margin: 1.5rem 0 0.8rem 0;
    font-size: 1.2rem;
}

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

    nav {
        margin-top: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

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

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .about-section {
        grid-template-columns: 1fr;
    }

    .newsletter form {
        flex-direction: column;
    }

    .newsletter input {
        margin-bottom: 1rem;
    }

    .newsletter button {
        width: 100%;
        border-left: 2px solid #ffffff;
    }

    .resource-item {
        flex-direction: column;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .modal-body {
        padding: 1.5rem;
    }
}

/* Mobile Menu */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        z-index: 101;
    }

    nav {
        display: none;
    }

    nav.active {
        display: block;
        position: absolute;
        top: 80%;
        left: 0;
        width: 100%;
        background-color: #1a1a1a;
        padding: 1rem;
        z-index: 100;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
}
