/* ==========================================================================
   Greenwoods Careers — front-end styles
   Now uses hardcoded values for all colour/font/sizing properties,
   no reliance on CSS custom properties.
   ========================================================================== */

.gwc-careers {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px 64px;
    font-family: 'DM Sans', sans-serif;
}

.gwc-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ── Filter bar ── */
.gwc-filterbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e8f0e3;
    border-radius: 999px;
    padding: 10px 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 10px;
}

.gwc-locpills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gwc-locpill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1.5px solid #e8f0e3;
    background: #ffffff;
    color: #1a1a1a;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.gwc-locpill:hover {
    border-color: #c8eab5;
}
.gwc-locpill.is-active {
    background: #046937;
    border-color: #046937;
    color: #ffffff;
}
.gwc-locpill .gwc-icon { opacity: 0.85; }
.gwc-locpill.is-active .gwc-icon { filter: brightness(0) invert(1); }

.gwc-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #edf7e7;
    color: #046937;
    font-size: 12px;
    font-weight: 700;
}
.gwc-locpill.is-active .gwc-count {
    background: rgba(255,255,255,0.22);
    color: #ffffff;
}

.gwc-cityfilter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #F5F8F6;
    border: 1.5px solid #e8f0e3;
    border-radius: 999px;
    max-height: 45px;
}
.gwc-cityfilter label {
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: #1a1a1a;
}
.gwc-city-select {
    border: 1px solid #e8f0e3;
    border-radius: 22px;
    background: #ffffff;
    padding: 6px 10px;
    margin-right: -9px;
    font-size: 13.5px;
    color: #1a1a1a;
    font-family: 'DM Sans', sans-serif;
    margin-left: auto;
    flex-grow: 1;
}
.gwc-city-select:focus { outline: 2px solid #c8eab5; }

.gwc-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    background: #f7faf5;
    border-radius: 999px;
    border: 1.5px solid #e8f0e3;
    padding: 8px 14px;
    flex: 1 1 220px;
    max-width: 320px;
    height: 45px;
}
.gwc-search-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #1a1a1a;
    width: 100%;
    font-family: 'DM Sans', sans-serif;
}
.gwc-search-input::placeholder { color: #718096; }
.gwc-search-clear {
    border: none;
    background: none;
    color: #718096;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
    display: none;
}
.gwc-search.has-value .gwc-search-clear { display: block; }

/* ── No results ── */
.gwc-noresults {
    text-align: center;
    color: #718096;
    font-size: 15px;
    padding: 40px 0;
}
.gwc-empty {
    color: #718096;
    font-size: 15px;
}

/* ── Location notice ── */
.gwc-notice {
    text-align: center;
    background: #edf7e7a3;
    margin-bottom: 28px;
    border: solid 0.1px rgba(97,178,72,0.32);
    border-radius: 40px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 17px;
    padding-right: 20px;
}

.gwc-notice a {
    color: #046937;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
}


.gwc-notice a:hover { color: #61b247; }

/* ── Category ── */
.gwc-category { margin-bottom: 36px; }

.gwc-cat-header {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    background: none;
    border: none;
    padding: 0 0 14px;
    cursor: pointer;
    text-align: left;
}
.gwc-cat-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    color: #1a1a1a;
    white-space: nowrap;
}
.gwc-cat-title .gwc-accent { color: #61B247; }
.gwc-cat-line {
    flex: 1 1 auto;
    height: 1px;
    background: #e8f0e3;
}
.gwc-category.is-collapsed .gwc-cat-content { display: none; }

/* ── Cards grid ── */
.gwc-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gwc-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e8f0e3;
    border-radius: 18px;
    padding: 20px 22px 22px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.18s, transform 0.18s;
}
.gwc-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}
.gwc-card[hidden] { display: none; }

.gwc-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e8f0e3;
}

.gwc-card > .gwc-meta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e8f0e3;
}

.gwc-meta-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* .gwc-card > .gwc-meta-row > .gwc-meta-item:last-child {
    margin-left: auto;
}
.gwc-card > .gwc-meta-row > .gwc-meta-item:only-child {
    margin-left: 0;
} */

.gwc-meta-label {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #61B247;
}
.gwc-meta-value {
    font-size: 11px;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
}

.gwc-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #046937;
    margin: 0 0 8px;
}

.gwc-card-desc {
    font-size: 12.5px;
    line-height: 1.7;
    color: #4a5568;
    margin: 0 0 18px;
    flex: 1 1 auto;
}
.gwc-read-more {
    display: inline;
    background: none;
    border: none;
    padding: 0;
    color: #046937;
    font-weight: 700;
    font-size: 12.5px;
    cursor: pointer;
    text-decoration: none;
}
.gwc-read-more:hover { text-decoration: underline; }

.gwc-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.gwc-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    color: #4a5568;
    font-weight: 500;
}

.gwc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    font-family: 'Poppins', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.gwc-btn-apply {
    background: #61B247;
    color: #ffffff;
}
.gwc-btn-apply:hover {
    background: #046937;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
}
.gwc-btn-apply .gwc-icon { filter: brightness(0) invert(1); }

.gwc-btn-send {
    background: #61B247;
    color: #ffffff;
}
.gwc-btn-send:hover { background: #046937; }
.gwc-btn-send .gwc-icon { filter: brightness(0) invert(1); }

/* ── Modal ── */
.gwc-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9500;
    background: rgba(4, 62, 30, 0.55);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.gwc-modal-overlay[hidden] { display: none; }

.gwc-modal {
    position: relative;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10), 0 3px 10px rgba(0,0,0,0.06);
    padding: 36px 34px 28px;
    animation: gwcModalIn 0.2s ease;
}
@keyframes gwcModalIn {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}

.gwc-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #61B247;
    color: #ffffff;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.gwc-modal-close:hover { background: #046937; }

.gwc-modal-title {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #046937;
    margin: 4px 0 0;
}

.gwc-rule {
    border: none;
    border-top: 1px solid #e8f0e3;
    margin: 18px 0;
}

.gwc-modal-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* ── Unified typography for the raw HTML description content
       (comes from DB inserts as bare h1-h4 / p / ul / strong, no classes) ── */
.gwc-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #4a5568;
}
.gwc-desc h1, .gwc-desc h2, .gwc-desc h3, .gwc-desc h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 22px 0 8px;
}
.gwc-desc h1:first-child, .gwc-desc h2:first-child, .gwc-desc h3:first-child, .gwc-desc h4:first-child {
    margin-top: 0;
}
.gwc-desc p {
    margin: 0 0 14px;
}
.gwc-desc ul, .gwc-desc ol {
    padding-left: 20px;
    margin: 0 0 14px;
}
.gwc-desc ul { list-style: disc; }
.gwc-desc ol { list-style: decimal; }
.gwc-desc li {
    margin-bottom: 6px;
}
.gwc-desc strong, .gwc-desc b { color: #1a1a1a; font-weight: 700; }
.gwc-desc a { color: #046937; text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 767px) {
    .gwc-careers { padding: 20px 16px 48px; }
    .gwc-filterbar {
        border-radius: 25px;
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
    }
    .gwc-notice{ border-radius: 15px; }
    .gwc-search { max-width: none; margin-left: 0; max-height: 45px;}
    .gwc-cards { grid-template-columns: 1fr; }
    .gwc-card-foot { flex-wrap: wrap; }
    .gwc-modal { padding: 28px 20px 22px; max-height: 90vh; }
}

/* ── Responsive ── */
@media (max-width: 913px) {
    .gwc-careers { padding: 20px 16px 48px; }
    .gwc-filterbar {
        border-radius: 25px;
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
    }
    .gwc-notice{ border-radius: 15px; }
    .gwc-search { max-width: none; margin-left: 0; max-height: 45px;}
    .gwc-cards { grid-template-columns: 1fr; }
    .gwc-card-foot { flex-wrap: wrap; }
    .gwc-modal { padding: 28px 20px 22px; max-height: 90vh; }
}



/* fixes */
/* Force-hide when the hidden attribute is present (browser default, but safe) */
.gwc-cityfilter[hidden] {
    display: none !important;
}