/**
 * MIV Page Styles
 */

/* Reset and base styles */
html, body {
    scroll-behavior: smooth;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    height: auto;
    width: 100%;
    max-width: 100%;
    border: none;
    background-color: #fff;
}

body.miv-page {
    font-family: var(--wp--preset--font-family--manrope, 'Manrope'), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: var(--wp--preset--font-size--large, 1.125rem);
    font-weight: 300;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.miv-page * {
    box-sizing: border-box;
}

strong {
    font-weight: bold;
}

.miv-page-wrapper {
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    height: auto;
    border: none;
    box-shadow: none;
    margin-left: 200px;
}

/* Container for consistent alignment across all sections */
.miv-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Typography */
.miv-section h2 {
    font-family: var(--wp--preset--font-family--manrope, 'Manrope'), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #000000;
}

.miv-section h3 {
    font-family: var(--wp--preset--font-family--manrope, 'Manrope'), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000000;
}

.miv-section p {
    font-family: var(--wp--preset--font-family--manrope, 'Manrope'), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: var(--wp--preset--font-size--large, 1.125rem);
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Common section styles */
.miv-section {
    position: relative;
    min-height: 100vh;
    height: auto;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: visible;
    margin: 0;
    border: none;
    box-shadow: none;
}

/* Two column layout */
.miv-two-columns {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 30px;
    width: 100%;
    margin: 0;
}

.miv-column {
    flex: 1;
    min-width: 300px;
}

/* Full image style */
.miv-full-image {
    max-width: 100%;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* Column styles */
.miv-column-image {
    position: relative;
    overflow: hidden;
}

.miv-column-image img {
    max-width: 100%;
    height: auto;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    display: block;
}

.miv-column-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Section 1: MIV */
#miv-section-1 {
    background-color: #FFF;
    text-align: left;
    padding-top: 0;
    justify-content: flex-start;
    z-index: 1;
}

#miv-section-1 .miv-section-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
}

.miv-header-image {
    width: 100%;
    height: 60vh;
    position: relative;
    overflow: hidden;
    display: block;
    margin-bottom: 20px;
}

.miv-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

#miv-section-1 .miv-content {
    background-color: transparent;
    margin: 0 auto;
    width: 100%;
}

/* Logo container styles */
.miv-logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.miv-logo-image {
    max-width: 320px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* Section 2: Rede */
#miv-section-2 {
    background-color: #fff;
    z-index: 2;
}

/* Style the text column in section 2 */
#miv-section-2 .miv-column-text {
    color: #000000;
}

#miv-section-2 .miv-text {
    text-align: justify;
}

/* Style the image column in section 2 */
#miv-section-2 .miv-column-image {
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

/* Container for the images in section 2 */
.miv-image-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

/* Background image (rede-image.png) styling */
.miv-rede-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Logo overlay (LogoREDE.svg) styling */
.miv-rede-logo {
    position: absolute;
    width: 30%;
    height: auto;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    object-fit: contain;
    max-width: 225px;
    max-height: 225px;
}

/* Section 3: Prayer */
#miv-section-3 {
    background-color: #014344;
    color: #fff;
    z-index: 3;
}

#miv-section-3 .miv-prayer-container {
    color: #ffffff;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

#miv-section-3 h2 {
    color: #ffffff;
    font-size: 2.4rem;
    text-align: center;
}

#miv-section-3 .miv-text {
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: center;
}

#miv-section-3 .miv-text p,
#miv-section-3 .miv-text h1,
#miv-section-3 .miv-text h2,
#miv-section-3 .miv-text h3,
#miv-section-3 .miv-text h4,
#miv-section-3 .miv-text h5,
#miv-section-3 .miv-text h6 {
    text-align: center;
    margin-bottom: 20px;
}

#miv-section-3 .miv-text ul,
#miv-section-3 .miv-text ol {
    text-align: center;
    list-style-position: inside;
    padding-left: 0;
    margin: 0 auto;
}

#miv-section-3 .miv-text li {
    text-align: center;
    margin-bottom: 10px;
}

/* Section 4: Form */
#miv-section-4 {
    background-color: #fff;
    color: #014344;
    z-index: 4;
}

#miv-section-4 h2,
#miv-section-4 h3 {
    color: #014344;
}

/* Form container styling */
#miv-section-4 .miv-form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(1, 67, 68, 0.02);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Add text justification to all text in section 4 */
#miv-section-4 .miv-text, 
#miv-section-4 p:not(.description), 
#miv-section-4 .miv-form-message p {
    text-align: justify;
}

/* Keep form labels and checkbox text left-aligned for readability */
#miv-section-4 .miv-form-row label,
#miv-section-4 .miv-checkbox span,
#miv-section-4 .miv-radio span {
    text-align: left;
}

/* Form styles */
.miv-form-container {
    background-color: transparent;
    margin-bottom: 20px;
}

.miv-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.miv-form-section {
    background-color: rgba(1, 67, 68, 0.02);
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid rgba(1, 67, 68, 0.1);
}

.miv-form-section:last-child {
    border-bottom: none;
}

.miv-form-section h3 {
    color: #014344;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
    border-bottom: 1px solid rgba(1, 67, 68, 0.1);
    padding-bottom: 8px;
}

.miv-form-row {
    margin-bottom: 25px;
}

.miv-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #014344;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Form inputs */
.miv-form-row input[type="text"],
.miv-form-row input[type="email"],
.miv-form-row input[type="tel"],
.miv-form-row input[type="date"],
.miv-form-row select {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(1, 67, 68, 0.2);
    border-radius: 4px;
    background-color: rgba(1, 67, 68, 0.05);
    color: #014344;
    font-size: 0.95rem;
    line-height: 1.4;
    font-family: var(--wp--preset--font-family--manrope, 'Manrope'), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.miv-form-row input:focus,
.miv-form-row select:focus {
    outline: none;
    border-color: #5d0d18;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Select dropdown styling */
.miv-form-row select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23014344' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px;
}

/* Checkbox and radio styles */
.miv-checkbox,
.miv-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    color: #014344;
    font-size: 0.95rem;
    line-height: 1.4;
}

.miv-checkbox input[type="checkbox"],
.miv-radio input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(1, 67, 68, 0.3);
    position: relative;
    cursor: pointer;
    margin: 0;
    background-color: #fff;
}

.miv-checkbox input[type="checkbox"] {
    border-radius: 3px;
}

.miv-radio input[type="radio"] {
    border-radius: 50%;
}

.miv-checkbox input[type="checkbox"]:checked,
.miv-radio input[type="radio"]:checked {
    border-color: #5d0d18;
    background-color: #5d0d18;
}

.miv-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    top: 2px;
    left: 6px;
    transform: rotate(45deg);
}

.miv-radio input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
    top: 4px;
    left: 4px;
}

.miv-form-radio-group,
.miv-form-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

/* Form buttons */
.miv-button,
.miv-secondary-button {
    background-color: #5d0d18;
    color: #fff;
    border: none;
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-family: var(--wp--preset--font-family--manrope, 'Manrope'), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    width: auto;
}

.miv-secondary-button {
    background-color: #014344;
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: 10px;
}

.miv-button:hover {
    background-color: #5d0d18;
    transform: translateY(-2px);
}

.miv-secondary-button:hover {
    background-color: #015a5b;
    transform: translateY(-2px);
}

.miv-form-submit {
    margin-top: 20px;
    margin-bottom: 0;
    position: relative;
}

/* Form result message */
.miv-form-result {
    margin-top: 15px;
    padding: 15px;
    border-radius: 4px;
    display: none;
    font-weight: 600;
    max-width: 100%;
    box-sizing: border-box;
    transition: all 0.5s ease;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    opacity: 0;
}

.miv-form-result.success {
    background-color: rgba(39, 174, 96, 0.2);
    border: 2px solid rgba(39, 174, 96, 0.5);
    color: #27ae60;
    display: block;
    box-shadow: 0 2px 10px rgba(39, 174, 96, 0.1);
    animation: flashSuccess 1.5s ease forwards;
}

.miv-form-result.error {
    background-color: rgba(231, 76, 60, 0.2);
    border: 2px solid rgba(231, 76, 60, 0.5);
    color: #5d0d18;
    display: block;
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.1);
    animation: flashError 1.5s ease forwards;
}

@keyframes flashSuccess {
    0% { opacity: 0; transform: translateY(10px); }
    10% { opacity: 1; background-color: rgba(39, 174, 96, 0.5); transform: translateY(0); }
    20% { background-color: rgba(39, 174, 96, 0.2); }
    100% { opacity: 1; }
}

@keyframes flashError {
    0% { opacity: 0; transform: translateY(10px); }
    10% { opacity: 1; background-color: rgba(231, 76, 60, 0.5); transform: translateY(0); }
    20% { background-color: rgba(231, 76, 60, 0.2); }
    100% { opacity: 1; }
}

/* Floating message styling */
.floating-message {
    display: block !important;
    padding: 20px !important;
    font-size: 1.1rem !important;
    border-width: 3px !important;
    opacity: 1 !important;
    animation: floatingAppear 0.3s ease forwards !important;
}

.floating-message.success {
    background-color: rgba(39, 174, 96, 0.9) !important;
    color: white !important;
    border: 3px solid #27ae60 !important;
}

.floating-message.error {
    background-color: rgba(231, 76, 60, 0.9) !important;
    color: white !important;
    border: 3px solid #e74c3c !important;
}

@keyframes floatingAppear {
    0% { opacity: 0; transform: translate(-50%, -20px); }
    100% { opacity: 1; transform: translate(-50%, 0); }
}

.miv-form-message {
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.9;
    color: #014344;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Group member styling */
.group-member {
    border: 1px solid rgba(1, 67, 68, 0.15);
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    background-color: rgba(1, 67, 68, 0.03);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
    
.group-member h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #014344;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
}

.miv-remove-member {
    background-color: #5d0d18;
    margin-top: 10px;
}

.miv-remove-member:hover {
    background-color: #5d0d18;
}

#group-members-container {
    margin-bottom: 20px;
}

/* Section headings */
.miv-section-heading {
    margin-bottom: 40px;
    text-align: left;
    padding: 0;
}
    
.miv-section-heading h2 {
    margin-bottom: 10px;
}

.miv-section-heading p {
    margin-bottom: 0;
    color: #014344;
}

span.required {
    color: #5d0d18;
}

/* WordPress specific overrides */
#page, #content, .site, .site-content, .entry-content, 
.wp-site-blocks, .wp-block-template-part, 
.entry-content .wp-block-post-content,
main, article, .wp-block-group, .wp-container {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    border: none !important;
    box-sizing: border-box !important;
    background: transparent !important;
}

/* Hide the post title */
.wp-block-post-title,
h1.wp-block-post-title,
h1.entry-title,
.entry-header,
.page-header,
header.entry-header,
.page-title {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Override header and footer styles */
header, footer, .wp-site-blocks > header, .wp-site-blocks > footer {
    display: none !important;
}

/* More specific overrides for theme elements */
body.miv-page div[class*='wp-block'],
body.miv-page div[class*='wp-container'],
body.miv-page div.site-content,
body.miv-page div.content-area,
body.miv-page div.entry-content,
body.miv-page div.post-inner,
body.miv-page div.post-content,
body.miv-page div#content,
body.miv-page main,
body.miv-page article,
body.miv-page .wp-block-post-content {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

body.miv-page .wp-site-blocks {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.miv-section img {
    height: auto;
}

/* Section 5 */
#miv-section-5 {
    background-color: #fff;
    z-index: 5;
}

#miv-section-5 .miv-column-image {
    position: relative;
    height: auto;
}

#miv-section-5 .miv-column-image .miv-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 350px;
}

#miv-section-5 .miv-full-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#miv-section-5 .miv-column-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

#miv-section-5 .miv-column-text h2 {
    color: #333;
    font-size: 2.2rem;
    margin-top: 0;
    margin-bottom: 20px;
}

#miv-section-5 .miv-column-text .miv-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    width: 100%;
    align-self: flex-start;
    text-align: justify;
}

/* Side Navigation Menu Styles */
.miv-side-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    background-color: rgba(1, 67, 68, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: width 0.3s ease;
    height: 100vh;
    overflow-y: auto;
    margin: 0 !important;
    padding: 0 !important;
    border-top: 0 !important;
}

/* Reset browser default styles for lists to remove unexpected top margin */
.miv-side-nav ul,
.miv-side-nav li {
    margin: 0;
    padding: 0;
}

.miv-side-nav li:first-child {
    margin-top: 0;
}

/* Adjust for WordPress admin bar if present */
.admin-bar .miv-side-nav {
    top: 32px; /* Standard height of WP admin bar */
    height: calc(100vh - 32px);
}

/* Adjust for WordPress admin bar on smaller screens */
@media screen and (max-width: 782px) {
    .admin-bar .miv-side-nav {
        top: 46px; /* Height of WP admin bar on mobile */
        height: calc(100vh - 46px);
    }
}

.miv-side-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.miv-side-nav li {
    margin: 15px 0;
    width: 100%;
    text-align: left;
    position: relative;
}

.miv-nav-link {
    font-family: var(--wp--preset--font-family--manrope, 'Manrope'), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    color: white;
    text-decoration: none;
    position: relative;
    display: block;
    padding: 12px 10px 12px 20px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.miv-nav-link:before {
    content: '';
    position: absolute;
    width: 4px;
    height: 0;
    background-color: #5d0d18;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: height 0.3s ease;
}

.miv-nav-link:hover:before,
.miv-nav-link.active:before {
    height: 80%;
}

.miv-nav-link:hover {
    color: #5d0d18;
}

.miv-nav-link.active {
    color: #5d0d18;
    font-weight: 700;
    background-color: rgba(230, 57, 70, 0.1);
}

.miv-nav-link.active:after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #5d0d18;
    border-radius: 50%;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    /* Typography */
    .miv-section h2 {
        font-size: 1.8rem;
    }
    
    .miv-section h3 {
        font-size: 1.4rem;
    }
    
    /* Hide side menu on mobile */
    .miv-side-nav {
        display: none;
    }
    
    /* Adjust page wrapper margin since side nav is hidden */
    .miv-page-wrapper {
        margin-left: 0;
        width: 100%;
    }
    
    .miv-nav-link {
        font-size: 12px;
        padding: 12px 5px 12px 15px;
    }
    
    .miv-nav-link.active:after {
        width: 6px;
        height: 6px;
        right: 5px;
    }
    
    /* Section spacing */
    .miv-section {
        min-height: auto;
    }
    
    #miv-section-4 .miv-form-container {
        margin: 0 10px;
        width: auto;
    }
    
    /* Header image */
    .miv-header-image {
        height: 40vh;
        min-height: 250px;
    }
    
    /* Column layouts */
    .miv-two-columns {
        flex-direction: column;
        gap: 20px;
    }
    
    .miv-column {
        width: 100%;
        flex: none;
    }
    
    /* Column content */
    .miv-column-text,
    #miv-section-2 .miv-column-text,
    
    /* Images */
    .miv-column-image,
    #miv-section-2 .miv-column-image {
        min-height: 300px;
    }
    
    .miv-rede-logo {
        width: 40%;
        max-width: 150px;
        max-height: 150px;
        top: 15%;
    }
    
    /* Form buttons */
    .miv-button {
        width: 100%;
    }
    
    /* Improved checkbox/radio controls for touch */
    .miv-checkbox input[type="checkbox"],
    .miv-radio input[type="radio"] {
        width: 24px;
        height: 24px;
    }
    
    .miv-checkbox input[type="checkbox"]:checked::after {
        width: 6px;
        height: 12px;
        top: 3px;
        left: 8px;
    }
    
    .miv-radio input[type="radio"]:checked::after {
        width: 12px;
        height: 12px;
        top: 5px;
        left: 5px;
    }
}

/* Newsletter Section - Updated with sober colors */
#miv-section-6 {
    background-color: #fff;
    min-height: 100vh;
}

#miv-section-6 .miv-newsletter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

#miv-section-6 h2 {
    color: #000000;
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
}

#miv-section-6 .miv-text {
    color: #014344;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Featured Newsletter Styles */
.miv-featured-newsletter {
    margin-bottom: 60px;
}

.miv-featured-newsletter h3 {
    color: #000000;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

.miv-newsletter-featured-card {
    background: linear-gradient(135deg, #014344 0%, #5d0d18 100%);
    border-radius: 15px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 10px 30px rgba(1, 67, 68, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.miv-newsletter-featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(1, 67, 68, 0.3);
}

.miv-newsletter-featured-card .miv-newsletter-icon {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.miv-newsletter-featured-card .miv-newsletter-icon .dashicons {
    font-size: 40px;
    color: white;
}

.miv-newsletter-featured-card .miv-newsletter-info {
    flex: 1;
    color: white;
}

.miv-newsletter-featured-card .miv-newsletter-info h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.miv-newsletter-featured-card .miv-newsletter-info p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 10px;
    opacity: 0.9;
}

.miv-newsletter-date {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
}

.miv-newsletter-action {
    flex-shrink: 0;
}

.miv-featured-button {
    background: white;
    color: #014344;
    padding: 15px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.miv-featured-button:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: #5d0d18;
    text-decoration: none;
}

/* All Newsletters Section */
.miv-newsletters-list {
    margin-top: 60px;
}

.miv-newsletters-list h3 {
    color: #000000;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
}

.miv-newsletters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.miv-newsletter-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid #f8f9fa;
}

.miv-newsletter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #014344;
}

.miv-newsletter-card.miv-is-featured {
    border-color: #5d0d18;
    background: linear-gradient(135deg, rgba(93, 13, 24, 0.05) 0%, #ffffff 100%);
}

.miv-newsletter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.miv-newsletter-card .miv-newsletter-icon {
    background: rgba(1, 67, 68, 0.1);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.miv-newsletter-card .miv-newsletter-icon .dashicons {
    font-size: 24px;
    color: #014344;
}

.miv-featured-star {
    color: #5d0d18;
    font-size: 20px;
    font-weight: bold;
}

.miv-newsletter-content h4 {
    color: #000000;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.miv-newsletter-content p {
    color: #014344;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.miv-newsletter-content .miv-newsletter-date {
    color: rgba(1, 67, 68, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
}

.miv-newsletter-footer {
    margin-top: 20px;
    text-align: center;
}

.miv-newsletter-button {
    background: #5d0d18;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.miv-newsletter-button:hover {
    background: #014344;
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

.miv-newsletter-button .dashicons {
    font-size: 16px;
}

/* No Newsletters Message */
.miv-no-newsletters {
    text-align: center;
    padding: 60px 20px;
    color: #014344;
}

.miv-no-newsletters p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Responsive Design for Newsletter Section */
@media (max-width: 768px) {
    #miv-section-6 .miv-newsletter-container {
        padding: 60px 15px;
    }
    
    #miv-section-6 h2 {
        font-size: 2rem;
    }
    
    .miv-newsletter-featured-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 20px;
    }
    
    .miv-newsletter-featured-card .miv-newsletter-icon {
        width: 60px;
        height: 60px;
    }
    
    .miv-newsletter-featured-card .miv-newsletter-icon .dashicons {
        font-size: 30px;
    }
    
    .miv-newsletter-featured-card .miv-newsletter-info h4 {
        font-size: 1.3rem;
    }
    
    .miv-newsletters-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .miv-newsletter-card {
        padding: 20px;
    }
    
    .miv-featured-newsletter h3,
    .miv-newsletters-list h3 {
        font-size: 1.5rem;
    }
} 