.nav-links a.active {
    color: var(--color-primary);
    position: relative;
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
}

.sidebar-nav a.active:not(.sidebar-button) {
    color: var(--color-primary);
    font-weight: 700;
    border-left: 3px solid var(--color-primary);
    padding-left: 12px;
}


.templates-hero {
    padding: 115px 0 125px;
    background-color: var(--color-background);
    text-align: center;
}

.templates-hero-content {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.templates-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 17px;
    border: 1px solid var(--color-border);
    border-radius: 30px;
    background-color: var(--color-surface);
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.templates-hero-label i {
    font-size: 13px;
}

.templates-hero h1 {
    margin-top: 28px;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -2px;
}

.templates-hero h1 span {
    color: var(--color-primary);
}

.templates-hero p {
    max-width: 520px;
    margin-top: 23px;
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.9;
}

.templates-hero-link {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    margin-top: 32px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 700;
    transition: gap 0.2s ease;
}

.templates-hero-link i {
    font-size: 12px;
}

@media (hover: hover) and (pointer: fine) {
    .templates-hero-link:hover {
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .templates-hero {
        padding: 100px 0 110px;
    }
}

@media (max-width: 768px) {
    .templates-hero {
        padding: 100px 0 80px;
    }

    .templates-hero h1 {
        font-size: 50px;
    }

    .templates-hero p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .templates-hero {
        padding: 100px 0 50px;
    }

    .templates-hero-label {
        padding: 9px 14px;
        font-size: 10px;
    }

    .templates-hero h1 {
        margin-top: 24px;
        font-size: 39px;
        line-height: 1.2;
        letter-spacing: -1.5px;
    }

    .templates-hero p {
        margin-top: 18px;
        font-size: 13px;
        line-height: 1.8;
    }

    .templates-hero-link {
        margin-top: 27px;
        font-size: 12px;
    }
}


.template-gallery {
    padding: 100px 0 120px;
    background-color: var(--color-surface);
    scroll-margin-top: 80px;
}

.gallery-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 45px;
}

.gallery-heading {
    max-width: 620px;
}

.gallery-heading h2 {
    margin-top: 12px;
    font-family: var(--font-heading);
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 600;
    letter-spacing: -1.5px;
}

.gallery-heading p {
    max-width: 490px;
    margin-top: 15px;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.8;
}

.gallery-count {
    padding-bottom: 7px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.template-card {
    min-width: 0;
}

.template-preview {
    position: relative;
    height: 480px;
    overflow: hidden;
    border-radius: 10px;
}

.modern-preview {
    background-color: #f3e8eb;
}

.minimal-preview {
    background-color: #f4f0ee;
}

.creative-preview {
    background-color: #edf0f7;
}

.resume-page {
    position: absolute;
    top: 16px;
    left: 50%;
    width: 520px;
    min-height: 730px;
    background-color: #ffffff;
    color: #242424;
    box-shadow: 0 8px 30px rgb(0 0 0 / 9%);
    transform: translateX(-50%) scale(0.61);
    transform-origin: top center;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
}

.resume-page h3,
.resume-page h4 {
    font-family: Arial, sans-serif;
}

.resume-page .resume-group {
    display: block;
    margin-bottom: 22px;
}

.resume-page .resume-group h4 {
    display: block;
    margin-bottom: 10px;
    padding-bottom: 7px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.resume-page .resume-group p {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    line-height: 1.65;
}

.resume-page .resume-group strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.resume-page .resume-group > span,
.resume-page .resume-entry > span {
    display: block;
    margin-bottom: 8px;
    color: #666666;
    font-size: 12px;
    line-height: 1.5;
}

.resume-page .resume-entry {
    margin-bottom: 17px;
}

.resume-page .resume-entry:last-child {
    margin-bottom: 0;
}

.resume-page .resume-entry ul {
    margin: 9px 0 0;
    padding-left: 18px;
}

.resume-page .resume-entry li {
    margin-bottom: 5px;
    font-size: 12.5px;
    line-height: 1.6;
}

.modern-resume {
    display: grid;
    grid-template-columns: 175px minmax(0, 1fr);
}

.modern-sidebar {
    min-height: 730px;
    padding: 34px 18px;
    background-color: #650e25;
    color: #ffffff;
}

.modern-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 36px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #650e25;
    font-family: Georgia, serif;
    font-size: 23px;
}

.modern-sidebar .resume-group {
    margin-bottom: 28px;
}

.modern-sidebar .resume-group h4 {
    border-bottom: 1px solid rgb(255 255 255 / 25%);
    color: #ffffff;
    font-size: 13px;
}

.modern-sidebar .resume-group p {
    color: #f4dfe5;
    font-size: 11.5px;
    overflow-wrap: anywhere;
}

.modern-sidebar .resume-group strong {
    font-size: 12px;
}

.modern-content {
    min-width: 0;
    padding: 35px 25px;
}

.modern-header {
    margin-bottom: 38px;
}

.modern-header h3 {
    font-size: 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.modern-header p {
    margin-top: 7px;
    color: #985363;
    font-size: 13px;
}

.modern-content .resume-group h4 {
    border-bottom: 1px solid #e4d7dc;
    font-size: 14px;
}

.minimal-resume {
    padding: 35px 32px;
}

.minimal-header {
    position: relative;
    margin-bottom: 27px;
    padding-bottom: 17px;
    text-align: center;
}

.minimal-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 65px;
    height: 3px;
    background-color: #800020;
    transform: translateX(-50%);
}

.minimal-header h3 {
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.minimal-header > p {
    margin-top: 6px;
    color: #800020;
    font-size: 14px;
    font-weight: 600;
}

.minimal-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 18px;
    padding: 12px;
    border: 1px solid #f0e7e9;
    border-radius: 5px;
    background-color: #faf6f7;
}

.minimal-contact span {
    color: #62575a;
    font-size: 11px;
}

.minimal-resume .resume-group {
    margin-bottom: 22px;
}

.minimal-resume .resume-group h4 {
    position: relative;
    margin-bottom: 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid #e4d9dc;
    color: #292124;
    font-size: 14px;
    letter-spacing: 0.9px;
}

.minimal-resume .resume-group h4::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 38px;
    height: 2px;
    background-color: #800020;
}

.minimal-resume .resume-group p {
    color: #4f484a;
    font-size: 12.5px;
}

.minimal-resume .resume-entry {
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 2px solid #ead9de;
}

.minimal-entry-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 15px;
}

.minimal-entry-heading strong {
    margin-bottom: 0;
    font-size: 13px;
}

.minimal-entry-heading span {
    flex-shrink: 0;
    color: #756a6e;
    font-size: 11px;
}

.minimal-resume .minimal-company {
    margin-top: 4px;
    color: #800020;
    font-size: 12px;
    font-weight: 600;
}

.minimal-resume .resume-entry ul {
    margin-top: 8px;
}

.minimal-resume .resume-entry li {
    margin-bottom: 4px;
    font-size: 12px;
}

.creative-resume {
    overflow: hidden;
}

.creative-header {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 140px;
    padding: 27px;
    overflow: hidden;
    background-color: #edf1f9;
}

.creative-shape {
    position: absolute;
    border-radius: 50%;
}

.creative-shape-one {
    top: -100px;
    right: -45px;
    width: 230px;
    height: 230px;
    background-color: #d4ddef;
}

.creative-shape-two {
    top: -65px;
    right: -100px;
    width: 185px;
    height: 185px;
    background-color: #b8c6e2;
}

.creative-profile {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 18px;
}

.creative-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: #7188b1;
    color: #ffffff;
    font-family: Georgia, serif;
    font-size: 22px;
}

.creative-profile h3 {
    font-size: 23px;
    font-weight: 700;
    text-transform: uppercase;
}

.creative-profile p {
    margin-top: 6px;
    color: #62769c;
    font-size: 13px;
}

.creative-body {
    display: grid;
    grid-template-columns: 205px minmax(0, 1fr);
    padding: 27px 20px;
}

.creative-sidebar {
    min-width: 0;
    padding-right: 18px;
    border-right: 1px solid #e0e5ee;
}

.creative-content {
    min-width: 0;
    padding-left: 20px;
}

.creative-resume .resume-group h4 {
    border-bottom: 1px solid #dce3ef;
    color: #344968;
    font-size: 13px;
}

.creative-sidebar .resume-group p {
    font-size: 11.5px;
    overflow-wrap: anywhere;
}

.creative-content .resume-group p {
    font-size: 12px;
}

.creative-skill {
    margin-bottom: 15px;
}

.creative-skill > span {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
}

.skill-track {
    width: 100%;
    height: 7px;
    overflow: hidden;
    border-radius: 10px;
    background-color: #e1e7f1;
}

.skill-fill {
    height: 100%;
    border-radius: inherit;
    background-color: #7188b1;
}

.skill-90 {
    width: 90%;
}

.skill-85 {
    width: 85%;
}

.skill-75 {
    width: 75%;
}

.template-info {
    padding: 23px 3px 0;
}

.template-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.template-title h3 {
    font-family: var(--font-heading);
    font-size: 25px;
    font-weight: 600;
}

.template-title i {
    color: var(--color-primary);
    font-size: 13px;
}

.template-info > p {
    min-height: 70px;
    margin-top: 10px;
    color: var(--color-muted);
    font-size: 12px;
    line-height: 1.8;
}

.template-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 45px;
    padding: 0 16px;
    border: 1px solid var(--color-border);
    border-radius: 7px;
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
    transition: background-color 0.2s ease,
                border-color 0.2s ease,
                color 0.2s ease;
}

.template-button i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .template-button:hover {
        border-color: var(--color-primary);
        background-color: var(--color-primary);
        color: #ffffff;
    }

    .template-button:hover i {
        transform: translateX(4px);
    }
}

@media (max-width: 1024px) {
    .template-gallery {
        padding: 85px 0 100px;
    }

    .template-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px 25px;
    }

    .template-preview {
        height: 560px;
    }

    .resume-page {
        transform: translateX(-50%) scale(0.72);
    }
}

@media (max-width: 768px) {
    .template-gallery {
        padding: 75px 0 85px;
    }

    .gallery-header {
        margin-bottom: 35px;
    }

    .gallery-heading h2 {
        font-size: 39px;
    }

    .gallery-heading p {
        font-size: 13px;
    }

    .template-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .template-card {
        width: 100%;
        max-width: 470px;
        margin: 0 auto;
    }

    .template-preview {
        height: 590px;
    }

    .resume-page {
        transform: translateX(-50%) scale(0.76);
    }

    .template-info > p {
        min-height: auto;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .template-gallery {
        padding: 65px 0 75px;
    }

    .gallery-header {
        align-items: flex-start;
        gap: 15px;
    }

    .gallery-heading h2 {
        font-size: 33px;
        letter-spacing: -1px;
    }

    .gallery-heading p {
        font-size: 12px;
    }

    .gallery-count {
        font-size: 10px;
    }

    .template-preview {
        height: 455px;
    }

    .resume-page {
        top: 16px;
        transform: translateX(-50%) scale(0.57);
    }

    .template-title h3 {
        font-size: 23px;
    }
}

@media (max-width: 360px) {
    .resume-page {
        transform: translateX(-50%) scale(0.49);
    }

    .template-preview {
        height: 410px;
    }
}

.templates-cta {
    padding: 85px 0;
    background-color: var(--color-background);
    border-top: 1px solid var(--color-border);
}

.templates-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.templates-cta-text {
    max-width: 650px;
}

.templates-cta-text h2 {
    margin-top: 12px;
    font-size: clamp(32px, 3.5vw, 44px);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -1px;
}

.templates-cta-text p {
    max-width: 530px;
    margin-top: 16px;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.8;
}

.templates-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 22px;
    min-height: 52px;
    padding: 0 25px;
    border-radius: 7px;
    background-color: var(--color-primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.templates-cta-btn i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .templates-cta-btn:hover {
        background-color: var(--color-primary-hover);
    }

    .templates-cta-btn:hover i {
        transform: translateX(4px);
    }
}

@media (max-width: 768px) {
    .templates-cta {
        padding: 70px 0;
    }

    .templates-cta-content {
        align-items: flex-start;
        flex-direction: column;
        gap: 28px;
    }

    .templates-cta-text h2 {
        font-size: 36px;
    }

    .templates-cta-text p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .templates-cta {
        padding: 60px 0;
    }

    .templates-cta-text h2 {
        font-size: 31px;
    }

    .templates-cta-btn {
        min-height: 48px;
        padding: 0 20px;
    }
}

.executive-preview {
    background-color: #e9e7e4;
}

.executive-resume-preview {
    display: block;
    min-height: 730px;
    background-color: #ffffff;
    color: #292929;
    font-family: Arial, sans-serif;
}

.executive-preview-header {
    padding: 38px 30px 25px;
    background-color: #25272b;
    color: #ffffff;
}

.executive-preview-header > span {
    display: block;
    margin-bottom: 16px;
    color: #c7a1a8;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
}

.executive-preview-header h3 {
    margin-bottom: 7px;
    color: #ffffff;
    font-family: Georgia, serif;
    font-size: 27px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.executive-preview-header > p {
    color: #d5cdd0;
    font-size: 12px;
}

.executive-preview-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 25px;
    padding-top: 14px;
    border-top: 1px solid #55565a;
}

.executive-preview-contact p {
    color: #e2dcdd;
    font-size: 9px;
}

.executive-preview-body {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 25px;
    padding: 30px;
}

.executive-preview-main,
.executive-preview-side {
    min-width: 0;
}

.executive-preview-section {
    margin-bottom: 27px;
}

.executive-preview-section h4 {
    margin-bottom: 13px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e4dfe0;
    color: #800020;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.executive-preview-section > p {
    margin-bottom: 8px;
    color: #5d5b5b;
    font-size: 10px;
    line-height: 1.7;
}

.executive-preview-section > strong {
    display: block;
    margin-bottom: 6px;
    color: #292929;
    font-size: 10px;
    line-height: 1.5;
}

.executive-preview-entry {
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 2px solid #d9c2c8;
}

.executive-preview-entry:last-child {
    margin-bottom: 0;
}

.executive-preview-entry strong {
    display: block;
    margin-bottom: 6px;
    color: #292929;
    font-size: 11px;
    line-height: 1.5;
}

.executive-preview-entry span {
    display: block;
    margin-bottom: 8px;
    color: #8a6b72;
    font-size: 9px;
}

.executive-preview-entry p,
.executive-preview-entry li {
    color: #5d5b5b;
    font-size: 9px;
    line-height: 1.7;
}

.executive-preview-entry ul {
    margin: 7px 0 0;
    padding-left: 15px;
}

.executive-preview-entry li {
    margin-bottom: 5px;
}

.professional-preview {
    background-color: #e9e7e4;
}

.professional-resume-preview {
    min-height: 730px;
    padding: 38px 32px;
    background-color: #ffffff;
    color: #292929;
    font-family: Arial, sans-serif;
}

.professional-preview-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #292929;
    text-align: center;
}

.professional-preview-header h3 {
    margin-bottom: 7px;
    color: #242424;
    font-family: Georgia, serif;
    font-size: 27px;
    font-weight: 600;
}

.professional-preview-header > p {
    margin-bottom: 14px;
    color: #555555;
    font-size: 12px;
}

.professional-preview-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px 16px;
}

.professional-preview-contact p {
    color: #666666;
    font-size: 9px;
}

.professional-preview-section {
    margin-bottom: 25px;
}

.professional-preview-section h4 {
    margin-bottom: 12px;
    padding-bottom: 7px;
    border-bottom: 1px solid #bcbcbc;
    color: #292929;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.professional-preview-section > p {
    color: #555555;
    font-size: 10px;
    line-height: 1.7;
}

.professional-preview-entry {
    margin-bottom: 16px;
}

.professional-preview-entry:last-child {
    margin-bottom: 0;
}

.professional-preview-entry strong {
    display: block;
    margin-bottom: 5px;
    color: #292929;
    font-size: 11px;
    line-height: 1.5;
}

.professional-preview-entry span {
    display: block;
    margin-bottom: 7px;
    color: #666666;
    font-size: 9px;
}

.professional-preview-entry p,
.professional-preview-entry li {
    color: #555555;
    font-size: 9px;
    line-height: 1.6;
}

.professional-preview-entry ul {
    margin: 7px 0 0;
    padding-left: 16px;
}

.professional-preview-entry li {
    margin-bottom: 4px;
}
