.footer {
    margin-top: 0 !important;
}

.resource-calculators {
    padding: 90px 0 45px;
    background-color: #ffffff;
}

.resource-calculators__inner {
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 58px;
}

.resource-calculators__media {
    width: 600px;
    height: 400px;
    flex: 0 0 600px;
    overflow: hidden;
    background-color: #f3f5f8;
}

.resource-calculators__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s ease;
}

.resource-calculators__media:hover img {
    transform: scale(1.04);
}

.resource-calculators__content {
    flex: 1 1 440px;
    max-width: 560px;
    color: #161a3d;
}

.resource-calculators__content h2 {
    margin: 0 0 24px;
    color: #161a3d;
    font-family: 'Hind-Medium', Arial, sans-serif;
    font-size: 40px;
    line-height: 1.2;
}

.resource-calculators__content p {
    margin: 0 0 58px;
    color: #161a3d;
    font-family: 'Hind-Light', Arial, sans-serif;
    font-size: 20px;
    line-height: 1.8;
}

.resource-calculators__btn {
    width: 280px;
    height: 50px;
    border-radius: 8px;
    background-image: linear-gradient(0deg, #0055a2 0%, #007ae9 100%), linear-gradient(#0055a2, #0055a2);
    background-blend-mode: normal, normal;
    color: #ffffff !important;
    font-family: 'Hind-Medium', Arial, sans-serif;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    /* box-shadow: 0 8px 18px rgba(0, 102, 189, 0.18); */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.resource-calculators__btn::after {
    content: "";
    width: 10px;
    height: 10px;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
    margin-right: 2px;
}

.resource-calculators__btn:hover {
    background-image: linear-gradient(0deg, #004787 0%, #0065c2 100%), linear-gradient(#004787, #004787);
    box-shadow: 0 4px 10px rgba(0, 91, 171, 0.15);
    transform: translateY(-3px);
}

.resource-calculators__btn:hover::after {
    transform: translateX(-6px) rotate(-45deg);
}

@media (max-width: 1500px) {
    .resource-calculators__inner {
        gap: 46px;
    }

    .resource-calculators__media {
        width: 600px;
        max-width: 100%;
    }
}

@media (max-width: 1200px) {
    .resource-calculators {
        padding: 70px 0 35px;
    }

    .resource-calculators__inner {
        gap: 36px;
    }

    .resource-calculators__media {
        width: 50%;
        height: auto;
        aspect-ratio: 600 / 400;
    }

    .resource-calculators__content h2 {
        font-size: 34px;
    }

    .resource-calculators__content p {
        margin-bottom: 38px;
        font-size: 18px;
        line-height: 1.7;
    }
}

@media (max-width: 900px) {
    .resource-calculators {
        padding: 55px 0 30px;
    }

    .resource-calculators__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .resource-calculators__media,
    .resource-calculators__content {
        width: 100%;
        max-width: 100%;
        flex: none;
    }

    .resource-calculators__media {
        height: auto;
        aspect-ratio: 600 / 400;
    }
}

@media (max-width: 767px) {
    .resource-calculators {
        padding: 40px 0 25px;
    }

    .resource-calculators__content h2 {
        margin-bottom: 16px;
        font-size: 30px;
    }

    .resource-calculators__content p {
        margin-bottom: 28px;
        font-size: 16px;
        line-height: 1.65;
    }

    .resource-calculators__btn {
        width: 100%;
        max-width: 280px;
        height: 50px;
        font-size: 16px;
    }
}

/* Aluminum Price Benchmark Section */
.resource-benchmark {
    padding: 35px 0 60px; /* Reduced bottom padding from 80px */
    background-color: #ffffff;
}

.resource-benchmark__header {
    text-align: center;
    margin-bottom: 40px;
}

.resource-benchmark__header h2 {
    font-size: 40px;
    color: #161a3d;
    margin-bottom: 15px;
    font-family: 'Hind-Medium', Arial, sans-serif;
    line-height: 1.2;
}

.resource-benchmark__header p {
    font-size: 20px;
    color: #161a3d;
    line-height: 1.6;
    font-family: 'Hind-Light', Arial, sans-serif;
    margin: 0 auto;
}

.resource-benchmark__cards {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.resource-benchmark__card {
    flex: 1;
    padding: 30px 40px;
    background-color: #ffffff;
    border-radius: 12px;
    border: solid 1px #bad0da;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.resource-benchmark__card:hover {
    border-color: #0055a2;
    box-shadow: 0 8px 24px rgba(0, 85, 162, 0.1);
}

.resource-benchmark__card h3 {
    font-size: 20px;
    color: #161a3d;
    margin-bottom: 20px;
    line-height: 1.35;
    font-family: 'Hind-Medium', Arial, sans-serif;
}

.resource-benchmark__price-val {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 15px;
}

.resource-benchmark__price-num {
    font-size: 40px;
    color: #161a3d;
    font-family: 'Hind-Medium', Arial, sans-serif;
    line-height: 1;
}

.resource-benchmark__price-unit {
    font-size: 16px;
    color: #555555;
    font-family: 'Hind-Light', Arial, sans-serif;
}

.resource-benchmark__trend-icon {
    width: 24px;
    height: auto;
    margin-right: auto;
}

.resource-benchmark__price-change {
    margin-bottom: 25px;
    font-family: 'Hind-Medium', Arial, sans-serif;
}

.resource-benchmark__change-amt {
    color: #161a3d;
    margin-left: 5px;
    font-size: 16px;
}

.resource-benchmark__change-pct.up {
    color: #ff1717;
    font-size: 14px;
}

.resource-benchmark__change-pct.down {
    color: #38a169;
    font-size: 14px;
}

.resource-benchmark__price-date {
    font-size: 14px;
    color: #888888;
    line-height: 1.5;
    margin: 0;
    font-family: 'Hind-Light', Arial, sans-serif;
    text-align: left;
}

.resource-benchmark__action {
    display: flex;
    justify-content: flex-start;
}

.resource-benchmark__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: 280px;
    height: 50px;
    background-image: linear-gradient(0deg, #0055a2 0%, #007ae9 100%), linear-gradient(#0055a2, #0055a2);
    background-blend-mode: normal, normal;
    color: #ffffff !important;
    font-family: 'Hind-Medium', Arial, sans-serif;
    font-size: 18px;
    border-radius: 8px;
    gap: 12px;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.resource-benchmark__btn::after {
    content: "";
    width: 10px;
    height: 10px;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
    margin-right: 2px;
}

.resource-benchmark__btn:hover {
    background-image: linear-gradient(0deg, #004787 0%, #0065c2 100%), linear-gradient(#004787, #004787);
    box-shadow: 0 4px 10px rgba(0, 91, 171, 0.15);
    transform: translateY(-2px);
}

.resource-benchmark__btn:hover::after {
    transform: translateX(-6px) rotate(-45deg);
}

@media (max-width: 1200px) {
    .resource-benchmark {
        padding: 30px 0 60px;
    }

    .resource-benchmark__header h2 {
        font-size: 34px;
    }
    
    .resource-benchmark__card {
        padding: 24px;
    }
}

@media (max-width: 992px) {
    .resource-benchmark__cards {
        flex-direction: column;
        gap: 15px;
    }

    .resource-benchmark__card {
        padding: 20px;
    }
    
    .resource-benchmark__price-val {
        margin-bottom: 10px;
    }
    
    .resource-benchmark__price-change {
        margin-bottom: 15px;
    }
}

/* Alloy & Material Guide Section */
.resource-alloy-guide {
    background-color: #f5f6f8;
    padding: 60px 0; /* Reduced from 100px */
}

.resource-alloy-guide__inner {
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.resource-alloy-guide__content {
    flex: 1 1 460px;
    max-width: 460px;
}

.resource-alloy-guide__content h2 {
    font-size: 40px;
    color: #161a3d;
    margin: 0 0 20px;
    font-family: 'Hind-Medium', Arial, sans-serif;
    line-height: 1.2;
}

.resource-alloy-guide__content p {
    font-size: 20px;
    color: #161a3d;
    margin: 0 0 15px;
    font-family: 'Hind-Light', Arial, sans-serif;
    line-height: 1.6;
}

.resource-alloy-guide__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-alloy-guide__list li {
    border-bottom: 1px solid #dcdfe5;
}

.resource-alloy-guide__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.resource-alloy-guide__item-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.resource-alloy-guide__icon {
    width: 22px;
    height: 26px;
    object-fit: contain;
}

.resource-alloy-guide__text {
    font-family: 'Hind-Light', Arial, sans-serif;
    font-size: 18px;
    line-height: 1.4;
    color: #161a3d;
    transition: color 0.3s ease;
}

.resource-alloy-guide__list a::after {
    content: "";
    width: 8px;
    height: 8px;
    border-left: 2px solid #0055a2;
    border-bottom: 2px solid #0055a2;
    transform: rotate(45deg);
    transition: transform 0.3s ease, border-color 0.3s ease;
    margin-left: 4px;
}

.resource-alloy-guide__list a:hover .resource-alloy-guide__text {
    color: #0055a2;
}

.resource-alloy-guide__list a:hover::after {
    transform: translateX(-4px) rotate(45deg);
    border-color: #0055a2;
}

.resource-alloy-guide__media {
    width: 600px;
    height: 440px;
    flex: 0 0 600px;
    overflow: hidden;
}

.resource-alloy-guide__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.resource-alloy-guide__media:hover img {
    transform: scale(1.03);
}

@media (max-width: 1400px) {
    .resource-alloy-guide__inner {
        max-width: 1200px;
        gap: 40px;
    }

    .resource-alloy-guide__media {
        width: 600px;
        height: auto;
        aspect-ratio: 800 / 440;
        flex: 0 0 600px;
    }
}

@media (max-width: 1200px) {
    .resource-alloy-guide {
        padding: 70px 0;
    }

    .resource-alloy-guide__content h2 {
        font-size: 34px;
    }

    .resource-alloy-guide__content p {
        font-size: 18px;
    }

    .resource-alloy-guide__text {
        font-size: 18px;
    }

    .resource-alloy-guide__media {
        width: 50%;
        flex: 0 0 50%;
    }
}

@media (max-width: 900px) {
    .resource-alloy-guide {
        padding: 50px 0;
    }

    .resource-alloy-guide__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px; /* Reduced from 40px */
    }

    .resource-alloy-guide__content {
        max-width: 100%;
        width: 100%;
    }

    .resource-alloy-guide__media {
        width: 100%;
        max-width: 100%;
        flex: none;
    }
}

/* Size, Gauge & Tolerance Charts Section */
.resource-charts {
    padding: 60px 0; /* Reduced from 100px */
    background-color: #ffffff;
}

.resource-charts__header {
    text-align: center;
    margin-bottom: 35px;
}

.resource-charts__header h2 {
    font-family: 'Hind-Medium', Arial, sans-serif;
    font-size: 40px;
    color: #161a3d;
    margin: 0 0 15px;
    line-height: 1.2;
}

.resource-charts__header p {
    font-family: 'Hind-Light', Arial, sans-serif;
    font-size: 18px;
    color: #161a3d;
    margin: 0;
}

.resource-charts__container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Left Panel */
.resource-charts__left {
    width: 800px;
    border-radius: 12px;
    border: solid 1px #bfbfbf;
    background-color: #ffffff;
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.resource-charts__left h3 {
    font-family: 'Hind-SemiBold', Arial, sans-serif;
    font-size: 24px;
    color: #161a3d;
    margin: 0 0 10px;
}

.resource-charts__desc {
    font-family: 'Hind-Light', Arial, sans-serif;
    font-size: 16px;
    color: #161a3d;
    line-height: 1.6;
    margin: 0 0 20px;
}

/* .resource-charts__left .resource-charts__desc {
    max-width: 60%;
} */

.resource-charts__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.resource-charts__item {
    width: 100%;
    height: 95px;
    background-color: #ffffff;
    border-radius: 8px;
    border: solid 1px #bfbfbf;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: default; /* Change cursor since it's not a link anymore */
}

.resource-charts__item:hover {
    border-color: #0055a2;
    box-shadow: 0 4px 12px rgba(0, 85, 162, 0.1);
}

.resource-charts__item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 5px;
}

.resource-charts__item span {
    font-family: 'Hind-Medium', Arial, sans-serif;
    font-size: 14px;
    color: #161a3d;
}

/* Right Panel */
.resource-charts__right {
    width: 360px; /* Adjust from 160px text to fit the image and content better */
    border-radius: 12px;
    border: solid 1px #bfbfbf;
    background-color: #ffffff;
    padding: 30px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.resource-charts__calc-bg {
    position: absolute;
    top: -24px;
    left: 0px;
    width: 280px; /* Increased from 220px */
    height: 210px; /* Increased from 160px */
    background-image: url('/images/staticimg/ChreCalculatorbg.webp'); /* Restored correct image path */
    background-size: contain;
    background-position: top left;
    background-repeat: no-repeat;
    z-index: 0;
}

.resource-charts__calc-icon {
    width: 50px;
    height: 64px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.resource-charts__right h3 {
    font-family: 'Hind-SemiBold', Arial, sans-serif;
    font-size: 24px;
    color: #161a3d;
    margin: 0 0 10px;
    position: relative;
    z-index: 1;
}

.resource-charts__right .resource-charts__desc {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.resource-charts__features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    position: relative;
    z-index: 1;
}

.resource-charts__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    /* margin-bottom: 12px; */
}

.resource-charts__features img {
    width: 18px;
    height: 16px;
    object-fit: contain;
}

.resource-charts__features span {
    font-family: 'Hind-Light', Arial, sans-serif;
    font-size: 16px;
    color: #161a3d;
}

/* Buttons */
.resource-charts__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    height: 50px;
    background-image: linear-gradient(0deg, #0055a2 0%, #007ae9 100%), linear-gradient(#0055a2, #0055a2);
    background-blend-mode: normal, normal;
    color: #ffffff !important;
    font-family: 'Hind-Medium', Arial, sans-serif;
    font-size: 18px;
    border-radius: 8px;
    gap: 15px;
    text-decoration: none;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.resource-charts__btn--small {
    width: 100%;
    box-sizing: border-box;
}

.resource-charts__btn::after {
    content: "";
    width: 10px;
    height: 10px;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
    margin-right: 2px;
}

.resource-charts__btn--contact::after {
    display: none;
}

.resource-charts__btn--contact {
    padding: 0 30px; /* Optional: if you need to adjust padding for centering */
}

.resource-charts__btn:hover {
    background-image: linear-gradient(0deg, #004787 0%, #0065c2 100%), linear-gradient(#004787, #004787);
    box-shadow: 0 4px 10px rgba(0, 91, 171, 0.15);
    transform: translateY(-2px);
}

.resource-charts__btn:hover::after {
    transform: translateX(-6px) rotate(-45deg);
}

@media (max-width: 1200px) {
    .resource-charts__container {
        flex-direction: column;
        align-items: center;
    }

    .resource-charts__left,
    .resource-charts__right {
        width: 100%;
        max-width: 800px;
        height: auto;
    }

    .resource-charts__grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

@media (max-width: 900px) {
    .resource-cta__inner {
        flex-direction: column;
        text-align: center;
        gap: 25px; /* Added to reduce huge gap on mobile */
    }

    .resource-cta__content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .resource-cta__actions {
        justify-content: center;
    }

    .resource-cta__media {
        flex: auto;
        width: 100%;
    }

    .resource-cta__media img {
        max-width: 100%;
        height: auto;
    }

    .resource-charts__container {
        flex-direction: column;
        align-items: center;
    }

    .resource-charts__left,
    .resource-charts__right {
        width: 100%;
        max-width: 100%;
    }

    .resource-charts__left .resource-charts__desc {
        max-width: 100%;
    }
}

/* Download Center Section */
.resource-downloads {
    background-color: #f5f6f8;
    padding: 60px 0; /* Reduced from 100px */
}

.resource-downloads__inner {
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.resource-downloads__media {
    width: 600px;
    height: 416px;
    border-radius: 12px;
    overflow: hidden;
    flex: 0 0 600px;
}

.resource-downloads__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.resource-downloads__media:hover img {
    transform: scale(1.03);
}

.resource-downloads__content {
    flex: 1;
    max-width: 500px;
}

.resource-downloads__content h2 {
    font-family: 'Hind-Medium', Arial, sans-serif;
    font-size: 40px;
    color: #161a3d;
    margin: 0 0 10px;
    line-height: 1.2;
}

.resource-downloads__desc {
    font-family: 'Hind-Light', Arial, sans-serif;
    font-size: 16px;
    color: #161a3d;
    line-height: 1.6;
    margin: 0 0 10px;
}

.resource-downloads__list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
    background-color: transparent;
    border-radius: 8px;
    overflow: hidden;
    border: solid 1px #e8ecf3;
}

.resource-downloads__item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: transparent;
    text-decoration: none;
    border-bottom: solid 1px #e8ecf3;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.resource-downloads__item:last-child {
    border-bottom: none;
}

.resource-downloads__item:hover {
    background-color: #ffffff;
}

.resource-downloads__item-left {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    width: 250px; /* Fixed width to align the right side elements */
    flex-shrink: 0;
}

.resource-downloads__icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    margin-top: 2px;
}

.resource-downloads__text-group {
    display: flex;
    flex-direction: column;
    /* gap: 4px; */
}

.resource-downloads__text-group .resource-downloads__item-title {
    font-family: 'Hind-Medium', Arial, sans-serif;
    font-size: 14px;
    color: #161a3d;
    margin: 0;
    line-height: 1.2;
    display: block;
}

.resource-downloads__text-group p {
    font-family: 'Hind-Light', Arial, sans-serif;
    font-size: 12px; /* Set to 12px instead of fixed height for better text rendering */
    color: #4a5164;
    margin: 0;
    line-height: 1.2;
}

.resource-downloads__item-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
    flex: 1;
}

.resource-downloads__divider {
    width: 1px;
    height: 20px;
    background-color: #dcdcdc;
    display: block;
}

.resource-downloads__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    height: 20px;
    background-color: #f3f5fa;
    border-radius: 1px;
    border: solid 1px #e8ecf3;
    font-family: 'Hind-Regular', Arial, sans-serif;
    font-size: 12px;
    color: #2a59e6;
    width: 65px; /* Set fixed width to align all tags */
    box-sizing: border-box;
}

.resource-downloads__explore {
    font-family: 'Hind-Medium', Arial, sans-serif;
    font-size: 14px;
    color: #3863e7;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
    position: relative;
    padding-left: 20px; /* Make room for absolute arrow */
}

/* Horizontal line of the arrow */
.resource-downloads__explore::before {
    content: "";
    position: absolute;
    width: 14px;
    height: 1px; /* Changed to an exact integer (1px) to prevent sub-pixel rendering issues */
    background-color: #3863e7;
    top: 50%;
    margin-top: -0.5px; /* Use margin-top for perfect pixel alignment instead of transform */
    left: 2px;
    transition: transform 0.3s ease;
}

/* Arrow head (right angle) */
.resource-downloads__explore::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    border-top: 1px solid #3863e7; /* Changed to an exact integer (1px) */
    border-left: 1px solid #3863e7; /* Changed to an exact integer (1px) */
    top: 50%;
    left: 0;
    margin-top: -3.5px; /* Use margin-top for perfect pixel alignment */
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
}

.resource-downloads__item:hover .resource-downloads__explore::before {
    transform: translateX(-4px);
}

.resource-downloads__item:hover .resource-downloads__explore::after {
    transform: translateX(-4px) rotate(-45deg);
}

.resource-downloads__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    height: 50px;
    background-image: linear-gradient(0deg, #0055a2 0%, #007ae9 100%), linear-gradient(#0055a2, #0055a2);
    background-blend-mode: normal, normal;
    color: #ffffff !important;
    font-family: 'Hind-Medium', Arial, sans-serif;
    font-size: 18px;
    border-radius: 8px;
    gap: 15px;
    text-decoration: none;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    align-self: flex-start;
}

.resource-downloads__btn::after {
    content: "";
    width: 10px;
    height: 10px;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
    margin-right: 2px;
}

.resource-downloads__btn:hover {
    background-image: linear-gradient(0deg, #004787 0%, #0065c2 100%), linear-gradient(#004787, #004787);
    box-shadow: 0 4px 10px rgba(0, 91, 171, 0.15);
    transform: translateY(-2px);
}

.resource-downloads__btn:hover::after {
    transform: translateX(-6px) rotate(-45deg);
}

/* CTA Section (Get a Quote) */
.resource-cta {
    padding: 60px 0; /* Reduced from 80px */
    background-color: #ffffff;
}

.resource-cta__inner {
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.resource-cta__content {
    flex: 1;
    max-width: 630px;
}

.resource-cta__dash {
    width: 46px;
    height: 6px;
    background-color: #005DB2;
    border-radius: 2px;
    margin-bottom: 20px;
}

.resource-cta__content h2 {
    font-family: 'Hind-SemiBold', Arial, sans-serif;
    font-size: 36px;
    color: #161a3d;
    margin: 0 0 15px;
    line-height: 1.2;
}

.resource-cta__content p {
    font-family: 'Hind-Light', Arial, sans-serif;
    font-size: 20px;
    color: #161a3d;
    line-height: 1.6;
    margin: 0 0 35px;
}

.resource-cta__actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.resource-cta__btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 216px;
    height: 50px;
    background-image: linear-gradient(0deg, #0055a2 0%, #007ae9 100%), linear-gradient(#0055a2, #0055a2);
    background-blend-mode: normal, normal;
    border-radius: 8px;
    font-family: 'Hind-Medium', Arial, sans-serif;
    font-size: 18px;
    color: #ffffff;
    text-decoration: none;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    gap: 16px;
    box-sizing: border-box;
}

.resource-cta__btn-primary::after {
    content: "";
    width: 10px;
    height: 10px;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
    margin-right: 2px;
}

.resource-cta__btn-primary:hover {
    background-image: linear-gradient(0deg, #004787 0%, #0065c2 100%), linear-gradient(#004787, #004787);
    box-shadow: 0 4px 10px rgba(0, 91, 171, 0.15);
    transform: translateY(-2px);
}

.resource-cta__btn-primary:hover::after {
    transform: translateX(-4px) rotate(-45deg);
}

.resource-cta__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 216px;
    height: 50px;
    border-radius: 8px;
    border: solid 1px #005DB2;
    background-color: transparent;
    font-family: 'Hind-Medium', Arial, sans-serif;
    font-size: 18px;
    color: #005DB2;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    gap: 16px;
    box-sizing: border-box;
}

.resource-cta__btn-secondary img {
    width: 22px;
    height: 24px;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.resource-cta__btn-secondary:hover {
    background-color: #0055a2;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: none; /* explicitly remove shadow */
}

/* Make the icon white when hovering */
.resource-cta__btn-secondary:hover img {
    filter: brightness(0) invert(1);
}

.resource-cta__media {
    flex: 0 0 360px;
    display: flex;
    justify-content: center;
}

.resource-cta__media img {
    width: 360px;
    height: 272px;
    object-fit: contain;
}

@media (max-width: 1200px) {
    .resource-downloads__inner {
        gap: 40px;
    }

    .resource-downloads__media {
        width: 50%;
        flex: 0 0 50%;
        height: auto;
        aspect-ratio: 600 / 416;
    }
}

@media (max-width: 900px) {
    .resource-downloads__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .resource-downloads__media {
        width: 100%;
        flex: none;
        max-width: 600px;
        margin: 0 auto;
    }

    .resource-downloads__content {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .resource-cta {
        padding: 30px 0; /* Reduced padding further for mobile */
    }

    .resource-cta__inner {
        gap: 20px;
    }

    .resource-cta__media {
        display: none;
    }

    .resource-cta__content h2 {
        font-size: 28px;
    }

    .resource-cta__content p {
        font-size: 16px;
    }

    .resource-cta__actions {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
    }

    .resource-cta__btn-primary,
    .resource-cta__btn-secondary {
        width: 100%;
        max-width: 300px;
    }

    .resource-charts {
        padding: 40px 0;
    }

    .resource-downloads {
        padding: 40px 0;
    }

    .resource-downloads__content h2 {
        font-size: 30px;
    }

    .resource-downloads__desc {
        font-size: 15px;
    }

    .resource-downloads__item {
        flex-wrap: wrap;
        padding: 15px;
    }

    .resource-downloads__item-left {
        width: 100%;
        margin-bottom: 8px;
    }

    .resource-downloads__item-right {
        width: 100%;
        justify-content: flex-start;
        padding-right: 33px; /* Align with text */
        /* gap: 15px; */
    }

    .resource-charts__header h2 {
        font-size: 30px;
    }

    .resource-charts__header p {
        font-size: 16px;
    }

    .resource-charts__container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .resource-charts__left,
    .resource-charts__right {
        width: 100%;
        max-width: 100%;
        padding: 20px;
    }

    .resource-charts__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .resource-charts__item {
        width: 100%;
    }

    .resource-alloy-guide {
        padding: 40px 0;
    }

    .resource-alloy-guide__inner {
        gap: 20px;
    }

    .resource-alloy-guide__content h2 {
        font-size: 30px;
        margin-bottom: 15px;
    }

    .resource-alloy-guide__content p {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .resource-alloy-guide__list a {
        padding: 10px 0;
    }

    .resource-alloy-guide__icon {
        width: 18px;
        height: 22px;
    }

    .resource-alloy-guide__text {
        font-size: 16px;
    }
}
