/* Root Variables */

:root {
    --primary: #08C6AB;
    --primary-hover: #069e8d;
    --text-light: #fff;
    --text-muted: #ccc;
    --bg-dark: #121212;
    --font-main: 'Poppins', sans-serif;
}


/* Global Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a:focus,
button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}


/* Header */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    background-color: transparent;
    position: relative;
}

.logo img {
    width: 120px;
    height: auto;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links li a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-links li a:hover::after {
    transform: scaleX(1);
}

.nav-links li a:hover {
    color: var(--primary-hover);
}


/* Blog Hero Section */

.blog-hero {
    background: url('images/hero_bg.jpg') no-repeat center center / cover;
    position: relative;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.blog-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(18, 18, 18, 0.7);
    z-index: 1;
}

.blog-hero .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero h1 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.blog-hero p {
    font-size: 1.2rem;
    color: #d9fefa;
}


/* Blog Section */

.blog-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-section h2 {
    text-align: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.blog-section p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
}


/* Blog Grid */

.blog-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}


/* Blog Card */

.blog-cards-container {
    display: flex;
    gap: 24px;
    /* spacing between cards */
    flex-wrap: wrap;
    /* wrap to next line on smaller screens */
    justify-content: flex-start;
    /* left align horizontally */
}

.blog-card {
    flex: 1 1 300px;
    /* grow, shrink, min width */
    max-width: 320px;
    /* prevent too wide */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(13, 16, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    align-items: start;
}

.blog-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.blog-card img.featured-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 12px;
}

.blog-card h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.blog-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.5;
}

.read-more-btn {
    margin-top: auto;
    text-decoration: none;
    color: #042524;
    background: linear-gradient(90deg, #08C6AB, #81f0df);
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
}

.read-more-btn:hover {
    background-color: var(--primary-hover);
}


/* Footer */

.site-footer {
    width: 100%;
    background-color: #212B38;
    color: #fff;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 40px;
    border-top: 3px solid #08C6AB;
    font-size: 0.9rem;
}

.site-footer a {
    color: #08C6AB;
    text-decoration: none;
    margin: 0 8px;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-left,
.footer-center,
.footer-right {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.footer-center a {
    margin: 0 10px;
}

.social-icon {
    width: 22px;
    height: 22px;
    margin-left: 10px;
}


/* Responsive */

@media (max-width: 768px) {
    header {
        padding: 2rem;
    }
    .blog-hero h1 {
        font-size: 2rem;
    }
    .blog-hero p {
        font-size: 1rem;
    }
    .blog-grid {
        flex-direction: column;
        align-items: center;
    }
    .blog-card {
        width: 90%;
    }
}