.elementor-2313 .elementor-element.elementor-element-a7169b3{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-2313 .elementor-element.elementor-element-ec5c44f{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}/* Start custom CSS for html, class: .elementor-element-383e26e */ /* =========================================================
   HALAL ACADEMY
   OUR TRAINING PROGRAMMES
   ========================================================= */

.ha-training-programmes {
    width: 100%;
    padding: 90px 5%;
    background: #f7f9fc;
    box-sizing: border-box;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.ha-training-heading {
    max-width: 850px;
    margin: 0 auto 55px;
    text-align: center;
}

.ha-training-heading span {
    display: block;
    margin-bottom: 12px;
    color: #D79F27;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ha-training-heading h2 {
    margin: 0 0 14px;
    color: #01224B;
    font-size: 38px;
    line-height: 1.2;
    font-weight: 700;
}

.ha-training-heading p {
    margin: 0;
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   GRID
   ========================================================= */

.ha-training-grid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}


/* =========================================================
   CARD
   ========================================================= */

.ha-training-card {
    position: relative;
    min-height: 430px;
    padding: 35px;
    background: #ffffff;
    border: 1px solid #e5e9ef;
    border-radius: 5px;
    box-sizing: border-box;
    overflow: hidden;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}


/* GOLD TOP ACCENT */

.ha-training-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: #D79F27;
    transition: width 0.4s ease;
}


/* NAVY SIDE ACCENT */

.ha-training-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 0;
    background: #01224B;
    transition: height 0.4s ease;
}


/* =========================================================
   CARD HOVER
   ========================================================= */

.ha-training-card:hover {
    transform: translateY(-8px);
    border-color: #D79F27;
    box-shadow: 0 18px 40px rgba(1, 34, 75, 0.12);
}

.ha-training-card:hover::before {
    width: 100%;
}

.ha-training-card:hover::after {
    height: 100%;
}


/* =========================================================
   CARD NUMBER — STANDARD CARDS
   ========================================================= */

.ha-card-number {
    display: block;
    margin-bottom: 25px;
    color: #D79F27;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
}


/* =========================================================
   CORPORATE CARD — NUMBER 08
   GOLD TEXT ONLY
   NO GOLD SQUARE OR CIRCLE
   ========================================================= */

.ha-training-programmes
.ha-training-card.ha-corporate-card
.ha-card-number {
    display: block !important;

    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;

    margin: 0 0 25px !important;
    padding: 0 !important;

    background: transparent !important;
    background-color: transparent !important;

    color: #D79F27 !important;

    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;

    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    line-height: 1.5 !important;

    transform: none !important;
}

/* REMOVE DECORATIVE SHAPES FROM THE NUMBER */

.ha-training-programmes
.ha-training-card.ha-corporate-card
.ha-card-number::before,

.ha-training-programmes
.ha-training-card.ha-corporate-card
.ha-card-number::after {
    content: none !important;
    display: none !important;
}


/* =========================================================
   CARD TITLE
   ========================================================= */

.ha-card-content h3 {
    margin: 0 0 16px;
    color: #01224B;
    font-size: 23px;
    line-height: 1.3;
    font-weight: 700;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.ha-card-description {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   PROGRAMME LIST
   ========================================================= */

.ha-training-programmes-list {
    margin-top: 22px;
    opacity: 0;
    transform: translateY(15px);
    max-height: 0;
    overflow: hidden;

    transition:
        opacity 0.35s ease,
        transform 0.35s ease,
        max-height 0.45s ease;
}


/* SHOW LIST ON HOVER */

.ha-training-card:hover .ha-training-programmes-list {
    opacity: 1;
    transform: translateY(0);
    max-height: 500px;
}


/* PROGRAMME TITLE */

.ha-programme-title {
    margin-bottom: 10px;
    color: #D79F27;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}


/* INDIVIDUAL PROGRAMME */

.ha-programme-item {
    position: relative;
    padding-left: 14px;
    margin-bottom: 7px;
    color: #333;
    font-size: 12.5px;
    line-height: 1.45;
}


/* GOLD DOT */

.ha-programme-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 5px;
    height: 5px;
    background: #D79F27;
    border-radius: 50%;
}


/* =========================================================
   EXPLORE LINK
   ========================================================= */

.ha-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;

    color: #01224B;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;

    opacity: 0;
    transform: translateY(10px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        color 0.3s ease;
}

.ha-card-link span {
    color: #D79F27;
    font-size: 18px;
    transition: transform 0.3s ease;
}


/* SHOW LINK */

.ha-training-card:hover .ha-card-link {
    opacity: 1;
    transform: translateY(0);
}


/* ARROW HOVER */

.ha-card-link:hover {
    color: #D79F27;
}

.ha-card-link:hover span {
    transform: translateX(5px);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .ha-training-programmes {
        padding: 70px 5%;
    }

    .ha-training-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .ha-training-heading h2 {
        font-size: 32px;
    }

    .ha-training-card {
        min-height: 400px;
        padding: 30px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .ha-training-programmes {
        padding: 60px 20px;
    }

    .ha-training-heading {
        margin-bottom: 35px;
    }

    .ha-training-heading h2 {
        font-size: 28px;
    }

    .ha-training-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ha-training-card {
        min-height: auto;
        padding: 30px 28px;
    }

    /* SHOW ALL PROGRAMMES ON MOBILE */

    .ha-training-programmes-list {
        opacity: 1;
        transform: none;
        max-height: 1000px;
    }

    .ha-card-link {
        opacity: 1;
        transform: none;
    }

    /* KEEP NUMBER 08 GOLD TEXT ONLY ON MOBILE */

    .ha-training-programmes
    .ha-training-card.ha-corporate-card
    .ha-card-number {
        color: #D79F27 !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
}


/* =========================================================
   ACCESSIBILITY — REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .ha-training-card,
    .ha-training-card::before,
    .ha-training-card::after,
    .ha-training-programmes-list,
    .ha-card-link,
    .ha-card-link span {
        transition: none !important;
        transform: none !important;
    }
}


/* =========================================================
   CARD 08 — CUSTOMISED CORPORATE TRAINING
   ========================================================= */

.ha-training-programmes
.ha-training-card.ha-corporate-card {
    position: relative;
    background: #01224B !important;
    border: 1px solid #D79F27;
    border-radius: 5px;
    color: #FFFFFF;
    overflow: hidden;
}

/* Gold top accent */
.ha-training-programmes
.ha-training-card.ha-corporate-card::before {
    background: #D79F27;
}

/* Gold number — text only */
.ha-training-programmes
.ha-training-card.ha-corporate-card .ha-card-number {
    display: block !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;

    margin: 0 0 25px !important;
    padding: 0 !important;

    color: #D79F27 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 2px;
}

/* Remove any circle around the number */
.ha-training-programmes
.ha-training-card.ha-corporate-card .ha-card-number::before,
.ha-training-programmes
.ha-training-card.ha-corporate-card .ha-card-number::after {
    content: none !important;
    display: none !important;
}

/* Corporate card heading */
.ha-training-programmes
.ha-training-card.ha-corporate-card .ha-card-content h3 {
    color: #FFFFFF !important;
}

/* Corporate card description */
.ha-training-programmes
.ha-training-card.ha-corporate-card .ha-card-description {
    color: #E1E8F0 !important;
}

/* Programme list and labels */
.ha-training-programmes
.ha-training-card.ha-corporate-card .ha-programme-title {
    color: #D79F27 !important;
}

.ha-training-programmes
.ha-training-card.ha-corporate-card .ha-programme-item {
    color: #FFFFFF !important;
}

.ha-training-programmes
.ha-training-card.ha-corporate-card .ha-programme-item::before {
    background: #D79F27;
}

/* =========================================================
   GOLD WHATSAPP BUTTON
   ========================================================= */

.ha-training-programmes
.ha-training-card.ha-corporate-card .ha-corporate-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;

    margin-top: 24px;
    padding: 13px 20px;

    background: #D79F27 !important;
    color: #01224B !important;

    border: 1px solid #D79F27;
    border-radius: 4px;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none !important;

    opacity: 1 !important;
    transform: none !important;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease;
}

/* Button hover */
.ha-training-programmes
.ha-training-card.ha-corporate-card .ha-corporate-cta:hover {
    background: #FFFFFF !important;
    color: #01224B !important;
    border-color: #FFFFFF;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}

/* Button arrow */
.ha-training-programmes
.ha-training-card.ha-corporate-card .ha-corporate-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #01224B !important;
    font-size: 18px;
    line-height: 1;

    transition: transform 0.3s ease;
}

.ha-training-programmes
.ha-training-card.ha-corporate-card .ha-corporate-cta:hover
.ha-corporate-cta-icon {
    transform: translateX(4px);
}

/* Keep the button visible on mobile */
@media (max-width: 767px) {
    .ha-training-programmes
    .ha-training-card.ha-corporate-card .ha-corporate-cta {
        opacity: 1 !important;
        transform: none !important;
        width: fit-content;
        max-width: 100%;
        box-sizing: border-box;
    }
}


/* Stretch the final corporate training card across 2 columns */
.ha-training-programmes .ha-training-card:last-child {
    grid-column: span 2;
    width: 100%;
    min-height: 0;
}

/* Keep the card content readable when stretched */
.ha-training-programmes .ha-training-card:last-child .ha-card-content {
    max-width: 750px;
}

/* Tablet: stretch across the full row */
@media (max-width: 991px) {
    .ha-training-programmes .ha-training-card:last-child {
        grid-column: 1 / -1;
    }
}

/* Mobile: return to a single column */
@media (max-width: 767px) {
    .ha-training-programmes .ha-training-card:last-child {
        grid-column: auto;
    }
}


/* =========================================================
   DIGITAL SOLUTIONS — REDIRECT BUTTONS
   Add this at the bottom of your existing CSS
   ========================================================= */

/* Button styling */
.ha-training-programmes .ha-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;

    color: #01224B;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;

    opacity: 0;
    transform: translateY(10px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        color 0.3s ease;
}

/* Gold arrow */
.ha-training-programmes .ha-card-link span {
    color: #D79F27;
    font-size: 18px;
    transition: transform 0.3s ease;
}

/* Reveal button when hovering over the card */
.ha-training-programmes
.ha-training-card:hover .ha-card-link,

/* Also reveal button when keyboard users focus within the card */
.ha-training-programmes
.ha-training-card:focus-within .ha-card-link {
    opacity: 1;
    transform: translateY(0);
}

/* Button hover colour */
.ha-training-programmes .ha-card-link:hover {
    color: #D79F27;
}

/* Move arrow to the right */
.ha-training-programmes .ha-card-link:hover span {
    transform: translateX(5px);
}

/* Keyboard accessibility */
.ha-training-programmes .ha-card-link:focus-visible {
    outline: 2px solid #D79F27;
    outline-offset: 4px;
}

/* Keep buttons visible on mobile */
@media (max-width: 767px) {
    .ha-training-programmes .ha-card-link {
        opacity: 1;
        transform: none;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .ha-training-programmes .ha-card-link,
    .ha-training-programmes .ha-card-link span {
        transition: none;
    }
} /* End custom CSS */