/*
Theme Name: NIRMAANPRO
Description: A professional WordPress theme for waterproofing services
Version: 1.0
Author: Your Name
*/

/* Reset and Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #E63946;
    --secondary-color: #A4161A;
    --accent-color: #F4978E;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 0;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url('hero-bg.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: white;
    padding: 200px 20px 100px;
    text-align: center;
    margin-top: 70px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content > p:first-of-type {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: #ff8800;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-cyan-green {
    background-color: #00D9A3;
    color: white;
}

.btn-cyan-green:hover {
    background-color: #00B88F;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 217, 163, 0.3);
}

.btn-navy {
    background-color: #001F3F;
    color: white;
}

.btn-navy:hover {
    background-color: #000D1A;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 31, 63, 0.3);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
}

/* About Section */
.about {
    padding: 80px 20px;
    background-color: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.expertise {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.expertise-item {
    text-align: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.expertise-item h4 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.expertise-item p {
    color: var(--text-light);
}

.about-img {
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-img {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #ddd 0%, #999 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.services-banner {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Services Section */
.services {
    padding: 80px 20px;
    background-color: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background-color: white;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.service-card ul {
    list-style: none;
    color: var(--text-light);
}

.service-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Portfolio Section */
.portfolio {
    padding: 80px 20px;
    background-color: var(--bg-light);
}

/* Techniques, Advantages, Suitability, Tools, Research, Visit, Forum */
.techniques,
.advantages,
.suitability,
.tools,
.research,
.visit-plan,
.forum {
    padding: 80px 20px;
    background-color: var(--bg-white);
}

.techniques .techniques-grid,
.advantages .advantages-grid,
.suitability .suitability-grid,
.research .research-grid,
.visit-plan .visit-grid,
.forum .forum-grid,
.tools .tool-grid {
    display: grid;
    gap: 1.5rem;
}

.techniques .techniques-grid,
.advantages .advantages-grid,
.suitability .suitability-grid,
.research .research-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.technique-card,
.advantage-card,
.suitability-card,
.tool-card,
.research-card,
.visit-card,
.forum-panel {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.technique-card h3,
.advantage-card h3,
.suitability-card h3,
.tool-card h3,
.research-card h3,
.visit-card h3,
.forum-panel h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tools .tools-activity {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tools-panel {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.calculator-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.calculator-form .tool-result {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-weight: 600;
}

.tools .btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.tools .btn-secondary:hover {
    background-color: #003366;
}

.visit-plan .visit-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.visit-plan ul {
    list-style: none;
    padding-left: 0;
}

.visit-plan li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.3rem;
    color: var(--text-light);
}

.visit-plan li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

.forum .forum-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.forum-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.forum-questions {
    display: grid;
    gap: 1rem;
}

.forum-question {
    padding: 1rem;
    border-radius: 10px;
    background-color: white;
    border: 1px solid var(--border-color);
}

.forum-question h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.forum-question p,
.forum-question .answer {
    color: var(--text-light);
    line-height: 1.7;
}

.forum-note,
.contact-note {
    color: var(--text-light);
    margin-top: 1rem;
    font-size: 0.95rem;
}

@media (max-width: 980px) {
    .tools .tools-activity,
    .forum .forum-grid,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .hero {
        padding: 180px 20px 80px;
    }
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-img {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.portfolio-img.basement {
    background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
}

.portfolio-img.roof {
    background: linear-gradient(135deg, #696969 0%, #2F4F4F 100%);
}

.portfolio-img.foundation {
    background: linear-gradient(135deg, #A9A9A9 0%, #708090 100%);
}

.portfolio-img.parking {
    background: linear-gradient(135deg, #556B2F 0%, #3C3C1F 100%);
}

.portfolio-img.window {
    background: linear-gradient(135deg, #87CEEB 0%, #4682B4 100%);
}

.portfolio-img.emergency {
    background: linear-gradient(135deg, #DC143C 0%, #8B0000 100%);
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.portfolio-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.project-type {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Blog Section */
.blog {
    padding: 80px 20px;
    background-color: var(--bg-white);
}

.blog-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
    display: flex;
    flex-direction: column;
}

.blog-card.admin-post {
    border-left-color: var(--secondary-color);
    background: linear-gradient(180deg, #fff8f6 0%, #ffffff 100%);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background-color: white;
}

.blog-date {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.blog-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.8;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.blog-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.read-time {
    color: var(--text-light);
    font-size: 0.85rem;
    font-style: italic;
    align-self: center;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.read-more:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.blog-cta {
    text-align: center;
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.blog-cta p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 20px;
    background-color: var(--bg-white);
}

/* Admin Section */
.admin {
    padding: 80px 20px;
    background-color: #f8fafc;
}

.admin-wrap {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    max-width: 700px;
    margin: 0 auto;
}

.admin-form {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-dashboard {
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    background-color: white;
}

.admin-dashboard h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.admin-dashboard ul {
    list-style: disc;
    margin-left: 1.2rem;
    color: var(--text-light);
}

.admin-dashboard li {
    margin-bottom: 0.4rem;
}

.admin-blog-panel,
.admin-answer-panel {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #ffffff;
    padding: 1rem;
    margin-top: 1.25rem;
}

.admin-blog-panel h3,
.admin-answer-panel h3 {
    margin-bottom: 0.75rem;
}

.admin-blog-panel .tool-result {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: 6px;
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-weight: 600;
}

.admin-credentials {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.95rem;
    text-align: center;
}

.hidden {
    display: none !important;
}

.admin-bottom-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 0.75rem 1.2rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 999;
}

.admin-bottom-btn:hover {
    background-color: #004080;
}

.admin-submissions {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-height: 500px;
    overflow-y: auto;
}

.submission-item {
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.submission-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.submission-item p {
    margin: 0.5rem 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.submission-item .submission-meta {
    font-size: 0.85rem;
    color: #999;
    margin-top: 1rem;
}


.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    border-top: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.stars {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.testimonial-author {
    color: var(--primary-color);
    font-weight: 600;
    font-style: normal;
}

/* Contact Section */
.contact {
    padding: 80px 20px;
    background-color: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-item p {
    color: var(--text-light);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 102, 204, 0.2);
}

.contact-form button {
    width: 100%;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 20px 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Switch header to row: logo left, hamburger right */
    .nav-wrapper {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0.85rem 0;
    }

    /* Show hamburger button */
    .hamburger {
        display: flex;
        z-index: 1100;
    }

    /* Hide menu by default; it drops down when .active */
    .nav-menu {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--bg-white);
        gap: 0;
        box-shadow: 0 6px 20px rgba(0,0,0,0.12);
        z-index: 1099;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        padding: 0.5rem 0;
    }

    /* Open state */
    .nav-menu.active {
        display: flex;
    }

    /* Each menu item */
    .nav-menu li {
        padding: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu li a {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 1.05rem;
        color: var(--text-dark);
        font-weight: 600;
    }

    .nav-menu li a:hover {
        background-color: var(--bg-light);
        color: var(--primary-color);
    }

    /* Hamburger → X animation */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        padding: 150px 20px 80px;
        margin-top: 60px;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content > p:first-of-type {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .expertise {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-wrapper {
        padding: 0.8rem 0;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content > p:first-of-type {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .about-text h3 {
        font-size: 1.5rem;
    }

    .service-card,
    .testimonial-card {
        padding: 1.5rem;
    }
}

/* Page and Post Styles */
.page-content {
    padding: 100px 20px 80px;
    min-height: calc(100vh - 200px);
}

.page-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 2rem;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.post-header {
    margin-bottom: 2rem;
}

.post-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.post-date,
.post-category,
.post-read-time {
    color: var(--text-light);
    font-size: 0.9rem;
}

.post-thumbnail {
    margin-bottom: 2rem;
    text-align: center;
}

.post-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.post-content {
    line-height: 1.8;
    margin-bottom: 2rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    margin-top: 2rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-tags a {
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background-color 0.3s ease;
}

.post-tags a:hover {
    background-color: var(--primary-color);
    color: white;
}

.tag-label {
    font-weight: 600;
    margin-right: 0.5rem;
}

/* Archive Styles */
.archive-header {
    text-align: center;
    margin-bottom: 3rem;
}

.archive-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.archive-description {
    color: var(--text-light);
    font-size: 1.1rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.no-posts {
    text-align: center;
    grid-column: 1 / -1;
}

.no-posts h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Contact Success Message */
.contact-success {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 2rem;
    text-align: center;
    border: 1px solid #c3e6cb;
}

/* Admin Panel (Hidden in WordPress) */
.admin,
.admin-bottom-btn {
    display: block !important; /* Temporarily visible for HTML version */
}
