/* =========================================================
   COMPANY DETAIL PAGE
   ========================================================= */

.hydra-company-page-title {
    padding: 120px 0 90px;
}

.hydra-company-detail {
    padding: 50px 0 70px;
}

.hydra-company-section-info {
    padding: 50px 0 40px;
}

.hydra-company-section-catalogs {
    padding: 0 0 80px;
}


/* =========================================================
   COMPANY HEADER CARD
   ========================================================= */

.hydra-company-header {
    width: 100%;
    margin-bottom: 28px;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.hydra-company-header-inner {
    display: flex;
    align-items: center;
    gap: 25px;
    width: 100%;
    box-sizing: border-box;
}

.hydra-company-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    flex: 0 0 120px;
    padding: 14px;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    background: #fafafa;
    box-sizing: border-box;
}

.hydra-company-logo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hydra-company-info {
    flex: 1 1 auto;
    min-width: 0;
}

.hydra-company-name {
    margin: 0 0 8px;
    color: #171a1d;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.5;
}

.hydra-company-subtitle {
    margin: 0;
    color: #888888;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.8;
}

/* Back button row */
.hydra-company-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
    margin: 0 0 20px 0;
    padding: 0;
    box-sizing: border-box;
}

.hydra-company-back,
.hydra-company-website {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.hydra-company-back {
    border: 1px solid #f9a305;
    background: linear-gradient(135deg, #f9a305, #e58d00);
    color: #ffffff;
    cursor: pointer;
}

.hydra-company-back:hover {
    background: #ffffff;
    border-color: #f9a305;
    color: #f9a305;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 7px 20px rgba(249, 163, 5, 0.25);
}

.hydra-company-back i {
    color: inherit;
    font-size: 12px;
    line-height: 1;
    pointer-events: none;
}

.hydra-company-back-text {
    display: inline;
    color: inherit;
}

.hydra-company-website {
    border: 1px solid #f9a305;
    background: linear-gradient(135deg, #f9a305, #e58d00);
    color: #ffffff;
}

.hydra-company-website:hover {
    background: #ffffff;
    border-color: #f9a305;
    color: #f9a305;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 7px 20px rgba(249, 163, 5, 0.25);
}


/* =========================================================
   CATALOGS GRID
   ========================================================= */

.hydra-company-catalogs {
    width: 100%;
}

.hydra-company-catalogs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
    box-sizing: border-box;
}


/* =========================================================
   CATALOG CARD
   ========================================================= */

.hydra-catalog-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.hydra-catalog-card:hover {
    transform: translateY(-3px);
    border-color: #f9a305;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.hydra-catalog-card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, #fef7e8, #fdeed1);
    border-bottom: 1px solid #f5ead2;
    box-sizing: border-box;
}

.hydra-catalog-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: rgba(220, 53, 69, 0.10);
    color: #d62839;
    font-size: 32px;
}

.hydra-catalog-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px 12px;
    box-sizing: border-box;
}

.hydra-catalog-title {
    margin: 0;
    color: #171a1d;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
}

.hydra-catalog-type {
    display: inline-block;
    align-self: flex-start;
    padding: 3px 9px;
    border-radius: 5px;
    background: #f1f2f3;
    color: #666666;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.hydra-catalog-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px 18px;
    box-sizing: border-box;
}

.hydra-catalog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1 1 0;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border-radius: 7px;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.hydra-catalog-btn i {
    font-size: 12px;
    line-height: 1;
}

.hydra-catalog-btn-preview {
    border: 1px solid #dddddd;
    background: #ffffff;
    color: #555555;
}

.hydra-catalog-btn-preview:hover {
    background: #171a1d;
    border-color: #171a1d;
    color: #f9a305;
    text-decoration: none;
    transform: translateY(-1px);
}

.hydra-catalog-btn-download {
    border: 1px solid #f9a305;
    background: linear-gradient(135deg, #f9a305, #e58d00);
    color: #ffffff;
}

.hydra-catalog-btn-download:hover {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 7px 20px rgba(249, 163, 5, 0.25);
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.hydra-company-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 260px;
    padding: 40px 20px;
    background: #ffffff;
    border: 1px dashed #dddddd;
    border-radius: 12px;
    text-align: center;
    box-sizing: border-box;
}

.hydra-company-empty i {
    color: #cccccc;
    font-size: 48px;
}

.hydra-company-empty h4 {
    margin: 0;
    color: #555555;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.hydra-company-empty p {
    margin: 0;
    color: #999999;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 13px;
}


/* =========================================================
   CATALOGS PAGINATION
   ========================================================= */

.hydra-catalogs-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin-top: 28px;
    padding: 0;
    box-sizing: border-box;
}

.hydra-catalogs-pagination[hidden] {
    display: none !important;
}

.hydra-pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    background: #ffffff;
    color: #555555;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-sizing: border-box;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.hydra-pagination-btn i {
    font-size: 11px;
    line-height: 1;
    pointer-events: none;
}

.hydra-pagination-btn:hover:not(:disabled):not(.active) {
    background: #f8f9fa;
    border-color: #cccccc;
    color: #222222;
    transform: translateY(-1px);
}

.hydra-pagination-btn.active {
    background: linear-gradient(135deg, #f9a305, #e58d00);
    border-color: #f9a305;
    color: #ffffff;
    box-shadow: 0 7px 18px rgba(249, 163, 5, 0.25);
}

.hydra-pagination-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.hydra-pagination-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 40px;
    color: #999999;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    user-select: none;
}


/* =========================================================
   RESPONSIVE — 991
   ========================================================= */

@media (max-width: 991px) {

    .hydra-company-catalogs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

}

/* =========================================================
   RESPONSIVE — 768
   ========================================================= */

@media (max-width: 768px) {

    .hydra-company-page-title {
        padding: 100px 0 70px;
    }

    .hydra-company-detail {
        padding: 40px 0 70px;
    }

    .hydra-company-section-info {
        padding: 40px 0 30px;
    }

    .hydra-company-section-catalogs {
        padding: 0 0 60px;
    }

    .hydra-company-header {
        padding: 22px;
        margin-bottom: 24px;
    }

    .hydra-company-header-inner {
        flex-wrap: wrap;
        gap: 18px;
    }

    .hydra-company-logo {
        width: 90px;
        height: 90px;
        flex: 0 0 90px;
        padding: 10px;
    }

    .hydra-company-name {
        font-size: 22px;
    }

    .hydra-company-actions {
        margin-bottom: 16px;
    }

    .hydra-company-back {
        width: 44px;
        height: 44px;
        min-width: 44px;
        padding: 0;
        gap: 0;
        border-radius: 50%;
    }

    .hydra-company-back-text {
        display: none;
    }

    .hydra-company-back i {
        font-size: 16px;
    }

    .hydra-company-catalogs-grid {
        grid-template-columns: 1fr;
    }

    .hydra-catalog-card-media {
        height: 120px;
    }

}

/* =========================================================
   RESPONSIVE — 576
   ========================================================= */

@media (max-width: 576px) {

    .hydra-catalogs-pagination {
        gap: 6px;
        margin-top: 22px;
    }

    .hydra-pagination-btn {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 12px;
        border-radius: 7px;
    }

    .hydra-pagination-dots {
        min-width: 20px;
        height: 36px;
        font-size: 12px;
    }

}

/* =========================================================
   RESPONSIVE — 480
   ========================================================= */

@media (max-width: 480px) {

    .hydra-company-page-title {
        padding: 90px 0 60px;
    }

    .hydra-company-section-info {
        padding: 30px 0 24px;
    }

    .hydra-company-section-catalogs {
        padding: 0 0 50px;
    }

    .hydra-company-header {
        padding: 18px;
        margin-bottom: 20px;
        border-radius: 10px;
    }

    .hydra-company-logo {
        width: 76px;
        height: 76px;
        flex: 0 0 76px;
    }

    .hydra-company-name {
        font-size: 18px;
    }

    .hydra-company-subtitle {
        font-size: 11px;
    }

    .hydra-company-actions {
        margin-bottom: 14px;
    }

    .hydra-company-back {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 50%;
    }

    .hydra-company-back i {
        font-size: 15px;
    }

    .hydra-catalog-card-media {
        height: 100px;
    }

    .hydra-catalog-icon {
        width: 54px;
        height: 54px;
        font-size: 26px;
    }

    .hydra-catalog-title {
        font-size: 13px;
    }

    .hydra-catalog-btn {
        height: 38px;
        font-size: 11px;
    }

}


/* =========================================================
   ENGLISH PAGES — LTR DIRECTION FIXES
   ========================================================= */

/* Breadcrumb */
html[dir="ltr"] .breadcrumb {
    direction: ltr !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 15px !important;
    margin: 0 !important;
    text-align: left !important;
}
html[dir="ltr"] .breadcrumb-item {
    display: inline-flex !important;
    align-items: center !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
    direction: ltr !important;
    order: initial !important;
    text-align: left !important;
}
html[dir="ltr"] .breadcrumb-item a,
html[dir="ltr"] .breadcrumb-item.active {
    direction: ltr !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 !important;
}
html[dir="ltr"] .breadcrumb-item + .breadcrumb-item::before {
    content: "/" !important;
    display: inline-block !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    margin: 0 !important;
    color: inherit !important;
    float: none !important;
    order: initial !important;
}

/* Force the whole header card + catalogs block to flow LTR */
html[dir="ltr"] .hydra-company-detail,
html[dir="ltr"] .hydra-company-header,
html[dir="ltr"] .hydra-company-catalogs {
    direction: ltr !important;
}

/* Header inner row: logo LEFT, info RIGHT */
html[dir="ltr"] .hydra-company-header-inner {
    direction: ltr !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
}

/* Info block — left-aligned */
html[dir="ltr"] .hydra-company-info {
    direction: ltr !important;
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}
html[dir="ltr"] .hydra-company-name,
html[dir="ltr"] .hydra-company-subtitle {
    text-align: left !important;
}

/* Back button pinned to the LEFT of the card */
html[dir="ltr"] .hydra-company-actions {
    direction: ltr !important;
    justify-content: flex-start !important;
}
html[dir="ltr"] .hydra-company-back {
    flex-direction: row !important;
}
html[dir="ltr"] .hydra-company-back i {
    transform: none !important;
}

/* Website CTA sits under the info on the LEFT */
html[dir="ltr"] .hydra-website-cta {
    margin-left: 0 !important;
    margin-right: auto !important;
    direction: ltr !important;
}

/* Catalog cards — left-aligned */
html[dir="ltr"] .hydra-catalog-title,
html[dir="ltr"] .hydra-catalog-type {
    direction: ltr !important;
    text-align: left !important;
}

/* Empty state */
html[dir="ltr"] .hydra-company-empty {
    direction: ltr !important;
}

/* Pagination arrows */
html[dir="ltr"] .hydra-pagination-btn i.fa-chevron-left,
html[dir="ltr"] .hydra-pagination-btn i.fa-chevron-right {
    transform: none !important;
}


/* =========================================================
   ENGLISH — "Available Catalogs" underline
   Reuse the theme's real pseudo-elements on h3.title:
     ::before = GRAY (30×3px, left: 0)
     ::after  = ORANGE (30×3px, left: 30px)
   ========================================================= */

html[dir="ltr"] .hydra-company-catalogs .section-title h3.title {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    direction: ltr !important;
    padding-left: 0 !important;
    padding-bottom: 15px !important;
    margin-bottom: 20px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

html[dir="ltr"] .hydra-company-catalogs .section-title h3.title::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    top: auto !important;
    width: 30px !important;
    height: 3px !important;
    background: #cfcfcf !important;
    transform: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

html[dir="ltr"] .hydra-company-catalogs .section-title h3.title::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    left: 30px !important;
    right: auto !important;
    bottom: 0 !important;
    top: auto !important;
    width: 30px !important;
    height: 3px !important;
    background: #f9a305 !important;
    transform: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
}


/* =========================================================
   DESKTOP — Back button: text only, no arrow icon
   (769px and up)
   ========================================================= */

@media (min-width: 769px) {
    html[dir="ltr"] .hydra-company-back i,
    html[dir="rtl"] .hydra-company-back i {
        display: none !important;
    }

    html[dir="ltr"] .hydra-company-back,
    html[dir="rtl"] .hydra-company-back {
        gap: 0 !important;
    }
}