.friendlink {
    padding: 40px 20px 200px;
    max-width: 1440px;
    margin: 0 auto;
}

.section-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #0D2F81;
    position: relative;
    padding-bottom: 10px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #0D2F81, #1E88E5);
    border-radius: 3px;
}

.logo-links-container {
    margin-bottom: 60px;
}

.logo-links {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
}

.logo-item {
    transition: transform 0.3s ease;
}

.logo-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    height: 100%;
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
}

.logo-item:hover .logo-card {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(13,47,129,0.12);
    border-color: rgba(13,47,129,0.2);
}

.logo-item img {
    max-width: 100%;
    height: 70px;
    margin-bottom: 12px;
    border-radius: 10px;
}

.logo-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    text-align: center;
    margin-top: auto;
}

.text-links {
    padding-top: 20px;
}

.text-links-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.text-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #fff;
    border-radius: 10px;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
    position: relative;
    overflow: hidden;
}

.text-item:hover {
    color: #0D2F81;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(13,47,129,0.12);
    border-color: rgba(13,47,129,0.2);
}

.text-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #0D2F81, #1E88E5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.text-item:hover:before {
    opacity: 1;
}

.link-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: #1E88E5;
}

.text-item:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
}

.link-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.website-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url('./website.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: grayscale(0.5);
    transition: filter 0.3s ease;
}

.text-item:hover .website-icon {
    filter: grayscale(0);
}

@media only screen and (max-width: 1200px) {
    .logo-links {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .text-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media only screen and (max-width: 900px) {
    .text-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 767px) {
    .friendlink {
        padding: 30px 15px 120px;
    }

    .logo-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .text-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .text-item {
        padding: 12px 15px;
    }

    .logo-item img {
        height: 50px;
    }
    
    .logo-card {
        padding: 15px 10px;
    }
}