/*
Theme Name: Phelan
Theme URI: https://phelangreen.com/
Description: Custom Divi 5 child theme for Phelan Green Group. Built on top of the Divi parent theme.
Author: Phelan Green Group
Author URI: https://phelangreen.com/
Template: Divi
Version: 1.0.0
Text Domain: phelan
*/

/* =========================================================
   Phelan Green — Child Theme Custom Styles
   Add site-specific overrides below. Divi 5's built-in
   Theme Builder / Design System should be used for most
   styling; use this file only for CSS that can't be set
   there (edge-case overrides, third-party plugin styling,
   print styles, etc.)
   ========================================================= */


h1 {
	font-size: 70px; 
	line-height: 85px; 
}
.section-hero h1 {
	color: #fff; 
}
.section-hero h1 {
    font-size: clamp(32px, 5vw, 70px) !important;
    line-height: 1.214; 
}
.section-hero h1 {
    font-size: clamp(32px, 4.42vw, 70px);
    line-height: 1.214;
}
h1 span {
	color: #4FD8D4;
}
.h2-small h2 {
	font-size: 45px !important; 
	line-height: 55px !important; 
}
.h2-small h2 {
    font-size: clamp(24px, 3.5vw, 45px) !important;
    line-height: 1.222 !important; /* preserves your 55/45 ratio */
}
.h2-large h2 {
	font-size: 80px !important; 
	line-height: 100px !important; 
}
.h2-large h2 {
    font-size: clamp(32px, 4vw, 80px) !important;
    line-height: 1.25 !important; /* preserves your 100/80 ratio */
}
h2 span {
	color: rgba(255,255,255,0.56);
}
h2 {
	font-size: 60px !important; 
	line-height: 75px !important; 
}
h2 {
    font-size: clamp(28px, 3.2vw, 60px) !important;
    line-height: 1.25 !important; /* preserves your 75/60 ratio */
}
h3 {
	font-size: 45px; 
	line-height: 55px;
}
h3 {
    font-size: clamp(24px, 3.5vw, 45px);
    line-height: 1.222; /* preserves your 55/45 ratio */
}
/* Header 
 * ----------------- */
/* Force header visible immediately on every page except Home */
body:not(.home) #main-header {
    opacity: 1 !important;
    transform: none !important;
}
.eyebrow-label {
	margin-bottom: 48px !important; 
}
.eyebrow-label .et_pb_text_inner {
    display: flex;
    align-items: center;
    gap: 8px;
	
}
.eyebrow-label .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #6ACECB;
    flex-shrink: 0;
	margin-right: 8px;
}
#et-boc .area-outer-wrap[data-da-color=light] .da-close:focus, #et-boc .area-outer-wrap[data-da-color=light] .da-close:hover, #et-boc .area-outer-wrap[data-da-color=light] .da-close {
    background: #6ACECB !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    color: #fff !important;
    border-radius: 100%;
	opacity: 1!important; 
}
/* Elements */

.stat-card .percent-value, .stat-card .percent-sign {
	font-size: 50px !important; /* SHOULD BE 70PX */
}
.stat-card-text {
	min-height: 340px; 
}
.stat-row-tight .et_pb_column {
	padding: 24px 20px !important; 
	border-radius: 25px !important;
}
.stat-row-tight {
    gap: 10px;
}
.row-tight {
    gap: 25px;
}
.library-item {
    padding: 0 !important;
    background: transparent !important;
}
.library-item .et_pb_row {
	width: 100% !important; 
	max-width: 100% !important; 
}
.frosted-card .et_pb_column {
    background-color: rgba(255, 255, 255, 0.08); /* subtle white tint, adjust to taste */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* Safari requires the prefix */
	padding: 30px 25px;
}
.frosted-card h3 {
	font-size: 35px;
}

.statement {
	
}
/* Header */

#main-header .nav li ul a {
    color: #ffffff !important;
}
.mobile_menu_bar:before, .mobile_menu_bar:after, #top-menu li.current-menu-ancestor>a, #top-menu li.current-menu-item>a {
	color: #135551!important; 
}
.hero-bottom-align .et_pb_column {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding-bottom: 85px;
}

img {
    pointer-events: none;
}
/* 
#top-menu li.current-menu-item > a,
#top-menu li.current_page_item > a {
	box-sizing: border-box;
	border-top: 3px solid #6ACECB;
	line-height: 92px;
	margin-top: -40px;
}*/
#top-menu .menu-item-has-children>a:first-child:after, #et-secondary-nav .menu-item-has-children>a:first-child:after {
	display: none; 
}
#top-menu .menu-item-has-children>a:first-child, #et-secondary-nav .menu-item-has-children>a:first-child {
    padding-right: 0;
}
#top-menu a {

    font-weight: 400;
}
#top-menu li {
    padding-right: 25px;
    padding-left: 25px;
}
/* Animation 
 * --------------- */

/* Image hover expand */



.hover-expand-row {
    display: flex;
    gap: 15px;
    width: 100%;
    height: 560px;
}

.hover-expand-item {
    flex: 1;
    background-size: cover;
    background-position: center;
    border-radius: 25px;
    transition: flex 0.5s ease;
    cursor: pointer;
}

.hover-expand-item.first-larger {
    flex: 1.6; /* larger resting size for the first image */
}

.hover-expand-item:hover {
    flex: 2.2;
}

.hover-expand-row:hover .hover-expand-item:not(:hover) {
    flex: 0.8;
}
/* End */

/* Projects */

.phelan-card {
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    aspect-ratio: 3 / 4;
    cursor: pointer;
}

.phelan-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 0.6s ease;
}

.phelan-card:hover .phelan-card-bg {
    transform: scale(1.08);
}

.phelan-card-logo {
    position: absolute;
    top: 55px;
    left: 50px;
    z-index: 3;
    height: 52px;
    width: auto;
}

/* --- Frosted glass panel, bottom portion only --- */
.phelan-card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 60%; /* how much of the top stays clear/unblurred — adjust to match design */
    z-index: 2;
    border-radius: 0 0 25px 25px; /* rounded top corners on the panel itself */
    background-color: rgba(20, 30, 40, 0.35); /* dark tint */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px); /* Safari */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 50px;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.phelan-card:hover .phelan-card-overlay {
    opacity: 1;
    transform: translateY(0);
	border-radius: 0 0 25px 25px;
}

.phelan-card-tagline {
    color: #fff;
    font-size: 20px;
    line-height: 1.4;
    margin: 0;
    max-width: 90%;
	margin-bottom: 20px;
}

.phelan-card-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(106, 206, 203, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    text-decoration: none;
    flex-shrink: 0;
}
.phelan-card img {
	min-width: 120px !important; 
}
/* End projects */

/* Info Grid */
.info-grid .et_pb_column_1_3:nth-child(3n+1),
.info-grid .et_pb_column_1_3:nth-child(3n+2) {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}
.info-grid-row-2 {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.infobox {
	padding-left: 40px;
	padding-right: 40px; 
	padding-top: 40px; 
	padding-bottom: 40px; 
}
.infobox h4 {
	font-size: 22px; 
	
}
/* End info grid */


/* Ticker */

.ticker-wrap {
    display: flex;
    overflow: hidden;
    padding: 24px 0;
    white-space: nowrap;
}

.ticker {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    animation: ticker-scroll 25s linear infinite;
}

.ticker-item {
    color: rgba(255, 255, 255, 0.6);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 300; /* Light */
    font-size: 45px;
    line-height: 0.95;
    letter-spacing: 0px;
    margin: 0 16px;
}

.ticker-item strong {
    color: #fff;
    font-weight: 600; /* keep the bolder weight for the number portion, per your existing pattern */
}

.ticker-dot {
    color: rgba(255, 255, 255, 0.6);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 45px;
    margin: 0 16px;
}
@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}
/* End ticker */


/* Footer */

/* ===== Nav menu column ===== */
.menu-phelan-footer-container ul {
    list-style: none !important; 
    margin: 0;
	margin-bottom: 100px;
    padding: 0;
}
.wp-image-1355 {
	max-width: 30px !important;
}
.menu-phelan-footer-container ul li {
    margin-bottom: 10px;
}
#footer-widgets .footer-widget li:before {
	display: none !important; 
}
.menu-phelan-footer-container ul li a {
    font-weight: 600 !important;
    font-size: 22px !important; 
    text-decoration: none;
}
.et_pb_gutters3.et_pb_footer_columns4 .footer-widget .fwidget {
        margin-bottom: 20px;
    }
/* Terms of Use / Privacy Policy -- smaller, lighter weight */
.menu-phelan-footer-container ul li.menu-small a {
    font-weight: 400 !important;
    font-size: 15px !important; 
    color: #546462; /* Slate */
}

.menu-phelan-footer-container ul li.menu-small {
    margin-bottom: 6px;
    margin-top: 4px;
}

/* Logo sits below the nav menu, inside the same column */
.footer-widget .widget_media_image {
    margin-top: 40px;
}

.footer-widget .widget_media_image img {
    max-width: 180px;
    height: auto;
}
footer #block-12 {
    position: absolute;
    bottom: 100px;
}

/* ===== Headings (Head Office / Get in touch / Follow us) ===== */
.footer-widget .wp-block-heading {
    font-size: 17px !important; 
    font-weight: 700 !important; 
    margin: 0 0 12px !important; 
}

.footer-widget .wp-block-heading + .wp-block-heading {
    margin-top: 28px;
}

/* space "Get in touch" heading away from the address block above it */
#block-8.wp-block-heading,
div#block-8 {
    margin-top: 28px;
}
.footer-widget .wp-block-heading {
    font-size: 17px !important;
    font-weight: 700 !important;
    margin: 0 0 12px !important;
    letter-spacing: 1px !important;
    line-height: 22px !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.footer-widget .wp-block-paragraph {
    font-size: 17px;
    line-height: 28px;
    color: #546462;
	opacity: 0.8;
	font-weight: 400;
    margin: 0;
}
#footer-widgets {
    padding-top: 140px;
}
/* ===== Social icons ===== */
.wp-block-social-links {
    list-style: none;
    display: flex;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.wp-block-social-links li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #6ACECB; /* Teal/Accent */
    border-radius: 4px;
    color: #fff;
}

/* ===== Footer bottom bar ===== */
#footer-bottom {
    margin-top: 0px;
    padding: 24px 0;
    position: relative;
}

#footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.et_pb_gutters3.et_pb_footer_columns3 .footer-widget .fwidget {
	margin-bottom: 10px; 
}
#footer-info {
    font-size: 13px;
    color: #546462;
}

#footer-bottom #et_pb_scroll_top, .et-social-icons + #footer-info {
    font-size: 15px;
    font-weight: 400;
    color: #135551;
}
#et_pb_scroll_top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(106, 206, 203, 0.5); /* Teal, semi-transparent */
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.et_pb_widget {
	float: none!important;
}


/* Phelan Map */

.phelan-map-widget {
    width: 100%;
}

.map-tabs {
    display: block;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
	text-align: center; 
}

.map-tab {
    padding: 10px 20px;
    border-radius: 30px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 14px;
    cursor: pointer;
    background: transparent;
    border: 1px solid #A8C8E8;
    color: #6B9BD1;
    transition: all 0.25s ease;
}
.map-tabs button {
	margin-left: 8px;
		margin-right: 8px; 
}
.map-tab.active {
    background-color: #2C6E68; /* dark teal, matches "All Sites" active state */
    border-color: #2C6E68;
    color: #fff;
}

.map-tab:not(.active):hover {
    background-color: rgba(168, 200, 232, 0.15);
}

.map-container {
    position: relative;
    width: 100%;
}

.map-bg {
    width: 100%;
    height: auto;
    display: block;
}

.map-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.map-dot:hover {
    transform: translate(-50%, -50%) scale(1.4);
}

.dot-offices { background-color: #7DCCCA; }
.dot-efuels  { background-color: #5FA4DF; }
.dot-energy  { background-color: #EDBB0B; }

/* Hidden state for filtered-out dots */
.map-dot.is-hidden {
    opacity: 0;
    pointer-events: none;
}
/* Map - NEW */
.map-tab {
    padding: 10px 20px;
    border-radius: 30px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 14px;
    cursor: pointer;
    background: transparent;
    transition: all 0.25s ease;
    border: 1px solid; /* color set per-tab below */
}

/* Active state (All Sites, by default) -- solid dark teal fill */
.map-tab.active {
    background-color: #2C6E68;
    border-color: #2C6E68;
    color: #fff;
}

/* All Sites -- inactive fallback (rarely seen, but keeps it consistent if ever deselected) */
.map-tab[data-filter="all"] {
    border-color: #2C6E68;
    color: #fff;
}

/* Phelan International Offices -- teal, matches dot-offices */
.map-tab[data-filter="offices"] {
    border-color: #7DCCCA;
    color: #7DCCCA;
}
.map-tab[data-filter="offices"].active {
    background-color: #7DCCCA;
    border-color: #7DCCCA;
    color: #fff;
}

/* Phelan Energy Sites -- gold, matches dot-energy */
.map-tab[data-filter="energy"] {
    border-color: #EDBB0B;
    color: #EDBB0B;
}
.map-tab[data-filter="energy"].active {
    background-color: #EDBB0B;
    border-color: #EDBB0B;
    color: #fff;
}

/* Phelan eFuel Sites -- blue, matches dot-efuels */
.map-tab[data-filter="efuels"] {
    border-color: #5FA4DF;
    color: #5FA4DF;
}
.map-tab[data-filter="efuels"].active {
    background-color: #5FA4DF;
    border-color: #5FA4DF;
    color: #fff;
}

.map-tab:not(.active):hover {
    opacity: 0.7;
}
/* Accordions */

.phelan-accordion .et_pb_toggle {
    background: none !important;
    border: none;
    border-bottom: 1px solid #BCD9D8;
    padding: 25px 0 !important;
    margin-bottom: 0 !important;
}
.phelan-accordion .et_pb_toggle_title {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 22px;
    font-weight: 400;
    color: rgba(19, 85, 81, 0.7) !important;
    padding: 0 !important;
}
.phelan-accordion .et_pb_toggle_open .et_pb_toggle_title {
    color: #135551 !important;
}

/* Body copy */
.phelan-accordion .et_pb_toggle_content {
    color: #546462;
    font-size: 17px;
    line-height: 28px;
	font-weight: 400;
    padding: 25px 0 0 !important;
}


/* New */

.phelan-accordion .et_pb_toggle {
    background: none !important;
    border: none;
    border-bottom: 1px solid #BCD9D8;
    padding: 20px 0;
    margin-bottom: 0;
}

/* Missing before: gap between heading and body text */
.phelan-accordion .et_pb_toggle_content {
    color: #546462;
    font-size: 17px;
    line-height: 28px;
    padding: 25px 0 0 !important;
}
/* Replace Divi's default +/- icon with a diagonal arrow SVG, swapped per state */
.phelan-accordion .et_pb_toggle_title:before {
    font-family: initial !important;
    content: "" !important;
    display: inline-block;
    width: 40px;
    height: 40px;
    background-image: url('https://phelangreen.com/wp-content/uploads/2026/09/up-right-arrow.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.phelan-accordion .et_pb_toggle_open .et_pb_toggle_title:before {
    background-image: url('https://phelangreen.com/wp-content/uploads/2026/09/down-right-arrow.svg');
}
.phelan-accordion .et_pb_toggle_open .et_pb_toggle_title:before {
    content: "" !important;
    background-image: url('https://phelangreen.com/wp-content/uploads/2026/09/down-right-arrow.svg') !important;
}
.phelan-accordion .et_pb_accordion_item.et_pb_toggle_open .et_pb_toggle_title:before {
    display: block !important;
    content: "" !important;
    width: 40px;
    height: 40px;
    background-image: url('https://phelangreen.com/wp-content/uploads/2026/09/down-right-arrow.svg') !important;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
/* ===== Team Leadership Carousel ===== */
.team-carousel-wrap {
    position: relative;
}

.team-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.team-carousel::-webkit-scrollbar { display: none; }

.team-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    cursor: pointer;
}

.team-card-photo {
    position: relative;
    width: 100%;
    height: 260px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    margin-bottom: 12px;
}

.team-card-arrow {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(106, 206, 203, 0.85);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

.team-card-name {
    color: #fff;
    font-weight: 600;
    margin: 0 0 2px;
	font-size: 22px;
	line-height: 28px; 
	padding-bottom: 0 !important; 
}

.team-card-title {
    color: rgba(255,255,255,0.6);
    font-size: 17px;
    margin: 0;
}

.team-carousel-nav {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.team-carousel-nav button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}

/* Inline expanding detail panel -- sits IN the carousel row, not a fixed overlay */
.team-detail-panel {
    flex: 0 0 0px;
    overflow: hidden;
    scroll-snap-align: start;
    border-radius: 12px;
    background: #1B4B4E;
    transition: flex-basis 0.4s ease;
}

.team-detail-panel.active {
    flex-basis: 640px; /* expanded width -- tune to match your design */
}

.team-detail-panel-inner {
    display: flex;
    width: 640px; /* fixed so inner content doesn't squish during the transition */
    height: 260px; /* match .team-card-photo height so the row stays aligned */
}

.team-detail-photo {
    flex: 0 0 45%;
    background-size: cover;
    background-position: center;
}

.team-detail-content {
    position: relative;
    flex: 1;
    padding: 24px;
    color: #fff;
    overflow-y: auto;
}

.team-detail-content h3 { margin: 0 0 4px; font-size: 20px; }
.team-detail-content p:first-of-type { color: rgba(255,255,255,0.6); margin-top: 0; font-size: 14px; }
#teamDetailBio { color: rgba(255,255,255,0.85); line-height: 1.5; font-size: 13px; margin-top: 12px; }
#teamDetailLinkedin { display: inline-block; color: #6ACECB; margin: 8px 0; }

.team-detail-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(106, 206, 203, 0.85);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}
.team-card-photo {
    position: relative;
    width: 100%;
    height: 350px; /* was 260px */
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    margin-bottom: 12px;

    /* Image treatment: desaturated at rest, full color on hover */
    filter: grayscale(70%) brightness(0.95);
    transition: filter 0.4s ease, transform 0.4s ease;
    transform: scale(1);
}

.team-card:hover .team-card-photo {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.03);
}
/* ===== Team Lightbox Modal ===== */
.team-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.team-modal-overlay.active { display: flex; }

.team-modal {
    position: relative;
    display: flex;
    max-width: 900px;
    width: 100%;
    max-height: 85vh;
    background: #1B4B4E;
    border-radius: 16px;
    overflow: hidden;
}

.team-modal-photo {
    flex: 0 0 40%;
    background-size: cover;
    background-position: center;
}

.team-modal-content {
    flex: 1;
    padding: 32px;
    color: #fff;
    overflow-y: auto; /* only THIS inner column scrolls if bio is very long -- the modal box itself never does */
}

.team-modal-content h3 { margin: 0 0 4px; font-size: 22px; color: #fff; }
.team-modal-content p:first-of-type { color: rgba(255,255,255,0.6); margin: 0 0 12px; font-size: 14px; }
#teamDetailBio { color: rgba(255,255,255,0.85); line-height: 1.6; font-size: 14px; margin-top: 0; }
#teamModalLinkedin { display: inline-flex; color: #6ACECB; margin-bottom: 12px; }

.team-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(106, 206, 203, 0.85);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
}

@media (max-width: 767px) {
    .team-modal { flex-direction: column; max-height: 90vh; }
    .team-modal-photo { flex: none; height: 260px; }
}
/* ===== Right-side scrolling timeline ===== */
#timeline .timeline {
    position: relative;
    padding-left: 40px;
}

#timeline .timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: rgba(255,255,255,0.25);
}

#timeline .timeline-item {
    position: relative;
    margin-bottom: 100px;
}
#timeline .timeline-item:last-child {
    margin-bottom: 0;
}

#timeline .timeline-dot {
    position: absolute;
    left: -46px;
    top: 4px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #6ACECB;
}

#timeline .timeline-content h4 {
    color: #fff;
    font-size: 22px;
    margin: 0 0 10px;
    font-weight: 700;
}

#timeline .timeline-content p {
    color: rgba(255,255,255,0.8);
    font-size: 17px;
    line-height: 28px;
    margin: 0 0 16px;
}

/* Image hover treatment: desaturated at rest -> full color + slight zoom on hover */
#timeline .timeline-image-wrap {
    overflow: hidden;
    border-radius: 12px;
}

#timeline .timeline-content img {
    width: 100%;
    display: block;
    filter: grayscale(70%) brightness(0.9);
    transform: scale(1);
    transition: filter 0.4s ease, transform 0.4s ease;
}

#timeline .timeline-item:hover .timeline-content img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.04);
}
/* ===== Light-background timeline variant ===== */
#timeline-light .timeline {
    position: relative;
    padding-left: 40px;
}

#timeline-light .timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: rgba(0,0,0,0.12);
}

#timeline-light .timeline-item {
    position: relative;
    margin-bottom: 60px;
}
#timeline-light .timeline-item:last-child {
    margin-bottom: 0;
}

#timeline-light .timeline-dot {
    position: absolute;
    left: -40px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #6ACECB;
}

#timeline-light .timeline-content h4 {
    color: #16205A; /* Navy */
    font-size: 18px;
    margin: 0 0 10px;
}

#timeline-light .timeline-content p {
    color: #546462; /* Slate */
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px;
}

/* Image hover: no resting-state treatment, just a slight zoom on hover */
#timeline-light .timeline-image-wrap {
    overflow: hidden;
    border-radius: 12px;
}

#timeline-light .timeline-content img {
    width: 100%;
    display: block;
    transform: scale(1);
    transition: transform 0.4s ease;
}

#timeline-light .timeline-item:hover .timeline-content img {
    transform: scale(1.04);
}
/* ===== Phelan Projects Slider ===== */
.projects-slider-wrap {
    position: relative;
}

.projects-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.projects-slider::-webkit-scrollbar { display: none; }

.project-slide {
    flex: 0 0 92%;
    scroll-snap-align: start;
    display: flex;
    background: #1B4B4E;
    border-radius: 16px;
    overflow: hidden;
    min-height: 560px;
}

.project-slide-text {
    flex: 0 0 60%;
    padding: 48px;
    color: #fff;
    overflow-y: auto;
}

.project-slide-text h2 {
    font-size: clamp(24px, 3vw, 32px);
    margin: 0 0 16px;
    color: #fff;
}

.project-intro {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
    margin: 0 0 24px;
}
.project-intro strong {
    color: #fff;
}

.project-statement {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 24px;
}

.project-logo {
    max-width: 70px;
    height: auto;
    flex-shrink: 0;
    filter: grayscale(100%) brightness(2); /* white/muted logo treatment, adjust as needed */
}

.project-statement p {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

.project-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 24px;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 15px;
    color: #fff;
    font-weight: 600;
}

.project-slide-image {
    flex: 1;
    background-size: cover;
    background-position: center;
}

.projects-slider-nav {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.projects-slider-nav button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    background: transparent;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

/* ===== Responsive: stack columns on smaller screens ===== */
@media (max-width: 980px) {
    .project-slide {
        flex: 0 0 96%;
        flex-direction: column;
        min-height: auto;
    }
    .project-slide-text {
        flex: none;
        padding: 32px;
    }
    .project-slide-image {
        flex: none;
        height: 300px;
    }
    .project-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .project-slide {
        flex: 0 0 100%;
    }
    .project-slide-text {
        padding: 24px;
    }
    .project-statement {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* Efuels page timeline */
/* Land / Port Access / Permits / Technology / Market / Funding timeline */
.timeline {
    position: relative;
    max-width: 1100px;
}

/* Continuous vertical line running through all dots */
.timeline:before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.timeline-item {
    position: relative;
    display: flex;
    gap: 32px;
    padding-bottom: 64px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 6px;
    border-radius: 50%;
    background: #6ACECB;
}

.timeline-content {
    display: grid;
    grid-template-columns: 1fr 360px;
    column-gap: 48px;
    align-items: start;
    flex: 1;
}

.timeline-content h4 {
    grid-column: 1;
    grid-row: 1;
    margin: 0 0 16px;
}

.timeline-content p {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
}

.timeline-image-wrap {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.timeline-image-wrap img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* Tablet and down: stack image under text, full width */
@media (max-width: 980px) {
    .timeline-content {
        grid-template-columns: 1fr;
    }
    .timeline-content h4 { grid-row: 1; }
    .timeline-content p  { grid-row: 2; }
    .timeline-image-wrap {
        grid-column: 1;
        grid-row: 3;
        margin-top: 24px;
    }
}

/* Phone: tighten spacing and the dot/line rail */
@media (max-width: 767px) {
    .timeline-item {
        gap: 20px;
        padding-bottom: 48px;
    }
    .timeline:before {
        left: 5px;
    }
    .timeline-dot {
        width: 12px;
        height: 12px;
    }
    .timeline-content {
        column-gap: 24px;
    }
}
/* Blending Mandates — year + country stat cards */
.mandate-year-block {
    margin-bottom: 24px;
}

.mandate-year {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 24px;
}

.mandate-cards {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.mandate-card {
    flex: 1 1 260px;
    max-width: 292px;
    padding: 32px 28px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(106, 206, 203, 0.18) 0%, rgba(106, 206, 203, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mandate-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.mandate-flag {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.mandate-country h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 2px;
}

.mandate-country p {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

.mandate-primary-stat {
    margin-bottom: 24px;
}

.mandate-percentage {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 64px;
    font-weight: 300;
    line-height: 1;
    color: #6ACECB;
    margin-bottom: 12px;
}

.mandate-stat-label {
    font-size: 17px;
    font-weight: 400;
    color: #fff;
    margin: 0;
}

.mandate-secondary-stats {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.mandate-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #6ACECB;
    margin: 0 0 2px;
    padding-bottom: 0;
}

.mandate-value + .mandate-value {
    margin-bottom: 8px;
}


.mandate-secondary-stats .mandate-stat-label {
    margin-top: 4px;
}

/* Tablet */
@media (max-width: 980px) {
    .mandate-cards {
        gap: 16px;
    }
    .mandate-card {
        padding: 28px 24px;
    }
    .mandate-percentage {
        font-size: 52px;
    }
}

/* Phone: stack multi-card years (2030/2035/2040) full width instead of side by side */
@media (max-width: 767px) {
    .mandate-cards {
        flex-direction: column;
    }
    .mandate-card {
        max-width: 100%;
    }
    .mandate-year {
        font-size: 26px;
        margin-bottom: 16px;
    }
}
.mandate-year-block {
    position: relative;
    padding-left: 40px;
    margin-bottom: 24px;
}

.mandate-year-marker {
    position: absolute;
    top: 0;
    left: 0;
    width: 25px;
    display: flex;
    justify-content: center;
}

.mandate-dot {
    display: block;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #6ACECB;
    flex-shrink: 0;
}

/* Connecting line running the full height of the block, behind the dot */
.mandate-year-block:not(:last-child):after {
    content: '';
    position: absolute;
    top: 25px;
    left: 12px;
    width: 5px;
    bottom: -24px;
    background: rgba(255, 255, 255, 0.08);
}


/* Project Timeline */

.pt-card {
    display: flex;
    border-radius: 28px;
    overflow: hidden;
    max-width: 100%;
}

.pt-panel {
    flex: 0 0 420px;
    padding: 48px 40px;
    background: linear-gradient(180deg, #124946 0%, #1F6470 100%);
}

.pt-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 32px;
}

.pt-item {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 12px;
    overflow: hidden;
    transition: background 0.3s ease;
}

.pt-item.is-open {
    background: rgba(255, 255, 255, 0.16);
}

.pt-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 25px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.pt-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
}

.pt-title strong {
    font-weight: 700;
    color: #FFFFFF;
    margin-right: 8px;
}

.pt-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background-image: url('https://phelangreen.com/wp-content/uploads/2026/09/up-right-arrow.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.pt-item.is-open .pt-icon {
    background-image: url('https://phelangreen.com/wp-content/uploads/2026/09/down-right-arrow.svg');
}

.pt-body {
    display: none;
    padding: 0 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 0 20px;
    padding-top: 16px;
}

.pt-item.is-open .pt-body {
    display: block;
}

.pt-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 4px;
}

.pt-stat-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #6ACECB;
}

.pt-stat-label {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}
.pt-item p {
	padding-bottom: 0; 
}
.pt-image {
    flex: 1;
    position: relative;
}

.pt-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}
.pt-body {
    display: none;
    padding: 16px 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
/* Tablet: stack, image on top */
@media (max-width: 980px) {
    .pt-card {
        flex-direction: column;
        border-radius: 20px;
    }
    .pt-panel {
        flex: none;
        order: 2;
        padding: 32px 24px;
    }
    .pt-image {
        order: 1;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 767px) {
    .pt-heading {
        font-size: 22px;
        margin-bottom: 20px;
    }
    .pt-stats {
        flex-direction: column;
        gap: 4px;
    }
}


.partners-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1409px;
    margin: 0 auto;
}

.partner-card {
    display: flex;
    gap: 28px;
    padding: 36px;
    background: #FCFDFD;
    border-radius: 16px;
}

.partner-logo {
    flex: 0 0 160px;
    display: flex;
    align-items: flex-start;
    padding-top: 4px;
}

.partner-logo img {
    max-width: 160px;
    max-height: 40px;
    width: auto;
    height: auto;
}

.partner-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
}

.partner-content p {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #5A6B6A;
    margin: 0;
}

.partner-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #6EB8B6;
    text-decoration: none;
}

.partner-readmore:hover {
    text-decoration: underline;
}

/* Tablet: stack to one card per row, keep logo/text side-by-side */
@media (max-width: 900px) {
    .partners-grid {
        grid-template-columns: 1fr;
    }
}

/* Phone: stack logo above text within each card too */
@media (max-width: 560px) {
    .partner-card {
        flex-direction: column;
        gap: 16px;
        padding: 24px;
    }
    .partner-logo {
        padding-top: 0;
    }
    .partner-content {
        min-height: 0;
    }
}


/* Infrastructure Accordion */

/* Section background */

/* Reset Divi's default toggle icon, use the arrow SVGs */
.infra-accordion .et_pb_toggle_title:before {
    font-family: initial !important;
    display: block !important;
    content: "" !important;
    width: 18px;
    height: 18px;
    background-image: url('https://phelangreen.com/wp-content/uploads/2026/09/up-right-arrow.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
}

.infra-accordion .et_pb_accordion_item.et_pb_toggle_open .et_pb_toggle_title:before {
    display: block !important;
    content: "" !important;
    background-image: url('https://phelangreen.com/wp-content/uploads/2026/09/down-right-arrow.svg') !important;
    opacity: 1;
}

/* Title colour: muted when closed, white when open */
.infra-accordion .et_pb_toggle_title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    color: #B8DADE !important;
}

.infra-accordion .et_pb_accordion_item.et_pb_toggle_open .et_pb_toggle_title {
    color: #FFFFFF !important;
}

/* Divider between items */
.infra-accordion .et_pb_accordion_item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* Body copy */
.infra-accordion .et_pb_toggle_content {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 17px;
    line-height: 28px;
    color: #FFFFFF !important;
}

/* Fade transition on the swapped image */
#infra-accordion-image img {
    transition: opacity 0.3s ease;
}
.infra-accordion .et_pb_toggle_title:before {
    font-family: initial !important;
    display: block !important;
    content: "" !important;
    width: 40px;
    height: 40px;
    background-image: url('https://phelangreen.com/wp-content/uploads/2026/09/up-right-arrow.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.infra-accordion .et_pb_accordion_item.et_pb_toggle_open .et_pb_toggle_title:before {
    display: block !important;
    content: "" !important;
    background-image: url('https://phelangreen.com/wp-content/uploads/2026/09/down-right-arrow.svg') !important;
    filter: brightness(0) invert(1);
    opacity: 1;
}

/* homepage timeline fix */
/* Homepage: Land/Port Access/Permits/etc. timeline — always stacked */
.timeline-content {
    display: block;
}

.timeline-content h4 {
    margin: 0 0 16px;
}

.timeline-content p {
    margin: 0;
}

.timeline-image-wrap {
    margin-top: 24px;
}

.timeline-image-wrap img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}
/* Forms */

/* Contact form submit button */
.gform_footer input[type="submit"],
.gform_button {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #16205A;
    background: #6ACECB;
    border: none;
    border-radius: 999px;
    padding: 14px 40px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.gform_footer input[type="submit"]:hover {
    background: #FF957D;
    color: #16205A;
}

.gform_footer input[type="submit"]:active {
    transform: scale(0.98);
}

.gform_footer input[type="submit"]:disabled {
    background: rgba(106, 206, 203, 0.4);
    cursor: not-allowed;
}


@media only screen and (max-width: 679px) {
	.stat-card-text {
    min-height: auto;
}
.hover-expand-row {
    height: 300px !important; 
}
#timeline .timeline-item {
    margin-bottom: 20px;
}
.phelan-card-tagline {
    font-size: 17px;
    max-width: 90%;
    width: 90%;
}
.phelan-card-overlay {
		padding: 10px 25px;
	}
#footer-widgets {
    padding-top: 80px;
}
	footer #block-12 {
display: none; 
}

}