/* Modern Redesign Overrides */

:root {
    --modern-bg: #f8f9fa;
    --modern-text: #333;
    --modern-footer-bg: #111827; /* Dark footer */
    --modern-footer-text: #9ca3af;
    --modern-card-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* =========================================
   Newsletter Section Redesign
   ========================================= */

.newsletter-section {
    padding: 80px 0;
    background-color: #ffffff;
    /* Ensure no unwanted positioning */
    position: relative;
    z-index: 10;
}

/* Remove the circular arc background */
.newsletter-wrapper::before,
.newsletter-wrapper::after {
    display: none !important;
}

/* Redesign the wrapper as a floating card */
.newsletter-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 60px 40px;
    box-shadow: var(--modern-card-shadow);
    display: block; /* Remove flex alignment that was for the arc */
    text-align: center;
    /* Add a subtle border or brand accent if needed */
    border: 1px solid rgba(0,0,0,0.05);
}

/* Clean up the content positioning */
.newsletter-content {
    max-width: 100%;
    padding: 0 !important;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content .title {
    font-size: 32px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

/* Remove the old underline decoration if present */
.newsletter-content .title::after {
    display: none;
}

.newsletter-content .text {
    font-size: 18px;
    color: #4b5563;
    max-width: 600px;
    margin: 0 auto 32px;
    font-weight: 400;
    line-height: 1.6;
}

/* Modernize the input group */
.input--grp {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.input--grp .form-control {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #1f2937;
    height: 56px;
    border-radius: 12px;
    padding-left: 20px;
    padding-right: 60px; /* Space for button */
    font-size: 16px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.input--grp .form-control:focus {
    background: #ffffff;
    border-color: var(--base-1);
    box-shadow: 0 0 0 3px rgba(var(--base-rgb), 0.1);
    outline: none;
}

.input--grp .search-btn {
    top: 50%;
    transform: translateY(-50%);
    right: 8px; /* Slightly adjusted position */
    border-radius: 8px;
    overflow: hidden;
}

/* Override the background mask if it exists */
.newsletter-bg {
    display: none !important;
}


/* =========================================
   Footer Section Redesign
   ========================================= */

.footer-bottom {
    background: var(--modern-footer-bg) !important;
    border-radius: 0 !important; /* Remove the hill shape */
    padding-top: 80px;
    padding-bottom: 40px;
    margin-top: 0;
    color: var(--modern-footer-text);
}

.footer-widget .subtitle {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.footer-widget .text {
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Link Styling */
.footer-widget.widget-links ul li a {
    color: #9ca3af; /* Muted text */
    font-size: 15px;
    margin-bottom: 12px;
    display: block;
    transition: all 0.2s ease;
}

.footer-widget.widget-links ul li a:hover {
    color: #ffffff;
    padding-left: 6px; /* Slight movement on hover */
    text-shadow: none;
}

/* Social Icons */
.social-icon {
    gap: 16px;
}

.social-icon li a {
    background: rgba(255,255,255,0.05);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

.social-icon li a:hover {
    background: var(--base-1);
    border-color: var(--base-1);
    transform: translateY(-2px);
}

.social-icon li a img {
    filter: brightness(0) invert(1); /* Make icons white */
    width: 18px;
    height: 18px;
}

/* Copyright Section */
.copyright {
    color: #6b7280;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
}

/* App Download Buttons in Footer */
.app-btn-grp a {
    opacity: 0.8;
    transition: opacity 0.3s;
}

.app-btn-grp a:hover {
    opacity: 1;
}

/* Remove any unwanted gradients or shapes from footer */
.footer-bottom::before,
.footer-bottom::after {
    display: none;
}
