/* Portfolio extensions — matches Matresume theme */

/* ── Equal-height card rows (site-wide) ───────────────────────── */
.card-row-eq {
    display: flex;
    flex-wrap: wrap;
}

.card-row-eq > [class*='col-'] {
    display: flex;
    flex-direction: column;
}

.card-row-eq .card-stretch {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.card-row-eq .card-body-grow {
    flex: 1 1 auto;
}

.card-row-eq .card-footer-pin {
    margin-top: auto;
}

@media (max-width: 767px) {
    .card-row-eq > [class*='col-'] {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ── Hero Background — software engineering texture ───────────── */
.bg-struct.bg-pattern-hero {
    height: 480px;
    background-color: #e9f3f2;
    background-image:
        radial-gradient(ellipse 70% 55% at 72% 18%, rgba(43, 108, 102, 0.14) 0%, transparent 62%),
        radial-gradient(ellipse 55% 45% at 18% 82%, rgba(102, 0, 209, 0.07) 0%, transparent 58%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.14) 82%, rgba(233, 243, 242, 0.24) 100%),
        url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%232b6c66' stroke-opacity='0.09'%3E%3Cpath d='M0 30h40M80 30h40M0 60h25M95 60h25M0 90h50M70 90h50M30 0v40M30 80v40M60 0v25M60 95v25M90 0v50M90 70v50'/%3E%3C/g%3E%3Cg fill='%232b6c66' fill-opacity='0.14'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3Ccircle cx='60' cy='60' r='2'/%3E%3Ccircle cx='90' cy='30' r='2'/%3E%3Ccircle cx='30' cy='90' r='2'/%3E%3C/g%3E%3Ctext x='8' y='18' fill='%232b6c66' fill-opacity='0.08' font-family='monospace' font-size='11'%3E%7B%7D%3C/text%3E%3Ctext x='72' y='108' fill='%232b6c66' fill-opacity='0.07' font-family='monospace' font-size='10'%3E%3C/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 48 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 24h48M24 0v48' stroke='%232b6c66' stroke-opacity='0.05' stroke-width='1'/%3E%3Cpath d='M0 0h48v48H0z' fill='none' stroke='%232b6c66' stroke-opacity='0.035' stroke-width='1'/%3E%3C/svg%3E");
    background-size: auto, auto, auto, 120px 120px, 48px 48px;
    background-position: center;
    overflow: hidden;
}

.bg-struct.bg-pattern-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='304' height='304' viewBox='0 0 304 304' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M44.1 224c.463-2.282 2.48-4 4.9-4 2.76 0 5 2.24 5 5s-2.24 5-5 5c-2.42 0-4.437-1.718-4.9-4H0v-2h44.1zm160 48c.463-2.282 2.48-4 4.9-4 2.76 0 5 2.24 5 5s-2.24 5-5 5c-2.42 0-4.437-1.718-4.9-4H82v-2h122.1zm57.8-46c-.463 2.282-2.48 4-4.9 4-2.76 0-5-2.24-5-5s2.24-5 5-5c2.42 0 4.437 1.718 4.9 4H304v2h-42.1zm0 16c-.463 2.282-2.48 4-4.9 4-2.76 0-5-2.24-5-5s2.24-5 5-5c2.42 0 4.437 1.718 4.9 4H304v2h-42.1zm6.2-114c.463-2.282 2.48-4 4.9-4 2.76 0 5 2.24 5 5s-2.24 5-5 5c-2.42 0-4.437-1.718-4.9-4h-86.2c-.463 2.282-2.48 4-4.9 4-2.76 0-5-2.24-5-5s2.24-5 5-5c2.42 0 4.437 1.718 4.9 4h86.2zM258 12.1c2.282.463 4 2.48 4 4.9 0 2.76-2.24 5-5 5s-5-2.24-5-5c0-2.42 1.718-4.437 4-4.9V0h2v12.1zm-64 208c2.282.463 4 2.48 4 4.9 0 2.76-2.24 5-5 5s-5-2.24-5-5c0-2.42 1.718-4.437 4-4.9v-54.2c-2.282-.463-4-2.48-4-4.9 0-2.76 2.24-5 5-5s5 2.24 5 5c0 2.42-1.718 4.437-4 4.9v54.2zm48-198.2c2.282-.463 4-2.48 4-4.9 0-2.76-2.24-5-5-5s-5 2.24-5 5c0 2.42 1.718 4.437 4 4.9V82h64v-2h-62V21.9zM66 284.1c2.282.463 4 2.48 4 4.9 0 2.76-2.24 5-5 5s-5-2.24-5-5c0-2.42 1.718-4.437 4-4.9V274H50v30h-2v-32h18v12.1zM236.1 176c.463-2.282 2.48-4 4.9-4 2.76 0 5 2.24 5 5s-2.24 5-5 5c-2.42 0-4.437-1.718-4.9-4H226v94h48v32h-2v-30h-48v-98h12.1z' fill='%232b6c66' fill-opacity='0.07' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 304px 304px;
    opacity: 0.72;
    pointer-events: none;
}

.bg-struct.bg-pattern-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.08));
    pointer-events: none;
}

/* Jatri brand (from jatri.co) */
.font-jatri { color: var(--jatri-primary) !important; }
.border-top-jatri { border-top-color: var(--jatri-primary) !important; }

/* Current role highlight — Jatri branding */
.about-sec .role-highlight {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--jatri-primary-bg) 0%, var(--jatri-primary-bg-light) 100%);
    border-left: 4px solid var(--jatri-primary);
    border-radius: 0 6px 6px 0;
    font-size: 18px;
    line-height: 1.4;
    color: var(--jatri-primary-dark);
}

.about-sec .role-highlight .role-title {
    font-weight: 600;
    color: var(--jatri-primary-dark);
}

.about-sec .role-highlight .role-at {
    color: #666;
    font-weight: 400;
}

.about-sec .role-highlight .role-company {
    font-weight: 700;
    color: var(--jatri-primary);
}

.drawer-profile-wrap .role-highlight-drawer {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #d3b0f7;
    margin-bottom: 15px;
    line-height: 1.4;
}

.drawer-profile-wrap .role-highlight-drawer strong {
    color: #fff;
    font-weight: 600;
}

.drawer-profile-wrap .role-highlight-drawer .role-company {
    color: var(--jatri-primary-light);
    font-weight: 600;
}

/* About detail & bio */
.bio-sec .bio-hero-card {
    border-left: 4px solid #2b6c66;
}

.bio-sec .mdl-card p {
    color: #555;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
    text-align: justify;
}

.bio-sec .bio-summary {
    font-size: 15px;
    color: #444;
    font-weight: 500;
}

.bio-sec .hero-quote {
    text-align: center;
    color: #2b6c66;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee;
    line-height: 1.5;
}

.bio-sec .bio-section-title {
    color: #2b6c66;
    margin-bottom: 18px;
    font-weight: 600;
}

.bio-sec .bio-fact-card {
    text-align: center;
    padding: 22px 15px;
    border-top: 3px solid #2b6c66;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bio-sec .bio-fact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(43, 108, 102, 0.15) !important;
}

.bio-sec .bio-fact-icon {
    font-size: 28px;
    color: #2b6c66;
    margin-bottom: 8px;
}

.bio-sec .bio-fact-card h3 {
    margin: 0 0 6px;
    font-size: 26px;
    color: #2b6c66;
    font-weight: 700;
}

.bio-sec .bio-fact-card span {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    display: block;
}

.bio-sec .bio-path-card {
    padding: 25px 20px 30px;
    overflow: hidden;
}

/* Career Journey — winding road */
.bio-sec .career-journey {
    position: relative;
    padding: 12px 4px 8px;
}

.bio-sec .career-journey-road {
    display: block;
    width: 100%;
    height: 88px;
    margin-bottom: -44px;
    pointer-events: none;
}

.bio-sec .career-journey-stops {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    min-height: 168px;
}

.bio-sec .career-journey-stop {
    display: flex;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
    position: relative;
}

.bio-sec .career-journey-link {
    flex: 0 1 42px;
    width: 42px;
    min-width: 18px;
    height: 28px;
    color: rgba(43, 108, 102, 0.55);
    margin: 0 -2px;
}

.bio-sec .career-journey-link svg {
    display: block;
    width: 100%;
    height: 100%;
}

.bio-sec .career-journey-pin {
    position: relative;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bio-sec .career-journey-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #2b6c66;
    box-shadow: 0 0 0 4px rgba(43, 108, 102, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bio-sec .career-journey-stop:hover .career-journey-dot {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(43, 108, 102, 0.16);
}

.bio-sec .career-journey-flag {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: var(--jatri-primary);
}

.bio-sec .career-journey-card {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 118px;
    text-align: center;
    padding: 10px 8px;
    background: #f7fbfa;
    border: 1px solid #dce9e7;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(43, 108, 102, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.bio-sec .career-journey-stop:hover .career-journey-card {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 16px rgba(43, 108, 102, 0.14);
    border-color: #b8d4d0;
}

.bio-sec .career-journey-stop-upper .career-journey-card {
    bottom: calc(100% + 14px);
}

.bio-sec .career-journey-stop-lower .career-journey-card {
    top: calc(100% + 14px);
}

.bio-sec .career-journey-stop.is-current .career-journey-dot {
    width: 14px;
    height: 14px;
    background: var(--jatri-primary);
    border-color: var(--jatri-primary-dark);
    box-shadow: 0 0 0 5px rgba(102, 0, 209, 0.15);
}

.bio-sec .career-journey-stop.is-current .career-journey-card {
    background: linear-gradient(135deg, var(--jatri-primary-bg), var(--jatri-primary-bg-light));
    border-color: var(--jatri-primary);
    box-shadow: 0 4px 14px rgba(102, 0, 209, 0.14);
}

.bio-sec .career-journey-stop .career-era {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #888;
    margin-bottom: 3px;
    font-weight: 700;
}

.bio-sec .career-journey-stop.is-current .career-era {
    color: var(--jatri-primary);
}

.bio-sec .career-journey-stop .career-role {
    display: block;
    font-size: 11px;
    color: #444;
    font-weight: 600;
    line-height: 1.35;
}

.bio-sec .career-journey-stop.is-current .career-role {
    color: var(--jatri-primary-dark);
}

.bio-sec .career-journey-stop .career-journey-card::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    height: 10px;
    background: rgba(43, 108, 102, 0.25);
    transform: translateX(-50%);
}

.bio-sec .career-journey-stop-upper .career-journey-card::after {
    bottom: -10px;
}

.bio-sec .career-journey-stop-lower .career-journey-card::after {
    top: -10px;
}

.bio-sec .career-journey-stop.is-current .career-journey-card::after {
    background: var(--jatri-primary);
    opacity: 0.45;
}

@media (max-width: 1100px) and (min-width: 769px) {
    .bio-sec .career-journey {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
    }

    .bio-sec .career-journey-stops {
        min-width: 920px;
    }

    .bio-sec .career-journey-card {
        max-width: 128px;
    }
}

.bio-sec .bio-principle-card {
    border-top: 3px solid #2b6c66;
    transition: transform 0.2s ease;
}

.bio-sec .bio-principle-card:hover {
    transform: translateY(-2px);
}

.bio-sec .bio-principle-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f5f3, #d4ede8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.bio-sec .bio-principle-icon i {
    font-size: 20px;
    color: #2b6c66;
}

.bio-sec .bio-principle-card h5 {
    color: #2b6c66;
    margin-bottom: 10px;
    font-size: 15px;
}

.bio-sec .bio-principle-card p {
    margin-bottom: 0;
    font-size: 13px;
}

.skills-sec .skills-col {
    display: flex;
    flex-direction: column;
}

.skills-sec .skills-card {
    flex: 1;
}

/* Domain tags */
.domain-tags span {
    display: inline-block;
    background: #e8f5f3;
    color: #2b6c66;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin: 3px;
}

.expertise-tags span {
    display: inline-block;
    background: #eef4f8;
    color: #0c3b64;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    margin: 3px;
    border-left: 3px solid #2b6c66;
}

/* Impact metrics — Jatri at Scale */
.impact-sec.jatri-brand h2 {
    color: var(--jatri-primary-dark);
}

.impact-sec .metric-card {
    text-align: center;
    padding: 25px 15px;
}

.impact-sec.jatri-brand .metric-card {
    border-top: 3px solid var(--jatri-primary);
}

.impact-sec .metric-card h3 {
    color: #2b6c66;
    margin: 0 0 5px;
    font-size: 28px;
}

.impact-sec.jatri-brand .metric-card h3 {
    color: var(--jatri-primary);
}

.impact-sec .impact-milestones-header h5 {
    color: var(--jatri-primary-dark);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px;
}

.impact-sec .impact-milestones-header p {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.impact-sec .milestone-card {
    border-left: 4px solid var(--jatri-primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.impact-sec .milestone-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 0, 209, 0.1) !important;
}

.impact-sec .milestone-featured {
    padding: 28px 25px !important;
    border-left-width: 5px;
    background: linear-gradient(135deg, #fff 0%, var(--jatri-primary-bg-light) 100%);
}

.impact-sec .milestone-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.impact-sec .milestone-year {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--jatri-primary);
    padding: 3px 10px;
    border-radius: 3px;
}

.impact-sec .milestone-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
    color: var(--jatri-primary);
    background: var(--jatri-primary-bg);
    padding: 3px 10px;
    border-radius: 20px;
}

.impact-sec .milestone-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.impact-sec .milestone-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--jatri-primary-bg), #e8dff5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.impact-sec .milestone-icon i {
    font-size: 22px;
    color: var(--jatri-primary);
}

.impact-sec .milestone-icon-sm {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
}

.impact-sec .milestone-icon-sm i {
    font-size: 18px;
}

.impact-sec .milestone-card h4 {
    margin: 0;
    font-size: 18px;
    color: var(--jatri-primary-dark);
    font-weight: 600;
}

.impact-sec .milestone-title-sm {
    font-size: 15px;
    margin: 0 0 10px;
}

.impact-sec .milestone-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    text-align: justify;
    margin: 0;
}

.impact-sec .milestone-desc-sm {
    font-size: 13px;
    color: #666;
    line-height: 1.65;
    text-align: justify;
    margin: 0;
}

.impact-sec .milestone-featured-side {
    display: flex;
    align-items: center;
    justify-content: center;
}

.impact-sec .milestone-badge {
    text-align: center;
    padding: 20px;
    border: 2px dashed var(--jatri-primary-light);
    border-radius: 8px;
    color: var(--jatri-primary);
}

.impact-sec .milestone-badge i {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
    color: var(--jatri-primary);
}

.impact-sec .milestone-badge span {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.impact-sec .metric-card span {
    font-size: 12px;
    color: #666;
}

@media (max-width: 768px) {
    .bg-struct.bg-pattern-hero {
        height: 400px;
    }

    .impact-sec .milestone-featured-side {
        margin-top: 20px;
    }
}

/* Portfolio — Jatri projects */
.portfolio-sec #portfolio .item {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.portfolio-sec .portfolio-img-wrap {
    height: 150px;
    min-height: 150px;
    flex: 0 0 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    background: linear-gradient(160deg, #e8eeed 0%, #dfe8e6 100%);
}

.portfolio-sec .bottom-links {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    min-height: 52px;
    box-sizing: border-box;
}

.portfolio-sec .bottom-links .img-cap {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.portfolio-sec .portfolio-img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.portfolio-sec .portfolio-img-wrap-dark {
    background: linear-gradient(160deg, #0f1f2e 0%, #0c1b2a 100%);
}

.portfolio-sec .portfolio-img-wrap-mybusiness .portfolio-img {
    max-height: 110px;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.portfolio-sec .item-jatri {
    border-bottom: none;
}

.portfolio-sec .item-jatri .bottom-links {
    border-bottom: 3px solid var(--jatri-primary);
}

.portfolio-sec .icon-jatri {
    color: var(--jatri-primary) !important;
}

.portfolio-sec .item-jatri .img-cap {
    color: var(--jatri-primary-dark) !important;
}

/* Awards — Jatri */
.awards-sec .award-jatri {
    border-top: 4px solid var(--jatri-primary);
}

.awards-sec .award-jatri .award-org {
    color: var(--jatri-primary);
    font-weight: 600;
}

/* Focus section */
.focus-sec .focus-intro {
    max-width: 820px;
    margin-bottom: 35px;
}

.focus-sec .focus-card {
    position: relative;
    padding-top: 50px !important;
    border-top: 4px solid #2b6c66;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.focus-sec .focus-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(43, 108, 102, 0.15) !important;
}

.focus-sec .focus-accent-brand { border-top-color: #2b6c66; }
.focus-sec .focus-accent-blue { border-top-color: #2196F3; }
.focus-sec .focus-accent-red { border-top-color: #ff3d00; }

.focus-sec .focus-number {
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 42px;
    font-weight: 700;
    color: rgba(43, 108, 102, 0.08);
    line-height: 1;
}

.focus-sec .focus-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f5f3 0%, #d4ede8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.focus-sec .focus-icon-wrap i {
    font-size: 26px;
    color: #2b6c66;
}

.focus-sec .focus-accent-blue .focus-icon-wrap {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.focus-sec .focus-accent-blue .focus-icon-wrap i { color: #1976D2; }

.focus-sec .focus-accent-red .focus-icon-wrap {
    background: linear-gradient(135deg, #fbe9e7 0%, #ffccbc 100%);
}

.focus-sec .focus-accent-red .focus-icon-wrap i { color: #ff3d00; }

.focus-sec .focus-title {
    font-size: 18px;
    color: #2b6c66;
    margin: 0 0 8px;
    font-weight: 600;
}

.focus-sec .focus-accent-blue .focus-title { color: #1976D2; }
.focus-sec .focus-accent-red .focus-title { color: #e64a19; }

.focus-sec .focus-tagline {
    font-size: 14px;
    font-weight: 500;
    color: #444;
    margin: 0 0 14px;
    line-height: 1.5;
}

.focus-sec .focus-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
    text-align: justify;
    margin: 0 0 20px;
    flex: 1 1 auto;
}

.focus-sec .focus-tags {
    margin-top: auto;
}

.focus-sec .focus-tags span {
    display: inline-block;
    background: #f5f5f5;
    color: #555;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    margin: 0 4px 6px 0;
    border: 1px solid #eee;
}

.focus-sec .focus-accent-brand .focus-tags span {
    background: #f0faf8;
    color: #2b6c66;
    border-color: #d4ede8;
}

.focus-sec .focus-accent-blue .focus-tags span {
    background: #e3f2fd;
    color: #1565C0;
    border-color: #bbdefb;
}

.focus-sec .focus-accent-red .focus-tags span {
    background: #fbe9e7;
    color: #d84315;
    border-color: #ffccbc;
}

@media (max-width: 768px) {
    .focus-sec .focus-card {
        min-height: auto;
    }

    .opensource-sec .oss-desc-sm {
        min-height: auto;
    }
}

/* Open source section */
.opensource-sec .oss-intro {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    max-width: 680px;
}

.opensource-sec .oss-github-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 22px;
    background: #2b6c66;
    color: #fff !important;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.opensource-sec .oss-github-btn:hover {
    background: #1f524e;
    text-decoration: none;
}

.opensource-sec .oss-github-btn i {
    margin-right: 6px;
    font-size: 18px;
    vertical-align: middle;
}

.opensource-sec .oss-card {
    position: relative;
    border-top: 4px solid #2b6c66;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.opensource-sec .oss-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(43, 108, 102, 0.14) !important;
}

.opensource-sec .oss-platform-android { border-top-color: #3d9e95; }
.opensource-sec .oss-platform-laravel { border-top-color: #ff3d00; }

.opensource-sec .oss-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.opensource-sec .oss-platform {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: #2b6c66;
    background: #e8f5f3;
    padding: 4px 10px;
    border-radius: 20px;
}

.opensource-sec .oss-platform-laravel .oss-platform {
    color: #e64a19;
    background: #fbe9e7;
}

.opensource-sec .oss-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f5f3, #d4ede8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.opensource-sec .oss-icon-wrap i {
    font-size: 24px;
    color: #2b6c66;
}

.opensource-sec .oss-platform-laravel .oss-icon-wrap {
    background: linear-gradient(135deg, #fbe9e7, #ffccbc);
}

.opensource-sec .oss-platform-laravel .oss-icon-wrap i {
    color: #ff3d00;
}

.opensource-sec .oss-icon-wrap-sm {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
}

.opensource-sec .oss-icon-wrap-sm i {
    font-size: 20px;
}

.opensource-sec .oss-icon-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.opensource-sec .oss-title {
    margin: 0;
    font-size: 22px;
    color: #2b6c66;
    font-weight: 600;
    text-transform: none;
}

.opensource-sec .oss-title-sm {
    font-size: 16px;
    color: #2b6c66;
    margin: 0 0 10px;
    font-weight: 600;
    text-transform: none;
}

.opensource-sec .oss-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    text-align: justify;
    margin: 0 0 16px;
}

.opensource-sec .oss-desc-sm {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    text-align: justify;
    margin: 0 0 18px;
}

.opensource-sec .oss-license {
    font-size: 12px;
    color: #2b6c66;
}

.opensource-sec .oss-license i {
    margin-right: 4px;
}

.opensource-sec .oss-card-featured {
    padding: 35px 30px !important;
}

.opensource-sec .oss-featured-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-left: 1px solid #eee;
}

.opensource-sec .oss-stat-box {
    margin-bottom: 20px;
}

.opensource-sec .oss-stat-box h2 {
    margin: 0;
    font-size: 28px;
    color: #ff3d00;
    font-weight: 700;
}

.opensource-sec .oss-stat-box span {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.opensource-sec .oss-link-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #2b6c66;
    color: #fff !important;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
}

.opensource-sec .oss-link-btn:hover {
    background: #1f524e;
    text-decoration: none;
}

.opensource-sec .oss-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.opensource-sec .oss-license-sm {
    font-size: 11px;
    color: #999;
}

.opensource-sec .oss-link-sm {
    font-size: 13px;
    color: #2b6c66;
    font-weight: 500;
    text-decoration: none;
}

.opensource-sec .oss-link-sm:hover {
    color: #ff3d00;
}

.opensource-sec .oss-link-sm i {
    font-size: 14px;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .opensource-sec .oss-featured-side {
        border-left: none;
        border-top: 1px solid #eee;
        margin-top: 20px;
        padding-top: 20px;
    }

    .opensource-sec .oss-desc-sm {
        min-height: auto;
    }

    .opensource-sec .oss-github-btn {
        margin-top: 15px;
        margin-bottom: 10px;
    }
}

.awards-sec .award-card {
    display: flex;
    flex-direction: column;
}

.awards-sec .award-desc {
    flex: 1 1 auto;
    margin-bottom: 0;
}

.philosophy-sec .philosophy-card,
.bio-sec .philosophy-card {
    display: flex;
    flex-direction: column;
}

.philosophy-sec .philosophy-card p,
.bio-sec .philosophy-card p {
    flex: 1 1 auto;
    margin-bottom: 0;
}

.writing-sec .writing-card {
    display: flex;
    flex-direction: column;
}

.writing-sec .writing-banner {
    position: relative;
    height: 150px;
    display: flex;
    align-items: flex-end;
    padding: 18px 20px;
    overflow: hidden;
}

.writing-sec .writing-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30h60M30 0v60' stroke='%23ffffff' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 60px 60px;
}

.writing-sec .writing-banner-tag {
    position: relative;
    z-index: 1;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}

.writing-sec .writing-banner-icon {
    position: absolute;
    top: 16px;
    right: 18px;
    z-index: 1;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.35);
}

.writing-sec .writing-banner-engineering {
    background: linear-gradient(135deg, #1f5f59 0%, #2b6c66 55%, #3d8a82 100%);
}

.writing-sec .writing-banner-culture {
    background: linear-gradient(135deg, #2c3e50 0%, #3d566e 55%, #4a6a85 100%);
}

.writing-sec .writing-banner-leadership {
    background: linear-gradient(135deg, #1a3a52 0%, #24506f 55%, #2f668c 100%);
}

.writing-sec .writing-banner-automation {
    background: linear-gradient(135deg, #1e3a5f 0%, #2a5080 55%, #3566a0 100%);
}

.writing-sec .writing-banner-product {
    background: linear-gradient(135deg, #5000a3 0%, #6600d1 55%, #8d33eb 100%);
}

.writing-sec .writing-banner-team {
    background: linear-gradient(135deg, #245c55 0%, #2f746b 55%, #3a8c80 100%);
}

.writing-sec .writing-linkedin-btn {
    color: #0077b5;
    font-size: 22px;
    line-height: 1;
    padding: 6px;
}

.writing-sec .writing-linkedin-btn:hover {
    color: #005885;
    text-decoration: none;
}

.writing-sec .blog-card-text {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.writing-sec .mdl-card__actions {
    margin-top: auto;
}

.reference-sec .ref-linkedin {
    font-size: 13px;
    color: #2b6c66;
    text-decoration: none;
}

.reference-sec .ref-linkedin:hover {
    color: #0077b5;
    text-decoration: none;
}

.reference-sec .ref-linkedin i {
    vertical-align: middle;
    margin-right: 4px;
}

.impact-sec .metric-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.impact-sec .milestone-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.impact-sec .milestone-desc-sm {
    flex: 1 1 auto;
}

/* Awards */
.awards-sec .award-year {
    font-size: 13px;
    color: #888;
    float: right;
}

.awards-sec .award-org {
    font-size: 13px;
    color: #2b6c66;
}

.awards-sec .award-desc {
    margin-top: 12px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* Philosophy */
.philosophy-sec .mdl-card h5,
.bio-sec .philosophy-card h5 {
    color: #2b6c66;
    margin-bottom: 10px;
    font-size: 15px;
}

.philosophy-sec .mdl-card p,
.bio-sec .philosophy-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* Leadership */
.leadership-sec .leadership-quote-card {
    text-align: center;
    padding: 30px 40px;
    background: linear-gradient(135deg, #f5faf9 0%, #eef6f5 100%);
    border-left: 4px solid #2b6c66;
    position: relative;
}

.leadership-sec .leadership-quote-icon {
    font-size: 32px;
    color: #2b6c66;
    opacity: 0.3;
    margin-bottom: 10px;
}

.leadership-sec .leadership-quote-card p {
    font-size: 16px;
    color: #444;
    line-height: 1.7;
    font-style: italic;
    margin: 0;
    max-width: 720px;
    margin: 0 auto;
}

.leadership-sec .leadership-card {
    position: relative;
    padding-top: 45px !important;
    border-top: 4px solid #2b6c66;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.leadership-sec .leadership-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(43, 108, 102, 0.14) !important;
}

.leadership-sec .lead-accent-brand { border-top-color: #2b6c66; }
.leadership-sec .lead-accent-blue { border-top-color: #1976d2; }
.leadership-sec .lead-accent-teal { border-top-color: #00897b; }
.leadership-sec .lead-accent-orange { border-top-color: #ff3d00; }

.leadership-sec .lead-number {
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 36px;
    font-weight: 700;
    color: rgba(43, 108, 102, 0.1);
    line-height: 1;
}

.leadership-sec .lead-icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f5f3, #d4ede8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.leadership-sec .lead-icon-wrap i {
    font-size: 22px;
    color: #2b6c66;
}

.leadership-sec .lead-accent-blue .lead-icon-wrap {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.leadership-sec .lead-accent-blue .lead-icon-wrap i { color: #1976d2; }

.leadership-sec .lead-accent-teal .lead-icon-wrap {
    background: linear-gradient(135deg, #e0f2f1, #b2dfdb);
}

.leadership-sec .lead-accent-teal .lead-icon-wrap i { color: #00897b; }

.leadership-sec .lead-accent-orange .lead-icon-wrap {
    background: linear-gradient(135deg, #fbe9e7, #ffccbc);
}

.leadership-sec .lead-accent-orange .lead-icon-wrap i { color: #ff3d00; }

.leadership-sec .lead-title {
    font-size: 17px;
    color: #2b6c66;
    margin: 0 0 8px;
    font-weight: 600;
}

.leadership-sec .lead-tagline {
    font-size: 13px;
    color: #ff3d00;
    font-weight: 500;
    margin-bottom: 12px;
}

.leadership-sec .lead-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.65;
    text-align: justify;
    margin-bottom: 16px;
}

.leadership-sec .lead-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 4px;
}

.leadership-sec .lead-highlights span {
    font-size: 11px;
    background: #f0f5f4;
    color: #2b6c66;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .bg-struct.bg-pattern-hero {
        height: 400px;
    }

    .bio-sec .career-journey-road {
        display: none;
    }

    .bio-sec .career-journey {
        padding-left: 8px;
    }

    .bio-sec .career-journey::before {
        content: '';
        position: absolute;
        left: 22px;
        top: 12px;
        bottom: 12px;
        width: 3px;
        border-radius: 999px;
        background: repeating-linear-gradient(
            180deg,
            rgba(43, 108, 102, 0.15) 0 8px,
            rgba(43, 108, 102, 0.45) 8px 14px
        );
    }

    .bio-sec .career-journey-stops {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        gap: 0;
        padding-left: 34px;
    }

    .bio-sec .career-journey-stop {
        flex: 0 0 auto;
        padding: 0 0 22px;
    }

    .bio-sec .career-journey-stop:last-child {
        padding-bottom: 0;
    }

    .bio-sec .career-journey-link {
        display: none;
    }

    .bio-sec .career-journey-pin {
        position: absolute;
        left: -34px;
        top: 18px;
    }

    .bio-sec .career-journey-card {
        position: relative;
        left: auto;
        top: auto;
        bottom: auto;
        transform: none;
        max-width: none;
        width: 100%;
        text-align: left;
        padding: 12px 14px;
    }

    .bio-sec .career-journey-stop:hover .career-journey-card {
        transform: translateY(-2px);
    }

    .bio-sec .career-journey-stop-upper .career-journey-card,
    .bio-sec .career-journey-stop-lower .career-journey-card {
        top: auto;
        bottom: auto;
    }

    .bio-sec .career-journey-stop .career-journey-card::after {
        display: none;
    }

    .bio-sec .career-journey-stop:not(:last-child) .career-journey-pin::after {
        content: '';
        position: absolute;
        left: 50%;
        top: 100%;
        width: 2px;
        height: 34px;
        transform: translateX(-50%);
        background: linear-gradient(180deg, rgba(43, 108, 102, 0.45), rgba(43, 108, 102, 0.15));
    }

    .bio-sec .career-journey-stop:not(:last-child) .career-journey-pin::before {
        content: '';
        position: absolute;
        left: 50%;
        top: calc(100% + 28px);
        transform: translateX(-50%);
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 7px solid rgba(43, 108, 102, 0.45);
    }
}

/* Section subtitles */
.sec-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Fix nested row padding inside cards */
.about-sec > .row > .col-lg-12 > .mdl-card > .row {
    margin-left: -15px;
    margin-right: -15px;
}

/* Experience */
.experience-sec .job-location {
    font-size: 12px;
    color: #888;
}

.experience-sec .exp-current-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #fff;
    background: #2b6c66;
    padding: 3px 8px;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 6px;
}

.experience-sec .exp-brand-jatri .exp-current-badge {
    background: var(--jatri-primary);
}

.experience-sec .exp-promotion-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #ff3d00;
    background: #fff3e0;
    padding: 3px 8px;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 6px;
}

.experience-sec .exp-brand-jatri .exp-promotion-badge {
    color: var(--jatri-primary);
    background: var(--jatri-primary-bg);
}

.experience-sec .exp-brand-jatri .institution a:hover {
    color: var(--jatri-primary) !important;
}

.experience-sec .timeline-panel h4 {
    line-height: 1.4;
}

.experience-sec .exp-promotion-path {
    margin: 18px 0 6px;
    padding: 14px 16px;
    background: #f8f6fc;
    border: 1px solid #ebe4f7;
    border-radius: 6px;
}

.experience-sec .exp-promotion-label {
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--jatri-primary);
}

.experience-sec .exp-promotion-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0 14px;
    border-left: 2px solid #dccff0;
}

.experience-sec .exp-promotion-list li {
    position: relative;
    padding: 0 0 14px 16px;
}

.experience-sec .exp-promotion-list li:last-child {
    padding-bottom: 0;
}

.experience-sec .exp-promotion-list li::before {
    content: '';
    position: absolute;
    left: -19px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--jatri-primary);
    box-sizing: border-box;
}

.experience-sec .exp-promotion-list li.is-current::before {
    background: var(--jatri-primary);
    box-shadow: 0 0 0 3px rgba(102, 0, 209, 0.15);
}

.experience-sec .exp-promotion-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.experience-sec .exp-promotion-list li.is-current .exp-promotion-title {
    color: var(--jatri-primary-dark);
}

.experience-sec .exp-promotion-duration {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: #888;
}

/* Writing grid — 3 per row */
.writing-sec .blog-card-text {
    min-height: 0;
}

@media (max-width: 768px) {
    .awards-sec .award-year {
        float: none;
        display: block;
        margin-bottom: 5px;
    }
}
