/* MPI Website Main Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'myriad-pro', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff !important;
    margin: 0;
    padding: 0;
}

/* Header Styles */
.header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e4e4e4;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-top {
    background-color: #ffcc00;
    height: 30px;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 25px;
    max-width: 1800px;
    margin: 0 auto;
}

.logo {
    height: 30px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    margin: 0 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 15px 10px;
    text-decoration: none;
    color: #000;
    border-bottom: 5px solid transparent;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: #e4e4e4;
    border-bottom-color: #ffcc00;
}

.nav-link i {
    margin-left: 15px;
    font-size: 12px;
}

/* Dropdown Menu */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none;
    min-width: 250px;
    z-index: 1001;
}

.nav-item:hover .dropdown {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: #000;
    border-bottom: 1px solid #e4e4e4;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: #e4e4e4;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-icon {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #ffcc00;
    color: #333;
    border: 2px solid #ffcc00;
}

.btn-primary:hover {
    background-color: #333;
    color: #ffcc00;
}

.btn-secondary {
    background-color: transparent;
    color: #333;
    border: 2px solid #333;
}

.btn-secondary:hover {
    background-color: #333;
    color: #fff;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('/images/family-hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: normal;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: #f8f9fa !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.section-title .divider {
    width: 100px;
    height: 4px;
    background-color: #ffcc00;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background: #ffffff !important;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 1px solid #e4e4e4;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-icon-fallback {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #ffcc00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #333;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: #ffffff !important;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.about-benefits {
    list-style: none;
    margin: 30px 0;
}

.about-benefits li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: #333;
}

.about-benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ffcc00;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: #f8f9fa !important;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #333;
}

/* Books Section */
.books {
    padding: 80px 0;
    background-color: #ffffff !important;
}

.books h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #333;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffcc00 0%, #ffd700 100%);
    text-align: center;
    margin: 80px 0;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.9) 0%, rgba(255, 215, 0, 0.9) 100%);
}

.cta .container {
    position: relative;
    z-index: 2;
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    color: #333;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.cta p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: #333;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta .btn-large {
    background-color: #333;
    color: #ffcc00;
    border: 3px solid #333;
    padding: 20px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.cta .btn-large:hover {
    background-color: #ffcc00;
    color: #333;
    border-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #ffcc00;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffcc00;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
    color: #ccc;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e4e4e4;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
}

.mobile-nav {
    list-style: none;
}

.mobile-nav-item {
    border-bottom: 1px solid #e4e4e4;
}

.mobile-nav-link {
    display: block;
    padding: 15px 0;
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
}

.mobile-nav-link:hover {
    color: #ffcc00;
}

/* Force white background for all major containers */
html {
    background-color: #ffffff !important;
}

body,
.container,
.header-main,
.hero-content,
.section-title,
.about-content,
.about-text,
.footer-content {
    background-color: inherit;
}

/* Ensure text is always visible */
h1, h2, h3, h4, h5, h6, p, span, div, a {
    color: inherit;
}

/* Override any potential dark styling */
* {
    color-scheme: light !important;
}

/* Mobile menu specific fixes */
.mobile-menu {
    background-color: #ffffff !important;
    color: #333 !important;
}

.mobile-nav-link {
    color: #333 !important;
}

.mobile-nav-link:hover {
    color: #ffcc00 !important;
}
