/* Contact Form 7 Custom Styling with Background Overlay */

/* Container wrapper for background effect */
.contact-form-container {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background pattern overlay */
.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    z-index: 1;
}

/* Blurred background image effect */
.contact-form-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><filter id="blur"><feGaussianBlur stdDeviation="20"/></filter></defs><rect width="100%" height="100%" fill="%23f0f8ff" filter="url(%23blur)"/><circle cx="200" cy="200" r="100" fill="%23e6f3ff" filter="url(%23blur)"/><circle cx="800" cy="300" r="150" fill="%23d1e7ff" filter="url(%23blur)"/><circle cx="400" cy="700" r="120" fill="%23b8d4ff" filter="url(%23blur)"/></svg>') center/cover;
    filter: blur(20px);
    z-index: 0;
}
.wpcf7 {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px 40px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 15px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 1px solid rgb(54 193 63 / 80%);
    font-family: 'Roboto', 'Inter', 'Source Sans Pro', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    position: relative;
    z-index: 2;
    transform: translateY(0);
    transition: all 0.3s ease;
}

/* Background overlay effect */
.wpcf7::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(2, 136, 72, 0.1) 0%, rgba(30, 132, 73, 0.05) 100%);
    border-radius: 15px;
    z-index: -1;
}

/* Hover effect for form */
.wpcf7:hover {
    border: 1px solid rgba(54, 193, 63, 0.9);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}


.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output{
    padding: 0;
    border: none;
}
.form-title {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
    text-align: center;
    line-height: 1.3;
}

.form-desc {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.4;
}

/* Form Controls Styling */
.wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 15px;
    position: relative;
}

.wpcf7-form-control {
    width: 100%;
    padding: 15px 20px;
    border-radius: 8px !important;
    font-size: 14px;
    font-family: 'Roboto', 'Inter', 'Source Sans Pro', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-sizing: border-box;
    outline: none;
    color: #2c3e50;
    font-weight: 500;
}

.wpcf7-form-control:focus {
    border-color: rgba(2, 136, 72, 0.8);
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 0 0 3px rgba(2, 136, 72, 0.2),
        0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.wpcf7-form-control::placeholder {
    color: rgba(44, 62, 80, 0.7);
    font-weight: 400;
}

/* Input Fields */
.wpcf7-text,
.wpcf7-tel,
.wpcf7-email {
    height: 42px;
    line-height: 1.4;
}

/* Textarea */
.wpcf7-textarea {
    min-height: 80px;
    resize: vertical;
    line-height: 1.4;
    background-color: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.wpcf7-textarea:focus {
    border-color: rgba(2, 136, 72, 0.8) !important;
    background-color: #ffffff !important;
    box-shadow: 
        0 0 0 3px rgba(2, 136, 72, 0.2),
        0 4px 15px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px);
}

/* Submit Button */
.wpcf7-submit {
    background: linear-gradient(135deg, rgba(2, 136, 72, 0.9) 0%, rgba(30, 132, 73, 0.9) 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    width: 100%;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 15px rgba(2, 136, 72, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.wpcf7-submit:hover {
    box-shadow: 
        0 8px 25px rgba(2, 136, 72, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(30, 132, 73, 0.95) 0%, rgba(2, 136, 72, 0.95) 100%);
}

.wpcf7-submit:active {
    transform: translateY(0);
}

/* Spinner Animation */
.wpcf7-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

.wpcf7-submit:disabled + .wpcf7-spinner {
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Validation States */
.wpcf7-not-valid {
    border-color: #e74c3c !important;
    background-color: #fdf2f2;
}

.wpcf7-not-valid:focus {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

.wpcf7-validates-as-required:invalid {
    border-color: #e74c3c;
    background-color: #fdf2f2;
}

/* Response Messages */
.wpcf7-response-output {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.wpcf7-mail-sent-ok {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wpcf7-mail-sent-ng {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wpcf7-spam-blocked {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.wpcf7-validation-errors {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Required Field Indicator */
.wpcf7-form-control[aria-required="true"]::after {
    content: " *";
    color: #e74c3c;
    font-weight: bold;
}

/* Focus States Enhancement */
.wpcf7-form-control:focus {
    background-color: #f8fffe;
}

/* Hover Effects */
.wpcf7-form-control:hover:not(:focus) {
    border-color: #bdc3c7;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 30px 15px;
        min-height: 100vh;
    }
    
    .wpcf7 {
        padding: 25px 20px;
        margin: 15px;
        max-width: 100%;
        animation: none; /* Disable floating on mobile */
    }
    .contact-popup-form .wpcf7{
        margin: 0;
    }

    .wpcf7:hover {
        transform: none; /* Disable hover transform on mobile */
    }
    
    .form-title {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .form-desc {
        font-size: 13px;
        margin-bottom: 18px;
    }
    
    .wpcf7-form-control {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .wpcf7-text,
    .wpcf7-tel,
    .wpcf7-email {
        height: 45px;
    }
    
    .wpcf7-textarea {
        min-height: 80px;
    }
    
    .wpcf7-submit {
        padding: 12px 25px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .wpcf7 {
        padding: 20px 10px;
        margin: 10px;
    }
    .contact-popup-form .wpcf7{
        margin: 0;
    }
    .form-title {
        font-size: 20px;
    }
    
    .form-desc {
        font-size: 13px;
    }
}

/* Loading State */
.wpcf7-form.sending .wpcf7-submit {
    opacity: 0.7;
    cursor: not-allowed;
}

.wpcf7-form.sending .wpcf7-submit:hover {
    transform: none;
    box-shadow: none;
}

/* Success Animation */
.wpcf7-form.sent .wpcf7-submit {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    animation: successPulse 0.6s ease-in-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Error Animation */
.wpcf7-form.invalid .wpcf7-not-valid {
    animation: errorShake 0.5s ease-in-out;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Accessibility Improvements */
.wpcf7-form-control:focus {
    outline: 2px solid #028848;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .wpcf7-form-control {
        border-width: 3px;
    }
    
    .wpcf7-submit {
        border: 2px solid #000000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .wpcf7-form-control,
    .wpcf7-submit {
        transition: none;
    }
    
    .wpcf7-spinner {
        animation: none;
    }
}

.wpcf7-not-valid-tip{
    margin-top: 12px;
}

/* Contact Popup Button Styles */
.contact-popup-wrapper {
    display: inline-block;
    margin: 25px 0;
    text-align: center;
    width: 100%;
}

.contact-popup-btn {
    background: #dc2626;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Roboto', 'Inter', 'Source Sans Pro', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-popup-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.contact-popup-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.3);
}

/* Contact Popup Modal Styles */
.contact-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.contact-popup-modal.show {
    opacity: 1;
    visibility: visible;
}

.contact-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.contact-popup-container {
    position: relative;
    z-index: 2;
    max-width: 450px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.contact-popup-modal.show .contact-popup-container {
    transform: scale(1);
}

.contact-popup-content {
    background: #f8fffe;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(2, 136, 72, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-popup-close {
    display: none;
}


/* Form title styling */
.contact-popup-form .form-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    text-align: center;
    line-height: 1.3;
}

.contact-popup-form .form-desc {
    font-size: 15px;
    color: #7f8c8d;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.4;
}

/* Form controls styling */
.contact-popup-form .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 12px;
    position: relative;
}

.contact-popup-form .wpcf7-form-control {
    width: 100%;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Roboto', 'Inter', 'Source Sans Pro', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    box-sizing: border-box;
    outline: none;
    font-weight: 400;
}

.contact-popup-form .wpcf7-form-control:focus {
    border-color: rgba(2, 136, 72, 0.6);
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(2, 136, 72, 0.1);
}

.contact-popup-form .wpcf7-form-control::placeholder {
    color: rgba(44, 62, 80, 0.6);
    font-weight: 400;
}

/* Input Fields */
.contact-popup-form .wpcf7-text,
.contact-popup-form .wpcf7-tel,
.contact-popup-form .wpcf7-email {
    height: 42px;
    line-height: 1.4;
}

/* Textarea */
.contact-popup-form .wpcf7-textarea {
    min-height: 70px;
    resize: vertical;
    line-height: 1.4;
    background-color: #ffffff;
    border: 1px solid rgba(44, 62, 80, 0.3);
}

.contact-popup-form .wpcf7-textarea:focus {
    border-color: rgba(2, 136, 72, 0.6);
    background-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(2, 136, 72, 0.1);
}

/* Submit Button */
.contact-popup-form .wpcf7-submit {
    background: linear-gradient(135deg, #028848 0%, #1e8449 100%);
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    width: 100%;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(2, 136, 72, 0.3);
}

.contact-popup-form .wpcf7-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 136, 72, 0.4);
    background: linear-gradient(135deg, #1e8449 0%, #028848 100%);
}

.contact-popup-form .wpcf7-submit:active {
    transform: translateY(0);
}

.contact-popup-modal-open {
    overflow: hidden;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact-popup-container {
        width: 95%;
        max-width: 400px;
        max-height: 85vh;
    }
    
    .contact-popup-content {
        border-radius: 10px;
    }
    
    .contact-popup-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .contact-popup-form .form-title {
        font-size: 16px;
    }
    
    .contact-popup-form .form-desc {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .contact-popup-container {
        max-width: 350px;
    }
    
    .contact-popup-form .wpcf7-form-control {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .contact-popup-form .wpcf7-submit {
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* Contact Popup Button Styles */
.contact-popup-wrapper {
    display: inline-block;
    margin: 20px 0;
}

.contact-popup-btn {
    background: #dc2626;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Roboto', 'Inter', 'Source Sans Pro', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-popup-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.contact-popup-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.3);
}

/* Contact Popup Modal Styles */
.contact-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.contact-popup-modal.show {
    opacity: 1;
    visibility: visible;
}

.contact-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.contact-popup-container {
    position: relative;
    z-index: 2;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.contact-popup-modal.show .contact-popup-container {
    transform: scale(1);
}

.contact-popup-content {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.contact-popup-close:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #333;
    transform: rotate(90deg);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact-popup-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .contact-popup-content {
        border-radius: 15px;
    }
    

    
    .contact-popup-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    
    .contact-popup-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

/*--------------------------------------------------------------
# Archive & Category Pages
--------------------------------------------------------------*/
.archive-wrapper {
    padding: 40px 0;
    background-color: #f9f9f9;
}

/* A container class if the theme doesn't have one */
.archive-wrapper .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.archive-header {
    margin-bottom: 40px;
    text-align: left;
}

.archive-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.archive-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    transform: none;
    width: 60px;
    height: 3px;
    background-color: #028848;
}

.archive-description {
    font-size: 16px;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

.archive-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.archive-main {
    flex: 3;
    min-width: 0; /* Prevents overflow issues with flexbox */
}

.archive-sidebar {
    flex: 1;
    min-width: 0; /* Prevents overflow issues with flexbox */
}

.post-card-item {
    margin-bottom: 30px;
}

.post-card-item-inner {
    display: flex;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    height: 100%;
}

.post-card-item-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.post-card-image {
    flex: 0 0 300px;
    position: relative;
}

.post-card-image a {
    display: block;
    height: 100%;
}

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

.post-card-date {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #eee;
    padding: 8px;
    border-radius: 5px;
    text-align: center;
    font-weight: 700;
    line-height: 1.1;
    color: #555;
    width: 55px;
}

.post-card-date .day {
    display: block;
    font-size: 20px;
    color: #028848;
}

.post-card-date .month-year {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
}

.post-card-content {
    padding: 25px 30px;
}

.post-card-content .post-title {
    font-size: 22px;
    margin: 0 0 15px 0;
    font-weight: 600;
    line-height: 1.3;
}

.post-card-content .post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card-content .post-title a:hover {
    color: #028848;
}

.post-card-content .post-excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: #7f8c8d;
}

/* Pagination Styles */
.pagination {
    margin-top: 30px;
    clear: both;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}
.sidebar .widget.widget_media_image{
    padding: 0 !important;
}
.sidebar .widget.widget_media_image img{
    width: 100%;
    border-radius: 8px;
}
.pagination .page-numbers {
    display: block;
    padding: unset;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #555;
    font-weight: 600;
    text-decoration: none;
    width: 42px;
    height: 42px;
    align-content: center;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #028848;
    color: #fff;
    border: 1px solid #028848 !important;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .archive-layout {
        flex-direction: column;
    }
    .archive-sidebar,
    .archive-main {
        flex: 1 0 100%;
        max-width: 100%;
    }
    .archive-main {
        order: -1; /* Show main content first on mobile */
    }
}

@media (max-width: 767px) {
    .post-card-item-inner {
        flex-direction: column;
    }

    .post-card-image {
        flex-basis: 220px;
    }
    
    .archive-title {
        font-size: 28px;
    }
}

/*--------------------------------------------------------------
# Sidebar Styles
--------------------------------------------------------------*/
.sidebar .widget {
    background: #fff;
    padding: 25px;
    margin-bottom: 45px;
    border-radius: 8px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.07);
}

.sidebar .widget:last-child {
    margin-bottom: 0;
}

.sidebar .widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 15px;
    position: relative;
    letter-spacing: 0.5px;
}

.sidebar .widget-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #028848;
}

/* Category Widget */
.widget_categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_categories li {
    border-bottom: 1px solid #f2f2f2;
    margin: 0;
    border-top: none !important;
}

.widget_categories li:last-child {
    border-bottom: none;
}

.widget_categories a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
}

.widget_categories a:hover {
    color: #028848;
    padding-left: 10px;
}

.widget_categories .count {
    font-size: 13px;
    color: #999;
    background: #f7f7f7;
    padding: 3px 9px;
    border-radius: 4px;
    font-weight: 600;
}

/* Search Widget */
.widget_search .search-form {
    display: flex;
    position: relative;
}

.widget_search .search-field {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease;
}

.widget_search .search-field:focus {
    border-color: #028848;
}

.widget_search .search-submit {
    position: absolute;
    top: 5px;
    right: 5px;
    height: calc(100% - 10px);
    padding: 0 18px;
    border: none;
    background: #028848;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.widget_search .search-submit:hover {
    background: #026a38;
}

/*--------------------------------------------------------------
# Single Post Styles
--------------------------------------------------------------*/
.single-post-wrapper {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.single-post-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.07);
}

.post-header {
    margin-bottom: 30px;
}

.post-title-single {
    font-size: 32px;
    font-weight: 500;
    color: #2c3e50;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #7f8c8d;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.post-meta .meta-item {
    display: flex;
    align-items: center;
}

.post-meta-icon {
    width: 13px;
    height: 13px;
    margin-right: 8px;
    fill: #999;
}

.post-meta .meta-item i {
    margin-right: 8px;
    color: #999;
}

.post-meta a {
    color: #555;
    text-decoration: none;
}

.post-meta a:hover {
    color: #028848;
}

.post-thumbnail {
    margin-bottom: 30px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.post-the-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.post-the-content h1,
.post-the-content h2,
.post-the-content h3,
.post-the-content h4,
.post-the-content h5,
.post-the-content h6 {
    color: #2c3e50;
    margin: 30px 0 20px 0;
    font-weight: 600;
}

.post-the-content a {
    color: #028848;
    text-decoration: none;
}

.post-the-content a:hover {
    text-decoration: underline;
}

.post-the-content p {
    margin-bottom: 1.5em;
}

.post-footer-meta {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.post-tags {
    font-size: 14px;
}

.post-tags .tags-title {
    font-weight: 700;
    margin-right: 10px;
}

.post-tags a {
    display: inline-block;
    background: #f5f5f5;
    color: #555;
    padding: 5px 12px;
    margin: 0 5px 5px 0;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background: #028848;
    color: #fff;
}

/*--------------------------------------------------------------
# Related Posts
--------------------------------------------------------------*/
.related-posts-section {
    margin-top: 40px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
}

.related-posts-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 30px 0;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.related-post-item {
    overflow: hidden;
}

.related-post-item:hover {
}

.related-post-link {
    display: block;
    text-decoration: none;
}

.related-post-thumbnail {
    height: 150px;
}

.related-post-thumbnail img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.related-post-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    padding: 15px 0;
    margin: 0;
    line-height: 1.4;
}
.related-post-link:hover {
    text-decoration: none !important;
    color: #028848 !important;
}
.related-post-title:hover {
    color: #028848;
}

.sidebar-contact-form .wpcf7 {
    padding: 20px 15px;
}
.sidebar-contact-form .wpcf7 .form-title{
    font-size: 16px;
}
.sidebar-contact-form .wpcf7 .wpcf7-form-control-wrap{
    margin-bottom: 0px;
}
.sidebar-contact-form .wpcf7 .wpcf7-form input[type="submit"]{
    padding: 10px 0;
}

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

@media (max-width: 768px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    .archive-main .navigation.pagination{
        justify-content: center;
    }
    .sidebar-contact-form .wpcf7 .wpcf7-form-control-wrap{
        margin-bottom: 15px;
    }
}

