/* Tablet Optimization for Steel Products Page */

.container{
    margin: 0 auto;
    padding: 0;
}

/* Base tablet styles (1024px - 1199px) */
@media screen and (min-width: 1024px) and (max-width: 1199px) {
    .reinforcement-bar {
        padding: 24px 32px 32px 32px;
        width: 100%;
        max-width: 100%;
    }

    .reinforcement-bar__header {
        margin-bottom: 32px;
    }

    .reinforcement-bar__title {
        font-size: 2.25rem;
        letter-spacing: -0.5px;
    }

    .reinforcement-bar__divider {
        width: 240px;
        margin: 0 0 1.25rem 0;
    }

    .reinforcement-bar__subtitle {
        font-size: 0.95rem;
    }

    .reinforcement-bar__desc {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-top: 1rem;
        color: var(--color-secondary);
        margin-bottom: 0;
    }

    .reinforcement-bar__list {
        gap: 24px;
    }

    .reinforcement-bar__card {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 32px;
        padding: 24px;
        min-height: 300px;
        box-shadow: none;
    }

    .reinforcement-bar__image {
        width: 360px;
        height: 260px;
        flex-shrink: 0;
        box-shadow: none;
    }

    .reinforcement-bar__content {
        flex: 1;
        padding: 0;
    }

    .reinforcement-bar__card-title {
        font-size: 1.375rem;
        margin-bottom: 20px;
    }

    .reinforcement-bar__desc {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 24px;
    }

    .reinforcement-bar__btn {
        font-size: 0.95rem;
        padding: 12px 24px;
        box-shadow: none;
    }
}

/* Small tablet styles (768px - 1023px) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .reinforcement-bar {
        padding: 20px 24px 28px 24px;
        width: 100%;
        max-width: 100%;
    }

    .reinforcement-bar__header {
        margin-bottom: 28px;
    }

    .reinforcement-bar__title {
        font-size: 2rem;
        letter-spacing: -0.5px;
    }

    .reinforcement-bar__divider {
        width: 200px;
        margin: 0 0 1.25rem 0;
    }

    .reinforcement-bar__subtitle {
        font-size: 0.9rem;
    }

    .reinforcement-bar__desc {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-top: 1rem;
        color: var(--color-secondary);
        margin-bottom: 0;
    }

    .reinforcement-bar__list {
        gap: 20px;
    }

    .reinforcement-bar__card {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 24px;
        padding: 20px;
        min-height: 280px;
        box-shadow: none;
    }

    .reinforcement-bar__image {
        width: 300px;
        height: 220px;
        flex-shrink: 0;
        box-shadow: none;
    }

    .reinforcement-bar__content {
        flex: 1;
        padding: 0;
        height: 220px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .reinforcement-bar__card-title {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }

    .reinforcement-bar__desc {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 16px;
        max-height: 100px;
        overflow-y: auto;
    }

    .reinforcement-bar__btn {
        font-size: 0.9rem;
        padding: 10px 20px;
        margin-top: auto;
        box-shadow: none;
    }

    .expertise {
        background-color: #282828 !important;
        padding: clamp(3rem, 5vw, 4.5rem) 0 !important;
        color: #fff !important;
      }
      
      .expertise__container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: clamp(0.8rem, 1.5vw, 1.2rem) !important;
        flex-wrap: nowrap !important;
        padding-left: 30px !important;
        padding-right: 30px !important;
      }
      
      .expertise__content {
        flex: 1 1 62% !important;
        min-width: 0 !important;
        order: 1 !important;
        text-align: left !important;
      }
      
      .expertise__title {
        font-size: clamp(1.2rem, 2.4vw, 1.7rem) !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        color: #fff !important;
        margin: 0 !important;
        text-align: left !important;
      }
      
      .expertise__image {
        flex: 0 0 33% !important;
        max-width: 33% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        order: 2 !important;
      }
      
      .expertise__svg {
        width: 100% !important;
        max-width: clamp(280px, 25vw, 400px) !important;
        height: auto !important;
        object-fit: contain !important;
      }
}

/* Landscape tablet styles (1024px - 1199px) */
@media screen and (min-width: 1024px) and (max-width: 1199px) and (orientation: landscape) {
    .reinforcement-bar {
        padding: 20px 32px 28px 32px;
    }

    .reinforcement-bar__title {
        font-size: 2.5rem;
    }

    .reinforcement-bar__divider {
        width: 280px;
    }

    .reinforcement-bar__card {
        min-height: 280px;
        box-shadow: none;
    }

    .reinforcement-bar__image {
        height: 240px;
        box-shadow: none;
    }
}

/* Portrait tablet styles (768px - 1023px) */
@media screen and (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
    .reinforcement-bar {
        padding: 16px 24px 24px 24px;
    }

    .reinforcement-bar__title {
        font-size: 2.125rem;
    }

    .reinforcement-bar__divider {
        width: 220px;
    }

    .reinforcement-bar__card {
        min-height: 260px;
        box-shadow: none;
    }

    .reinforcement-bar__image {
        width: 280px;
        height: 200px;
        box-shadow: none;
    }

    .reinforcement-bar__content {
        height: 200px;
    }
}

/* Tablet hover effects */
@media (hover: hover) and (min-width: 768px) and (max-width: 1199px) {
    .reinforcement-bar__card {
        transition: transform 0.3s ease;
    }

    .reinforcement-bar__card:hover {
        transform: translateY(-2px);
    }

    .reinforcement-bar__btn:hover {
        background: var(--color-secondary);
    }

    .reinforcement-bar__btn:hover .reinforcement-bar__btn-arrow {
        transform: translateX(4px);
    }
}
