/**
 * P2 Blocks - Frontend Styles
 *
 * Note: Most styles are already in the theme's pages-v2.css
 * This file is for any additional block-specific overrides
 */

/* Ensure blocks use the correct font */
[class*="p2/"] {
    font-family: 'Mersad', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Block alignment support */
.wp-block-p2-hero.alignfull,
.wp-block-p2-neighborhood.alignfull,
.wp-block-p2-views.alignfull,
.wp-block-p2-gallery.alignfull,
.wp-block-p2-stats.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.wp-block-p2-trust.alignwide,
.wp-block-p2-projects.alignwide,
.wp-block-p2-inspire.alignwide,
.wp-block-p2-why-p2.alignwide,
.wp-block-p2-materials.alignwide,
.wp-block-p2-location.alignwide,
.wp-block-p2-timeline.alignwide,
.wp-block-p2-features-grid.alignwide {
    width: calc(100% + 120px);
    max-width: calc(100% + 120px);
    margin-left: -60px;
    margin-right: -60px;
}

@media (max-width: 768px) {
    .wp-block-p2-trust.alignwide,
    .wp-block-p2-projects.alignwide,
    .wp-block-p2-inspire.alignwide,
    .wp-block-p2-why-p2.alignwide,
    .wp-block-p2-materials.alignwide,
    .wp-block-p2-location.alignwide,
    .wp-block-p2-timeline.alignwide,
    .wp-block-p2-features-grid.alignwide {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* ========================================
   P2 SECTION BASE STYLES
   ======================================== */
.p2-section {
    padding: 80px 0;
}

.p2-section--gray {
    background: #f5f7fa;
}

.p2-section--dark {
    background: var(--p2-dark, #182F4D);
    color: #fff;
}

.p2-section--dark h1,
.p2-section--dark h2,
.p2-section--dark h3,
.p2-section--dark h4 {
    color: #fff;
}

.p2-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.p2-section__header {
    margin-bottom: 40px;
}

.p2-section__label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--p2-accent, #FFBE00);
    margin-bottom: 12px;
}

.p2-section__title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--p2-dark, #182F4D);
    margin: 0 0 16px;
    line-height: 1.2;
}

.p2-section__subtitle {
    font-size: 16px;
    color: var(--p2-medium, #6E8FB8);
    max-width: 600px;
    margin: 0;
}

/* ========================================
   P2 SPLIT LAYOUT
   ======================================== */
.p2-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.p2-split__label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--p2-accent, #FFBE00);
    margin-bottom: 12px;
}

.p2-split__title {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    color: var(--p2-dark, #182F4D);
    margin: 0 0 16px;
    line-height: 1.2;
}

.p2-split__media {
    border-radius: 12px;
    overflow: hidden;
}

.p2-split__media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

@media (max-width: 900px) {
    .p2-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ========================================
   P2 TEAM BLOCK
   ======================================== */
.p2-team {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
}

.p2-team__member {
    text-align: center;
}

.p2-team__photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    background: #e0e0e0;
}

.p2-team__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p2-team__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--p2-light, #6E8FB8) 0%, var(--p2-primary, #274B7A) 100%);
}

.p2-team__placeholder i {
    font-size: 48px;
    color: #fff;
}

.p2-team__name {
    font-size: 18px;
    font-weight: 600;
    color: var(--p2-dark, #182F4D);
    margin: 0 0 4px;
}

.p2-team__role {
    font-size: 14px;
    color: var(--p2-medium, #6E8FB8);
    margin: 0;
}

/* ========================================
   P2 HISTORY / TIMELINE BLOCK
   ======================================== */
.p2-timeline {
    position: relative;
    padding-left: 30px;
}

.p2-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--p2-accent, #FFBE00) 0%, var(--p2-primary, #274B7A) 100%);
}

.p2-timeline__item {
    position: relative;
    padding-bottom: 30px;
}

.p2-timeline__item:last-child {
    padding-bottom: 0;
}

.p2-timeline__dot {
    position: absolute;
    left: -34px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--p2-accent, #FFBE00);
    border: 2px solid #fff;
    box-shadow: 0 0 0 4px rgba(255, 190, 0, 0.2);
}

.p2-timeline__year {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--p2-accent, #FFBE00);
    background: rgba(255, 190, 0, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.p2-timeline__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--p2-dark, #182F4D);
    margin: 0 0 8px;
}

.p2-timeline__text {
    font-size: 14px;
    color: var(--p2-medium, #6E8FB8);
    margin: 0;
    line-height: 1.6;
}

/* ========================================
   P2 CONTACT FORM BLOCK
   ======================================== */
.p2-contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.p2-contact-form h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--p2-dark, #182F4D);
    margin: 0 0 8px;
}

.p2-contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--p2-dark, #182F4D);
    margin-bottom: 6px;
}

.p2-contact-form input[type="text"],
.p2-contact-form input[type="email"],
.p2-contact-form input[type="tel"],
.p2-contact-form select,
.p2-contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 16px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.p2-contact-form input:focus,
.p2-contact-form select:focus,
.p2-contact-form textarea:focus {
    outline: none;
    border-color: var(--p2-primary, #274B7A);
    box-shadow: 0 0 0 3px rgba(39, 75, 122, 0.1);
}

.p2-contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.p2-contact-form button[type="submit"],
.p2-contact-form input[type="submit"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: var(--p2-primary, #274B7A);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.p2-contact-form button[type="submit"]:hover,
.p2-contact-form input[type="submit"]:hover {
    background: var(--p2-dark2, #1F3D63);
    transform: translateY(-1px);
}

/* Contact Form 7 specific */
.p2-contact-form .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 16px;
}

.p2-contact-form .wpcf7-not-valid-tip {
    font-size: 12px;
    color: #dc3545;
    margin-top: 4px;
}

/* ========================================
   P2 CONTACT CARDS BLOCK
   ======================================== */
.p2-contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.p2-contact-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.p2-contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.p2-contact-card__icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--p2-primary, #274B7A) 0%, var(--p2-dark2, #1F3D63) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.p2-contact-card__icon i {
    font-size: 24px;
    color: #fff;
}

.p2-contact-card__title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--p2-medium, #6E8FB8);
    margin-bottom: 8px;
}

.p2-contact-card__value {
    font-size: 18px;
    font-weight: 600;
    color: var(--p2-dark, #182F4D);
}

.p2-contact-card__value a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.p2-contact-card__value a:hover {
    color: var(--p2-primary, #274B7A);
}

/* ========================================
   STAGGER ANIMATION HELPER
   Only on frontend, not in editor
   ======================================== */
body:not(.block-editor-page) .stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    animation: staggerFadeIn 0.5s ease forwards;
}

body:not(.block-editor-page) .stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
body:not(.block-editor-page) .stagger-children > *:nth-child(2) { animation-delay: 0.15s; }
body:not(.block-editor-page) .stagger-children > *:nth-child(3) { animation-delay: 0.2s; }
body:not(.block-editor-page) .stagger-children > *:nth-child(4) { animation-delay: 0.25s; }
body:not(.block-editor-page) .stagger-children > *:nth-child(5) { animation-delay: 0.3s; }
body:not(.block-editor-page) .stagger-children > *:nth-child(6) { animation-delay: 0.35s; }
body:not(.block-editor-page) .stagger-children > *:nth-child(7) { animation-delay: 0.4s; }
body:not(.block-editor-page) .stagger-children > *:nth-child(8) { animation-delay: 0.45s; }

@keyframes staggerFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade in animations - only on frontend */
body:not(.block-editor-page) .fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeInLeft 0.6s ease forwards;
}

body:not(.block-editor-page) .fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInRight 0.6s ease forwards;
    animation-delay: 0.2s;
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Editor preview - ensure visibility */
.block-editor-page .stagger-children > *,
.block-editor-page .fade-in-left,
.block-editor-page .fade-in-right,
.editor-styles-wrapper .stagger-children > *,
.editor-styles-wrapper .fade-in-left,
.editor-styles-wrapper .fade-in-right {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

/* ========================================
   HORIZONTAL SCROLL GALLERY DRAG SCROLL
   ======================================== */
.hscroll-gallery__content {
    cursor: grab;
}

.hscroll-gallery__content:active {
    cursor: grabbing;
}

.hscroll-gallery__content.is-dragging {
    cursor: grabbing;
    user-select: none;
}

/* ========================================
   P2: GALLERY SLIDER
   ======================================== */
.p2-gallery-slider {
    padding: 60px 0;
}

.p2-gallery-slider .p2-section-head {
    margin-bottom: 40px;
}

.p2-gallery-slider .p2-section-head__eyebrow {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--c-primary, #274B7A);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.p2-gallery-slider .p2-section-head__title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 600;
    color: var(--c-dark, #182F4D);
    margin: 0;
}

.p2-gallery-slider__swiper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.p2-gallery-slider__swiper .swiper-slide {
    overflow: hidden;
    border-radius: 12px;
}

.p2-gallery-slider__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p2-gallery-slider__link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.p2-gallery-slider__link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.p2-gallery-slider__link:hover::after {
    opacity: 1;
}

.p2-gallery-slider__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: #fff;
    font-size: 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    z-index: 2;
}

/* Swiper Navigation */
.p2-gallery-slider .swiper-button-prev,
.p2-gallery-slider .swiper-button-next {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    color: var(--c-dark, #182F4D);
    transition: all 0.3s ease;
}

.p2-gallery-slider .swiper-button-prev:hover,
.p2-gallery-slider .swiper-button-next:hover {
    background: #fff;
    transform: scale(1.1);
}

.p2-gallery-slider .swiper-button-prev::after,
.p2-gallery-slider .swiper-button-next::after {
    font-size: 18px;
    font-weight: bold;
}

/* Swiper Pagination */
.p2-gallery-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.5);
    opacity: 1;
}

.p2-gallery-slider .swiper-pagination-bullet-active {
    background: var(--c-accent, #FFBE00);
}

.p2-gallery-slider .swiper-pagination-fraction {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.p2-gallery-slider .swiper-pagination-progressbar {
    background: rgba(255,255,255,0.3);
    height: 3px;
}

.p2-gallery-slider .swiper-pagination-progressbar-fill {
    background: var(--c-accent, #FFBE00);
}

/* Effect-specific styles */
.p2-gallery-slider--coverflow .swiper-slide {
    width: 70%;
}

.p2-gallery-slider--cube .swiper,
.p2-gallery-slider--flip .swiper {
    overflow: visible;
}

/* Empty state */
.p2-gallery-slider--empty {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .p2-gallery-slider {
        padding: 40px 0;
    }

    .p2-gallery-slider .swiper-button-prev,
    .p2-gallery-slider .swiper-button-next {
        width: 36px;
        height: 36px;
    }

    .p2-gallery-slider .swiper-button-prev::after,
    .p2-gallery-slider .swiper-button-next::after {
        font-size: 14px;
    }
}

/* ========================================
   P2 Roadmap Block
   ======================================== */
.p2-roadmap-wrapper {
    position: relative;
}

.p2-roadmap {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    position: relative;
}

.p2-roadmap__container {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Header - with branded corner cut border */
.p2-roadmap__header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 40px;
    padding: 24px 28px;
    flex-shrink: 0;
}

/* Branded border - outer (border color) */
.p2-roadmap__header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--header-border, #FFBE00);
    clip-path: polygon(
        4px 0, calc(100% - 4px) 0, 100% 4px,
        100% calc(100% - 20px), calc(100% - 20px) 100%,
        4px 100%, 0 calc(100% - 4px), 0 4px
    );
    pointer-events: none;
}

/* Branded border - inner (background) */
.p2-roadmap__header::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: var(--header-bg, #f8f8f8);
    clip-path: polygon(
        4px 0, calc(100% - 4px) 0, 100% 4px,
        100% calc(100% - 18px), calc(100% - 18px) 100%,
        4px 100%, 0 calc(100% - 4px), 0 4px
    );
    pointer-events: none;
}

.p2-roadmap__header > * {
    position: relative;
    z-index: 1;
}

/* Header layout - left and right sections */
.p2-roadmap__header-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.p2-roadmap__header-right {
    display: flex;
    align-items: flex-start;
}

.p2-roadmap__title {
    font-family: 'Mersad', sans-serif;
    font-weight: 500;
    letter-spacing: 1px;
    margin: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.p2-roadmap__title-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.p2-roadmap__eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.p2-roadmap__icon {
    display: flex;
    align-items: center;
}

.p2-roadmap__description {
    font-family: 'Mersad', sans-serif;
    line-height: 1.6;
    max-width: 650px;
}

.p2-roadmap__description em {
    font-style: italic;
}

/* Navigation arrows */
.p2-roadmap__nav {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.p2-roadmap__nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--roadmap-controls, #182F4D);
    background: transparent;
    color: var(--roadmap-controls, #182F4D);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.p2-roadmap__nav-btn:hover {
    background: var(--roadmap-controls, #182F4D);
    color: #fff;
}

.p2-roadmap__nav-btn i {
    font-size: 20px;
}

/* Button - branded corner cut style */
.p2-roadmap__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: transparent;
    color: var(--header-border, #182F4D);
    border: none;
    font-family: 'Mersad', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.5s ease;
    white-space: nowrap;
    text-decoration: none;
}

/* Outer border shape */
.p2-roadmap__btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--header-border, #182F4D);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
    transition: background 0.5s ease;
}

/* Inner fill shape */
.p2-roadmap__btn::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--header-bg, #f8f8f8);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 11.5px), calc(100% - 11.5px) 100%, 0 100%);
    transition: background 0.5s ease;
}

.p2-roadmap__btn:hover::before {
    background: var(--header-border, #182F4D);
}

.p2-roadmap__btn:hover::after {
    background: var(--header-border, #182F4D);
}

.p2-roadmap__btn:hover {
    color: #fff;
}

/* Button content above pseudo-elements */
.p2-roadmap__btn i,
.p2-roadmap__btn span {
    position: relative;
    z-index: 1;
    transition: color 0.5s ease;
}

/* Phases Container */
.p2-roadmap__phases {
    display: flex;
    gap: 24px;
    align-items: flex-end;
    flex: 1;
    min-height: 0;
    position: relative;
}

/* Progress Line - fixed at top, full width */
.p2-roadmap__progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.08);
    z-index: 10;
    overflow: hidden;
}

.p2-roadmap__progress-line {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #E8C872 0%, #D4C494 100%);
}

/* Phase Card */
.p2-roadmap__phase {
    flex: 1;
    min-width: 280px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--phase-bg);
    border: 2px dashed;
    color: var(--phase-text);
    position: relative;
    z-index: 1;
    transform-origin: bottom center;
    will-change: height;
}

.p2-roadmap__phase-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 28px;
}

/* Phase Content */
.p2-roadmap__phase-content {
    display: flex;
    flex-direction: column;
}

.p2-roadmap__phase-divider {
    width: 60px;
    height: 2px;
    background: currentColor;
    opacity: 0.3;
    margin-bottom: 0;
}

/* Bottom section - description + footer grouped at bottom */
.p2-roadmap__phase-bottom {
    margin-top: auto;
}

.p2-roadmap__phase-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Phase Description - above footer with border separator */
.p2-roadmap__phase-desc {
    font-family: 'Mersad', sans-serif;
    line-height: 1.6;
    margin: 0 0 16px;
    padding-bottom: 16px;
    color: inherit;
    opacity: 0.9;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.p2-roadmap__phase-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.p2-roadmap__delivery-label {
    font-family: 'Mersad', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.p2-roadmap__delivery-date {
    font-family: 'Mersad', sans-serif;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid;
}

/* Phase cards - align to bottom, grow upward */
.p2-roadmap__phase--1,
.p2-roadmap__phase--2,
.p2-roadmap__phase--3 {
    align-self: flex-end;
}

/* Animation states - controlled by GSAP */
.p2-roadmap__phase.is-active {
    height: 420px !important;
}

.p2-roadmap__phase.is-collapsed {
    height: 280px !important;
}

/* Responsive */
@media (max-width: 1200px) {
    .p2-roadmap {
        height: auto;
    }

    .p2-roadmap-wrapper.p2-below-header {
        padding-top: 0 !important;
    }

    .p2-roadmap__header {
        flex-direction: column;
        gap: 20px;
    }

    .p2-roadmap__header-right {
        width: 100%;
    }

    .p2-roadmap__description {
        max-width: 100%;
    }

    .p2-roadmap__phases {
        flex-direction: column;
        align-items: stretch;
        min-height: auto;
        flex: none;
    }

    /* Hide horizontal progress on mobile */
    .p2-roadmap__progress {
        display: none;
    }

    .p2-roadmap__phase,
    .p2-roadmap__phase--1,
    .p2-roadmap__phase--2,
    .p2-roadmap__phase--3 {
        height: auto !important;
        min-height: 250px;
        align-self: stretch;
        opacity: 1 !important;
        transform: none !important;
    }

}

@media (max-width: 768px) {
    .p2-roadmap__header {
        padding: 48px 56px;
    }

    .p2-roadmap__phase-inner {
        padding: 56px;
    }
}

@media (max-width: 576px) {
    .p2-roadmap__header {
        margin-bottom: 1rem;
    }

    .p2-roadmap__nav-btn {
        width: 40px;
        height: 40px;
    }

    .p2-roadmap__nav-btn i {
        font-size: 18px;
    }
}

/* =============================================
   Section Head: v1
   ============================================= */
.p2-section-head-block {
    background: none;
}

.p2-section-head__container {
    margin: 0 auto;
}

.p2-section-head__inner {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding: 24px 28px;
}

/* Branded border shape */
.p2-section-head__inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--sh-border, #FFBE00);
    clip-path: polygon(
        0 0, 100% 0,
        100% calc(100% - 20px), calc(100% - 20px) 100%,
        0 100%
    );
    pointer-events: none;
}

.p2-section-head__inner::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: var(--sh-bg, #fafafa);
    clip-path: polygon(
        0 0, 100% 0,
        100% calc(100% - 16px), calc(100% - 16px) 100%,
        0 100%
    );
    pointer-events: none;
}

.p2-section-head__inner > * {
    position: relative;
    z-index: 1;
}

.p2-section-head__left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.p2-section-head__right {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-shrink: 0;
    flex-direction: column;
}

.p2-section-head__title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.p2-section-head__title i {
    color: var(--sh-title, #274B7A);
}

.p2-section-head__desc {
    font-family: 'Mersad', sans-serif;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--sh-desc, #6E8FB8);
    margin: 0;
    max-width: 800px;
}

/* Button - branded corner cut style */
.p2-section-head__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: transparent;
    color: var(--sh-btn-color, #182F4D);
    border: none;
    font-family: 'Mersad', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.5s ease;
    white-space: nowrap;
    text-decoration: none;
}

.p2-section-head__btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--sh-btn-border, #182F4D);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
    transition: background 0.5s ease;
}

.p2-section-head__btn::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--sh-btn-bg, var(--sh-bg, #fafafa));
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 11.5px), calc(100% - 11.5px) 100%, 0 100%);
    transition: background 0.5s ease;
}

.p2-section-head__btn:hover::before {
    background: var(--sh-btn-border-hover, #182F4D);
}

.p2-section-head__btn:hover::after {
    background: var(--sh-btn-bg-hover, #182F4D);
}

.p2-section-head__btn:hover {
    color: var(--sh-btn-color-hover, #fff);
}

.p2-section-head__btn i,
.p2-section-head__btn span {
    position: relative;
    z-index: 1;
    transition: color 0.5s ease;
}

@media (max-width: 767px) {
    .p2-section-head__inner {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .p2-section-head__right {
        align-items: flex-start;
    }
}
