﻿.button-card {
        width: 300px;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 6px #0000001a;
        background-color: white;
        position: relative;
    }

    .button-card .top {
        height: 150px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: white;
        font-size: 24px;
        font-weight: bold;
        position: relative;
    }

    .button-card .top img {
        position: relative;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .button-card .bottom {
        padding: 20px;
        background-color: #ffffff;
    }

    .button-card .bottom h3 {
        margin: 0 0 10px;
        font-size: 20px;
        font-weight: bold;
    }

    .button-card .bottom p {
        color: #726D81;
        margin: 0;
        font-size: 14px;
    }

    .buttooon-container {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
        padding: 20px;
    }

    @media (max-width: 1400px) {
        .buttooon-container {
            gap: 55px;
        }
    }

    .arrow {
        width: 25px;
        height: auto;
        margin-top: 15px;
        transition: fill 0.3s ease;
    }

    .buttooon-container a {
        text-decoration: none;
        color: inherit;
    }

    @media (max-width: 768px) {
        .buttooon-container {
            flex-direction: column;
            align-items: stretch;
            gap: 20px;
        }

        .button-card {
            display: flex;
            flex-direction: row-reverse;
            align-items: center;
            width: 100%;
            max-width: 100%;
            position: relative;
        }

        .button-card .top {
            width: 100%;
            height: auto;
        }

        .button-card .bottom {
            width: 100%;
            padding: 10px;
            text-align: left;
            position: relative;
        }

        .button-card .bottom h3 {
            font-size: 4vw;
        }

        .button-card .bottom p {
            font-size: 3vw;
        }

        .arrow {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 6vw;
            height: auto;
        }

        .main-cotnent {
            flex-direction: column;
            align-items: flex-end;
        }

        .p1 {
            margin-right: 0;
        }

        .main-content {
            margin-left: 20px;
            margin-right: 20px;
        }

    }

    @media (max-width: 470px) {
        .button-card .bottom {
            width: 100%;
            padding: 10px;
            text-align: left;
            position: relative;
        }

        .button-card .bottom h3 {
            font-size: 3.6vw;
        }

        .button-card .bottom p {
            font-size: 2.8vw;
        }

        .arrow {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 5vw;
            height: auto;
        }
    }

    @media (max-width: 400px) {
        .button-card .bottom {
            width: 100%;
            padding: 10px;
            text-align: left;
            position: relative;
        }

        .button-card .bottom h3 {
            font-size: 3.4vw;
        }

        .button-card .bottom p {
            font-size: 2.6vw;
        }

        .arrow {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 5vw;
            height: auto;
        }
    }

    .link {
        text-decoration: none;
        color: #54b77d;
        transition: color 0.3s ease;
    }

    .link:hover {
        color: #42a582;
    }

    .link:active {
        color: #5ce1b3;
    }

    header {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 80px;
    }

    .header-box {
        background-color: transparent;
        width: 100%;
        max-width: 900px;
        text-align: center;
        position: relative;
    }

    .header-box h1 {
        font-size: clamp(1.8rem, 3vw + 1rem, 3.2rem);
        color: #4A4E69;
        position: relative;
        line-height: 1.4;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-box h1::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 2px;
        background: #f4c430;
        border-radius: 1px;
    }

    .header-box p {
        font-size: clamp(0.9rem, 1vw + 0.5rem, 1.1rem);
        font-weight: 400;
        line-height: 1.8;
        color: #9A8C98;
        max-width: 85%;
        margin: 0 auto;
        margin-top: 10px;
    }

    @media (max-width: 768px) {
        .header-box h1 {
            font-size: clamp(1.5rem, 2vw + 1rem, 2.5rem);
            white-space: normal;
        }

        .header-box p {
            font-size: clamp(0.85rem, 1vw + 0.5rem, 1rem);
            padding: 0 1rem;
        }
    }

    @media (max-width: 480px) {
        .header-box h1 {
            padding-bottom: 0.2rem;
        }

        .header-box p {
            max-width: 95%;
        }
    }

    h2 {
        font-size: 35px;
    }

    .features-section {
        width: 100%;
        max-width: 1400px;
        margin: 1rem auto;
        padding: 0 1rem;
    }

    .features-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 5rem;
        align-items: start;
    }

    .feature-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .feature-title {
        color: #4A4E69;
        margin-bottom: 1.5rem;
        font-weight: bold;
        text-align: center;
    }

    .feature-description {
        font-size: clamp(1rem, 1vw + 0.5rem, 1.125rem);
        line-height: 1.8;
        color: #726D81;
        text-align: center;
        margin: 0;
    }

    @media (max-width: 1509px) {
        .main-content {
            font-size: 18px;
        }

        .main-content .header-text {
            font-size: 35px;
        }
    }

    @media (max-width: 1390px) {
        .main-content .header-text {
            font-size: 30px;
        }

        .main-content {
            margin-left: 80px;
            margin-right: 80px;
        }
    }

    @media (max-width: 1100px) {
        .main-content {
            margin-left: 60px;
            margin-right: 60px;
        }
    }

    @media (max-width: 1000px) {
        .main-content .header-text {
            font-size: 28px;
        }
    }

    @media (max-width: 900px) {
        .main-content {
            margin: 40px 20px;
        }

        .main-content p {
            font-size: 14px;
        }

        .main-content .header-text {
            font-size: 28px;
        }
    }

    @media (max-width: 400px) {
        .main-content .header-text {
            font-size: 24px;
        }
    }

    .category {
        flex: 1 1 200px;
        max-width: 220px;
    }

    .category h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
        border-bottom: 4px solid #4A4E69;
        padding-bottom: 0.5rem;
        color: #4A4E69;
        transition: color 0.3s ease, border-bottom 0.3s ease;
    }

    .category h2:hover {
        color: #C9ADA7;
        border-bottom: 4px solid #C9ADA7;
    }

    .link-box {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.2rem 1rem;
        color: #9A8C98;
        border-radius: 1.5rem;
        transition: background-color 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
        border: 1px solid transparent;
        text-decoration: none;
        margin-bottom: 0.5rem;
    }

    .link-box:hover {
        background-color: white;
        border: 1px solid #ccc;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        color: #4A4E69;
    }

    .link-icon {
        opacity: 0;
        transform: translateX(-4px);
        transition: all 0.3s ease;
        width: 20px;
        height: auto;
        color: #363852;
    }

    .link-box:hover .link-icon {
        opacity: 1;
        transform: translateX(0);
    }

    .category-link {
        text-decoration: none;
    }

    .button-card svg {
        color: #726D81;
    }

    .button-card:hover .map-arrow {
        fill: #493d9f;
    }

    .button-card:hover .health-arrow {
        fill: #1d8448;
    }

    .button-card:hover .bank-arrow {
        fill: #1E4E8C;
    }

    .button-card:hover .time-arrow {
        fill: #006C67;
    }

    .button-card:hover .math-arrow {
        fill: #c3aa4d;
    }

    .map-card:hover {
        box-shadow: 4px 8px 0 #493d9f33;
    }

    .health-card:hover {
        box-shadow: 4px 8px 0 #1d844833;
    }

    .bank-card:hover {
        box-shadow: 4px 8px 0 #1E4E8C33;
    }

    .time-card:hover {
        box-shadow: 4px 8px 0 #006C6733;
    }

    .math-card:hover {
        box-shadow: 4px 8px 0 #c3aa4d33;
    }
