/* ========================================
   ABOUT US & CONTACT US PAGE STYLES
   ======================================== */

/* Common Page Styles */
.about-us-page,
.contact-us-page {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.page-header-section {
    text-align: center;
    margin-bottom: 60px;
}

.page-header-section .section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color-solid) 0%, #1e40af 100%);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1f2937;
    /* color: #1f2937; */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #4b5563;
    color: #f8fafc;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* ========================================
   ABOUT US PAGE SPECIFIC STYLES
   ======================================== */

/* Eric's Updates */
/* About hero section */
.about-hero-content p {
    color: #f8fafc;
    padding: 12px;
    /* background: red; */
}

/* About footer section */
.about-cta-content p {
    color: #f8fafc;
    padding: 12px;
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.stat-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color-solid) 0%, #1e40af 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color-solid);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}

/* Mission Vision Grid */
.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

.mission-vision-card {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-vision-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.card-icon-large {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(30, 64, 175, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color-solid);
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.vision .card-icon-large {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 193, 7, 0.2) 100%);
    color: #d97706;
}

.card-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
}

.card-description {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.8;
    margin: 0;
}

/* Why Choose Us Section */
.why-choose-us {
    margin-bottom: 80px;
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    margin-bottom: 50px;
}

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

.feature-item {
    background: white;
    padding: 35px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}

.feature-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary-color-solid) 0%, #1e40af 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    margin: 0 auto 20px;
}

.feature-item h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}

/* New Support Services & Trust Card Styles */
.about-support-services {
    padding: 100px 0;
    background: #ffffff;
}

.about-support-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-support-list li {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.about-support-list li:hover {
    transform: translateX(10px);
    background: #ffffff;
    border-color: var(--primary-color-solid);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.about-support-list .icon-box {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color-solid) 0%, #1e40af 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.about-support-list span {
    font-size: 1.1rem;
    font-weight: 600;
    color: #334155;
}

.about-trust-card {
    background: linear-gradient(135deg, var(--primary-color-solid) 0%, #1e40af 100%);
    padding: 50px;
    border-radius: 24px;
    color: #ffffff !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}

.about-trust-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.trust-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #ffffff !important;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.about-trust-card p {
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #ffffff !important;
}

.about-trust-card p:last-child {
    margin-bottom: 0;
    font-weight: 400;
}

@media (max-width: 991px) {
    .about-trust-card {
        margin-top: 50px;
        padding: 40px;
    }
}

/* CTA Section */
.about-cta-section {
    background: linear-gradient(135deg, var(--primary-color-solid) 0%, #1e40af 100%);
    padding: 70px 50px;
    border-radius: 20px;
    text-align: center;
    color: white;
    margin-top: 80px;
}

.about-cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.about-cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--secondary-color);
    color: #1f2937;
    padding: 16px 40px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #ffc107;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
}

/* ========================================
   CONTACT US PAGE SPECIFIC STYLES
   ======================================== */

/* Office Locations Section */
.office-locations-section {
    margin-bottom: 80px;
}

/* Office Tabs */
.office-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 40px auto 35px;
    max-width: 700px;
}

.office-tab {
    background: white;
    border: 1.5px solid #e5e7eb;
    color: #6b7280;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
}

.office-tab:hover {
    border-color: var(--primary-color-solid);
    color: var(--primary-color-solid);
    background: rgba(37, 99, 235, 0.04);
    transform: translateY(-2px);
}

.office-tab.active {
    background: linear-gradient(135deg, var(--primary-color-solid) 0%, #1e40af 100%);
    color: white;
    border-color: var(--primary-color-solid);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.office-tab.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.section-heading-centered {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    margin-bottom: 15px;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.offices-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.office-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid #f1f5f9;
    animation: fadeIn 0.5s ease;
    width: 100%;
    max-width: 380px;
    flex: 1 1 300px;
    margin: 0 auto;
    /* Ensure centering */
}

.office-card.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.office-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

.office-card.main-office {
    border: 2px solid var(--primary-color-solid);
    background: linear-gradient(145deg, #ffffff 0%, #f0f9ff 100%);
}

.office-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color-solid) 0%, #1e40af 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.office-badge.branch {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.office-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.office-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.info-item i {
    color: var(--primary-color-solid);
    font-size: 1.1rem;
    margin-top: 2px;
    min-width: 18px;
    flex-shrink: 0;
}

.info-item strong {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
    font-weight: 600;
}

.info-item p {
    font-size: 0.9rem;
    color: #1f2937;
    margin: 0;
    line-height: 1.5;
}

.contact-link {
    color: var(--primary-color-solid);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* Quick Contact Section */
.quick-contact-section {
    margin-bottom: 80px;
}

.quick-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.quick-contact-card {
    background: white;
    padding: 28px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.quick-contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
    border-color: var(--primary-color-solid);
}

.quick-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color-solid) 0%, #1e40af 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 16px;
}

.quick-contact-card:first-child .quick-icon {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.quick-contact-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.quick-contact-card p {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.4;
}

.quick-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color-solid);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.quick-link:hover {
    gap: 12px;
    color: #1e40af;
}

.quick-link i {
    font-size: 0.85rem;
}

/* Contact Form Section */

/* Contant Us - UPDATES */
.section-badge.up-style {
    /* background: red; */
    margin-top: 60px;
    color: white;
}

.page-subtitle {
    color: #162233;
    padding: 12px;
    /* background: red; */
}

.contact-form-section {
    background: white;
    padding: 60px 50px;
    border-radius: 20px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 80px;
}

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

.form-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.form-header p {
    font-size: 1.1rem;
    color: #6b7280;
}

.modern-contact-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 25px;
}

.modern-contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.modern-contact-form .form-group.full-width {
    grid-column: 1 / -1;
}

.modern-contact-form label {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modern-contact-form label i {
    color: var(--primary-color-solid);
}

.modern-contact-form input,
.modern-contact-form select,
.modern-contact-form textarea {
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.modern-contact-form input:focus,
.modern-contact-form select:focus,
.modern-contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color-solid);
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.modern-contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 6px;
}

.form-submit {
    text-align: center;
    margin-top: 35px;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary-color-solid) 0%, #1e40af 100%);
    color: white;
    padding: 16px 50px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.form-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-note i {
    color: #10b981;
}

/* Map Section */
.map-section {
    margin-bottom: 80px;
}

.map-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    margin-top: 30px;
}

/* Social Media Section */
.social-media-section {
    background: white;
    padding: 60px 50px;
    border-radius: 20px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 40px;
}

.social-media-section h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
}

.social-media-section p {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 35px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.social-icon.facebook {
    background: #1877f2;
}

.social-icon.twitter {
    background: #1da1f2;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.linkedin {
    background: #0077b5;
}

.social-icon.youtube {
    background: #ff0000;
}

/* Alert Styles */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}

.alert-success {
    background: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
}

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

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

@media (max-width: 768px) {

    .about-us-page,
    .contact-us-page {
        padding: 50px 0;
    }

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

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

    .section-heading-centered {
        font-size: 2rem;
    }

    .office-tabs {
        gap: 10px;
        margin: 30px auto 25px;
    }

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

    .stats-section,
    .mission-vision-grid,
    .offices-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .quick-contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modern-contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .section-heading {
        font-size: 1.8rem;
    }

    .about-cta-section {
        padding: 50px 30px;
    }

    .about-cta-section h2 {
        font-size: 1.8rem;
    }

    .contact-form-section,
    .social-media-section {
        padding: 40px 25px;
    }

    .office-card {
        padding: 20px;
    }

    .office-name {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.75rem;
    }

    .section-heading-centered {
        font-size: 1.6rem;
    }

    .office-tabs {
        gap: 8px;
    }

    .office-tab {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

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

    .card-heading {
        font-size: 1.5rem;
    }

    .feature-item h3 {
        font-size: 1.2rem;
    }

    .office-name {
        font-size: 1.4rem;
    }

    .quick-contact-card h4 {
        font-size: 1.1rem;
    }

    .social-media-section h3 {
        font-size: 1.5rem;
    }

    .cta-button,
    .submit-btn {
        padding: 14px 30px;
        font-size: 1rem;
    }

    .office-card {
        padding: 18px;
    }

    .office-name {
        font-size: 1.15rem;
    }

    .info-item p {
        font-size: 0.85rem;
    }

    .quick-contact-card {
        padding: 22px 16px;
    }

    .quick-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

/* 
    Meet the team page styles
*/
.team-section {
    margin-top: 60px;
    /* background: red; */
}

.section-title p {
    /* background: red; */
    color: #162233;
    font-size: 1.2rem;
    margin-bottom: 40px;
    padding: 16px;
    text-align: justify;
}

/* Our Offices Section stylings */
.offices-grid {
    display: flex;
    gap: 20px;
    /* spacing between cards */
    flex-wrap: wrap;
    /* keeps them on one row */
    overflow-x: auto;
    /* allows horizontal scroll if screen is small */
    padding-bottom: 10px;
}

.office-card {
    flex: 0 0 30%;
    /* each card takes 30% width */
    background: #fff;
    border-radius: 8px;
    padding: 20px;
}

/* Office section responsiveness */
/* For large screens, show in one row */
@media (min-width: 992px) {
    .offices-grid {
        flex-wrap: nowrap;
        /* no wrap */
        justify-content: space-between;
        /* spread evenly */
    }

    .office-card {
        flex: 1;
        /* make all cards equal width */
        min-width: 250px;
        /* prevent too small cards */
    }
}

/* ====== Privacy page — readable "book" style ====== */