/* Modern UI Override Styles for Native Arrays */

:root {
    --primary-purple: #9B59B6;
    --primary-purple-dark: #7D3C98;
    --primary-grey: #2C3E50;
    --primary-grey-dark: #1A252F;
    --background-light: #F8F9FA;
    --background-white: #FFFFFF;
    --text-primary: #2C3E50;
    --text-secondary: #5A6C7D;
    --text-light: #8E9AAF;
    --border-color: #E1E8ED;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Global Background and Text Updates */
html {
    background: var(--background-light) !important;
}

body {
    background: var(--background-white) !important;
    color: var(--text-primary) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif !important;
    line-height: 1.6 !important;
}

/* Header Modernization */
header.h15 {
    background: var(--background-white) !important;
    box-shadow: var(--shadow-sm) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

header.h15 .main-header-wrapper {
    background: transparent !important;
}

header.h15 .title a {
    transition: opacity 0.3s ease !important;
}

header.h15 .title a:hover {
    opacity: 0.8 !important;
}

header.h15 nav.mainmenu > ul > li > a {
    color: var(--text-primary) !important;
    font-weight: 400 !important;
    transition: all 0.3s ease !important;
    padding: 10px 18px !important;
    border-radius: 8px !important;
    position: relative !important;
    display: inline-block !important;
}

header.h15 nav.mainmenu > ul > li:hover > a {
    color: var(--text-primary) !important;
    background: transparent !important;
}

header.h15 nav.mainmenu > ul > li.current-menu-item > a,
header.h15 nav.mainmenu > ul > li.current-menu-ancestor > a {
    color: #7D3C98 !important;
    background: #E8DFF0 !important;
    font-weight: 700 !important;
    position: relative !important;
    padding-left: 28px !important;
}

/* Blue triangle indicator for active link */
header.h15 nav.mainmenu > ul > li.current-menu-item > a::before,
header.h15 nav.mainmenu > ul > li.current-menu-ancestor > a::before {
    content: "" !important;
    position: absolute !important;
    left: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 0 !important;
    height: 0 !important;
    border-top: 6px solid transparent !important;
    border-bottom: 6px solid transparent !important;
    border-left: 8px solid #3498DB !important;
}

/* Footer Modernization */
footer {
    background: var(--background-white) !important;
    color: var(--text-primary) !important;
    padding: 80px 0 0 !important;
    margin-top: 80px !important;
    border-top: 1px solid var(--border-color) !important;
}

footer .widgets {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    justify-content: space-between;
}

footer .widget {
    flex: 1;
    min-width: 250px;
    margin-bottom: 0;
}

footer .widget h3 {
    color: var(--text-primary) !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 30px !important;
    padding-bottom: 15px !important;
    border-bottom: 2px solid var(--primary-purple) !important;
    letter-spacing: 0.5px;
}

footer .widget h3 span {
    border: none !important;
}

footer .widget p {
    color: var(--text-secondary) !important;
    font-size: 1.05rem !important;
    line-height: 2 !important;
    margin-bottom: 20px !important;
}

footer .widget a {
    color: var(--text-secondary) !important;
    font-size: 1.05rem !important;
    transition: color 0.3s ease !important;
    text-decoration: none !important;
}

footer .widget a:hover {
    color: var(--primary-purple) !important;
}

footer .widget .textwidget {
    color: var(--text-secondary) !important;
    font-size: 1.05rem !important;
    line-height: 2 !important;
}

footer .widget .textwidget b {
    color: var(--text-primary) !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
}

/* Newsletter Form Styling */
footer .newsletter-widget {
    margin-top: 20px;
}

footer .newsletter-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    max-width: 320px !important;
}

footer .newsletter-email {
    background: var(--background-light) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    padding: 14px 18px !important;
    border-radius: 6px !important;
    width: 100% !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    margin-bottom: 0 !important;
}

footer .newsletter-email:focus {
    outline: none !important;
    border-color: var(--primary-purple) !important;
    background: var(--background-white) !important;
    box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.2) !important;
}

footer .newsletter-email::placeholder {
    color: var(--text-light) !important;
}

footer .newsletter-submit-btn,
footer button[type="submit"],
footer .newsletter-widget button {
    background: var(--primary-purple) !important;
    border: none !important;
    color: #FFFFFF !important;
    padding: 14px 24px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    width: 100% !important;
    margin-top: 0 !important;
}

footer .newsletter-submit-btn:hover,
footer button[type="submit"]:hover,
footer .newsletter-widget button:hover {
    background: var(--primary-purple-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.3) !important;
}

/* Footer Bottom Section */
footer .bottom {
    background: #F5F5F5 !important;
    padding: 30px 0 !important;
    margin-top: 60px !important;
    border-top: 1px solid var(--border-color) !important;
    max-width: 100% !important;
}

footer .bottom p {
    color: var(--text-secondary) !important;
    text-align: center !important;
    margin: 0 !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
}

/* Footer Links Styling */
footer .footer-links {
    margin-bottom: 20px !important;
}

footer .footer-links ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 20px 30px !important;
}

footer .footer-links ul li {
    margin: 0 !important;
    padding: 0 !important;
}

footer .footer-links ul li a {
    color: var(--primary-purple) !important;
    text-decoration: none !important;
    font-size: 1.05rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    padding: 5px 0 !important;
}

footer .footer-links ul li a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 0 !important;
    height: 2px !important;
    background: var(--primary-purple-dark) !important;
    transition: width 0.3s ease !important;
}

footer .footer-links ul li a:hover {
    color: var(--primary-purple-dark) !important;
}

footer .footer-links ul li a:hover::after {
    width: 100% !important;
}

/* Links and Buttons */
a {
    color: var(--primary-purple) !important;
    transition: color 0.3s ease !important;
}

a:hover {
    color: var(--primary-purple-dark) !important;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
}

/* Buttons */
a.button,
button,
input[type="submit"],
input[type="button"] {
    background: var(--primary-purple) !important;
    border: none !important;
    color: #FFFFFF !important;
    padding: 12px 24px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: var(--shadow-sm) !important;
}

a.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background: var(--primary-purple-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-md) !important;
}

/* Hero Slider Images - Consistent Height */
.slider1 {
    height: 430px !important;
    overflow: hidden !important;
    position: relative !important;
}

/* Hide all slides by default */
.slider1 article {
    height: 430px !important;
    min-height: 430px !important;
    overflow: hidden !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.5s ease, visibility 0.5s ease !important;
}

/* Show only the active slide */
.slider1 article[style*="display: block"],
.slider1 article:not([style*="display: none"]):not([style*="opacity: 0"]) {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 1 !important;
}

.slider1 article img {
    width: 100% !important;
    max-width: 100% !important;
    height: 430px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    position: relative !important;
    left: 0 !important;
    margin: 0 !important;
}

/* Text overlay on image */
.slider1 article div {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent) !important;
    padding: 40px !important;
    color: #FFFFFF !important;
    z-index: 2 !important;
    max-width: 600px !important;
    margin: 0 auto !important;
}

.slider1 article div h3 {
    color: #FFFFFF !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    margin-bottom: 15px !important;
}

.slider1 article div p {
    color: #FFFFFF !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* Override the original centered positioning for consistent height */
.slider1 article img[src*="synacor_slide"],
.slider1 article img[src*="synacorslide"] {
    width: 100% !important;
    height: 430px !important;
    object-fit: cover !important;
    left: 0 !important;
    margin: 0 !important;
}

/* Ensure slider container maintains height */
.slider1 article div.video {
    height: 430px !important;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: var(--primary-purple);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--primary-purple-dark);
    transform: scale(1.05);
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #FFFFFF;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: var(--background-white);
    z-index: 1000;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding-top: 80px;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

.mobile-menu-overlay .mobile-menu {
    padding: 20px;
}

.mobile-menu-overlay .mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-overlay .mobile-menu ul li {
    margin-bottom: 10px;
}

.mobile-menu-overlay .mobile-menu ul li a {
    display: block;
    padding: 15px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-overlay .mobile-menu ul li a:hover,
.mobile-menu-overlay .mobile-menu ul li.current-menu-item a {
    background: #E8DFF0;
    color: #7D3C98;
    font-weight: 700;
}

.mobile-menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-backdrop.active {
    opacity: 1;
}

/* Mobile styles are now in mobile-ui.css for better organization */

