@media screen and (max-width: 930px)
{
    .home-image
    {
        width: 100%;
        max-width: 550px;
        float: inherit;
        margin: auto;
    }
}

@media screen and (max-width: 880px)
{
    .hsb-box
    {
        width: 45%;
        margin: 5px;
    }
}

@media screen and (max-width: 750px)
{
    .head-flex
    {
        flex-wrap: wrap;
        width: 100%;
        max-width: 337px;
        margin: auto;
    }
    .sub-link-flex
    {
        text-align: center;
    }


    .orange-title
    {
        font-size: 24px;
    }

    .gray-text
    {
        font-size: 12px;
    }


}

@media screen and (max-width: 870px)
{
    .footer-flex
    {
        flex-wrap: wrap;
        gap: 20px;
    }

    .foot-box
    {
        width: calc(50% - 20px);
        margin-right: 0;
    }
}

@media screen and (max-width: 670px)
{

    .desktop-login
    {
        display: none;
    }

    .mobile-login
    {
        display: inherit;
    }


    .login-box
    {
        flex-wrap: wrap;
        justify-content: center;
    }
    .capt-button
    {
        /*width: 45%;*/
        margin-bottom: 20px;
    }

    .orange-link
    {
        width: 100%;
        text-align: center;
    }

    .white-flex
    {
        flex-wrap: wrap;
    }

    .w-box-1, .w-box-2
    {
        width: 100%;
    }

    .foot-box
    {
        width: 100%;
        margin-right: 0;
    }


    .learn-flex
    {
        flex-wrap: wrap;
        justify-content: center;
    }

    .learn-card
    {
        max-width: 45%;
    }

    .blue-flex
    {
        flex-wrap: wrap;
    }

    .blue-box
    {
        width: 45%;
    }

    .slide-caption
    {
        height: inherit !important;
    }

    .hsb-box
    {
        width: 100%;
        margin: 5px;
    }

    .community-grid
    {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }

    .community-heading
    {
        font-size: 28px;
    }
}

@media screen and (max-width: 500px)
{
    .community-grid
    {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .community-item.tall
    {
        grid-row: span 1;
    }

    .community-heading
    {
        font-size: 24px;
    }

    .stat-number
    {
        font-size: 36px;
    }

    .learn-flex
    {
        flex-direction: column;
        align-items: center;
    }

    .learn-card
    {
        max-width: 100%;
    }

    .blue-flex, .footer-flex
    {
        justify-content: center;
    }
    .blue-box
    {
        width: 100%;
    }
}

@media screen and (max-width: 400px)
{
    .orange-link
    {
        padding-top: 10px !important;
    }

    .hsb-title
    {
        font-size: 18px;
    }

    .larger-width
    {
        width: inherit;
    }

    .w-flex
    {
        flex-wrap: wrap;
    }

    .w-icon, .w-text
    {
        width: 100%;
    }

    .search-area
    {
        margin: auto;
        min-width: 250px;
        max-width: 250px;
    }

    .this-font
    {
        display: block;
        padding-top: 20px;
    }
}


/* ========================================
   HSB DESIGN SYSTEM - MOBILE RESPONSIVE STYLES
   ======================================== */

/* Tablet & Below - 980px */
@media screen and (max-width: 980px) {
    /* Hero sections - reduce padding */
    .hsb-hero {
        padding: var(--hsb-space-xl) var(--hsb-space-md);
    }

    .hsb-hero h1 {
        font-size: 2rem;
    }

    .hsb-hero p {
        font-size: 1rem;
    }

    /* Service grid - 2 columns */
    .hsb-service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--hsb-space-md);
    }

    /* Account cards - 2 columns */
    .hsb-account-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--hsb-space-md);
    }

    /* Quick links - 2 columns */
    .hsb-quick-links {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--hsb-space-md);
    }

    /* Value props - 2 columns */
    .hsb-value-props {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--hsb-space-lg);
    }

    /* Stats display - 2 columns */
    .hsb-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--hsb-space-lg);
    }
}

/* Tablet - 768px */
@media screen and (max-width: 768px) {
    /* Typography adjustments */
    .hsb-hero h1 {
        font-size: 1.75rem;
    }

    .hsb-section-title {
        font-size: 1.75rem;
    }

    /* Two column layouts - stack */
    .hsb-two-col,
    .hsb-two-col-60-40,
    .hsb-two-col-70-30 {
        grid-template-columns: 1fr;
        gap: var(--hsb-space-lg);
    }

    /* CTA banner - reduce padding */
    .hsb-cta-banner {
        padding: var(--hsb-space-xl) var(--hsb-space-md);
    }

    .hsb-cta-banner h2 {
        font-size: 1.75rem;
    }

    /* Buttons - wider on tablet */
    .hsb-btn {
        padding: 0.875rem 2rem;
    }
}

/* Mobile - 600px */
@media screen and (max-width: 600px) {
    /* Hero sections - mobile padding */
    .hsb-hero {
        padding: var(--hsb-space-lg) var(--hsb-space-sm);
        border-radius: var(--hsb-radius-md);
    }

    .hsb-hero h1 {
        font-size: 1.5rem;
    }

    .hsb-hero p {
        font-size: 0.9375rem;
    }

    /* Section titles */
    .hsb-section-title {
        font-size: 1.5rem;
        margin-bottom: var(--hsb-space-md);
    }

    /* Service grid - single column */
    .hsb-service-grid {
        grid-template-columns: 1fr;
        gap: var(--hsb-space-sm);
    }

    /* Account cards - single column */
    .hsb-account-cards {
        grid-template-columns: 1fr;
        gap: var(--hsb-space-sm);
    }

    /* Quick links - single column */
    .hsb-quick-links {
        grid-template-columns: 1fr;
        gap: var(--hsb-space-sm);
    }

    /* Value props - single column */
    .hsb-value-props {
        grid-template-columns: 1fr;
        gap: var(--hsb-space-md);
    }

    /* Stats display - single column */
    .hsb-stats {
        grid-template-columns: 1fr;
        gap: var(--hsb-space-md);
    }

    /* Cards - adjust padding */
    .hsb-card {
        padding: var(--hsb-space-md);
    }

    .hsb-service-item,
    .hsb-account-card {
        padding: var(--hsb-space-md);
    }

    /* Feature highlights */
    .hsb-feature-highlight {
        padding: var(--hsb-space-md);
    }

    /* Info boxes */
    .hsb-info-box,
    .hsb-info-box-blue {
        padding: var(--hsb-space-md);
        border-radius: var(--hsb-radius-md);
    }

    /* CTA banner */
    .hsb-cta-banner {
        padding: var(--hsb-space-lg) var(--hsb-space-sm);
        text-align: center;
    }

    .hsb-cta-banner h2 {
        font-size: 1.5rem;
        margin-bottom: var(--hsb-space-sm);
    }

    .hsb-cta-content {
        flex-direction: column;
        gap: var(--hsb-space-md);
        align-items: center;
    }

    /* Buttons - full width on mobile */
    .hsb-btn,
    .hsb-btn-primary,
    .hsb-btn-gold,
    .hsb-btn-outline {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }

    /* Form elements - 16px to prevent iOS zoom */
    .hsb-input,
    .hsb-textarea,
    .hsb-select {
        font-size: 16px;
        padding: 0.875rem;
    }

    /* Comparison table - make scrollable */
    .hsb-comparison-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .hsb-comparison-table {
        min-width: 600px;
    }

    /* Icon lists */
    .hsb-icon-list li {
        padding-left: var(--hsb-space-md);
        font-size: 0.9375rem;
    }

    .hsb-icon-list li::before {
        font-size: 0.875rem;
    }
}

/* Small Mobile - 400px */
@media screen and (max-width: 400px) {
    /* Hero - extra compact */
    .hsb-hero h1 {
        font-size: 1.25rem;
    }

    .hsb-hero p {
        font-size: 0.875rem;
    }

    /* Section titles */
    .hsb-section-title {
        font-size: 1.25rem;
    }

    /* Cards - minimal padding */
    .hsb-card,
    .hsb-service-item,
    .hsb-account-card,
    .hsb-feature-highlight {
        padding: var(--hsb-space-sm);
    }

    /* CTA banner */
    .hsb-cta-banner h2 {
        font-size: 1.25rem;
    }

    .hsb-cta-banner p {
        font-size: 0.875rem;
    }

    /* Stats - smaller numbers */
    .hsb-stat-number {
        font-size: 2rem;
    }

    .hsb-stat-label {
        font-size: 0.875rem;
    }

    /* Utility spacing - reduce on tiny screens */
    .hsb-mt-xxl {
        margin-top: var(--hsb-space-xl);
    }

    .hsb-mb-xxl {
        margin-bottom: var(--hsb-space-xl);
    }

    /* Form labels */
    .hsb-label {
        font-size: 0.875rem;
    }

    /* Account card titles */
    .hsb-account-card h3 {
        font-size: 1.125rem;
    }

    /* Service item titles */
    .hsb-service-item h3 {
        font-size: 1rem;
    }
}

/* ========================================
   ADDITIONAL MOBILE RESPONSIVE STYLES
   For new HSB components added in redesign
   ======================================== */

/* Tablet & Below - 980px */
@media screen and (max-width: 980px) {
    /* Value props - 2 columns */
    .hsb-value-props {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--hsb-space-md);
    }

    /* Quick links - 3 columns */
    .hsb-quick-links {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--hsb-space-sm);
    }
}

/* Tablet - 768px */
@media screen and (max-width: 768px) {
    /* CTA content - stack vertically */
    .hsb-cta-content {
        flex-direction: column;
        text-align: center;
        gap: var(--hsb-space-md);
    }

    /* Quick links - 2 columns */
    .hsb-quick-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile - 600px */
@media screen and (max-width: 600px) {
    /* Value props - single column */
    .hsb-value-props {
        grid-template-columns: 1fr;
        gap: var(--hsb-space-sm);
    }

    /* Quick links - single column */
    .hsb-quick-links {
        grid-template-columns: 1fr;
        gap: var(--hsb-space-sm);
        padding: var(--hsb-space-md);
    }

    /* Feature highlights - reduce padding */
    .hsb-feature-highlight {
        padding: var(--hsb-space-md);
    }

    /* Service items - adjust */
    .hsb-service-item {
        padding: var(--hsb-space-md);
    }

    .hsb-service-item .hsb-service-icon {
        font-size: 2.5rem;
    }

    /* Value prop icons - smaller */
    .hsb-value-prop .hsb-value-icon {
        font-size: 2.5rem;
    }

    /* Link arrows - adjust gap */
    .hsb-link-arrow {
        font-size: 0.9375rem;
    }
}

/* Small Mobile - 400px */
@media screen and (max-width: 400px) {
    /* Service item icons - even smaller */
    .hsb-service-item .hsb-service-icon {
        font-size: 2rem;
    }

    /* Value prop - minimal padding */
    .hsb-value-prop {
        padding: var(--hsb-space-sm);
    }

    .hsb-value-prop .hsb-value-icon {
        font-size: 2rem;
    }

    .hsb-value-prop h3 {
        font-size: 1rem;
    }

    /* Feature highlights - compact */
    .hsb-feature-highlight {
        padding: var(--hsb-space-sm);
    }

    .hsb-feature-highlight h3 {
        font-size: 1.125rem;
    }

    /* Subsection titles */
    .hsb-subsection-title {
        font-size: 1.125rem;
    }

    /* Quick link labels - smaller text */
    .hsb-quick-link-label {
        font-size: 0.8125rem;
    }
}

/* ========================================
   ATM LOCATION GRID - MOBILE RESPONSIVE
   Added: 2025-10-15
   ======================================== */

/* Tablet - 768px: 2 columns */
@media screen and (max-width: 768px) {
    .hsb-location-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .hsb-location-card {
        padding: 24px 16px;
        min-height: 200px;
    }

    .hsb-location-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 16px;
    }

    .hsb-location-icon i {
        font-size: 28px;
    }

    .hsb-location-card h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .hsb-location-card p {
        font-size: 13px;
    }
}

/* Mobile - 600px: single column */
@media screen and (max-width: 600px) {
    .hsb-location-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hsb-location-card {
        padding: 20px 16px;
        min-height: 180px;
    }

    .hsb-location-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 14px;
    }

    .hsb-location-icon i {
        font-size: 26px;
    }

    .hsb-location-card h3 {
        font-size: 15px;
    }

    .hsb-location-card p {
        font-size: 13px;
        line-height: 1.5;
    }
}

/* Small Mobile - 400px: compact layout */
@media screen and (max-width: 400px) {
    .hsb-location-card {
        padding: 16px 12px;
        min-height: 160px;
    }

    .hsb-location-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }

    .hsb-location-icon i {
        font-size: 24px;
    }

    .hsb-location-card h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .hsb-location-card p {
        font-size: 12px;
    }
}

/* ========================================
   HOME PAGE VIDEO - MOBILE RESPONSIVE
   Added: 2025-10-15
   ======================================== */

/* Tablet - 980px: Stack video below text */
@media screen and (max-width: 980px) {
    .home-content-flex {
        flex-direction: column;
        gap: 20px;
    }

    .home-video-column {
        flex: 1;
        max-width: 100%;
        width: 100%;
    }
}

/* Mobile - 600px: Full width video */
@media screen and (max-width: 600px) {
    .home-content-flex {
        gap: 16px;
    }

    .home-video-column video {
        border-radius: 8px;
        -webkit-border-radius: 8px;
    }
}