/* Styles for about_us.php, moved out of the page unchanged. */
/* Hide breadcrumb and reset page wrapper spacing for seamless banner. */
.rui-breadcrumbs,
#page-header {
    display: none !important;
}

#page-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

#region-main {
    padding-top: 0 !important;
}

/* Center the navigation menu in the header. */
nav.navbar {
    justify-content: space-between !important;
}

.primary-navigation {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.primary-navigation .navigation {
    justify-content: center !important;
}

#usernavigation {
    margin-left: 0 !important;
}

/* Navigation styles matching landing page. */
.primary-navigation .navigation .nav-link {
    padding: 9px 15px;
    margin: 0 .15rem;
    min-height: 40px;
    font-weight: 500;
    color: #212121 !important;
    border: none;
    border-radius: 5px;
}

.primary-navigation .navigation .nav-link:hover,
.primary-navigation .navigation .nav-link:focus {
    color: #0ea5e9 !important;
    background-color: rgba(14, 165, 233, 0.1);
}

.rui-topbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    width: max-content;
    min-height: 40px;
    border: none;
    border-radius: 5px;
    font-size: .75rem;
    font-weight: 500;
    background-color: #EEE !important;
    color: #212121 !important;
}

.rui-topbar-btn:hover,
.rui-topbar-btn:focus {
    background-color: #DDD !important;
    color: #212121 !important;
}

.rui-login-btn {
    background-color: #ba9607 !important;
    color: white !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
}

/* Page Hero Banner */
.page-hero {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    padding: 32px 20px;
    text-align: center;
    margin-top: -24px;
}

.page-hero h1 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.page-hero p {
    color: #94a3b8;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Content Sections */
.about-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 20px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-grid.reverse {
    direction: rtl;
}

.about-grid.reverse > * {
    direction: ltr;
}

.about-text h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    line-height: 1.3;
}

.about-text h2 .highlight {
    color: #0ea5e9;
}

.about-text p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* Features Section */
.features-section {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    padding: 48px 20px;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.features-header {
    text-align: center;
    margin-bottom: 40px;
}

.features-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.features-header p {
    font-size: 1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: white;
    padding: 28px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* Video Section */
.video-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 20px;
    text-align: center;
}

.video-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.video-section > p {
    font-size: 1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 32px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Impact Section */
.impact-section {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    padding: 48px 20px;
}

.impact-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.impact-container h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.impact-container > p {
    font-size: 1rem;
    color: #94a3b8;
    max-width: 800px;
    margin: 0 auto 32px;
    line-height: 1.8;
}

.impact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    text-align: left;
}

.impact-card {
    background: #334155;
    padding: 28px;
    border-radius: 12px;
}

.impact-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0ea5e9;
    margin-bottom: 12px;
}

.impact-card p {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin: 0;
}

/* CTA Section */
.cta-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 20px;
    text-align: center;
}

.cta-box {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    padding: 48px 32px;
    border-radius: 16px;
}

.cta-box h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.cta-box p {
    font-size: 1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 24px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ba9607;
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cta-btn:hover {
    background: #a38506;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.cta-btn svg {
    width: 20px;
    height: 20px;
}

/* Footer */
.modern-footer {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 48px 20px 24px;
    margin-top: 0;
    margin-bottom: -100px;
    padding-bottom: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.footer-block h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #0ea5e9;
    margin-bottom: 16px;
}

.footer-block p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-block ul li {
    margin-bottom: 8px;
}

.footer-block ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-block ul li a:hover {
    color: #0ea5e9;
}

.footer-block .footer-icon {
    color: #0ea5e9;
    margin-right: 8px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 32px auto 0;
    padding-top: 20px;
    border-top: 1px solid #334155;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .about-grid,
    .impact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-grid.reverse {
        direction: ltr;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 1.5rem;
    }

    .page-hero {
        padding: 24px 16px;
    }

    .about-section,
    .video-section,
    .cta-section {
        padding: 32px 16px;
    }

    .features-section,
    .impact-section {
        padding: 32px 16px;
    }

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

    .footer-container {
        grid-template-columns: 1fr;
    }

    .about-text h2,
    .features-header h2,
    .video-section h2,
    .impact-container h2,
    .cta-box h2 {
        font-size: 1.5rem;
    }
}
