/* Masonry-style resume layout override */
#card-resume .elementor-section.row .elementor-row {
    display: block !important;
    column-count: 2;
    column-gap: 24px;
}

#card-resume .elementor-section.row .elementor-column {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 0 24px 0 !important;
    break-inside: avoid;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

#card-resume .elementor-section.row .elementor-column-wrap,
#card-resume .elementor-section.row .elementor-widget-wrap,
#card-resume .elementor-section.row .elementor-widget-container {
    display: block !important;
    height: auto !important;
}

#card-resume .elementor-section.row .elementor-widget-ryancv-resume,
#card-resume .elementor-section.row .elementor-widget-ryancv-skills {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    break-inside: avoid;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

#card-resume .elementor-section.row .resume-item,
#card-resume .elementor-section.row .skills-item,
#card-resume .elementor-section.row .resume-items,
#card-resume .elementor-section.row .skills-list {
    height: auto !important;
}

#card-resume .elementor-section.row .border-line-v:before {
    display: none !important;
}

#card-resume .elementor-section.row + .elementor-section.row {
    margin-top: 0 !important;
}

/* Prevent circular skills from being clipped at the bottom of the Coding card */
#card-resume .skills-list.circles {
    overflow: visible !important;
    padding-bottom: 18px !important;
}

#card-resume .skills-list.circles ul {
    padding-bottom: 18px !important;
}

#card-resume .skills-list.circles ul li {
    padding-bottom: 28px !important;
}

#card-resume .skills-list.circles .progress {
    margin-bottom: 12px !important;
}

/* Merged Coding + Frameworks technical stack card */
#card-resume .technical-stack-column {
    display: block !important;
}

#card-resume .technical-stack-card {
    overflow: hidden !important;
    padding-bottom: 0 !important;
}

#card-resume .technical-stack-card .skill-title .icon {
    background: linear-gradient(135deg, #78cc6d 0%, #4fb36a 100%) !important;
}

#card-resume .technical-stack-body {
    padding: 22px;
}

#card-resume .tech-visual-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

#card-resume .tech-visual-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(120, 204, 109, 0.12), rgba(120, 204, 109, 0.03));
    border: 1px solid rgba(120, 204, 109, 0.16);
}

#card-resume .tech-visual-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #ffffff;
    color: #78cc6d;
    box-shadow: 0 10px 24px rgba(20, 30, 50, 0.08);
    font-size: 18px;
}

#card-resume .tech-visual-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

#card-resume .tech-visual-copy strong {
    font-size: 13px;
    line-height: 1.25;
    color: #20232a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#card-resume .tech-visual-copy small {
    margin-top: 3px;
    font-size: 11px;
    color: #7a8391;
}

#card-resume .tech-stack-section {
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

#card-resume .tech-stack-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #20232a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

#card-resume .tech-stack-heading i {
    color: #78cc6d;
}

#card-resume .tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#card-resume .tech-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f4f8f5;
    color: #2f3a35;
    border: 1px solid rgba(120, 204, 109, 0.18);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

/* Align language progress dots by replacing fixed-width inline spans with a flex row */
#card-resume .skills-list.dotted ul li {
    grid-template-columns: 120px minmax(0, 1fr) !important;
}

#card-resume .skills-list.dotted ul li .progress {
    width: 100% !important;
    min-width: 0 !important;
    height: 18px !important;
    position: relative !important;
    display: block !important;
}

#card-resume .skills-list.dotted ul li .progress .percentage,
#card-resume .skills-list.dotted ul li .progress .dg {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

#card-resume .skills-list.dotted ul li .progress .percentage .da {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

#card-resume .skills-list.dotted ul li .progress .percentage span,
#card-resume .skills-list.dotted ul li .progress .dg span {
    display: block !important;
    width: 10px !important;
    height: 10px !important;
    min-width: 10px !important;
    margin: 0 !important;
    border-radius: 50% !important;
}

#card-resume .skills-list.dotted ul li .progress .dg {
    z-index: 1 !important;
}

#card-resume .skills-list.dotted ul li .progress .percentage {
    z-index: 2 !important;
    overflow: hidden !important;
}

@media (max-width: 1120px) {
    #card-resume .elementor-section.row .elementor-row {
        column-count: 1;
        column-gap: 0;
    }

    #card-resume .elementor-section.row .elementor-column {
        margin-bottom: 18px !important;
    }
}

@media (max-width: 680px) {
    #card-resume .tech-visual-grid {
        grid-template-columns: 1fr;
    }

    #card-resume .skills-list.dotted ul li {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}
