/* ===== Nova Builder - Frontend Styles ===== */
/* Base styles for rendered elements on the frontend */

.nova-content {
    width: 100%;
}

/* Section */
.nova-section {
    position: relative;
    width: 100%;
}

.nova-section-boxed .nova-section-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nova-section-full .nova-section-wrap {
    width: 100%;
}

/* Row (columns container) */
.nova-row {
    display: flex;
    flex-wrap: wrap;
}

/* Column */
.nova-column {
    position: relative;
}

.nova-column-wrap {
    padding: 10px;
}

/* Responsive */
@media (max-width: 767px) {
    .nova-row {
        flex-direction: column;
    }

    .nova-column {
        width: 100% !important;
    }
}

/* ===== Element Base Styles ===== */

/* Heading */
.nova-heading {
    margin: 0;
    word-wrap: break-word;
}

/* Text Editor */
.nova-text-editor {
    line-height: 1.7;
}

.nova-text-editor p {
    margin: 0 0 1em;
}

.nova-text-editor p:last-child {
    margin-bottom: 0;
}

/* Image */
.nova-image-wrap {
    margin: 0;
    text-align: center;
}

.nova-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.nova-image-caption {
    font-size: 0.9em;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

.nova-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #f5f5f5;
    border-radius: 8px;
}

/* Video */
.nova-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.nova-video-wrap iframe,
.nova-video-wrap video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.nova-video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: #f5f5f5;
    border-radius: 8px;
}

/* Button */
.nova-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.2;
}

.nova-button-xs {
    padding: 6px 14px;
    font-size: 12px;
}

.nova-button-sm {
    padding: 8px 18px;
    font-size: 13px;
}

.nova-button-md {
    padding: 12px 28px;
    font-size: 14px;
}

.nova-button-lg {
    padding: 15px 36px;
    font-size: 16px;
}

.nova-button-xl {
    padding: 18px 44px;
    font-size: 18px;
}

.nova-button-full {
    width: 100%;
    justify-content: center;
}

/* Icon */
.nova-icon-wrap {
    line-height: 1;
}

.nova-icon {
    display: inline-block;
    transition: color 0.3s;
}

/* Spacer */
.nova-spacer {
    width: 100%;
}

/* Divider */
.nova-divider {
    border: none;
}

.nova-divider-label {
    font-size: 14px;
    color: #888;
    white-space: nowrap;
}

/* Icon Box */
.nova-icon-box {
    text-align: center;
}

.nova-ib-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.nova-ib-left {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
}

.nova-ib-right {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 16px;
    text-align: right;
}

.nova-ib-icon {
    line-height: 1;
    flex-shrink: 0;
}

.nova-ib-title {
    margin: 0 0 8px;
    font-size: 18px;
}

.nova-ib-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

/* Image Box */
.nova-image-box {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.nova-image-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.nova-imgbox-img img {
    width: 100%;
    display: block;
}

.nova-imgbox-content {
    padding: 20px;
}

.nova-imgbox-title {
    margin: 0 0 8px;
    font-size: 18px;
}

.nova-imgbox-desc {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Counter */
.nova-counter {
    text-align: center;
}

.nova-counter-number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.nova-counter-title {
    font-size: 16px;
    color: #666;
}

.nova-counter-prefix,
.nova-counter-suffix {
    font-weight: 700;
}

/* Progress Bar */
.nova-progress {
    margin-bottom: 16px;
}

.nova-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.nova-progress-pct {
    font-weight: 600;
}

/* Testimonial */
.nova-testimonial {
    text-align: center;
    padding: 20px;
}

.nova-testimonial-stars {
    margin-bottom: 12px;
    font-size: 20px;
}

.nova-star.filled {
    color: #FFD700;
}

.nova-testimonial-content {
    font-size: 16px;
    line-height: 1.7;
    font-style: italic;
    color: #555;
    margin: 0 0 16px;
}

.nova-testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.nova-testimonial-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.nova-testimonial-info {
    text-align: left;
}

.nova-testimonial-name {
    display: block;
    font-size: 15px;
}

.nova-testimonial-title {
    display: block;
    font-size: 13px;
    color: #888;
}

/* Star Rating */
.nova-star-rating {
    line-height: 1;
}

/* Alert */
.nova-alert {
    padding: 16px 20px;
    border-radius: 6px;
    position: relative;
    margin: 8px 0;
    background: #f8f9fa;
}

.nova-alert-info {
    background: #e3f2fd;
}

.nova-alert-success {
    background: #e8f5e9;
}

.nova-alert-warning {
    background: #fff8e1;
}

.nova-alert-danger {
    background: #fce4ec;
}

.nova-alert-title {
    display: block;
    margin-bottom: 4px;
}

.nova-alert-dismiss {
    position: absolute;
    top: 8px;
    right: 12px;
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
}

/* Accordion */
.nova-accordion {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.nova-acc-item {
    border-bottom: 1px solid #dee2e6;
}

.nova-acc-item:last-child {
    border-bottom: none;
}

.nova-acc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #f8f9fa;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
    user-select: none;
}

.nova-acc-header:hover {
    background: #f0f0f2;
}

.nova-acc-icon {
    transition: transform 0.3s;
    font-size: 14px;
}

.nova-acc-open .nova-acc-icon {
    transform: rotate(180deg);
}

.nova-acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.nova-acc-open .nova-acc-body {
    max-height: 500px;
}

.nova-acc-content {
    padding: 14px 18px;
    line-height: 1.6;
}

/* Tabs */
.nova-tabs-nav {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    gap: 0;
}

.nova-tab-btn {
    padding: 10px 20px;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    background: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
    font-family: inherit;
}

.nova-tab-btn:hover {
    color: #333;
}

.nova-tab-btn.active {
    color: #6C5CE7;
    border-bottom-color: #6C5CE7;
}

.nova-tab-pane {
    display: none;
    padding: 20px 0;
    line-height: 1.6;
}

.nova-tab-pane.active {
    display: block;
}

/* Slider */
.nova-slider {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.nova-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nova-slide.active {
    opacity: 1;
    position: relative;
}

.nova-slide-content {
    text-align: center;
    color: #fff;
    padding: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.nova-slide-title {
    font-size: 32px;
    margin: 0 0 12px;
}

.nova-slide-desc {
    font-size: 16px;
    margin: 0 0 20px;
    opacity: 0.9;
}

.nova-slide-btn {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    backdrop-filter: blur(8px);
    transition: background 0.3s;
}

.nova-slide-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.nova-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.3s;
    z-index: 5;
}

.nova-slider-prev {
    left: 12px;
}

.nova-slider-next {
    right: 12px;
}

.nova-slider-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
}

.nova-slider-dots {
    position: absolute;
    bottom: 16px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 5;
}

.nova-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.nova-slider-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* Gallery */
.nova-gallery-item {
    overflow: hidden;
    border-radius: 8px;
}

.nova-gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.4s;
}

.nova-gallery-hover-zoom .nova-gallery-item:hover img {
    transform: scale(1.08);
}

.nova-gallery-hover-fade .nova-gallery-item:hover img {
    opacity: 0.7;
}

.nova-gallery-hover-grayscale .nova-gallery-item img {
    filter: grayscale(100%);
    transition: filter 0.4s;
}

.nova-gallery-hover-grayscale .nova-gallery-item:hover img {
    filter: grayscale(0);
}

/* Form */
.nova-form-field {
    margin-bottom: 16px;
}

.nova-form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
}

.nova-form-label .required {
    color: #dc3545;
}

.nova-form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.nova-form-input:focus {
    outline: none;
    border-color: #6C5CE7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.nova-form-submit {
    margin-top: 8px;
}

/* Posts Grid */
.nova-post-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.nova-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.nova-post-thumb img {
    width: 100%;
    display: block;
}

.nova-post-title {
    font-size: 18px;
    margin: 0 0 6px;
}

.nova-post-title a {
    text-decoration: none;
    color: inherit;
}

.nova-post-title a:hover {
    color: #6C5CE7;
}

.nova-post-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.nova-post-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Navigation Menu */
.nova-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nova-nav-vertical .nova-menu-list {
    flex-direction: column;
}

.nova-menu-list a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
    font-weight: 500;
}

.nova-menu-list a:hover {
    color: #6C5CE7;
}

/* Social Icons */
.nova-social-icon {
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
    display: inline-block;
}

.nova-social-icon:hover {
    transform: scale(1.15);
    opacity: 0.8;
}

/* Map */
.nova-map {
    border-radius: 8px;
    overflow: hidden;
}

/* Animations on scroll */
.nova-has-animation {
    opacity: 0;
}

.nova-animated {
    opacity: 1;
}

/* Custom header/footer */
.nova-custom-header,
.nova-custom-footer {
    width: 100%;
}