/* ---------- Variables (Dark = default) ---------- */
:root {
    --bg-main: #0f1729;
    --bg-sidebar: #16203a;
    --bg-card: #1b2540;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #2a3654;
    --accent: #4ade80;
    --accent-hover: #22c55e;
}

body.light-mode {
    --bg-main: #f8fafc;
    --bg-sidebar: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border-color: #e2e8f0;
    --accent: #16a34a;
    --accent-hover: #15803d;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    background: var(--bg-main);
    color: var(--text-primary);
    transition: background 0.2s, color 0.2s;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-hover);
}

/* ---------- Layout ---------- */
.layout {
    display: flex;
    min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-name {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.sidebar-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--accent);
}

.sidebar-bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.sidebar-socials {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.sidebar-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: auto;
}

.sidebar-nav a {
    color: var(--text-secondary);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    text-align: left;
    font-weight: 500;
    font-size: 0.95rem;
    
}

.sidebar-nav a:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.sidebar-nav a.active {
    color: var(--accent);
    background: var(--bg-card);
}

.theme-toggle {
    margin-top: 2rem;
    width: 100%;
    padding: 0.6rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.9rem;
}

.theme-toggle:hover {
    background: var(--bg-card);
}

/* ---------- Main content ---------- */
.main-content {
    flex: 1;
    padding: 3rem;
    max-width: 1100px;
}

/* ---------- Hero (homepage) ---------- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.hero-bio {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-photo {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--accent);
    color: #06240f;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #06240f;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

/* ---------- Sections ---------- */
.section {
    margin-bottom: 4rem;
}

.section h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.bar {
    width: 4px;
    height: 1.4rem;
    background: var(--accent);
    display: inline-block;
    border-radius: 2px;
}

/* ---------- Skills ---------- */
.whatido-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem 2rem;
}

.whatido-card {
    background: transparent;
    border: none;
    padding: 0;
}

.whatido-icons {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
    font-size: 2rem;
}

.whatido-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.whatido-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 1000px) {
    .whatido-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ---------- Testimonials ---------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
}

.testimonial-card .quote {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ---------- Projects ---------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s;
}

.project-card:hover {
    transform: translateY(-4px);
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.project-info {
    padding: 1.2rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.tag {
    background: var(--bg-main);
    color: var(--accent);
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    font-weight: 600;
    font-size: 0.85rem;
}


/* ---------- Blog List ---------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    display: block;
    color: var(--text-primary);
    transition: transform 0.2s;
}

.blog-card:hover {
    color: var(--text-primary);
    transform: translateY(-4px);
}

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

.blog-card-body {
    padding: 1.2rem;
}

.blog-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    text-decoration: underline;
}

.blog-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.read-more {
    display: block;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-card .post-date {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.btn-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    margin-top: 1rem;
}

@media (max-width: 1000px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ---------- Blog Detail ---------- */
.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.blog-post h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.post-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.post-cover {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.post-content {
    color: var(--text-secondary);
    max-width: 100%;
    line-height: 1.8;
    font-size: 1rem;
}

.post-content h2,
.post-content h3 {
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

.post-content ul,
.post-content ol {
    margin: 0 0 1.2rem 1.5rem;
}

.post-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 1.2rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-primary);
}

.post-content pre {
    background: #0a0f1c;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.2rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.85rem;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.post-content table th,
.post-content table td {
    border: 1px solid var(--border-color);
    padding: 0.6rem 1rem;
    text-align: left;
}

.post-content table th {
    color: var(--text-primary);
    background: var(--bg-card);
}





/* ---------- Resume Page ---------- */
.resume-page {
    max-width: 860px;
}

/* --- heading + download --- */
.resume-page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.resume-page-title {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.resume-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: #06240f;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.55rem 1.3rem;
    border-radius: 6px;
    transition: background 0.2s, transform 0.15s;
}

.resume-download-btn:hover {
    background: var(--accent-hover);
    color: #06240f;
    transform: translateY(-2px);
}

/* --- shared card look --- */
.resume-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.6rem 2rem;
    margin-bottom: 1.2rem;
}

/* --- name card --- */
.resume-namecard {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.resume-fullname {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.resume-jobtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.resume-namecard-right {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    text-align: right;
}

.resume-contact-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    justify-content: flex-end;
}

.resume-contact-row i {
    color: var(--accent);
    font-size: 0.8rem;
    width: 14px;
    text-align: center;
}

.resume-contact-row a {
    color: var(--accent);
    font-size: 0.875rem;
}

.resume-contact-row a:hover {
    color: var(--accent-hover);
}

/* --- bio card --- */
.resume-biocard {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.resume-bio-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--accent);
}

.resume-bio-text {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.75;
}

/* --- two-column layout --- */
.resume-columns {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 1.2rem;
    align-items: start;
}

/* --- individual sections (inside columns) --- */
.resume-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.4rem 1.6rem;
    margin-bottom: 1.2rem;
}

.resume-section-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 1.1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-color);
}

.resume-section-bar {
    width: 4px;
    height: 1rem;
    background: var(--accent);
    border-radius: 2px;
    display: inline-block;
    flex-shrink: 0;
}

/* --- Work Experience --- */
.resume-job {
    margin-bottom: 1.4rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--border-color);
}

.resume-job:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.resume-job-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.resume-job-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
}

.resume-job-company {
    font-size: 0.78rem;
    color: var(--accent);
    white-space: nowrap;
}

.resume-job-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.6rem;
}

.resume-job-bullets {
    list-style: disc;
    padding-left: 1.2rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.8;
}

/* --- Projects (left column) --- */
.resume-project {
    padding-bottom: 1.4rem;
    margin-bottom: 1.4rem;
    border-bottom: 1px solid var(--border-color);
}

.resume-project:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.resume-project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.resume-project-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
}

.resume-badge-oss {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    white-space: nowrap;
}

.resume-project-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.65rem;
}

.resume-project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.8rem;
}

.resume-tech-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    background: var(--bg-main);
    color: var(--accent);
    border: 1px solid var(--border-color);
}

.resume-project-links {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.resume-project-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    transition: transform 0.15s, opacity 0.15s;
    text-decoration: none;
}

.resume-project-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.resume-project-btn-gh {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.resume-project-btn-gh:hover {
    color: var(--text-primary);
    border-color: var(--accent);
}

.resume-project-btn-live {
    background: var(--accent);
    color: #06240f;
    border: 1px solid transparent;
}

.resume-project-btn-live:hover {
    background: var(--accent-hover);
    color: #06240f;
}

/* --- Skills (right column) --- */
.resume-skill-group {
    margin-bottom: 1rem;
}

.resume-skill-group:last-child {
    margin-bottom: 0;
}

.resume-skill-category {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.resume-skill-list {
    list-style: none;
    padding: 0;
}

.resume-skill-list li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.18rem 0;
    border-bottom: 1px solid var(--border-color);
}

.resume-skill-list li:last-child {
    border-bottom: none;
}

/* --- Education --- */
.resume-edu-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.resume-edu-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.resume-edu-degree {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.resume-edu-institution,
.resume-edu-years {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* --- Awards --- */
.resume-award-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-bottom: 0.8rem;
}

.resume-award-item:last-child {
    margin-bottom: 0;
}

.resume-award-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.resume-award-meta {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* --- Languages --- */
.resume-lang-list {
    list-style: none;
    padding: 0;
}

.resume-lang-list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 0.22rem 0;
    border-bottom: 1px solid var(--border-color);
}

.resume-lang-list li:last-child {
    border-bottom: none;
}

.resume-lang-name {
    color: var(--text-primary);
    font-weight: 600;
}

.resume-lang-level {
    color: var(--text-secondary);
    font-style: italic;
}

/* --- Interests --- */
.resume-interest-list {
    list-style: none;
    padding: 0;
}

.resume-interest-list li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.resume-interest-list li:last-child {
    border-bottom: none;
}

/* --- Responsive for resume --- */
@media (max-width: 750px) {
    .resume-columns {
        grid-template-columns: 1fr;
    }
    .resume-namecard {
        flex-direction: column;
    }
    .resume-namecard-right {
        text-align: left;
        align-items: flex-start;
    }
    .resume-contact-row {
        justify-content: flex-start;
    }
}

/* ---------- Contact Form ---------- */
.form-heading {
    text-align: center;
    margin: 2rem 0 1.5rem;
}

.form-success {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 800px;
}

.form-row {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    flex: 1;
    min-width: 200px;
    padding: 0.85rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
}

.contact-form textarea {
    resize: vertical;
    min-height: 180px;
}

.contact-form button {
    align-self: flex-start;
    border: none;
    cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    .main-content {
        padding: 2rem 1.5rem;
    }
}

/* ---------- Project Modal ---------- */
.featured-project-card {
    cursor: pointer;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.2rem;
}

.modal-box h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.modal-box .project-client {
    margin-bottom: 1rem;
    display: block;
}

.modal-box p#modal-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}




/* ---------- Tech brand colors ---------- */
.fa-js { color: #f7df1e; }
.fa-python { color: #3776ab; }
.fa-html5 { color: #e34f26; }
.fa-css3-alt { color: #1572b6; }
.fa-react { color: #61dafb; }
.fa-node-js { color: #339933; }
.fa-git-alt { color: #f05032; }
.fa-database { color: #4ade80; }
.fa-angular { color: #dd0031; }
.fa-vuejs { color: #42b883; }
.fa-php { color: #777bb4; }
.fa-github { color: #ffffff; }





/* ---------- Featured Projects (homepage, image+text side by side) ---------- */
.featured-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border-color);
    margin-bottom: 2rem;
}

.featured-project-card {
    background: var(--bg-card);
    display: flex;
    gap: 1.2rem;
    padding: 1.5rem;
    cursor: pointer;
}

.featured-project-card img {
    width: 160px;
    height: 130px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.featured-project-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-decoration: underline;
}

.featured-project-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.project-client {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

@media (max-width: 700px) {
    .featured-projects-grid {
        grid-template-columns: 1fr;
    }
    .featured-project-card {
        flex-direction: column;
    }
    .featured-project-card img {
        width: 100%;
        height: 180px;
    }
}
/* ---------- Force consistent post content alignment ---------- */
.post-content p,
.post-content div,
.post-content span {
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
}

.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 8px;
}