/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    overflow-y: auto;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    position: relative;
    overflow-y: auto;
}

/* Prevent horizontal overflow on media and flexible elements */
img, video, iframe, object, embed {
    max-width: 100%;
    height: auto;
}

/* Ensure containers don't exceed viewport */
.footer {
    max-width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Page Header Styles */
.page-header {
    background: linear-gradient(135deg, #1e40af 0%, #0f766e 100%);
    color: white;
    padding: 3rem 0 2rem;
    text-align: center;
    margin-top: 80px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Active Navigation Link */
.nav-link.active {
    color: #1e40af;
    font-weight: 600;
}

/* Mobile Navigation - Mega Menu Style */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 1rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
}

.mobile-nav.active .mobile-nav-content {
    transform: translateX(0);
}

.mobile-nav-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #1e40af;
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.mobile-nav-close:hover {
    background: #1d4ed8;
    transform: scale(1.1);
}

.mobile-nav-section {
    margin-bottom: 1rem;
    background: white;
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.mobile-nav-section:last-child {
    margin-bottom: 0;
}

.mobile-nav-section h4 {
    color: #1e40af;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.mobile-nav-section h4 i {
    font-size: 0.9rem;
    color: #1e40af;
}

/* Collapsible section headers */
.mobile-nav-section.collapsible h4 {
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    padding: 0.5rem 0.75rem;
    margin: 0 0 0 0;
    background: #f8fafc;
    border-radius: 6px;
    border-bottom: none;
}

.mobile-nav-section.collapsible h4:hover {
    background: #f0f9ff;
    color: #1d4ed8;
}

.mobile-nav-section.collapsible h4 .dropdown-icon {
    margin-left: auto;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.mobile-nav-section.collapsible.active h4 .dropdown-icon {
    transform: rotate(180deg);
}

/* Collapsible content */
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.mobile-nav-section.collapsible .mobile-nav-links {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    padding-top: 0;
}

.mobile-nav-section.collapsible.active .mobile-nav-links {
    max-height: 500px;
    opacity: 1;
    margin-top: 0.75rem;
    padding-top: 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    color: #374151;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.mobile-nav-link:hover {
    background: #f0f9ff;
    color: #1e40af;
    border-color: #dbeafe;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.1);
}

.mobile-nav-link i {
    font-size: 0.8rem;
    color: #1e40af;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.mobile-nav-link.active {
    background: #1e40af;
    color: white;
    border-color: #1e40af;
}

.mobile-nav-link.active i {
    color: white;
}

.mobile-nav-link.active:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateX(4px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    left: 0;
    right: 0;
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-logo .logo {
    height: 50px;
    width: auto;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(19%) sepia(71%) saturate(2975%) hue-rotate(216deg) brightness(94%) contrast(99%);
    transition: filter 0.3s ease;
}

.nav-logo .logo:hover {
    filter: brightness(0) saturate(100%) invert(15%) sepia(85%) saturate(3500%) hue-rotate(216deg) brightness(88%) contrast(105%);
}

.nav-logo h2 {
    color: #1e40af;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    flex-wrap: nowrap;
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #1e40af;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1e40af;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mega Menu Styles */
.nav-item {
    position: relative;
    z-index: 1001;
}

/* Keep mega menu visible when hovering over the nav item or the menu itself */
.nav-item.has-mega-menu:hover .mega-menu,
.nav-item.has-mega-menu .mega-menu:hover {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition-delay: 0.1s;
    /* Transform will be adjusted by JavaScript for edge cases */
}

/* Add delay when mouse leaves to prevent flickering */
.nav-item.has-mega-menu:not(:hover) .mega-menu:not(:hover) {
    transition-delay: 0.15s;
}

.nav-item.has-mega-menu > .nav-link {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-item.has-mega-menu > .nav-link::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    position: static;
    width: auto;
    height: auto;
    background: none;
    margin-left: 0.25rem;
}

.mega-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    transform: translateX(0) translateY(0);
    background: white;
    width: max-content;
    min-width: 600px;
    max-width: calc(100vw - 2rem);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    padding-top: 1.5rem;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
    transition-delay: 0s;
    z-index: 1002;
    display: grid;
    grid-template-columns: auto auto auto auto;
    gap: 2rem;
    box-sizing: border-box;
    pointer-events: none;
    /* Prevent overflow off screen */
    margin-left: 0;
    margin-right: 0;
}

/* Add invisible bridge to connect nav item to mega menu - prevents gap */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -0.75rem;
    left: 0;
    right: 0;
    height: 0.75rem;
    background: transparent;
    pointer-events: auto;
}

/* Single column mega menu (for Login menu) */
.mega-menu:has(.mega-menu-column:only-child) {
    grid-template-columns: auto;
}

.mega-menu .mega-menu-column:only-child {
    border-right: none;
    padding-right: 0;
    min-width: 220px;
}

.nav-item:hover .mega-menu,
.nav-item .mega-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    /* translateX will be adjusted by JavaScript for edge cases */
}

.mega-menu-column {
    border-right: 1px solid #e5e7eb;
    padding-right: 1.5rem;
    min-width: 160px;
    white-space: nowrap;
}

.mega-menu-column:last-child {
    border-right: none;
    padding-right: 0;
}

.mega-menu-column h4 {
    color: #1e40af;
    font-size: 1rem;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mega-menu-column h4 i {
    font-size: 1.1rem;
}

.mega-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mega-menu-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    color: #374151;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.mega-menu-link:hover {
    background: #f0f9ff;
    color: #1e40af;
    padding-left: 1rem;
}

.mega-menu-link i {
    font-size: 0.9rem;
    color: #1e40af;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(rgba(30, 64, 175, 0.5), rgba(15, 118, 110, 0.5)), url('../img/2256964227.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

/* Hero Services Status */
.hero-status {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
}

.hero-status h4 {
    margin-bottom: 1rem;
    color: #1e40af;
    font-size: 1.1rem;
    font-weight: 600;
}

.hero-status .status-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero-status .status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-status .status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.hero-status .status-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.hero-status .status-label {
    color: #1e40af;
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-status .status-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: #374151;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #1e40af;
    color: white;
}

.btn-primary:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #1e40af;
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-graphic i {
    font-size: 6rem;
    color: white;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.section-header p {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1e40af 0%, #0f766e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.service-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* Help Section within About */
.help-section {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid #e5e7eb;
}

.help-section .section-header {
    margin-bottom: 3rem;
}

.help-section .section-header h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.help-section .section-header p {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.help-item {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.help-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.help-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e40af 0%, #0f766e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.help-icon i {
    font-size: 1.5rem;
    color: white;
}

.help-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.help-item p {
    color: #6b7280;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* About Section */
.about {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.about-text p {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-features {
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feature i {
    color: #10b981;
    font-size: 1.2rem;
}

.feature span {
    font-weight: 500;
    color: #374151;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-graphic {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #1e40af 0%, #0f766e 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.3);
}

.about-graphic i {
    font-size: 6rem;
    color: white;
}

/* Member Services Section */
.member-services {
    padding: 80px 0;
    background: white;
}

/* Document Submission Section */
.document-submission {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 100%);
}

.submission-card-wrapper {
    display: flex;
    justify-content: center;
}

.submission-card {
    max-width: 500px;
    text-align: center;
}

.submission-card .service-icon {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
}

.document-submission-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 0;
}

.file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-area:hover {
    border-color: #1e40af;
    background: #f0f9ff;
}

.file-upload-area .upload-icon {
    font-size: 4rem;
    color: #1e40af;
    margin-bottom: 1rem;
}

.file-upload-area .upload-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.file-upload-area .upload-hint {
    font-size: 0.875rem;
    color: #6b7280;
}

.file-list {
    margin-top: 1rem;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.file-item-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.file-item-remove {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.3s ease;
}

.file-item-remove:hover {
    background: #dc2626;
}

.member-portal-access {
    margin-bottom: 4rem;
    display: flex;
    justify-content: center;
}

.portal-access-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    max-width: 600px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.portal-access-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1e40af 0%, #0f766e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.portal-access-icon i {
    font-size: 2.5rem;
    color: white;
}

.portal-access-content {
    flex: 1;
}

.portal-access-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.portal-access-content p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.portal-access-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.portal-access-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.3);
}

.portal-access-btn i {
    font-size: 0.9rem;
}

.member-portal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.portal-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.portal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.portal-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.portal-icon i {
    font-size: 1.8rem;
    color: white;
}

.portal-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.portal-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.portal-link {
    display: inline-block;
    padding: 10px 20px;
    background: #1e40af;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.portal-link:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
}

/* Provider Section */
.providers {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 100%);
}

.provider-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.provider-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.provider-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1e40af 0%, #0f766e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.provider-icon i {
    font-size: 2.5rem;
    color: white;
}

.provider-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.provider-info p {
    font-size: 1.1rem;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.provider-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.provider-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.provider-feature i {
    color: #10b981;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.provider-feature span {
    font-weight: 500;
    color: #374151;
    font-size: 0.95rem;
}

.provider-portal {
    display: flex;
    justify-content: center;
    align-items: center;
}

.portal-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    max-width: 400px;
    width: 100%;
}

.portal-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #1e40af 0%, #0f766e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.portal-icon i {
    font-size: 3rem;
    color: white;
}

.portal-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.portal-card p {
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.portal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.portal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.3);
}

.portal-btn i {
    font-size: 0.9rem;
}

/* Documents Section */
.documents {
    padding: 80px 0;
    background: white;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(550px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Document Section Layout */
.document-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%; /* Fill grid cell */
    max-width: 800px; /* Prevent stretching when only one section */
    margin: 0 auto; /* Center single sections */
}

.document-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #1e40af 0%, #0f766e 100%);
}

.document-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.document-section-info {
    flex: 1;
    min-width: 0;
}

.document-section-info h2 {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

.document-section-info p {
    color: #6b7280;
    font-size: 0.85rem;
    margin: 0;
}

.document-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.document-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.document-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.document-item .document-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.document-item .document-icon i {
    font-size: 1.25rem;
}

.document-details {
    width: 100%;
}

.document-details h3 {
    color: #1f2937;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.document-meta {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.document-date {
    font-size: 0.75rem;
    color: #6b7280;
}

.document-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.download-icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.download-icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.download-icon-btn i {
    font-size: 1rem;
}

/* PDF Download Button */
.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8fafc;
    color: #374151;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pdf-download-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1f2937;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pdf-download-btn i {
    font-size: 1rem;
    color: #ef4444;
}

.pdf-download-btn span {
    color: #374151;
    font-weight: 500;
}

.document-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.document-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #1e40af 0%, #0f766e 100%);
}

.document-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f3f4f6;
    gap: 2rem;
}

.document-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e40af;
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.document-logo {
    width: 140px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    flex-shrink: 0;
    flex-grow: 0; /* Prevent logo from growing */
}

.document-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.document-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.document-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.document-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.document-list li {
    padding: 0.5rem 0;
    color: #374151;
    position: relative;
    padding-left: 1.5rem;
}

.document-list li::before {
    content: '📄';
    position: absolute;
    left: 0;
    top: 0.5rem;
}

.document-actions {
    text-align: center;
}

.document-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.document-actions .btn i {
    font-size: 0.9rem;
}

.document-notice {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #92400e;
}

.document-notice p {
    margin: 0;
    font-weight: 500;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 100%);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.faq-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.faq-item.active {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #1e40af;
}

.faq-question {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.faq-question::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #1e40af 0%, #0f766e 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-item.active .faq-question::before {
    opacity: 1;
}

.faq-question:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.faq-item.active .faq-question {
    background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
    flex: 1;
    padding-right: 0.75rem;
}

.faq-question i {
    color: #64748b;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: #1e40af;
    background: #dbeafe;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    background: white;
}

.faq-item.active .faq-answer {
    padding: 1.25rem 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    color: #475569;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
    padding: 0;
}

.faq-section-title {
    color: #1e40af;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.faq-section-title i {
    color: #1e40af;
    font-size: 1.2rem;
}

.faq-section {
    margin-bottom: 2.5rem;
}

.faq-section-content {
    margin-top: 1rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .faq-container {
        padding: 0 0.5rem;
    }
    
    .faq-question {
        padding: 1rem 1.25rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
        padding-right: 0.5rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 1rem 1.25rem;
    }
    
    .faq-question i {
        width: 24px;
        height: 24px;
        font-size: 0.9rem;
    }
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: white;
}

/* Mailing Addresses Section */
.mailing-addresses-section {
    margin: 60px 0 0 0;
    padding: 3rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 100%);
    border-radius: 12px;
    text-align: center;
}

.mailing-addresses-section h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1e40af;
}

.address-notice {
    background: #f8fafc;
    border-left: 4px solid #1e40af;
    padding: 1.5rem;
    margin-bottom: 3rem;
    text-align: left;
    border-radius: 0 8px 8px 0;
}

.address-notice p {
    margin-bottom: 1rem;
    color: #374151;
    line-height: 1.6;
}

.address-notice p:last-child {
    margin-bottom: 0;
}

.addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.address-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.address-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.address-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.address-details p {
    margin-bottom: 1rem;
    color: #374151;
    line-height: 1.6;
}

.address-details p:last-child {
    margin-bottom: 0;
}

.address-details a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 500;
}

.address-details a:hover {
    color: #0f766e;
    text-decoration: underline;
}

.address-note {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #0c4a6e;
    font-style: italic;
}

/* Staff Section */
.staff-section {
    margin: 80px 0 0 0;
    text-align: center;
}

.staff-section h3 {
    color: #1e40af;
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 700;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.staff-member {
    background: #f8fafc;
    padding: 30px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    text-align: center;
}

.staff-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.1);
    border-color: #1e40af;
}

.staff-member h4 {
    color: #1e40af;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.staff-member p {
    color: #64748b;
    margin: 8px 0;
    font-size: 1rem;
}

.staff-member a {
    color: #0f766e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.staff-member a:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* Responsive Staff Section */
@media (max-width: 768px) {
    .staff-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .staff-member {
        padding: 20px 15px;
    }
    
    .staff-section h3 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Responsive Mailing Addresses */
    .addresses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .address-card {
        padding: 1.5rem;
    }
    
    .mailing-addresses-section {
        padding: 2rem 1.5rem;
    }
    
    .mailing-addresses-section h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .address-notice {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Responsive Documents */
    .documents-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .document-section {
        padding: 1.25rem;
    }
    
    .document-header {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    .document-section-info h2 {
        font-size: 1.125rem;
        margin-bottom: 0.25rem;
    }
    
    .document-section-info p {
        font-size: 0.8rem;
    }
    
    .document-logo {
        width: 100px;
        height: 70px;
    }
    
    .document-list {
        gap: 0.75rem;
    }
    
    .document-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .document-item .document-icon {
        width: 32px;
        height: 32px;
    }
    
    .document-item .document-icon i {
        font-size: 1rem;
    }
    
    .document-details h3 {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    .document-details p {
        font-size: 0.75rem;
        margin: 0.25rem 0;
    }
    
    .document-date {
        font-size: 0.7rem;
    }
    
    .download-icon-btn {
        width: 32px;
        height: 32px;
    }
    
    .download-icon-btn i {
        font-size: 0.875rem;
    }
    
    .pdf-download-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
        gap: 0.375rem;
    }
    
    .pdf-download-btn i {
        font-size: 0.875rem;
    }
    
    .document-card {
        padding: 2rem;
    }
    
    .document-header {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        text-align: center;
    }
    
    .document-header h3 {
        font-size: 1.2rem;
    }
    
    .document-logo {
        width: 120px;
        height: 80px;
    }
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e40af 0%, #0f766e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.2rem;
}

.contact-details h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.contact-details p {
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e40af;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

/* Company Info Section */
.footer-company {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo .logo {
    height: 45px;
    width: auto;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(100%);
    transition: filter 0.3s ease;
}

.footer-logo .logo:hover {
    filter: brightness(0) saturate(100%) invert(100%) brightness(1.2);
}

.footer-logo h3 {
    margin: 0 !important;
    font-size: 1.0rem !important;
    font-weight: 600 !important;
}

.footer-info p {
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Quick Links Section */
.footer-links h4 {
    margin-bottom: 1rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-nav a:hover {
    color: #e5e7eb;
}

/* Services Online Status Section */
.footer-status h4 {
    margin-bottom: 1rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.status-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.status-indicator.online,
.status-indicator.operational {
    background: #059669;
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.3);
    animation: pulse-green 2s infinite;
}

.status-indicator.offline,
.status-indicator.outage {
    background: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}

.status-indicator.development,
.status-indicator.maintenance {
    background: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3);
    animation: pulse-yellow 2s infinite;
}

.status-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.status-label {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-text {
    color: #10b981;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-indicator.offline + .status-info .status-text,
.status-indicator.outage + .status-info .status-text {
    color: #ef4444;
}

.status-indicator.development + .status-info .status-text,
.status-indicator.maintenance + .status-info .status-text {
    color: #f59e0b;
}

/* Green pulse animation for online status */
@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.3);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
    }
}

/* Yellow pulse animation for development status */
@keyframes pulse-yellow {
    0%, 100% {
        box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
    }
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #e5e7eb;
    text-decoration: underline;
}

/* Responsive Design */

/* Small mobile screens - compact navbar */
@media (max-width: 480px) {
    .navbar {
        padding: 0.6rem 0;
    }
    
    .nav-logo .logo {
        height: 40px !important;
    }
    
    .nav-logo h2 {
        font-size: 0.9rem !important;
        line-height: 1.2 !important;
    }
    
    .nav-toggle {
        transform: scale(0.9);
    }
}

/* iPhone SE and smaller */
@media (max-width: 375px) {
    .navbar {
        padding: 0.6rem 0;
    }
    
    .nav-logo .logo {
        height: 40px !important;
    }
    
    .nav-logo h2 {
        font-size: 0.9rem !important;
        line-height: 1.2 !important;
        max-width: 180px;
    }
    
    .nav-toggle {
        transform: scale(0.85);
    }
}

/* Tablet/mid-range - compact navigation before hamburger */
@media (min-width: 768px) and (max-width: 1100px) {
    .navbar {
        padding: 0.6rem 0;
    }
    
    .nav-logo .logo {
        height: 40px !important;
    }
    
    .nav-logo h2 {
        font-size: 0.9rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Reduce mega menu size to prevent expansion */
    .mega-menu {
        font-size: 0.85rem;
    }
    
    .mega-menu-column h4 {
        font-size: 0.9rem;
    }
    
    .mega-menu-link {
        padding: 0.5rem 0.75rem;
    }
}

/* Switch to hamburger menu at 1100px (earlier to prevent overflow) */
@media (max-width: 1100px) {
    .nav-menu {
        display: none !important;
    }
    
    .nav-toggle {
        display: flex !important;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 768px) {
    .member-portal-access {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .document-submission-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .file-upload-area {
        padding: 2rem 1rem;
    }
    
    .file-upload-area .upload-icon {
        font-size: 3rem;
    }
    
    .page-header {
        padding: 2rem 0 1.5rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }
    
    .page-header p {
        font-size: 1rem;
        white-space: normal;
        max-width: 90%;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .footer-company {
        align-items: center;
    }
    
    .footer-logo h3 {
        font-size: 1.1rem;
    }
    
    .footer-info p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 0.75rem;
        color: white;
    }
    
    .footer-info p i {
        font-size: 0.75rem;
    }
    
    .footer-links h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
        font-size: 0.85rem;
    }
    
    .footer-nav a {
        padding: 0.35rem 0.75rem;
    }
    
    .footer-status h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .status-items {
        align-items: center;
        gap: 1rem;
    }
    
    .status-item {
        justify-content: center;
    }
    
    .status-label {
        font-size: 0.8rem;
    }
    
    .status-text {
        font-size: 0.75rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.85rem;
    }
}

/* Extra Small Screens - Further reduce footer sizes */
@media (max-width: 480px) {
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-content {
        gap: 2rem;
    }
    
    .footer-logo h3 {
        font-size: 1rem;
    }
    
    .footer-logo .logo {
        height: 35px;
    }
    
    .footer-info p {
        font-size: 0.75rem;
        line-height: 1.4;
        color: white;
    }
    
    .footer-info p i {
        font-size: 0.7rem;
    }
    
    .footer-nav {
        font-size: 0.8rem;
        gap: 0.5rem;
    }
    
    .footer-nav a {
        padding: 0.3rem 0.6rem;
    }
    
    .footer-links h4,
    .footer-status h4 {
        font-size: 0.95rem;
    }
    
    .status-label {
        font-size: 0.75rem;
    }
    
    .status-text {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .provider-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .provider-features {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .help-grid {
        grid-template-columns: 1fr;
    }

    .member-portal {
        grid-template-columns: 1fr;
    }

    .portal-access-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .portal-access-content h3 {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .hero-graphic,
    .about-graphic {
        width: 250px;
        height: 250px;
    }

    .hero-graphic i,
    .about-graphic i {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 60px;
        background-attachment: scroll; /* Fix for mobile parallax issues */
    }
    
    .hero-status {
        bottom: 15px;
        right: 15px;
        padding: 0.75rem;
        min-width: 180px;
    }
    
    .hero-status h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-status .status-items {
        gap: 0.5rem;
    }
    
    .hero-status .status-item {
        gap: 0.5rem;
    }
    
    .hero-status .status-indicator {
        width: 10px;
        height: 10px;
    }
    
    .hero-status .status-label {
        font-size: 0.8rem;
    }
    
    .hero-status .status-text {
        font-size: 0.7rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat h3 {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .service-card,
    .portal-card {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e40af 0%, #0f766e 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #065f46 100%);
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(30, 64, 175, 0.5);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

/* Mobile adjustments for scroll to top button */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(31, 41, 55, 0.98);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1.5rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-text h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-consent-text h4 i {
    color: #f59e0b;
}

.cookie-consent-text p {
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-consent-text a {
    color: #60a5fa;
    text-decoration: underline;
}

.cookie-consent-text a:hover {
    color: #93c5fd;
}

.cookie-consent-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #1e40af 0%, #0f766e 100%);
    color: white;
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #065f46 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

.cookie-btn-decline {
    background: transparent;
    color: #d1d5db;
    border: 2px solid #4b5563;
}

.cookie-btn-decline:hover {
    background: #374151;
    border-color: #6b7280;
}

/* Mobile cookie consent */
@media (max-width: 768px) {
    .cookie-consent {
        padding: 1.25rem 1rem;
    }
    
    .cookie-consent-container {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .cookie-consent-text h4 {
        font-size: 1rem;
    }
    
    .cookie-consent-text p {
        font-size: 0.9rem;
    }
    
    .cookie-consent-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1e40af;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e3a8a;
}

/* Mobile Mega Menu Styles */
@media (max-width: 1024px) {
    .mega-menu {
        position: static;
        min-width: auto;
        grid-template-columns: 1fr;
        margin-top: 1rem;
        padding: 1rem;
    }
    
    .mega-menu-column {
        border-right: none;
        padding-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .mega-menu-column:last-child {
        margin-bottom: 0;
    }
    
    .nav-item.has-mega-menu {
        position: static;
    }
    
    .nav-item.has-mega-menu > .nav-link {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Mobile Mega Menu Collapsible Styles */
    .nav-item.has-mega-menu {
        width: 100%;
    }
    
    .nav-item.has-mega-menu > .nav-link {
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        background: #f8fafc;
        border-radius: 8px;
        margin: 0.5rem 0;
        transition: all 0.3s ease;
    }
    
    .nav-item.has-mega-menu > .nav-link:hover {
        background: #f0f9ff;
        color: #1e40af;
    }
    
    .nav-item.has-mega-menu > .nav-link::after {
        content: '\f078';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 0.7rem;
        transition: transform 0.3s ease;
        margin-left: 0.25rem;
    }
    
    .nav-item.has-mega-menu.mobile-active > .nav-link::after {
        transform: rotate(180deg);
    }
    
    .mega-menu {
        position: static;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        background: white;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
    }
    
    .nav-item.has-mega-menu.mobile-active .mega-menu {
        max-height: 800px;
        padding: 1rem 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .mega-menu-column {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding: 1rem 0.5rem;
        margin: 0;
    }
    
    .mega-menu-column:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    
    .mega-menu-column h4 {
        color: #1e40af;
        font-size: 0.95rem;
        margin: 0 0 0.75rem 0;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #e5e7eb;
    }
    
    .mega-menu-links {
        gap: 0.5rem;
    }
    
    .mega-menu-link {
        padding: 0.6rem 0.75rem;
        font-size: 0.9rem;
        border-radius: 6px;
        transition: all 0.2s ease;
    }
    
    .mega-menu-link:hover {
        background: #f0f9ff;
        padding-left: 1rem;
    }
    
    .mega-menu-link i {
        font-size: 0.85rem;
    }
    
    .mega-menu-link .link-title {
        font-size: 0.9rem;
    }
}


/* TinyMCE Z-Index Fixes */
.tox-dialog, .tox-dialog__header, .tox-dialog__body, .tox-dialog__footer {
    z-index: 99999 !important;
}

.tox-dialog-wrap {
    z-index: 99999 !important;
}

.tox-dialog__backdrop {
    z-index: 99998 !important;
}

.tox-collection, .tox-collection__item, .tox-menu, .tox-pop {
    z-index: 99997 !important;
}

.tox-toolbar, .tox-toolbar__group, .tox-toolbar__primary {
    z-index: 99996 !important;
}

.tox-edit-area {
    z-index: 99995 !important;
}

/* Ensure TinyMCE editor container has proper z-index */
.tox-tinymce {
    z-index: 99994 !important;
}

/* Fix for any TinyMCE modal or popup */
.tox-dialog-wrap .tox-dialog {
    z-index: 99999 !important;
}

/* Additional TinyMCE popup fixes */
.tox-dialog-wrap[aria-hidden='false'] {
    z-index: 99999 !important;
}

.tox-dialog-wrap[aria-hidden='false'] .tox-dialog {
    z-index: 99999 !important;
}

/* Footer Dropdown Styles */
.footer-dropdown {
    position: relative;
    display: inline-block;
}

.footer-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    cursor: pointer;
}

.footer-dropdown-toggle:hover {
    color: #1e40af;
}

.footer-dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.footer-dropdown.active .footer-dropdown-toggle i {
    transform: rotate(180deg);
}

.footer-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.footer-dropdown.active .footer-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.footer-dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.3s ease;
}

.footer-dropdown-menu a:last-child {
    border-bottom: none;
}

.footer-dropdown-menu a:hover {
    background: #f8fafc;
    color: #1e40af;
}
