* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Garamond, Georgia, 'Times New Roman', serif;
    line-height: 1.8;
    color: #333;
    font-size: 1.1rem;
}

* {
    font-family: Garamond, Georgia, 'Times New Roman', serif;
}

/* Ensure all input fields use Garamond font */
input, textarea, select, button {
    font-family: Garamond, Georgia, 'Times New Roman', serif !important;
}

input[type="text"], 
input[type="email"], 
input[type="tel"], 
input[type="number"], 
input[type="password"], 
input[type="date"], 
textarea, 
select {
    font-family: Garamond, Georgia, 'Times New Roman', serif !important;
    font-size: 1rem;
}

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

/* Enhanced Mobile Navigation Styles - PaisaBazaar Style */
@media (max-width: 768px) {
    body {
        padding-top: 60px !important;
    }
    
    .container {
        padding: 0 16px;
        position: relative;
        max-width: 100%;
    }
    
    .header {
        padding: 0.5rem 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: white;
        height: 60px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 16px;
        height: 100%;
    }
    
    .nav-brand {
        order: 1;
        flex: 0 0 auto;
    }
    
    .nav-brand .logo {
        height: 40px;
        width: auto;
        max-width: 160px;
    }
    
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        z-index: 1001;
        order: 3;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 280px;
        height: calc(100vh - 60px);
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-dropdown {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .nav-link {
        width: 100%;
        padding: 15px 10px;
        border-bottom: 1px solid #eee;
        font-size: 1rem;
        display: block;
        text-decoration: none;
        color: #333;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        background: #f8f9fa;
        margin: 10px 0;
        padding: 10px;
        border-radius: 8px;
        width: 100%;
    }
    
    .nav-dropdown.active .dropdown-content {
        display: block;
    }
    
    .nav-actions {
        order: 2;
        display: flex;
        flex-direction: column;
        gap: 6px;
        align-items: flex-end;
        position: relative;
    }
    
    .nav-actions .btn-primary,
    .nav-actions .btn-signin {
        padding: 6px 10px;
        font-size: 0.8rem;
        border-radius: 4px;
        white-space: nowrap;
        min-width: auto;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-actions .btn-signin {
        background: transparent;
        border: 1px solid #3b82f6;
        color: #3b82f6;
    }
    
    .nav-actions .btn-primary {
        background: #16a34a;
        color: white;
        border: 1px solid #16a34a;
    }
    
    .user-section {
        order: 2;
    }
    
    /* Hide desktop nav on mobile */
    .nav-menu {
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    /* Hide sliding banner on mobile */
    .hero-slides-container,
    .hero-slides,
    .hero-slide,
    .hero-dots {
        display: none !important;
    }
    
    /* Mobile hero section - simplified */
    .hero {
        padding: 16px 0;
        background: #f8fafc;
        margin: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 16px;
        min-height: auto;
        padding: 0;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 24px;
        font-weight: 600;
        line-height: 1.3;
        margin-bottom: 8px;
        color: #1f2937;
    }
    
    .hero-text p {
        font-size: 14px;
        line-height: 1.4;
        color: #6b7280;
        margin-bottom: 16px;
    }
    
    /* Hide desktop hero elements */
    .hero-offer,
    .hero-card,
    .card-buttons,
    .card-buttons-row2,
    .hero-slide-image {
        display: none !important;
    }
}

/* Mobile Menu Toggle Styles */
.mobile-menu-toggle {
    display: none;
}

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

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Section spacing and alignment */
.services {
    padding: 2rem 0;
}

/* Header */
.header {
    background: white;
    padding: 0.1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

/* Header Size Reduction for Desktop and Mobile */
.header {
    padding: 0.4rem 0;
    height: auto;
    min-height: 55px;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Desktop header adjustments */
@media (min-width: 769px) {
    .header {
        min-height: 70px;
        padding: 0.2rem 0;
    }
}

.nav-brand .logo {
    height: 100px !important;
    width: 150px !important;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

/* Comprehensive Mobile Fixes */
@media (max-width: 768px) {
    /* Base mobile settings */
    body {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .container {
        padding: 0 10px;
        max-width: 100%;
    }
    
    /* Header and Navigation */
    .nav-dropdown {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        width: 100%;
        text-align: left;
        border-radius: 6px;
        margin: 0.2rem 0;
        transition: all 0.3s ease;
        font-size: 1rem;
        padding: 12px 15px;
    }
    
    .nav-link:active {
        transform: scale(0.98);
        background: rgba(37, 99, 235, 0.1);
    }
    
    /* Logo visibility fixes */
    .logo {
        height: 35px !important;
        width: auto !important;
        max-width: 140px !important;
        object-fit: contain;
    }
    
    /* Hero section mobile fixes */
    .hero {
        padding: 2rem 0;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Services section mobile */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
        margin: 0 auto;
        max-width: 350px;
    }
    
    .service-card img {
        height: 60px !important;
        width: auto !important;
        max-width: 100px !important;
        object-fit: contain;
        margin-bottom: 1rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* Button consistency */
    .btn-primary,
    .btn-secondary,
    .btn,
    button {
        padding: 12px 20px !important;
        font-size: 1rem !important;
        border-radius: 8px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        line-height: 1.4;
    }
    
    /* Text size consistency */
    h1 { font-size: 1.8rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.3rem !important; }
    h4 { font-size: 1.1rem !important; }
    h5 { font-size: 1rem !important; }
    h6 { font-size: 0.9rem !important; }
    
    p, div, span {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }
    
    /* Loan journey step icons fix */
    .step-icon,
    .step-number,
    .journey-step .step-icon,
    .journey-step .step-number {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
        line-height: 40px !important;
        text-align: center;
        border-radius: 50%;
        margin: 0 auto 0.5rem;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Journey steps mobile layout */
    .journey-steps,
    .loan-steps,
    .steps-container {
        display: block !important;
        padding: 1rem 0;
    }
    
    .journey-step,
    .loan-step,
    .step {
        width: 100% !important;
        margin: 1rem 0 !important;
        padding: 1rem !important;
        border-radius: 12px;
        background: white;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        text-align: center;
    }
    
    .journey-step h3,
    .loan-step h3,
    .step h3 {
        font-size: 1.1rem !important;
        margin: 0.5rem 0 !important;
    }
    
    .journey-step p,
    .loan-step p,
    .step p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        margin: 0.5rem 0 !important;
    }
    
    /* Image visibility fixes */
    img {
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
    }
    
    .service-image,
    .loan-image,
    .feature-image {
        width: 100% !important;
        max-width: 200px !important;
        height: auto !important;
        margin: 0 auto 1rem !important;
        object-fit: contain !important;
    }
    
    /* Form elements mobile */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-control,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        width: 100% !important;
        padding: 12px 15px !important;
        font-size: 1rem !important;
        border-radius: 8px;
        border: 1px solid #ddd;
        min-height: 44px;
        box-sizing: border-box;
    }
    
    /* Modal fixes for mobile */
    .modal,
    .popup,
    .overlay {
        padding: 10px !important;
    }
    
    .modal-content,
    .popup-content {
        width: 95% !important;
        max-width: 400px !important;
        margin: 20px auto !important;
        padding: 1.5rem !important;
        border-radius: 12px;
    }
    
    /* Grid fixes */
    .grid,
    .features-grid,
    .testimonials-grid,
    .team-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Spacing adjustments */
    .section {
        padding: 2rem 0 !important;
    }
    
    .section-title {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem !important;
        text-align: center;
    }
    
    /* Footer mobile */
    .footer {
        padding: 2rem 0 !important;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
    
    /* Video elements */
    video {
        width: 100% !important;
        height: auto !important;
        max-height: 200px !important;
    }
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 250px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1001;
    border-radius: 8px;
    padding: 1rem 0;
    top: 100%;
    left: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.dropdown-content a {
    color: #333;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    display: block;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 0.25rem;
}

.dropdown-content a:hover {
    background: #2563eb;
    color: white;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.dropdown-section {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.dropdown-section:last-child {
    border-bottom: none;
}

.dropdown-section h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e40af;
    padding: 0.5rem 1.5rem;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-dropdown:hover .dropdown-content,
.nav-dropdown:focus-within .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-content:hover {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Keep dropdown visible while hovering over the parent or dropdown itself */
.nav-dropdown:hover > .dropdown-content,
.dropdown-content:hover {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

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

.nav-link i {
    font-size: 0.8rem;
    margin-left: 0.5rem;
    transition: transform 0.3s;
}

.nav-dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 220px;
    height: 100px;
    object-fit: contain;
}

/* Desktop logo size - 120px height */
@media (min-width: 769px) {
    .logo {
        height: 120px !important;
        width: auto !important;
        max-width: 240px !important;
    }
    
    /* Reduce spacing between header and hero section */
    .hero {
        margin-top: 0 !important;
    }
    
    .hero-content {
        min-height: 260px !important;
    }
    
    /* Show desktop icons only on desktop */
    .service-card .desktop-icon {
        display: block !important;
    }
    
    .service-card .mobile-icon {
        display: none !important;
    }
    
    /* Desktop services grid styling */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
        gap: 1.5rem !important;
    }
    
    .service-card {
        padding: 2rem 1.5rem !important;
        min-height: 180px !important;
        flex-direction: column !important;
        text-align: left !important;
    }
    
    .service-card h3 {
        font-size: 1.1rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .service-card p {
        display: block !important;
        font-size: 0.85rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Hide mobile collaborations section on desktop */
    .mobile-collaborations {
        display: none !important;
    }
    
    /* Tax filing section desktop styling to match loans section */
    .tax-filing-section {
        background: #f8fafc !important;
        padding: 3rem 0 !important;
    }
    
    .tax-filing-section .section-title-left {
        font-size: 2.5rem !important;
        font-weight: 700 !important;
        text-align: left !important;
        margin-bottom: 2rem !important;
        color: #1f2937 !important;
    }
    
    .tax-services-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
    }
    
    .tax-services-grid .service-card {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: white !important;
        padding: 2rem !important;
        border-radius: 15px !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        min-height: 120px !important;
    }
    
    .tax-services-grid .service-card:hover {
        transform: translateY(-5px) !important;
        box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
    }
    
    .tax-services-grid .service-card h3 {
        font-size: 1.5rem !important;
        font-weight: 700 !important;
        margin: 0 !important;
        color: white !important;
    }
    
    .tax-services-grid .service-card .desktop-icon {
        display: block !important;
        font-size: 3rem !important;
        color: white !important;
        margin-left: 1rem !important;
    }
    
    .tax-services-grid .service-card .mobile-icon {
        display: none !important;
    }
}

.brand-name {
    display: none;
}

.nav-menu {
    display: flex;
    gap: 1rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: white;
    background: #2563eb;
    transform: translateY(-1px);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* User Section Styles */
.user-section {
    position: relative;
}

.user-dropdown {
    position: relative;
}

.user-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid #2563eb;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2563eb;
    font-weight: 600;
}

.user-icon:hover {
    background: rgba(37, 99, 235, 0.2);
    transform: translateY(-1px);
}

.user-icon .fa-user-circle {
    font-size: 1.5rem;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.user-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 280px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    z-index: 1001;
    padding: 1rem 0;
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.user-dropdown-content.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.5rem 1rem;
}

.user-avatar .fa-user-circle {
    font-size: 3rem;
    color: #64748b;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-name-full {
    font-weight: 600;
    color: #1e293b;
    font-size: 1.1rem;
}

.user-email {
    color: #64748b;
    font-size: 0.9rem;
}

.dropdown-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: #2563eb;
}

.dropdown-item.logout:hover {
    background: #fef2f2;
    color: #dc2626;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
}

.guest-actions {
    display: flex;
    gap: 1rem;
}

.btn-secondary {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #2563eb;
    color: white;
}

.btn-signin {
    background: #1e293b;
    color: white;
    border: 2px solid #1e293b;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.3);
}

.btn-signin:hover {
    background: #0f172a;
    border-color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.4);
}

.btn-primary {
    background: #16a34a;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(22, 163, 74, 0.2);
}

.btn-primary:hover {
    background: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(22, 163, 74, 0.3);
}

.btn-primary i {
    font-size: 1.1rem;
}

.btn-primary:hover {
    background: #15803d;
}

/* Hero Section */
.hero {
    background: white;
    padding: 0.1rem 0;
    color: #333;
    position: relative;
    overflow: hidden;
    margin: 0.2rem 20px 0.3rem 20px; /* Reduced margins */
    border-radius: 15px;
    border: 3px solid #2563eb;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
}

/* Desktop hero adjustments */
@media (min-width: 769px) {
    .hero {
        margin-top: 0.5rem;
        padding: 0.8rem 0;
    }
}

.hero::before {
    display: none;
}

.hero .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Match main container padding for alignment */
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 260px;
    padding: 0;
}

.hero-text {
    flex: 1;
    max-width: 450px;
    padding-left: 20px; /* Match container padding for proper alignment */
}

.hero-text-shifted {
    margin-left: 0;
    padding-left: 4rem;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #1a365d;
}

.hero-offer {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.offer-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.offer-percent {
    font-size: 3rem;
    font-weight: 900;
    color: #fbbf24;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1;
}

.offer-text {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1a365d;
}

.hero-right {
    flex: 1;
    max-width: 500px;
}

.hero-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
    color: #333;
    border: 1px solid #e2e8f0;
    min-height: 220px;
    position: relative;
    overflow: visible;
    padding-right: 240px; /* Make space for images in slides with images */
}

.hero-card h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #1a365d;
    line-height: 1.3;
    max-width: 100%;
    padding-right: 1rem;
}

.card-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.card-buttons-row2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
}

.card-btn {
    background: #16a34a;
    color: white;
    border: 2px solid #16a34a;
    padding: 0.8rem 0.6rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s;
    text-align: center;
    white-space: normal;
    overflow: visible;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
    box-shadow: 0 2px 4px rgba(22, 163, 74, 0.2);
}

.card-btn.active {
    background: #104865;
    color: white;
    border-color: #104865;
}

.card-btn:hover {
    background: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card-btn.active:hover {
    background: #0d3a52;
    border-color: #0d3a52;
}

/* Hero Slide Images */
.hero-slide-image {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.hero-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 15px;
    border: 2px solid rgba(37, 99, 235, 0.1);
    transition: transform 0.3s ease;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.hero-slide-image:hover img {
    transform: scale(1.05);
}

/* Ensure images are visible in ALL slides */
.hero-slide .hero-slide-image {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-slide:nth-child(2) .hero-slide-image,
.hero-slide:nth-child(3) .hero-slide-image,
.hero-slide:nth-child(4) .hero-slide-image {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Special styling for slides without images (first slide) */
.hero-slide:first-child .hero-card {
    padding-right: 1.5rem; /* Reset padding for first slide */
}

/* Ensure proper spacing for slides with images */
.hero-slide:not(:first-child) .hero-card {
    padding-right: 220px; /* Make space for images */
}

/* Mobile hero slide images fix */
@media (max-width: 768px) {
    .hero-slide-image {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 200px !important;
        height: 120px !important;
        margin: 8px auto 0 !important;
        order: 3 !important;
    }
    
    .hero-slide:not(:first-child) .hero-card {
        padding-right: 1.5rem !important;
    }
    
    .hero-slide .hero-slide-image img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }
}

/* Services Section - Hidden on Desktop */
.services {
    padding: 2rem 0;
    background: #f8fafc;
    display: none;
}

/* Show services section only on mobile */
@media (max-width: 768px) {
    .services {
        display: block !important;
    }
}

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

.service-card {
    background: white;
    color: #1e293b;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: left;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
    min-height: 180px;
    margin-bottom: 0.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    animation: fadeInUp 0.5s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(30, 64, 175, 0.3);
}

.card-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #fbbf24;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.service-card p {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    opacity: 0.9;
    line-height: 1.3;
}

.card-link {
    color: #fbbf24;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.card-link:hover {
    color: #f59e0b;
}

/* Additional Services */
.additional-services {
    padding: 2rem 0 4rem;
    background: #f8fafc;
}

.additional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Video Section */
.video-section {
    padding: 2rem 0;
    background: #f1f5f9;
}

.video-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 6rem;
}

/* Smart Loans Section */
.smart-loans {
    padding: 2rem 0;
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    color: white;
}

.smart-loans .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 6rem;
}

/* Testimonials */
.testimonials {
    padding: 2rem 0;
    background: white;
}

.testimonials .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 6rem;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
}

.main-video {
    width: 100%;
    height: 450px;
    border-radius: 20px;
    object-fit: cover;
    background: #000;
}

.smart-loans-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.smart-loans-text {
    flex: 1;
}

.smart-loans-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.airplane-graphic {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    position: relative;
}

.airplane-graphic i {
    font-size: 2rem;
    color: #fbbf24;
    transform: rotate(45deg);
}

.flight-path {
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, #fbbf24 0%, transparent 100%);
    position: relative;
}

.flight-path::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(251, 191, 36, 0.3) 20%, 
        rgba(251, 191, 36, 0.1) 100%);
}

.smart-loans-text p {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.95;
}

.smart-loans-apply-btn {
    background: #16a34a;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(22, 163, 74, 0.2);
    font-size: 1.1rem;
    margin-top: 1.5rem;
    animation: shine 8s infinite;
}

.smart-loans-apply-btn:hover {
    background: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(22, 163, 74, 0.3);
}

.smart-loans-apply-btn i {
    font-size: 1.1rem;
}

@keyframes shine {
    0%, 90%, 100% {
        box-shadow: 0 2px 4px rgba(22, 163, 74, 0.2);
    }
    5%, 15% {
        box-shadow: 0 0 20px rgba(22, 163, 74, 0.6), 0 0 40px rgba(22, 163, 74, 0.4);
        transform: translateY(-2px);
    }
}

.smart-loans-image {
    flex: 1;
    max-width: 400px;
}

.smart-loans-video {
    width: 100%;
    height: 300px;
    border-radius: 15px;
    object-fit: cover;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: #1e40af;
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 2rem;
    width: max-content;
}

.testimonials-track .testimonial-card {
    width: 350px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.testimonials-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.testimonial-nav-btn {
    background: #1e40af;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.testimonial-nav-btn:hover {
    background: #1e3a8a;
    transform: scale(1.1);
}

.testimonial-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid #fbbf24;
    transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.stars {
    margin-bottom: 1rem;
}

.stars i {
    color: #fbbf24;
    font-size: 1.1rem;
    margin-right: 0.2rem;
}

.testimonial-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.testimonial-card h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 1rem;
}

.testimonial-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-contact {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #334155;
}

.footer-contact h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #f1f5f9;
}

.footer-contact p {
    color: #cbd5e1;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-logo:hover {
    transform: translateY(-2px);
}

.footer-logo img {
    width: 220px;
    height: auto;
}

.footer-logo span {
    display: none;
}

.footer-section p {
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #3b82f6;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: #cbd5e1;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #3b82f6;
}

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

.footer-contact h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #f1f5f9;
}

.footer-contact p {
    color: #cbd5e1;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.footer-copyright {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-top: 0rem;
    padding-top: 0rem;
    border-top: 0px solid #334155;
}

/* Hide mobile-specific footer elements on desktop */
.footer-follow-us,
.footer-follow-us-full {
    display: none;
}

/* Login Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    margin: 2% auto;
    border: none;
    border-radius: 15px;
    width: 85%;
    max-width: 900px;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    animation: modalSlideIn 0.3s ease-out;
}

/* Appointment Form Styles */
.appointment-form {
    width: 100%;
}

.appointment-form .form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.appointment-form .form-group {
    flex: 1;
    margin-bottom: 1.25rem;
}

.appointment-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.appointment-form select,
.appointment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.appointment-form select:focus,
.appointment-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.appointment-form optgroup {
    font-weight: bold;
    color: #374151;
}

.appointment-form option {
    font-weight: normal;
    color: #111827;
}

.appointment-modal {
    max-width: 600px;
    display: block;
    padding: 1.5rem;
    min-height: auto;
    overflow-y: visible;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 2001;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-left {
    flex: 1;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow-y: auto;
}

.modal-right {
    flex: 1;
    padding: 3rem;
    background: white;
}

.security-illustration {
    margin-bottom: 2rem;
}

.browser-window {
    width: 250px;
    height: 180px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 15px;
    position: relative;
}

.browser-bar {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.browser-dots {
    width: 60px;
    height: 12px;
    background: linear-gradient(90deg, #ff5f56 0%, #ffbd2e 50%, #27ca3f 100%);
    border-radius: 6px;
}

.address-bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
}

.security-elements {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100px;
}

.lock-icon {
    background: #fbbf24;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.password-field {
    background: #f8fafc;
    padding: 10px 15px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

.password-dots {
    font-size: 18px;
    color: #64748b;
}

.shield-icon {
    background: #16a34a;
    color: white;
width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.modal-left h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e40af;
    margin: 0;
}

.login-form-container {
    background: #e0f2fe;
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid #0891b2;
}

.login-form-container h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0c4a6e;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.btn-submit {
    background: #16a34a;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    margin-top: 1rem;
}

.divider {
    margin: 1.5rem 0;
    text-align: center;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.divider span {
    background: white;
    padding: 0 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: #374151;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.google-login-btn:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.btn-submit:hover {
    background: #1d4ed8;
}

.appointment-form h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #16a34a;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Apply Now Sticky Button */
.apply-now-sticky {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1500;
}

.apply-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 1rem 0.5rem;
    border-radius: 25px 0 0 25px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    transition: all 0.3s;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.apply-btn:hover {
    background: #b91c1c;
    transform: translateX(-5px);
}

.apply-btn i {
    writing-mode: initial;
    text-orientation: initial;
    font-size: 1.2rem;
}

/* Mobile-First Responsive Design */

/* Base styles for mobile (up to 768px) */
@media (max-width: 768px) {
    body {
        font-size: 1rem;
        line-height: 1.6;
    }

    .container {
        padding: 0 15px;
        max-width: 100%;
    }

    /* Header Mobile Optimization */
    .header {
        padding: 0.5rem 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: white;
        border-bottom: 1px solid #e2e8f0;
    }

    .header .container {
        flex-direction: left;
        gap: 0.75rem;
        align-items: stretch;
    }

    .nav-brand {
        justify-content: center;
        margin-bottom: 0.5rem;
    }

    .logo {
        width: 180px;
        height: auto;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .nav-actions {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .btn-primary {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }

    .btn-signin {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }

    /* User section mobile */
    .user-icon {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .user-dropdown-content {
        min-width: 100%;
        right: 0;
        left: 0;
    }

    /* Dropdown mobile optimization */
    .dropdown-content {
        position: static;
        display: none;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        background: #f8fafc;
        margin-top: 0.5rem;
        border-radius: 8px;
        width: 100%;
    }

    .nav-dropdown:hover .dropdown-content,
    .nav-dropdown:focus-within .dropdown-content {
        display: block;
    }

    /* Hero Section Mobile */
    .hero {
        margin: 55px 10px 0 10px;
        padding: 0.8rem 0;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding: 1rem 0;
        gap: 1.5rem;
    }

    .hero-text {
        max-width: 100%;
        order: 1;
    }

    .hero-text-shifted {
        margin-left: 0;
        padding-left: 1rem;
    }

    .hero-text h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-offer {
        justify-content: center;
        margin-top: 1rem;
    }

    .offer-percent {
        font-size: 2.5rem;
    }

    .offer-text {
        font-size: 0.9rem;
    }

    .hero-right {
        max-width: 100%;
        order: 2;
    }

    .hero-card {
        padding: 1.25rem;
        margin: 0 auto;
        max-width: 350px;
        min-height: auto;
        padding-right: 1.25rem;
    }

    .hero-card h3 {
        font-size: 0.85rem;
        text-align: center;
        margin-bottom: 1rem;
        padding-right: 0;
    }

    .card-buttons,
    .card-buttons-row2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .card-btn {
        font-size: 0.75rem;
        padding: 0.6rem 0.4rem;
        min-height: 45px;
        line-height: 1.2;
    }

    .hero-slide-image {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 280px;
        height: 180px;
        margin: 1rem auto 0;
        order: 3;
    }

    .hero-slide:not(:first-child) .hero-card {
        padding-right: 1.25rem;
    }

    .hero-cta {
        text-align: center;
        max-width: 100%;
        margin-top: 1rem;
    }

    .hero-cta-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        max-width: 250px;
    }

    .hero-dots {
        bottom: 0.5rem;
        gap: 0.5rem;
    }

    .hero-dot {
        width: 10px;
        height: 10px;
    }

    /* Services Section Mobile - PaisaBazaar Style */
    .services {
        padding: 16px 0;
        background: white;
    }

    .services h2 {
        font-size: 18px;
        font-weight: 600;
        text-align: left;
        margin-bottom: 16px;
        padding: 0 16px;
        color: #1f2937;
    }

    .services-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 0 16px;
        margin: 0;
    }

    .service-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 12px 8px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        border: 1px solid #f1f5f9;
        min-height: 80px;
        cursor: pointer;
        transition: all 0.2s ease;
        text-decoration: none;
        position: relative;
    }

    .service-card:hover,
    .service-card:active {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        border-color: #3b82f6;
    }

    .service-card img {
        width: 36px;
        height: 36px;
        object-fit: contain;
        margin-bottom: 6px;
        display: block;
    }

    .service-card h3 {
        font-size: 10px;
        text-align: center;
        margin: 0;
        line-height: 1.2;
        color: #374151;
        font-weight: 500;
        max-width: 100%;
        word-wrap: break-word;
    }

    .service-card p {
        display: none;
    }

    /* Responsive adjustments for smaller screens */
    @media (max-width: 380px) {
        .services-grid {
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
        }
        
        .service-card {
            min-height: 70px;
            padding: 10px 6px;
        }
        
        .service-card img {
            width: 32px;
            height: 32px;
        }
        
        .service-card h3 {
            font-size: 9px;
        }
    }

    /* Loans Section Mobile */
    .loans-section {
        padding: 1rem 0;
    }

    .section-title-left {
        font-size: 1.3rem;
        text-align: center;
        margin-bottom: 1rem;
    }

    .loan-banners {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .loan-banner {
        padding: 1.25rem;
        min-height: 120px;
    }

    .banner-content h3 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .banner-content p {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }

    .banner-btn {
        font-size: 0.9rem;
    }

    /* Tax Filing Section Mobile */
    .tax-filing-section {
        padding: 1rem 0;
    }

    .tax-banners {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tax-banner {
        padding: 1.25rem;
        min-height: 120px;
    }

    /* Video Section Mobile */
    .video-section {
        padding: 1.5rem 0;
    }

    .video-section .container {
        padding: 0 1rem;
    }

    .main-video {
        height: 250px;
        border-radius: 15px;
    }

    /* Smart Loans Section Mobile */
    .smart-loans {
        padding: 1.5rem 0;
    }

    .smart-loans .container {
        padding: 0 1rem;
    }

    .smart-loans-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .smart-loans-text h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .airplane-graphic {
        justify-content: center;
        margin: 1rem 0;
    }

    .smart-loans-text p {
        font-size: 1rem;
    }

    .smart-loans-apply-btn {
        font-size: 1rem;
        padding: 0.7rem 1.25rem;
        margin-top: 1rem;
    }

    .smart-loans-image {
        max-width: 100%;
    }

    .smart-loans-video {
        height: 220px;
        border-radius: 12px;
    }

    /* Testimonials Mobile */
    .testimonials {
        padding: 1.5rem 0;
    }

    .testimonials .container {
        padding: 0 1rem;
    }

    .testimonials h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .testimonials-track .testimonial-card {
        width: 300px;
        margin-right: 1rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

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

    .testimonial-card h5 {
        font-size: 0.95rem;
    }

    .testimonial-card p {
        font-size: 0.9rem;
    }

    /* Footer Mobile */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-logo img {
        width: 180px;
    }

    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .footer-section p,
    .footer-section ul li a {
        font-size: 0.85rem;
    }

    .footer-contact p {
        font-size: 0.8rem;
    }

    .footer-copyright p {
        font-size: 0.75rem;
    }

    /* Modal Mobile */
    .modal-content {
        flex-direction: column;
        width: 95%;
        max-width: 400px;
        margin: 5% auto;
        max-height: 90vh;
    }

    .modal-left,
    .modal-right {
        padding: 1.5rem;
        min-height: auto;
    }

    .login-form-container {
        padding: 1.5rem;
    }

    .login-form-container h3 {
        font-size: 1.4rem !important;
        margin-bottom: 1.5rem;
    }

    .login-form .form-group label {
        font-size: 1rem !important;
    }

    .login-form input {
        font-size: 1rem !important;
        padding: 0.8rem;
    }

    .btn-submit {
        font-size: 1.1rem !important;
        padding: 0.8rem 1.5rem;
    }

    .google-login-btn {
        font-size: 1.1rem !important;
        padding: 0.8rem 1.5rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .appointment-form .form-group {
        margin-bottom: 1rem;
    }

    /* Apply Now Sticky Button Mobile */
    .apply-now-sticky {
        right: 8px;
        top: 60%;
    }

    .apply-btn {
        padding: 0.6rem 0.3rem;
        min-height: 90px;
        font-size: 0.75rem;
        border-radius: 20px 0 0 20px;
    }

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

/* Tablet Styles (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }

    .header .container {
        flex-wrap: wrap;
    }

    .nav-menu {
        gap: 0.8rem;
    }

    .nav-link {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }

    .hero {
        margin: 0 15px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .card-buttons,
    .card-buttons-row2 {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .card-btn {
        font-size: 0.8rem;
        padding: 0.7rem 0.5rem;
    }

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

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

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

/* Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    body {
        font-size: 0.95rem;
    }

    .container {
        padding: 0 10px;
    }

    .header {
        padding: 0.4rem 0;
        height: 90px;
    }

    .logo {
        width: 160px;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
    }

    .btn-primary,
    .btn-signin {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .hero {
        margin: 55px 8px 0 8px;
        padding: 0.75rem 0;
    }

    .hero-text h1 {
        font-size: 1.6rem;
        margin-bottom: 0.75rem;
    }

    .offer-percent {
        font-size: 2rem;
    }

    .offer-text {
        font-size: 0.85rem;
    }

    .hero-card {
        padding: 1rem;
        max-width: 320px;
    }

    .hero-card h3 {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }

    .card-btn {
        font-size: 0.7rem;
        padding: 0.5rem 0.3rem;
        min-height: 40px;
    }

    .hero-cta-btn {
        padding: 0.7rem 1.25rem;
        font-size: 0.95rem;
    }

    .section-title-left {
        font-size: 1.2rem;
    }

    .loan-banner,
    .tax-banner {
        padding: 1rem;
        min-height: 110px;
    }

    .banner-content h3 {
        font-size: 0.85rem;
    }

    .banner-content p {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .banner-btn {
        font-size: 0.85rem;
    }

    .main-video {
        height: 200px;
        border-radius: 12px;
    }

    .smart-loans-text h2 {
        font-size: 1.6rem;
    }

    .smart-loans-video {
        height: 180px;
    }

    .testimonials h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .testimonials-track .testimonial-card {
        width: 280px;
    }

    .testimonial-card {
        padding: 1.25rem;
    }

    .footer-logo img {
        width: 160px;
    }

    .modal-content {
        width: 98%;
        margin: 2% auto;
    }

    .modal-left,
    .modal-right {
        padding: 1.25rem;
    }

    .login-form-container h3 {
        font-size: 1.2rem !important;
    }

    .apply-btn {
        padding: 0.5rem 0.25rem;
        min-height: 80px;
        font-size: 0.7rem;
    }
}

/* Large Mobile Landscape (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .card-buttons,
    .card-buttons-row2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .card-btn {
        font-size: 0.8rem;
        padding: 0.65rem 0.4rem;
        min-height: 50px;
    }

    .hero-card {
        max-width: 400px;
    }

    .loan-banners {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

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

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .card-btn,
    .btn-primary,
    .btn-signin,
    .nav-link {
        min-height: 44px;
        touch-action: manipulation;
    }

    .hero-dot {
        min-width: 44px;
        min-height: 44px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .testimonial-nav-btn {
        min-width: 48px;
        min-height: 48px;
    }
}

/* Desktop-only styles to hide mobile elements */
@media (min-width: 769px) {
    /* Hide mobile header buttons on desktop */
    .mobile-header-buttons {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Hide the grey buttons from hero section on desktop */
    .hero-content .hero-buttons {
        display: none !important;
    }
    
    /* Hide the bottom products list on desktop */
    .products-showcase {
        display: none !important;
    }
}

/* ENHANCED MOBILE ANIMATIONS AND ELEMENTS */

/* Mobile-optimized animations */
@media (max-width: 768px) {
    /* Reduce animation intensity for mobile performance */
    * {
        animation-duration: 0.3s !important;
        transition-duration: 0.3s !important;
    }
    
    /* Disable complex animations on mobile to improve performance */
    @keyframes shine {
        0%, 100% {
            box-shadow: 0 2px 4px rgba(22, 163, 74, 0.2);
            transform: none;
        }
        50% {
            box-shadow: 0 4px 8px rgba(22, 163, 74, 0.3);
            transform: translateY(-1px);
        }
    }
    
    /* Mobile-friendly hover effects */
    .card-btn:active,
    .btn-primary:active,
    .btn-signin:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Banner Mobile Enhancements */
    .loan-banner,
    .tax-banner {
        padding: 1.2rem !important;
        min-height: 120px !important;
        border-radius: 12px !important;
        margin-bottom: 1rem !important;
        box-shadow: 0 4px 12px rgba(16, 72, 101, 0.15) !important;
    }
    
    .loan-banner:active,
    .tax-banner:active {
        transform: scale(0.98) !important;
        transition: transform 0.1s ease !important;
    }
    
    .banner-content h3 {
        font-size: 0.95rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.2 !important;
    }
    
    .banner-content p {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.8rem !important;
    }
    
    .banner-btn {
        font-size: 0.9rem !important;
        padding: 0.3rem 0 !important;
        display: inline-block !important;
        min-height: 32px !important;
        line-height: 1.2 !important;
    }
    
    /* Hero Section Mobile Enhancements */
    .hero {
        margin: 75px 10px 0 10px !important;
        padding: 1rem 0 !important;
        border-radius: 12px !important;
        border-width: 2px !important;
    }
    
    .hero-content {
        flex-direction: column !important;
        gap: 1.5rem !important;
        min-height: auto !important;
        padding: 1rem !important;
        text-align: center !important;
    }
    
    .hero-text {
        max-width: 100% !important;
        padding: 0 !important;
        order: 1 !important;
    }
    
    .hero-text h1 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
        text-align: center !important;
    }
    
    .hero-text-shifted {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
    
    .hero-offer {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 1rem !important;
        margin-top: 1rem !important;
    }
    
    .offer-badge {
        flex-direction: column !important;
        text-align: center !important;
        gap: 0.5rem !important;
    }
    
    .offer-percent {
        font-size: 2.2rem !important;
        line-height: 1 !important;
    }
    
    .offer-text {
        font-size: 0.8rem !important;
        text-align: center !important;
        max-width: 120px !important;
    }
    
    .hero-card {
        order: 2 !important;
        max-width: 100% !important;
        padding: 1.2rem !important;
        margin: 0 !important;
    }
    
    .hero-card h3 {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
        text-align: center !important;
    }
    
    .card-buttons,
    .card-buttons-row2 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .card-btn {
        font-size: 0.7rem !important;
        padding: 0.6rem 0.3rem !important;
        min-height: 44px !important;
        border-radius: 8px !important;
        line-height: 1.1 !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .hero-cta {
        text-align: center !important;
        max-width: 100% !important;
        margin-top: 1rem !important;
    }
    
    .hero-cta-btn {
        padding: 0.8rem 1.5rem !important;
        font-size: 1rem !important;
        border-radius: 25px !important;
        width: auto !important;
        min-width: 200px !important;
    }
    
    /* Hero Dots Mobile */
    .hero-dots {
        bottom: 0.5rem !important;
        gap: 0.5rem !important;
    }
    
    .hero-dot {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        border-width: 3px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Video Section Mobile */
    .video-section .container,
    .smart-loans .container,
    .testimonials .container {
        padding: 0 1rem !important;
        max-width: 100% !important;
    }
    
    .main-video {
        height: 250px !important;
        border-radius: 12px !important;
        width: 100% !important;
    }
    
    .smart-loans-content {
        flex-direction: column !important;
        gap: 1.5rem !important;
        text-align: center !important;
    }
    
    .smart-loans-text h2 {
        font-size: 1.8rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.2 !important;
    }
    
    .smart-loans-text p {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .airplane-graphic {
        justify-content: center !important;
        margin: 1rem 0 !important;
    }
    
    .flight-path {
        width: 100px !important;
    }
    
    .airplane-graphic i {
        font-size: 1.5rem !important;
    }
    
    .smart-loans-apply-btn {
        font-size: 1rem !important;
        padding: 0.8rem 1.5rem !important;
        margin-top: 1rem !important;
        width: auto !important;
        min-width: 200px !important;
    }
    
    .smart-loans-video {
        height: 220px !important;
        border-radius: 12px !important;
        width: 100% !important;
    }
    
    /* Services Grid Mobile */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin-top: 1rem !important;
    }
    
    .service-card {
        padding: 1.5rem !important;
        border-radius: 12px !important;
        text-align: center !important;
        min-height: auto !important;
    }
    
    .service-icon {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .service-card h3 {
        font-size: 1rem !important;
        margin-bottom: 0.8rem !important;
        line-height: 1.2 !important;
    }
    
    .service-card p {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1rem !important;
    }
    
    .card-link {
        font-size: 0.9rem !important;
        padding: 0.3rem 0 !important;
        display: inline-block !important;
        min-height: 32px !important;
    }
    
    /* Additional Services Mobile */
    .additional-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        max-width: 100% !important;
    }
    
    /* Testimonials Mobile */
    .testimonials h2 {
        font-size: 1.8rem !important;
        margin-bottom: 1.5rem !important;
        text-align: center !important;
    }
    
    .testimonials-container {
        overflow-x: auto !important;
        padding: 0 1rem !important;
    }
    
    .testimonials-track {
        display: flex !important;
        gap: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    .testimonial-card {
        min-width: 280px !important;
        flex-shrink: 0 !important;
        padding: 1.5rem !important;
        border-radius: 12px !important;
    }
    
    .testimonial-nav {
        justify-content: center !important;
        gap: 1rem !important;
        margin-top: 1rem !important;
    }
    
    .testimonial-nav-btn {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.2rem !important;
        border-radius: 50% !important;
    }
    
    /* Image Optimizations */
    img {
        max-width: 100% !important;
        height: auto !important;
        border-radius: 8px !important;
    }
    
    .loan-image img,
    .smart-loans-image img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        border-radius: 12px !important;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 2rem 0 1rem !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        text-align: center !important;
    }
    
    .footer-logo img {
        width: 160px !important;
        margin-bottom: 1rem !important;
    }
    
    .footer-section {
        margin-bottom: 1.5rem !important;
    }
    
    .footer-section h4 {
        font-size: 1rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .footer-section ul li {
        margin-bottom: 0.5rem !important;
    }
    
    .footer-section ul li a {
        font-size: 0.85rem !important;
        padding: 0.3rem 0 !important;
        display: inline-block !important;
        min-height: 32px !important;
    }
    
    /* Apply Now Sticky Button Mobile */
    .apply-now-sticky {
        position: fixed !important;
        right: 10px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 999 !important;
    }
    
    .apply-btn {
        writing-mode: vertical-rl !important;
        text-orientation: mixed !important;
        padding: 0.8rem 0.4rem !important;
        min-height: 100px !important;
        font-size: 0.8rem !important;
        border-radius: 25px 0 0 25px !important;
        box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3) !important;
        border: none !important;
        background: #16a34a !important;
        color: white !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
    }
    
    .apply-btn:active {
        transform: scale(0.95) !important;
        background: #15803d !important;
    }
    
    .apply-btn i {
        display: block !important;
        margin: 0.5rem 0 !important;
        font-size: 1.1rem !important;
        transform: rotate(90deg) !important;
    }
    
    /* Mobile Banner Image Optimizations */
    .banner-icon {
        position: absolute !important;
        top: 0.8rem !important;
        right: 0.8rem !important;
        font-size: 1.5rem !important;
        opacity: 0.3 !important;
        z-index: 1 !important;
    }
    
    /* Mobile Image Optimizations */
    .hero img,
    .loan-image img,
    .smart-loans-image img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        border-radius: 12px !important;
        max-height: 250px !important;
    }
    
    /* Mobile Background Optimizations */
    .loan-banner::before,
    .tax-banner::before {
        width: 40px !important;
        height: 40px !important;
        transform: translate(10px, -10px) !important;
    }
    
    /* Mobile Video Container */
    .video-container {
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 1rem !important;
    }
    
    /* Mobile Animation Performance */
    .loan-banner,
    .tax-banner,
    .service-card {
        will-change: transform !important;
        backface-visibility: hidden !important;
        transform: translateZ(0) !important;
    }
    
    /* Prevent overscroll on mobile */
    body.mobile-device {
        overscroll-behavior: none !important;
    }
    
    /* Mobile-specific smooth scrolling */
    html.mobile-device {
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Mobile loading optimizations */
    img[loading="lazy"] {
        opacity: 0 !important;
        transition: opacity 0.3s ease !important;
    }
    
    img[loading="lazy"].loaded {
        opacity: 1 !important;
    }
    
    /* Mobile banner gradients optimization */
    .loan-banner,
    .tax-banner {
        background: linear-gradient(135deg, #104865 0%, #1a365d 100%) !important;
        background-attachment: initial !important;
    }
    
    /* Mobile focus states */
    .loan-banner:focus,
    .tax-banner:focus,
    .card-btn:focus {
        outline: 3px solid #3b82f6 !important;
        outline-offset: 2px !important;
    }
    
    /* Mobile swipe indicators */
    .hero-slides-container::after {
        content: '' !important;
        position: absolute !important;
        bottom: 3rem !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 60px !important;
        height: 4px !important;
        background: rgba(255, 255, 255, 0.3) !important;
        border-radius: 2px !important;
        pointer-events: none !important;
    }
    
    .testimonials-container::after {
        content: '← Swipe →' !important;
        position: absolute !important;
        bottom: 0.5rem !important;
        right: 1rem !important;
        font-size: 0.7rem !important;
        color: #6b7280 !important;
        pointer-events: none !important;
    }
}

/* Very Small Mobile Devices (320px - 480px) Enhanced */
@media (max-width: 480px) {
    /* Ultra-mobile optimizations */
    .hero {
        margin: 65px 5px 0 5px !important;
        padding: 0.8rem 0 !important;
    }
    
    .hero-text h1 {
        font-size: 1.4rem !important;
        line-height: 1.1 !important;
    }
    
    .offer-percent {
        font-size: 1.8rem !important;
    }
    
    .offer-text {
        font-size: 0.7rem !important;
        max-width: 100px !important;
    }
    
    .card-btn {
        font-size: 0.65rem !important;
        padding: 0.5rem 0.2rem !important;
        min-height: 40px !important;
    }
    
    .loan-banner,
    .tax-banner {
        padding: 1rem !important;
        min-height: 100px !important;
    }
    
    .banner-content h3 {
        font-size: 0.85rem !important;
    }
    
    .banner-content p {
        font-size: 0.75rem !important;
    }
    
    .main-video {
        height: 200px !important;
    }
    
    .smart-loans-video {
        height: 180px !important;
    }
    
    .service-card {
        padding: 1.2rem !important;
    }
    
    .testimonial-card {
        min-width: 260px !important;
        padding: 1.2rem !important;
    }
    
    .apply-btn {
        padding: 0.6rem 0.3rem !important;
        min-height: 80px !important;
        font-size: 0.7rem !important;
    }
}

/* Landscape Mobile Devices */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        margin: 55px 10px 0 10px !important;
        padding: 0.5rem 0 !important;
    }
    
    .hero-content {
        flex-direction: row !important;
        gap: 1rem !important;
        min-height: 200px !important;
    }
    
    .hero-text {
        flex: 1 !important;
        order: 1 !important;
    }
    
    .hero-card {
        flex: 1 !important;
        order: 2 !important;
        max-width: 300px !important;
    }
    
    .main-video {
        height: 200px !important;
    }
    
    .smart-loans-content {
        flex-direction: row !important;
        gap: 1rem !important;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

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

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .offer-percent {
        font-size: 2.5rem;
    }

    .hero-card {
        padding: 1.5rem;
    }

    .card-buttons,
    .card-buttons-row2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .card-btn {
        font-size: 0.65rem;
        padding: 0.4rem 0.5rem;
    }

    .hero-text-shifted {
        margin-left: 0;
    }

    .hero {
        margin: 0 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .testimonials h2 {
        font-size: 2rem;
    }

    .smart-loans-text h2 {
        font-size: 1.8rem;
    }
}


/* Loan Details Page Styles */
.loan-details {
    padding: 2rem 0;
    background: #fff;
}

.loan-type-tabs {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    justify-content: center;
}

.tab-btn {
    padding: 0.75rem 2rem;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    border-radius: 25px;
}

.tab-btn.active {
    background: #2563eb;
    color: white;
}

.loan-form-details {
    max-width: 1000px;
    margin: 0 auto;
}

.form-section {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form-section h2 {
    color: #1e40af;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

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

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: #16a34a;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 2rem;
}

.submit-btn:hover {
    background: #15803d;
}

.loan-details h1 {
    color: #1a365d;
    font-size: 24px;
    margin-bottom: 2rem;
    font-weight: 600;
}

.loan-sliders {
    margin-bottom: 2rem;
}

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

.slider-group label {
    display: block;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.range-slider {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.range-slider span {
    color: #666;
    font-size: 0.9rem;
}

.loan-info-cards {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.loan-info-cards h2 {
    color: #1a365d;
    font-size: 20px;
    margin-bottom: 1.5rem;
}

.bank-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.bank-logo {
    margin-bottom: 1rem;
}

.bank-logo img {
    height: 40px;
    width: auto;
}

.bank-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row span:first-child {
    color: #4a5568;
    font-weight: 500;
}

.detail-row span:last-child {
    color: #2d3748;
    font-weight: 600;
}

/* Loan Application Page Styles */
.loan-apply {
    padding: 4rem 0;
    background: #f8fafc;
}

.loan-content {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.loan-left {
    flex: 1;
}

.loan-left h1 {
    font-size: 2.5rem;
    color: #1e40af;
    margin-bottom: 2rem;
}

.loan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.loan-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #334155;
}

.loan-features i {
    color: #16a34a;
}

.loan-image {
    max-width: 100%;
    height: auto;
}

.loan-right {
    flex: 1;
}

.loan-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.loan-form h2 {
    color: #1e40af;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.loan-benefits {
    list-style: none;
    margin-bottom: 2rem;
}

.loan-benefits li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    color: #475569;
}

.loan-benefits i {
    color: #eab308;
}

.mobile-input {
    display: flex;
    gap: 1rem;
}

.verify-btn {
    background: #1e1e1e;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
}

.proceed-btn {
    width: 100%;
    background: #16a34a;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: visible;
    text-overflow: initial;
}

.proceed-btn:hover {
    background: #15803d;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-title-left {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    text-align: left;
    padding-left: 0;
}

/* Loans Section */
.loans-section {
    padding: 0.2rem 0;
    background: #f8fafc;
}

.loan-banners {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .loan-banners {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .loan-banners {
        grid-template-columns: 1fr;
    }
}

.loan-banner {
    background: linear-gradient(135deg, #104865 0%, #1a365d 100%);
    border-radius: 8px;
    padding: 1.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 140px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(16, 72, 101, 0.2);
}

.loan-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(20px, -20px);
}

.loan-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16, 72, 101, 0.3);
}

.loan-banner.personal-loan,
.loan-banner.business-loan,
.loan-banner.home-loan,
.loan-banner.micro-loan,
.loan-banner.credit-card,
.loan-banner.loan-against-property {
    background: linear-gradient(135deg, #104865 0%, #1a365d 100%);
}

.banner-content {
    flex: 1;
    z-index: 2;
    position: relative;
    width: 100%;
}

.banner-content h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.banner-content p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
}

.banner-btn {
    background: transparent;
    border: none;
    color: #fbbf24;
    padding: 0;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: underline;
}

.banner-btn:hover {
    color: #f59e0b;
    transform: translateX(3px);
}

.banner-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    opacity: 0.2;
    z-index: 1;
}

/* Desktop Banner Icons - Image styling */
.desktop-banner-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.loan-banner:hover .desktop-banner-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Tax Filing Services Section */
.tax-filing-section {
    padding: 1rem 0;
    background: white;
}

.tax-banners {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .tax-banners {
        grid-template-columns: 1fr;
    }
}

.tax-banner {
    background: linear-gradient(135deg, #104865 0%, #1a365d 100%);
    border-radius: 8px;
    padding: 1.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 140px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(16, 72, 101, 0.2);
}

.tax-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(20px, -20px);
}

.tax-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16, 72, 101, 0.3);
}

.tax-banner.income-tax,
.tax-banner.gst-filing {
    background: linear-gradient(135deg, #104865 0%, #1a365d 100%);
}

/* Hero Section with Sliding */
.hero-slides {
    position: relative;
    overflow: hidden;
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.hero-slides-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

.hero-slide {
    display: block;
    opacity: 1;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
}

.hero-cta {
    text-align: left;
    margin-top: 1.5rem;
    max-width: 240px;
}

.hero-cta-btn {
    background: #16a34a;
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.hero-cta-btn:hover {
    background: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.4);
}

.hero-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(37, 99, 235, 0.7);
}

.hero-dot.active {
    background: #2563eb;
    border-color: #2563eb;
    transform: scale(1.2);
}

.hero-dot:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

// Updated testimonial slider auto slide timing to 5 seconds
let slideIndex = 0;
    let autoSlideInterval;

    const testimonialsTrack = document.querySelector('.testimonials-track');
    const testimonialCards = document.querySelectorAll('.testimonial-card');
    const prevBtn = document.querySelector('.testimonial-nav-btn.prev');
    const nextBtn = document.querySelector('.testimonial-nav-btn.next');

    if (prevBtn && nextBtn) {
        prevBtn.addEventListener('click', () => {
            slideIndex = (slideIndex - 1 + testimonialCards.length) % testimonialCards.length;
            updateSlider();
            resetAutoSlide();
        });

        nextBtn.addEventListener('click', () => {
            slideIndex = (slideIndex + 1) % testimonialCards.length;
            updateSlider();
            resetAutoSlide();
        });
    }

    function updateSlider() {
        const cardWidth = testimonialCards[0].offsetWidth;
        const gap = parseInt(window.getComputedStyle(testimonialsTrack).gap);
        const totalWidth = cardWidth + gap;
        testimonialsTrack.style.transform = `translateX(-${slideIndex * totalWidth}px)`;
    }

    function nextSlide() {
        if (!testimonialsTrack || !testimonialCards.length) return;
        slideIndex = (slideIndex + 1) % testimonialCards.length;
        updateSlider();
    }

    function resetAutoSlide() {
        clearInterval(autoSlideInterval);
        startAutoSlide();
    }

    function startAutoSlide() {
        autoSlideInterval = setInterval(nextSlide, 5000);
    }

    if (testimonialsTrack && testimonialCards.length) {
        startAutoSlide();
    }

    // Initialize slider and auto-slide
    updateSlider();

/* Login Modal Enhanced Styles */
.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.login-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.logo-section h2 {
    font-size: 1.8rem !important;
    font-weight: 700;
    color: #1e40af;
    margin: 0;
}

.logo-section p {
    font-size: 1.1rem !important;
    color: #64748b;
    margin: 0;
    text-align: center;
}

.login-step {
    display: none;
}

.login-step.active {
    display: block;
}

.login-form-container h3 {
    font-size: 1.8rem !important;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2rem;
}

.login-form .form-group label {
    font-size: 1.2rem !important;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.75rem;
    display: block;
}

.login-form input {
    font-size: 1.1rem !important;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    width: 100%;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.login-form input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-submit {
    font-size: 1.2rem !important;
    font-weight: 600;
    padding: 1rem 2rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: #2563eb;
}

.btn-resend {
    font-size: 1rem !important;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 6px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 0.5rem;
}

.btn-resend:hover:not(:disabled) {
    background: #4b5563;
}

.btn-resend:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.otp-timer {
    font-size: 1rem;
    color: #059669;
    text-align: center;
    margin: 0.75rem 0;
    font-weight: 500;
}

.divider span {
    font-size: 1.1rem !important;
    font-weight: 500;
}

.google-login-btn {
    font-size: 1.2rem !important;
    font-weight: 600;
    padding: 1rem 2rem;
    gap: 0.75rem;
}

.google-login-btn svg {
    margin-right: 12px;
}

.phone-input-group {
    display: flex;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
}

.country-code {
    background: #f3f4f6;
    padding: 0.75rem 1rem;
    border-right: 1px solid #d1d5db;
    font-weight: 600;
    color: #374151;
}

.phone-input-group input {
    flex: 1;
    border: none;
    padding: 0.75rem 1rem;
    outline: none;
}

.captcha-container {
    margin-top: 0.5rem;
}

.captcha-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 10px;
}

#captchaText {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    color: #1f2937;
    letter-spacing: 3px;
    background: linear-gradient(45deg, #3b82f6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

#refreshCaptcha {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s;
}

#refreshCaptcha:hover {
    color: #374151;
}

#captchaInput {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.google-login-btn svg {
    width: 24px !important;
    height: 24px !important;
}

/* Homepage Slider Enhancements */
.slide2-heading {
    font-size: 1.1rem !important;
    line-height: 1.4 !important;
}

.slide2-image {
    width: 280px !important;
    height: 200px !important;
}

.slide2-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.slide4-tagline {
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
}

.slide4-image {
    width: 280px !important;
    height: 200px !important;
}

.slide4-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* Employment Type Font Size Improvements */
.employment-tabs .tab-btn,
.employment-tab {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
}

.employment-section h3,
.form-section h3 {
    font-size: 1.3rem !important;
}

#appointmentModal .modal-content {
    background: white;
    margin: 2% auto;
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
}

/* Account Details Modal Styles */
.account-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.account-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.account-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.account-modal-overlay.show .account-modal {
    transform: scale(1) translateY(0);
}

.account-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border-radius: 16px 16px 0 0;
}

.account-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.account-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.account-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.account-modal-body {
    padding: 2rem;
}

.account-info-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.user-avatar {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.user-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #3b82f6;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row label {
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.detail-row span {
    color: #1f2937;
    font-weight: 500;
}

.status-verified {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #059669 !important;
    font-weight: 600 !important;
}

.status-verified i {
    color: #059669;
}

.account-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.account-actions .btn-primary {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.account-actions .btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.error-modal .account-modal-header {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.error-content {
    text-align: center;
    padding: 1rem 0;
}

.error-content i {
    font-size: 3rem;
    color: #dc2626;
    margin-bottom: 1rem;
}

.error-content p {
    font-size: 1.1rem;
    color: #374151;
    margin: 0;
}

/* Collaborations Section Styles */
.collaborations-section {
    padding: 3rem 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.collaborations-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.collaborations-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.collaborations-section .subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 3rem;
}

.collaborations-slider {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.collaborations-track {
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    animation: slideLogos 60s linear infinite;
    width: fit-content;t;
}

.collaboration-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    min-width: 200px;
    height: 120px;
}

.collaboration-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #3b82f6;
}

.collaboration-logo img {
    max-width: 150px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.collaboration-logo:hover img {
    filter: grayscale(0%);
}

@keyframes slideLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.collaborations-track:hover {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .collaborations-section h2 {
        font-size: 2rem;
    }
    
    .collaborations-track {
        gap: 2rem;
    }
    
    .collaboration-logo {
        min-width: 150px;
        height: 100px;
        padding: 1rem;
    }
    
    .collaboration-logo img {
        max-width: 120px;
        max-height: 60px;
    }
    
    .account-modal {
        width: 95%;
    }
    
    .account-modal-body {
        padding: 1.5rem;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}
    max-height: 95vh;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    display: flex;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
}

#appointmentModal .modal-left {
    flex: 1;
    padding: 2rem;
    background: #f8fafc;
    overflow-y: auto;
    max-height: 95vh;
}