/*
Theme Name: Kadence Child
Theme URI: https://www.kadencewp.com/
Description: Child theme for Kadence
Author: Your Name
Template: kadence
Version: 1.0.0
*/

/* Custom CSS goes here */

.my-custom-button {
    background: #000;
    color: #fff;
    padding: 10px 20px;
}


/* ==========================================================================
   Nexatalent Apply Form
   Shortcode: [nexatalent_apply]
   ========================================================================== */

#nexatalent-apply {
    border: 1px solid #cfcfcf;
    background: #fff;
    padding: 40px;
    font-family: Arial, sans-serif;
}

#nexatalent-apply h2 {
    font-size: 36px;
    color: #000;
    margin-top: 30px;
    margin-bottom: 30px;
}

#nexatalent-apply label {
    display: block;
    margin-bottom: 15px;
    color: #143d6b;
    font-size: 19px;
}

#nexatalent-apply input[type="text"],
#nexatalent-apply input[type="email"],
#nexatalent-apply select,
#nexatalent-apply textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #c7d2e2;
    background: #fff;
    box-sizing: border-box;
    margin-top: 5px;
}

#nexatalent-apply textarea {
    min-height: 120px;
}

#nexatalent-apply input[type="file"] {
    margin-top: 10px;
    margin-bottom: 15px;
}

#nexatalent-apply .consent-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #333;
    margin-bottom: 20px;
}

#nexatalent-apply .consent-label input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    flex-shrink: 0;
}

#nexatalent-apply button {
    background: #2c67b1;
    color: #fff;
    border: none;
    padding: 8px 18px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

#nexatalent-apply button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#nexatalent-status {
    margin-top: 10px;
    font-weight: bold;
}


/* ==========================================================================
   Latest Updates
   Shortcode: [latest_updates]
   ========================================================================== */

.ambit-updates-wrapper {
    --au-heading-font: 'Fjalla One', sans-serif;
    --au-body-font: 'Source Sans Pro', sans-serif;
    --au-heading-color: #1A202C;
    --au-title-color: #000000;
    --au-tag-color: #616161;
    --au-tag-border: #EEEEEE;
    --au-date-color: #7A7A7A;
    --au-card-border: #E6E6E6;
    --au-featured-bg: #F7F7F7;
    --au-readmore-color: #191B1D;
    --au-news: #1e6fd9;
    --au-event: #c0392b;
    max-width: 1242px;
    margin: 0 auto;
    font-family: var(--au-body-font);
    background: #FFFFFF;
    box-sizing: border-box;
}

.ambit-updates-wrapper * {
    box-sizing: border-box;
}

.ambit-updates-wrapper .updates-section-title {
    font-family: var(--au-heading-font);
    font-weight: 400;
    font-size: 36px;
    line-height: 36px;
    color: var(--au-heading-color);
    text-align: center;
    margin: 0 0 30px;
}

/* Featured (first item) */
.ambit-updates-wrapper .featured-update {
    display: grid !important;
    grid-template-columns: 48% 52% !important;
    width: 100% !important;
    gap: 22px;
    margin-bottom: 26px;
}

.ambit-updates-wrapper .featured-image {
    border-radius: 16px;
    overflow: hidden;
    background: #111;
    height: 100%;
    min-height: 430px;
}

.ambit-updates-wrapper .featured-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.ambit-updates-wrapper .featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

.ambit-updates-wrapper .featured-content {
    background: var(--au-featured-bg);
    border-radius: 6px;
    padding: 20px;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
}

.ambit-updates-wrapper .featured-content h2 {
    font-family: var(--au-heading-font);
    font-weight: 500;
    font-size: 22px;
    line-height: 1.3em;
    color: var(--au-title-color);
    margin: 8px 0 8px;
}

.ambit-updates-wrapper .featured-content h2 a {
    color: var(--au-title-color);
    text-decoration: none;
}

.ambit-updates-wrapper .featured-content h2 a:hover,
.ambit-updates-wrapper .update-card h3 a:hover {
    text-decoration: none;
    color: inherit;
}

.ambit-updates-wrapper .featured-content p {
    font-family: var(--au-body-font);
    font-size: 18px;
    line-height: 1.6;
    color: #333333;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Type tag (News / Event) — pill style */
.ambit-updates-wrapper .update-type {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    max-width: max-content;
    flex: 0 0 auto !important;
    white-space: nowrap;
    font-family: var(--au-body-font);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2em;
    color: var(--au-tag-color);
    background: transparent;
    border: 1px solid var(--au-tag-border);
    border-radius: 999px;
    padding: 4px 12px;
    margin: 0;
    box-sizing: border-box;
}

.ambit-updates-wrapper .update-type.is-event {
    color: var(--au-event);
    border-color: rgba(192, 57, 43, 0.25);
}

.ambit-updates-wrapper .update-date {
    display: inline-flex !important;
    align-items: center;
    width: auto !important;
    flex: 0 0 auto !important;
    white-space: nowrap;
    font-family: var(--au-body-font);
    font-size: 14px;
    color: var(--au-date-color);
    margin: 0 !important;
}

.ambit-updates-wrapper .read-more {
    display: inline-block;
    font-family: var(--au-body-font);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: var(--au-readmore-color);
    text-decoration: underline;
    line-height: 1.5em;
    margin-top: 6px;
}

.ambit-updates-wrapper .read-more:hover {
    opacity: .7;
}

/* Meta row: date left, tag pill right */
.ambit-updates-wrapper .update-meta {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}

/* Grid of remaining 3 items */
.ambit-updates-wrapper .updates-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    width: 100% !important;
    gap: 22px;
    align-items: stretch;
}

.ambit-updates-wrapper .update-card {
    width: 100% !important;
    max-width: 100%;
    border: 1px solid var(--au-card-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex !important;
    flex-direction: column !important;
}

.ambit-updates-wrapper .update-card>a {
    display: block;
    overflow: hidden;
}

.ambit-updates-wrapper .update-card img {
    width: 100%;
    height: 290px;
    object-fit: cover;
    display: block;
    border-radius: 16px 16px 0 0;
}

.ambit-updates-wrapper .update-card .update-meta {
    margin: 20px 20px 0;
    width: auto;
}

.ambit-updates-wrapper .update-card h3 {
    font-family: var(--au-heading-font);
    font-weight: 500;
    font-size: 22px;
    line-height: 1.3em;
    color: var(--au-title-color);
    margin: 12px 20px 14px;
    flex: 1;
}

.ambit-updates-wrapper .update-card h3 a {
    color: var(--au-title-color);
    text-decoration: none;
}

.ambit-updates-wrapper .update-card .read-more {
    margin: 0 20px 20px;
}

/* Tablet */
@media (max-width: 1024px) {
    .ambit-updates-wrapper {
        padding: 0 20px;
    }

    .ambit-updates-wrapper .featured-update {
        grid-template-columns: 1fr !important;
        gap: 18px;
    }

    .ambit-updates-wrapper .featured-image {
        height: 300px;
        min-height: 0;
    }

    .ambit-updates-wrapper .featured-content {
        padding: 18px;
        gap: 16px;
    }

    .ambit-updates-wrapper .featured-content h2 {
        font-size: 20px;
    }

    .ambit-updates-wrapper .updates-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 18px;
    }

    .ambit-updates-wrapper .update-card img {
        height: 220px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .ambit-updates-wrapper {
        padding: 0 16px;
    }

    .ambit-updates-wrapper .updates-section-title {
        font-size: 26px;
        line-height: 30px;
        margin-bottom: 20px;
    }

    .ambit-updates-wrapper .featured-update {
        gap: 14px;
        margin-bottom: 20px;
    }

    .ambit-updates-wrapper .featured-image {
        height: 320px;
        border-radius: 12px;
    }

    .ambit-updates-wrapper .featured-image img {
        border-radius: 12px;
    }

    .ambit-updates-wrapper .featured-content {
        padding: 16px;
        gap: 12px;
        border-radius: 6px;
    }

    .ambit-updates-wrapper .featured-content h2 {
        font-size: 19px;
        margin: 4px 0;
    }

    .ambit-updates-wrapper .featured-content p {
        font-size: 15px;
        line-height: 1.5;
    }

    .ambit-updates-wrapper .updates-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .ambit-updates-wrapper .update-card img {
        height: 200px;
        border-radius: 12px 12px 0 0;
    }

    .ambit-updates-wrapper .update-card .update-meta {
        margin: 16px 16px 0;
    }

    .ambit-updates-wrapper .update-card h3 {
        font-size: 18px;
        margin: 10px 16px 12px;
    }

    .ambit-updates-wrapper .update-card .read-more {
        margin: 0 16px 16px;
    }

    .ambit-updates-wrapper .update-type {
        font-size: 12px;
        padding: 3px 10px;
    }

    .ambit-updates-wrapper .update-date {
        font-size: 13px;
    }
}

/* Small phones */
@media (max-width: 380px) {
    .ambit-updates-wrapper .featured-image {
        height: 280px;
    }

    .ambit-updates-wrapper .update-card img {
        height: 170px;
    }

    .ambit-updates-wrapper .featured-content h2 {
        font-size: 17px;
    }
}


/* ==========================================================================
   Latest News Menu
   Shortcode: [latest_news_menu]
   ========================================================================== */

.ambit-news-menu-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    background: #FBEAEA !important;
    padding: 5px;
    box-sizing: border-box;
    border-radius: 16px;
    font-family: 'Source Sans Pro', sans-serif;
}

.ambit-news-menu-wrapper .news-menu-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 15px;
    background: #FFFFFF !important;
    border-radius: 20px;
    padding: 10px;
    box-sizing: border-box;
    text-decoration: none;
    min-width: 260px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #F0E4E4;
}

.ambit-news-menu-wrapper .news-menu-image {
    flex: 0 0 40%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ambit-news-menu-wrapper .news-menu-image a {
    width: 100%;
    height: 100%;
    display: block;
}

.ambit-news-menu-wrapper .news-menu-image img {
    width: 100% !important;
    height: auto !important;
    min-height: auto;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.ambit-news-menu-wrapper .news-menu-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    box-sizing: border-box;
}

.ambit-news-menu-wrapper .news-menu-title {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 14px;
    line-height: 1.4em;
    color: #040404;
    margin: 0;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ambit-news-menu-wrapper .news-menu-readmore {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.5em;
    color: #AF0202;
    text-decoration: underline;
    background: transparent;
    display: inline-block;
}

.ambit-news-menu-wrapper .news-menu-readmore:hover {
    opacity: .75;
}

@media (max-width:768px) {
    .ambit-news-menu-wrapper {
        flex-direction: column !important;
        gap: 16px;
        padding: 16px;
    }

    .ambit-news-menu-wrapper .news-menu-item {
        flex: 1 1 100%;
    }
}

@media (max-width:600px) {
    .ambit-news-menu-wrapper .news-menu-item {
        flex-direction: column !important;
    }

    .ambit-news-menu-wrapper .news-menu-image,
    .ambit-news-menu-wrapper .news-menu-content {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .ambit-news-menu-wrapper .news-menu-image img {
        height: 140px !important;
    }

    .ambit-news-menu-wrapper .news-menu-title {
        font-size: 15px;
    }
}


/* ==========================================================================
   Technologies Gallery
   Shortcode: [technologies_gallery]
   ========================================================================== */

.technologies-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 30px;
    padding: 20px 0;
    align-items: center;
}

.technologies-gallery .tech-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.technologies-gallery .tech-item img {
    max-height: 80px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 480px) {
    .technologies-gallery {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .technologies-gallery .tech-item img {
        max-height: 80px;
        max-width: 120px;
    }
}