@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&family=Open+Sans:wght@400;500;600&display=swap");

:root {
	--dhpl-primary: #0F4C81;      /* Cobalt Steel Blue */
	--dhpl-secondary: #08233C;    /* Deep Navy */
	--dhpl-accent: #F28500;       /* Tangerine Orange Accent */
	--dhpl-text: #4a5568;         /* Dark gray body text */
	--dhpl-heading: #0F4C81;      /* Heading color matches primary */
	--dhpl-bg-light: #f8fafc;     /* Very light gray/blue section background */
	--dhpl-bg-white: #ffffff;
    --dhpl-border: #e2e8f0;
}

.dhpl-careers-wrapper {
	font-family: "Open Sans", sans-serif;
	color: var(--dhpl-text);
	line-height: 1.7;
	background: var(--dhpl-bg-white);
	margin: 0;
	padding: 0;
}

.dhpl-careers-wrapper * {
	box-sizing: border-box;
}

.dhpl-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

/* Typography */
.dhpl-careers-wrapper h1, 
.dhpl-careers-wrapper h2, 
.dhpl-careers-wrapper h3,
.dhpl-careers-wrapper h4 {
	font-family: "Montserrat", sans-serif;
	color: var(--dhpl-heading);
	margin-top: 0;
	font-weight: 700;
}

.dhpl-section-title {
	font-size: 2.2rem;
	margin-bottom: 2.5rem;
	text-align: center;
    position: relative;
    padding-bottom: 15px;
}
.dhpl-section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--dhpl-accent);
    border-radius: 2px;
}
.dhpl-section-title.text-left {
    text-align: left;
}
.dhpl-section-title.text-left::after {
    left: 0;
    transform: none;
}

.dhpl-careers-wrapper p {
	margin-bottom: 1.5rem;
	font-size: 1rem;
}
.text-center { text-align: center; }

/* Buttons & Links */
.dhpl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 35px;
	font-size: 0.95rem;
	font-family: "Montserrat", sans-serif;
	font-weight: 600;
	border-radius: 4px;
	border: none;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	text-decoration: none;
	text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dhpl-btn-primary {
	background: var(--dhpl-accent);
	color: #ffffff;
    box-shadow: 0 4px 12px rgba(242, 133, 0, 0.3);
}

.dhpl-btn-primary:hover {
	background: #d77600;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(242, 133, 0, 0.4);
}

/* Intro Section */
.dhpl-intro-section {
	padding: 40px 0 60px;
	background: var(--dhpl-bg-white);
}

.dhpl-intro-text {
	text-align: center;
	max-width: 900px;
	margin: 0 auto;
}

.dhpl-intro-text p {
	color: var(--dhpl-text);
	font-size: 1.15rem;
	line-height: 1.8;
}

/* Why Join DHPL - 5 Cards in 1 Row (Flexbox) */
.dhpl-why-join { 
	padding: 70px 0; 
	background: var(--dhpl-bg-light); 
}

.dhpl-features-flex-v5 {
	display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
	gap: 15px !important;
    width: 100% !important;
}

.dhpl-features-flex-v5 .dhpl-feature {
    flex: 1 1 0px !important;
    min-width: 0 !important;
	background: var(--dhpl-bg-white);
	padding: 30px 15px;
	border-radius: 12px;
	border: 1px solid var(--dhpl-border);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.dhpl-features-flex-v5 .dhpl-feature::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--dhpl-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.dhpl-features-flex-v5 .dhpl-feature:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 25px -5px rgba(15, 76, 129, 0.12), 0 10px 10px -5px rgba(15, 76, 129, 0.06);
    border-color: transparent;
}
.dhpl-features-flex-v5 .dhpl-feature:hover::before {
    transform: scaleX(1);
}

.dhpl-feature-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 15px;
    background: #eef5fb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dhpl-primary);
    transition: all 0.4s ease;
}
.dhpl-feature:hover .dhpl-feature-icon {
    background: var(--dhpl-accent);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.dhpl-feature h3 {
	font-size: 1.05rem;
	margin-bottom: 12px;
    line-height: 1.3;
}

.dhpl-feature p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* Investing Section */
.dhpl-investing-new { 
	background: var(--dhpl-bg-white) !important; 
	padding: 80px 0 !important; 
}

.dhpl-investing-new-grid {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 40px !important;
    width: 100% !important;
}

.dhpl-investing-new-content {
    flex: 1 1 50% !important;
    width: 50% !important;
}

.dhpl-investing-new-intro {
	line-height: 1.8;
    margin-bottom: 25px;
}

.dhpl-investing-new-list {
	list-style: none !important;
    list-style-type: none !important;
	padding: 0 !important;
    margin: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 12px !important;
}

.dhpl-investing-new-list li {
	list-style: none !important;
    list-style-type: none !important;
	display: flex !important;
    align-items: center !important;
    gap: 12px !important;
	font-size: 0.98rem !important;
	color: var(--dhpl-heading) !important;
	font-weight: 600 !important;
    padding: 12px 18px !important;
    background: var(--dhpl-bg-light) !important;
    border-radius: 8px !important;
    border-left: 4px solid var(--dhpl-accent) !important;
    transition: transform 0.3s ease !important;
    margin: 0 !important;
}

.dhpl-investing-new-list li::before,
.dhpl-investing-new-list li::after {
    content: none !important;
    display: none !important;
}

.dhpl-investing-new-list li:hover {
    transform: translateX(8px) !important;
}

.dhpl-list-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--dhpl-accent) !important;
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0 !important;
}
.dhpl-list-icon svg {
    width: 22px !important;
    height: 22px !important;
}

.dhpl-investing-new-image {
    flex: 1 1 50% !important;
    width: 50% !important;
}

.dhpl-investing-img {
    width: 100% !important;
    height: 380px !important;
    object-fit: cover !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 25px -5px rgba(15, 76, 129, 0.15) !important;
    display: block !important;
}

/* Meet Our Team - Real Photo Cards */
.dhpl-team-new { 
	background: var(--dhpl-bg-light) !important; 
	padding: 80px 0 !important; 
}

.dhpl-subtitle {
	font-size: 1.1rem;
	color: var(--dhpl-accent);
	font-weight: 600;
	margin-bottom: 15px;
	text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dhpl-team-new-intro {
	text-align: center;
	max-width: 750px;
	margin: 0 auto 40px;
}

.dhpl-team-new-photos-grid {
	display: flex !important;
    flex-direction: row !important;
    gap: 25px !important;
    width: 100% !important;
}

.dhpl-team-card {
    flex: 1 1 0px !important;
    height: 280px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    position: relative !important;
    box-shadow: 0 10px 15px -3px rgba(15, 76, 129, 0.12) !important;
}

.dhpl-team-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
    display: block !important;
}

.dhpl-team-card:hover img {
    transform: scale(1.06) !important;
}

.dhpl-team-card-label {
    position: absolute !important;
    bottom: 15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: rgba(15, 76, 129, 0.92) !important;
    color: #fff !important;
    padding: 8px 18px !important;
    border-radius: 20px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15) !important;
}

/* Open Roles */
.dhpl-vacancies-section { 
	background: var(--dhpl-bg-white); 
	padding: 80px 0; 
}

.dhpl-jobs-grid {
	max-width: 900px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.dhpl-job-card {
	background: var(--dhpl-bg-white);
	border: 1px solid var(--dhpl-border);
	padding: 35px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
	transition: all 0.3s ease;
}

.dhpl-job-card:hover {
	box-shadow: 0 20px 25px -5px rgba(15, 76, 129, 0.12), 0 10px 10px -5px rgba(15, 76, 129, 0.05);
    border-color: transparent;
    transform: translateY(-3px);
}

.dhpl-job-card-inner {
    flex: 1;
    padding-right: 30px;
}

.dhpl-job-card-inner h3 {
	font-size: 1.4rem;
	margin-bottom: 10px;
}

.dhpl-job-excerpt {
	color: var(--dhpl-text);
}
.dhpl-job-excerpt p:last-child {
    margin-bottom: 0;
}

.dhpl-job-action {
	flex-shrink: 0;
}

.dhpl-view-job-link {
	background: var(--dhpl-primary);
	border: none;
	color: #fff;
	font-family: "Montserrat", sans-serif;
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
	padding: 12px 24px;
    border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}
.dhpl-view-job-link:hover {
	background: var(--dhpl-accent);
}

.dhpl-no-jobs {
    text-align: center;
    padding: 60px 20px;
    background: var(--dhpl-bg-light);
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
}
.dhpl-no-jobs svg {
    color: #94a3b8;
    margin-bottom: 20px;
}

/* CTA Footer */
.dhpl-cta {
	background: linear-gradient(135deg, var(--dhpl-primary) 0%, var(--dhpl-secondary) 100%);
	color: #fff;
	padding: 80px 0;
}

.dhpl-cta h2 {
	color: #fff;
	margin-bottom: 15px;
    font-size: 2.5rem;
}

.dhpl-cta-subtitle {
	color: var(--dhpl-accent);
	font-style: italic;
	margin-bottom: 30px;
    font-size: 1.15rem;
    font-weight: 600;
}

.dhpl-cta-text {
	color: rgba(255,255,255,0.9);
	max-width: 650px;
	margin: 0 auto 40px;
    font-size: 1.05rem;
}

/* Modal */
.dhpl-modal {
	display: none;
	position: fixed;
	z-index: 99999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow-y: auto;
	background-color: rgba(8, 35, 60, 0.9); 
	opacity: 0;
	transition: opacity 0.3s ease;
    padding: 40px 20px;
}
.dhpl-modal.show {
	display: block;
	opacity: 1;
}
.dhpl-modal-content {
	background-color: var(--dhpl-bg-white);
	margin: 0 auto;
	padding: 50px;
	width: 100%;
	max-width: 750px;
	border-radius: 12px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
	position: relative;
	transform: translateY(-20px) scale(0.95);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.dhpl-modal.show .dhpl-modal-content {
	transform: translateY(0) scale(1);
}
.dhpl-modal-close {
	color: #94a3b8;
	position: absolute;
	top: 25px;
	right: 30px;
	font-size: 32px;
	cursor: pointer;
	line-height: 1;
    transition: color 0.3s ease;
}
.dhpl-modal-close:hover { color: var(--dhpl-accent); }

#dhpl-modal-title { margin-bottom: 20px; padding-right: 40px; }
#dhpl-modal-description { color: var(--dhpl-text); margin-bottom: 40px; }

.dhpl-form-container {
	padding-top: 40px;
	border-top: 1px solid var(--dhpl-border);
}
.dhpl-form-group { margin-bottom: 25px; }
.dhpl-form-group label {
	display: block;
	margin-bottom: 10px;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--dhpl-heading);
}
.dhpl-form-group input, .dhpl-form-group textarea {
	width: 100%;
	padding: 14px 18px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-family: inherit;
	font-size: 0.95rem;
	background: #f8fafc;
}
.dhpl-form-group input:focus, .dhpl-form-group textarea:focus {
	outline: none;
	border-color: var(--dhpl-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.15);
}
.dhpl-form-container .dhpl-btn-primary { 
    background: var(--dhpl-accent); 
    color: #fff; 
    width: 100%;
    padding: 16px;
}
.dhpl-form-container .dhpl-btn-primary:hover { background: #d77600; }

/* Responsive adjustments */
@media (max-width: 600px) {
    .dhpl-features-flex-v5 { flex-wrap: wrap !important; }
    .dhpl-features-flex-v5 .dhpl-feature { flex: 1 1 100% !important; }
    .dhpl-investing-new-grid { flex-direction: column !important; gap: 30px !important; }
    .dhpl-investing-new-content, .dhpl-investing-new-image { width: 100% !important; flex: 1 1 100% !important; }
    .dhpl-team-new-photos-grid { flex-direction: column !important; }
}

/* Hide empty open roles fallback */
.dhpl-no-jobs,
#open-roles:has(.dhpl-no-jobs),
.dhpl-vacancies-section:has(.dhpl-no-jobs) {
	display: none !important;
}
