/**
 * MVOL Sidebar Page & Flexible Content Styles
 * For template-sidebar-page.php
 * With Breadcrumbs
 */

/* ============================================
   BREADCRUMBS
   ============================================ */

.mvol-breadcrumbs {
    margin-bottom: 2rem;
    padding: 0;
}

.mvol-breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.mvol-breadcrumb-item {
    margin: 0;
    padding: 0;
}

.mvol-breadcrumb-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mvol-breadcrumb-item a:hover {
    color: #a2228d;
}

.mvol-breadcrumb-separator {
    margin: 0 0.5rem;
    color: #999;
    user-select: none;
}

.mvol-breadcrumb-current {
    color: #a2228d;
    font-weight: 500;
}

/* ============================================
   PAGE LAYOUT - Main Content + Sidebar
   ============================================ */

.mvol-sidebar-page-wrapper {
    background: #f5f5f5;
    padding: 3rem 0;
    min-height: 60vh;
}

.mvol-sidebar-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}
.logo-gallery{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin-top:20px;
    gap:10px;
}
.logo-gallery .set{
    list-style-type:none;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap:10px;
    margin:0;
    padding:0;
}
/* ============================================
   MAIN CONTENT AREA
   ============================================ */

.mvol-main-content {
    background: #ffffff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mvol-page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.3rem;
    border-bottom: 1px solid #ddd;
}

.mvol-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

.mvol-flexible-content {
    display: flex;
    flex-direction: column;
   
}


/* ============================================
   FLEXIBLE CONTENT BLOCKS
   ============================================ */

.mvol-content-block {
    margin-bottom: 2rem;
}

/* Text + Image Block (Text Left, Image Right) */
.mvol-text-image-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.mvol-text-image-block .mvol-block-text {
    padding-right: 1rem;
}

.mvol-text-image-block .mvol-block-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Image + Text Block (Image Left, Text Right) */
.mvol-image-text-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.mvol-image-text-block .mvol-block-text {
    padding-left: 1rem;
}

.mvol-image-text-block .mvol-block-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Text Only Block */
.mvol-text-only-block {
    max-width: 100%;
}

/* Full Width Image Block */
.mvol-full-width-image-block {
    margin: 2rem 0;
}

.mvol-full-width-image-block img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Text Content Styling */
.mvol-block-text h2,
.mvol-text-only-block h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-top: 0;
    margin-bottom: 1rem;
}

.mvol-block-text h3,
.mvol-text-only-block h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.mvol-block-text p,
.mvol-text-only-block p {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 1rem;
}

.mvol-block-text ul,
.mvol-block-text ol,
.mvol-text-only-block ul,
.mvol-text-only-block ol {
    margin: 1rem 0 1rem 2rem;
    line-height: 1.7;
}

.mvol-block-text a,
.mvol-text-only-block a {
    color: #a2228d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mvol-block-text a:hover,
.mvol-text-only-block a:hover {
    color: #c5a028;
    text-decoration: underline;
}

/* ============================================
   SIDEBAR - WITH SCROLL FIX
   ============================================ */

.mvol-sidebar {
    position: sticky;
    top: 6rem;
    align-self: start;
    max-height: calc(100vh - 8rem); /* Viewport height minus top spacing */
    overflow-y: auto; /* Make sidebar scrollable */
}

/* Custom scrollbar styling for sidebar */
.mvol-sidebar::-webkit-scrollbar {
    width: 6px;
}

.mvol-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.mvol-sidebar::-webkit-scrollbar-thumb {
    background: #a2228d; /* Pink/magenta to match your theme */
    border-radius: 3px;
}

.mvol-sidebar::-webkit-scrollbar-thumb:hover {
    background: #8a1c76; /* Darker pink on hover */
}

.mvol-sidebar-menu {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.mvol-sidebar-title {
    background: #ddd;
    color: #000;
    padding: 1.25rem 1.5rem;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mvol-sidebar-nav {
    padding: 0.5rem 0;
}

.mvol-sidebar-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mvol-sidebar-menu-list li {
    margin: 0;
}

.mvol-sidebar-menu-list li a {
    display: block;
    padding: 0.875rem 1.5rem;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mvol-sidebar-menu-list li a:hover {
    background: #f5f5f5;
    color: #a2228d;
    border-left-color: #a2228d;
    padding-left: 2rem;
}

.mvol-sidebar-menu-list li.current-menu-item a {
    background: #f5f5f5;
    color: #a2228d;
    border-left-color: #a2228d;
    font-weight: 600;
}

/* Sidebar Section Titles */
.mvol-sidebar-section-title {
    padding: 1rem 1.5rem 0.5rem;
    color:#000000;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-top: 1px solid #e0e0e0;
    margin-top: 0.5rem;
}

.mvol-sidebar-section-title:first-child {
    border-top: none;
    margin-top: 0;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.mvol-breadcrumb-item a:focus-visible {
    outline: 2px solid #a2228d;
    outline-offset: 2px;
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
   table, td, th{
       border:0!important;
   }

@media (max-width: 1024px) {
    .mvol-sidebar-page-container {
        grid-template-columns: 1fr 250px;
        gap: 2rem;
    }

    .mvol-main-content {
        padding: 2rem;
    }

    .mvol-page-title {
        font-size: 2rem;
    }

    .mvol-text-image-block,
    .mvol-image-text-block {
        gap: 2rem;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 768px) {
    .mvol-sidebar-page-wrapper {
        padding: 2rem 0;
    }

    .mvol-sidebar-page-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .mvol-main-content {
        padding: 1.5rem;
    }

    /* Breadcrumbs on mobile */
    .mvol-breadcrumb-list {
        font-size: 0.85rem;
    }

    .mvol-breadcrumb-separator {
        margin: 0 0.35rem;
    }

    .mvol-page-title {
        font-size: 1.75rem;
    }

    /* Stack image/text blocks on mobile */
    .mvol-text-image-block,
    .mvol-image-text-block {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .mvol-text-image-block .mvol-block-text,
    .mvol-image-text-block .mvol-block-text {
        padding: 0;
    }

    .mvol-flexible-content {
        gap:10px;
    }

    /* Sidebar no longer sticky on mobile */
    .mvol-sidebar {
        position: relative;
        top: auto;
        max-height: none; /* Remove height restriction on mobile */
        overflow-y: visible; /* No scroll on mobile */
    }

    .mvol-sidebar-title {
        font-size: 1rem;
        padding: 1rem 1.25rem;
    }

    .mvol-sidebar-menu-list li a {
        padding: 0.75rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .mvol-page-title {
        font-size: 1.5rem;
    }

    .mvol-main-content {
        padding: 1rem;
    }

    .mvol-breadcrumb-list {
        font-size: 0.8rem;
    }

    .mvol-block-text h2,
    .mvol-text-only-block h2 {
        font-size: 1.5rem;
    }

    .mvol-block-text h3,
    .mvol-text-only-block h3 {
        font-size: 1.2rem;
    }
}
.site-content .ast-container{
    display:block!important;
    max-width:100%!important;
    background: #f5f5f5;
}
.ast-container, .ast-container-fluid{
    padding:0!important;
}

/* ============================================
   CONTACT FORM 7 - FULL WIDTH MODERN STYLING
   Pink brand color (#a2228d) with white background
   ============================================ */

/* Main container - Full width on white */
.custom-contact-form {
    max-width: 100%;
    width: 100%;
    margin: 0;
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
}

/* Required field notice */
.custom-contact-form .required-notice {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 32px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.custom-contact-form .required-notice::before {
    content: "*";
    color: #a2228d;
    font-size: 18px;
    font-weight: 600;
}

/* Form rows */
.wpcf7 input.wpcf7-form-control:not([type=submit]):focus, .wpcf7 select.wpcf7-form-control:focus, .wpcf7 textarea.wpcf7-form-control:focus{
    border: 1px solid #911e7c!important;
}

/* Labels */
.custom-contact-form .form-row label {
    flex: 0 0 160px;
    text-align: right;
    padding-top: 14px;
    color: #374151;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

/* Input fields - Modern styling */
.custom-contact-form .form-input,
.custom-contact-form .form-textarea {
    flex: 1;
    background: #f9fafb;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 14px 16px;
    font-size: 15px;
    color: #1f2937;
    font-family: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.5;
}

/* Focus state - Brand pink accent */
.custom-contact-form .form-input:focus,
.custom-contact-form .form-textarea:focus {
    background: #ffffff;
    border-color: #a2228d;
    outline: none;
    box-shadow: 0 0 0 3px rgba(162, 34, 141, 0.1);
    transform: translateY(-1px);
}

/* Hover state */
.custom-contact-form .form-input:hover:not(:focus),
.custom-contact-form .form-textarea:hover:not(:focus) {
    border-color: #d1d5db;
    background: #ffffff;
}

/* Textarea specific */
.custom-contact-form .form-textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

/* Placeholder styling */
.custom-contact-form .form-input::placeholder,
.custom-contact-form .form-textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* Checkbox row */
.custom-contact-form .checkbox-row {
    margin-top: 8px;
}

.custom-contact-form .checkbox-row label {
    text-align: left;
    padding-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.custom-contact-form .checkbox-row label:hover {
    color: #1f2937;
}

/* Checkbox styling - Brand pink when checked */
.custom-contact-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-contact-form input[type="checkbox"]:checked {
    background: #a2228d;
    border-color: #a2228d;
}

.custom-contact-form .wpcf7-list-item {
    margin: 0;
}

.custom-contact-form .wpcf7-list-item-label {
    font-size: 14px;
    color: #4b5563;
    font-weight: 500;
}

/* Submit button - Brand pink gradient */
.custom-contact-form .submit-row {
    margin-top: 36px;
}

.custom-contact-form .submit-button {
    background: linear-gradient(135deg, #a2228d 0%, #8a1d78 100%);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 15px 42px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(162, 34, 141, 0.25);
    position: relative;
    overflow: hidden;
}

/* Button hover effect */
.custom-contact-form .submit-button:hover {
    background: linear-gradient(135deg, #8a1d78 0%, #721963 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(162, 34, 141, 0.35);
}

/* Button active state */
.custom-contact-form .submit-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(162, 34, 141, 0.3);
}

/* Button loading state */
.custom-contact-form .submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Optional: Button ripple effect on click */
.custom-contact-form .submit-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.custom-contact-form .submit-button:active::after {
    width: 300px;
    height: 300px;
}

/* Error messages - Modern styling */
.custom-contact-form .wpcf7-not-valid-tip {
    color: #ef4444;
    font-size: 13px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

.custom-contact-form .wpcf7-not-valid-tip::before {
    content: "⚠";
    font-size: 14px;
}

/* Invalid input styling */
.custom-contact-form .wpcf7-not-valid {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}

.custom-contact-form .wpcf7-not-valid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Response messages - Modern cards */
.custom-contact-form .wpcf7-response-output {
    margin: 24px 0;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Success message */
.custom-contact-form .wpcf7-mail-sent-ok {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #6ee7b7;
    color: #065f46;
}

.custom-contact-form .wpcf7-mail-sent-ok::before {
    content: "✓";
    font-size: 20px;
    font-weight: bold;
    color: #059669;
}

/* Error message */
.custom-contact-form .wpcf7-validation-errors,
.custom-contact-form .wpcf7-mail-sent-ng {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #fca5a5;
    color: #991b1b;
}

.custom-contact-form .wpcf7-validation-errors::before,
.custom-contact-form .wpcf7-mail-sent-ng::before {
    content: "✕";
    font-size: 18px;
    font-weight: bold;
    color: #dc2626;
}

/* Loading spinner - Brand pink */
.custom-contact-form .wpcf7-spinner {
    margin-left: 12px;
    border: 3px solid rgba(162, 34, 141, 0.2);
    border-top-color: #a2228d;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile responsive - Clean breakpoints */
@media (max-width: 768px) {
    .custom-contact-form {
        padding: 32px 24px;
    }

    .custom-contact-form .form-row {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }

    .custom-contact-form .form-row label {
        flex: none;
        text-align: left;
        padding-top: 0;
        font-size: 14px;
    }

    .custom-contact-form .checkbox-row,
    .custom-contact-form .submit-row {
        padding-left: 0;
    }

    .custom-contact-form .submit-button {
        width: 100%;
        padding: 16px 24px;
        font-size: 15px;
    }

    .custom-contact-form .required-notice {
        font-size: 12px;
        margin-bottom: 24px;
    }
}

/* Tablet responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .custom-contact-form {
        padding: 40px 50px;
    }

    .custom-contact-form .form-row label {
        flex: 0 0 140px;
    }

    .custom-contact-form .checkbox-row,
    .custom-contact-form .submit-row {
        padding-left: 164px;
    }
}

/* Hide default CF7 styling */
.custom-contact-form .wpcf7-form p {
    margin: 0;
}

/* Accessibility improvements */
.custom-contact-form .form-input:focus-visible,
.custom-contact-form .form-textarea:focus-visible,
.custom-contact-form .submit-button:focus-visible {
    outline: 3px solid #a2228d;
    outline-offset: 2px;
}


/* Print styles */
@media print {
    .custom-contact-form .submit-button,
    .custom-contact-form .wpcf7-spinner {
        display: none;
    }

    .custom-contact-form {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}