/*
Theme Name: iCRESP ERP Theme
Description: Custom WordPress theme for iCRESP ERP Software website
Version: 1.0
Author: Mentor Performance Rating Pvt. Ltd.
*/

/* Footer positioning fixes */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#smooth-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#smooth-content {
    flex: 1;
}

footer {
    margin-top: auto;
}

/* Ensure footer stays at bottom */
.it-footer-bg {
    position: relative;
    z-index: 1;
}

/* Fix any layout issues with inner pages */
main {
    min-height: calc(100vh - 200px);
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Ensure anchor links work properly */
a[href^="#"] {
    cursor: pointer;
}

/* Fix navigation menu anchor links */
.it-onepage-menu a[href*="#"] {
    transition: all 0.3s ease;
}

.it-onepage-menu a[href*="#"]:hover {
    color: #00d4aa !important;
}

/* WordPress specific styles */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
}

.alignleft {
    float: left;
    margin-right: 1rem;
}

.alignright {
    float: right;
    margin-left: 1rem;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

.alignwide {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* WordPress block editor styles */
.wp-block-image {
    margin: 1rem 0;
}

.wp-block-quote {
    border-left: 4px solid #81B504;
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
}

.wp-block-button .wp-block-button__link {
    background-color: #81B504;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    display: inline-block;
}

.wp-block-button .wp-block-button__link:hover {
    background-color: #6a9a03;
    color: white;
}

/* Contact form success/error messages */
.message.success {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin: 1rem 0;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 1rem 0;
}
