/* ===================================
   RxBridges - Custom Styles
   =================================== */

:root {
    --primary-navy: #1a2b4a;
    --secondary-navy: #2d3e5f;
    --accent-green: #4ecca3;
    --light-bg: #f8f9fa;
    --card-bg: #e8f4f8;
    --text-dark: #1a2b4a;
    --text-light: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ===================================
   Primary Navigation
   =================================== */
.primary-nav {
    background-color: var(--primary-navy);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-size: 1.125rem;
    font-weight: 700;
}

.brand-icon {
    width: 32px;
    height: 32px;
    background-color: var(--accent-green);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-icon i {
    font-size: 1.125rem;
    color: white;
}

.user-info {
    display: flex;
    align-items: center;
    color: white;
    font-size: 0.875rem;
}

.username {
    font-weight: 500;
}

.user-info i {
    font-size: 0.75rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.user-info i:hover {
    opacity: 1;
}

.language-selector .btn {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
}

/* ===================================
   Secondary Navigation
   =================================== */
.secondary-nav {
    background-color: var(--secondary-navy);
    padding: 0;
}

.secondary-nav .navbar-nav {
    width: 100%;
}

.secondary-nav .nav-item {
    text-align: center;
    flex: 1;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.secondary-nav .nav-item:hover,
.secondary-nav .nav-item.active {
    border-bottom-color: var(--accent-green);
}

.secondary-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 1rem 0.5rem !important;
    transition: all 0.3s ease;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.secondary-nav .nav-item:hover .nav-link,
.secondary-nav .nav-item.active .nav-link {
    color: var(--accent-green) !important;
}

.secondary-nav .nav-subtitle {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-navy);
    border-color: white;
}

.btn-success {
    background-color: var(--accent-green);
    border: none;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: #3db88f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 204, 163, 0.3);
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    background: linear-gradient(135deg, #2d3e5f 0%, #3a4d6f 100%);
    padding: 4rem 0;
    color: white;
}

.hero-title {
    font-size: 62px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-align: left;
}

.hero-subtitle {
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.85;
    text-align: left;
}

/* Service Buttons */
.service-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.service-btn {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.service-btn.active {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
    color: white;
}

/* Hero Search */
.hero-search-container {
    max-width: 600px;
}

.hero-search-input {
    border: none;
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    background-color: white;
    border-radius: 6px;
    flex: 1;
}

.hero-search-input:focus {
    box-shadow: 0 0 0 3px rgba(78, 204, 163, 0.2);
    outline: none;
}

.hero-search-input::placeholder {
    color: #999;
}

.hero-browse-btn {
    background-color: #1a1a1a00;
    border: 1px solid white;
    padding: 0.875rem 2rem;
    font-weight: 600;
    color: white;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-radius: 6px;
    white-space: nowrap;
}

.hero-browse-btn:hover {
    background-color: #000;
    transform: translateY(-1px);
}

/* ===================================
   Testimonial Slider Section
   =================================== */
.testimonial-section {
    background-color: var(--light-bg);
    padding: 5rem 0;
    position: relative;
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-slider {
    flex: 1;
    overflow: hidden;
    padding: 0 2rem;
}

.testimonial-slides {
    position: relative;
}

.testimonial-slide {
    display: none;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.testimonial-slide.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(108, 117, 125, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.5rem;
    color: var(--text-light);
}

.testimonial-text {
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-author {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.testimonial-title {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Navigation Buttons */
.testimonial-nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #666;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.testimonial-nav:hover {
    background-color: #f8f9fa;
    color: var(--text-dark);
    border-color: #d0d0d0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.testimonial-nav:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.prev-btn {
    margin-right: 1rem;
}

.next-btn {
    margin-left: 1rem;
}

.btn-secondary {
    background-color: #6c757d;
    border: none;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* ===================================
   Find Your Path Section
   =================================== */
.find-path-section {
    background-color: white;
    padding: 5rem 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.path-card {
    background-color: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

.path-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #d0d0d0;
}

.path-icon {
    width: 48px;
    height: 48px;
    background-color: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.path-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.path-description {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.path-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.path-tag {
    background-color: #f5f5f5;
    color: var(--text-dark);
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #e8e8e8;
    transition: all 0.2s ease;
}

.path-tag:hover {
    background-color: #e8e8e8;
    border-color: #d0d0d0;
}

.path-link {
    color: var(--accent-green);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.path-link:hover {
    color: #3db88f;
    gap: 0.5rem;
}

.path-link i {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.path-link:hover i {
    transform: translateX(3px);
}

/* ===================================
   Featured Mentors Section
   =================================== */
.featured-mentors-section {
    background-color: #f5f7f9;
    padding: 5rem 0;
}

.view-all-link {
    color: var(--accent-green);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: #3db88f;
}

.mentor-card {
    background-color: white;
    border-radius: 16px;
    padding: 0;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #e0e8eb;
    overflow: hidden;
}

.mentor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: #d0dce0;
}

.mentor-card-header {
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f8fb 100%);
    padding: 2rem 1.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0;
    position: relative;
}

.mentor-card>h3,
.mentor-card>p,
.mentor-card>.mentor-rating,
.mentor-card>.mentor-tags {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
}

.mentor-avatar {
    width: 70px;
    height: 70px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mentor-initials {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

.verified-badge {
    background-color: rgba(78, 204, 163, 0.1);
    color: var(--accent-green);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.verified-badge i {
    font-size: 0.875rem;
}

.mentor-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.375rem;
    margin-top: 1.25rem;
}

.mentor-title {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.125rem;
}

.mentor-company {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.mentor-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}

.mentor-rating i {
    color: #ffc107;
    font-size: 1rem;
}

.rating-value {
    font-weight: 700;
    color: var(--text-dark);
}

.rating-count {
    color: var(--text-light);
}

.mentor-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.mentor-tag {
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--text-dark);
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.mentor-tag:hover {
    background-color: white;
    border-color: rgba(0, 0, 0, 0.12);
}

.mentor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.75rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 1.5rem;
}

.mentor-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.price-unit {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.btn-book {
    background-color: var(--primary-navy);
    color: white;
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-book:hover {
    background-color: #0f1a2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 43, 74, 0.3);
    color: white;
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
    background: linear-gradient(216deg, #2c3e50 0%, #1c2630 25%, #3b4a5c 50%, #11274c 75%, #3f4d5a 100%);
    padding: 5rem 0;
    color: white;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-light {
    background-color: white;
    color: var(--primary-navy);
    border: none;
    font-weight: 600;
    padding: 0.875rem 2.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background-color: var(--accent-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(78, 204, 163, 0.3);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: var(--primary-navy);
    color: white;
    padding: 3rem 0 2rem;
}

.footer-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: 0.5px;
}

.rx-highlight {
    color: var(--accent-green);
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-green);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--accent-green);
    color: white;
    transform: translateY(-2px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0 1.5rem;
}

.footer-copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-green);
}

.made-with-replit .badge,
.made-with-replit-bottom .badge {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-section {
        padding: 3rem 0;
    }

    .testimonial-text {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .search-tags {
        gap: 0.5rem;
    }

    .tag {
        font-size: 0.65rem;
        padding: 0.375rem 0.75rem;
    }
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.path-card,
.mentor-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-navy);
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-green);
}