:root {
    --navy: #000080;
    --peru: #cd853f;
    --white: #ffffff;
    --light-grey: #f4f4f4;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: var(--light-grey);
    color: #333;
}

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

header {
    background-color: var(--navy);
    color: var(--white);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo { margin: 0; font-size: 1.5rem; color: var(--peru); }

/* Sidebar Logic */
.sidebar {
    height: 100%; width: 0; position: fixed; z-index: 1;
    top: 0; left: 0; background-color: var(--navy);
    overflow-x: hidden; transition: 0.5s; padding-top: 60px;
}
.sidebar a {
    padding: 8px 32px; text-decoration: none; font-size: 20px;
    color: var(--white); display: block; transition: 0.3s;
}
.sidebar a:hover { color: var(--peru); }
.sidebar .closebtn { position: absolute; top: 0; right: 25px; font-size: 36px; }

.menu-icon { font-size: 20px; cursor: pointer; color: var(--white); }

/* Buttons & Social */
.btn-tutorial {
    background: var(--peru); color: var(--white);
    padding: 12px 24px; text-decoration: none; border-radius: 5px;
    display: inline-block; font-weight: bold; margin-top: 10px;
}

.social-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 10px; }
.social-links a { color: var(--navy); }
footer { text-align: center; padding: 2rem; background: #ddd; margin-top: 50px; }

/* Hero Banner Styles */
.hero-banner {
    background-image: url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?ixlib=rb-1.2.1&auto=format&fit=crop&w=1352&q=80'); /* Professional Tech Image */
    background-size: cover;
    background-position: center;
    height: 400px; /* Adjust height for mobile */
    position: relative;
    margin-top: -20px; /* Aligns with header if you have padding */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    background: rgba(0, 0, 128, 0.7); /* Navy Overlay with Transparency */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-subtitle {
    color: var(--peru);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 20px;
    font-weight: 300;
}

/* Button Styles */
.btn-primary {
    background: var(--peru);
    color: var(--white);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin: 5px;
    display: inline-block;
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 11px 24px;
    text-decoration: none;
    border-radius: 5px;
    border: 2px solid var(--white);
    margin: 5px;
    display: inline-block;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .hero-banner { height: 350px; }
    .hero-title { font-size: 1.8rem; }
    }
/* Tutorials Page Specific Styles */
.page-header {
    background: var(--navy);
    color: var(--white);
    padding: 3rem 1rem;
    text-align: center;
    border-bottom: 5px solid var(--peru);
    margin: -20px -20px 40px -20px; /* Aligns with the container edges */
}

.tutorial-grid {
    display: grid;
    gap: 25px;
    margin-top: 20px;
}

.tutorial-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 5px solid var(--peru);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.tutorial-card:hover {
    transform: translateY(-5px);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.8rem;
    font-weight: bold;
}

.tag { color: var(--peru); text-transform: uppercase; }
.date { color: #888; }

.tutorial-card h2 {
    margin: 10px 0;
    font-size: 1.4rem;
}

.tutorial-card h2 a {
    color: var(--navy);
    text-decoration: none;
}

.read-more-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--peru);
    font-weight: bold;
    text-decoration: none;
}

.empty-state {
    text-align: center;
    padding: 50px;
    color: #666;
    font-style: italic;
}
/* Responsive Post Images */
.post-header-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-bottom: 5px solid var(--peru);
    margin-top: -20px; /* Aligns with container if needed */
}
/* Portfolio Grid Styling */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 30px;
    padding-bottom: 50px;
}

.portfolio-item {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--peru);
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.portfolio-info {
    padding: 20px;
}

.portfolio-info h3 {
    margin: 0 0 10px 0;
    color: var(--navy);
}

.portfolio-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

/* Desktop support just in case */
@media screen and (min-width: 768px) {
    .portfolio-grid { grid-template-columns: 1fr 1fr; }
}
.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.post-content h2 { margin-top: 50px; }
/* Form Styling */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; color: var(--navy); }
.form-group input, .form-group textarea {
    width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; font-family: inherit;
}
.footer-links { margin-bottom: 10px; }
.footer-links a { color: #666; text-decoration: none; font-size: 0.9rem; margin: 0 5px; }
.footer-links a:hover { color: var(--peru); }
