/* Useful Links Page Styling */

/* Hero Header */
.useful-links-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    text-align: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.useful-links-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3));
    z-index: 1;
    pointer-events: none;
}

.useful-links-hero .hero__logo-badge {
    position: relative;
    z-index: 2;
    animation: slideUp 0.8s ease;
}

.useful-links-hero .hero__logo-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(11, 94, 215, 0.3);
    margin-bottom: 20px;
    border: 4px solid white;
}

.useful-links-hero .hero__title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    margin: 10px 0;
    letter-spacing: -1px;
}

.useful-links-hero .hero__subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    font-weight: 500;
}

.links-main {
    padding: 60px 20px;
}

.links-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Links Grid */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 25px;
    background: white;
    border-radius: 16px;
    border-left: 5px solid #0b5ed7;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: #132032;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.link-card:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    transform: translateY(-8px);
}

/* Link Icon */
.link-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.link-card:hover .link-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* Link Card Text */
.link-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #132032;
    position: relative;
    z-index: 1;
}

.link-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

/* Link Arrow */
.link-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(11, 94, 215, 0.1);
    color: #0b5ed7;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.link-card:hover .link-arrow {
    background: #0b5ed7;
    color: white;
    transform: translateX(4px);
}

/* Footer */
.links-footer {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    margin-top: 40px;
    animation: slideUp 0.8s ease;
}

.links-footer p {
    margin: 8px 0;
    color: #666;
    font-weight: 500;
}

.links-footer p:first-child {
    font-weight: 600;
    color: #132032;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .useful-links-hero {
        min-height: 40vh;
        padding: 40px 20px;
    }

    .useful-links-hero .hero__title {
        font-size: 2rem;
    }

    .useful-links-hero .hero__subtitle {
        font-size: 1.1rem;
    }

    .links-main {
        padding: 40px 15px;
    }

    .links-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .link-card {
        padding: 20px 15px;
    }

    .link-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .link-card h3 {
        font-size: 1rem;
    }

    .link-card p {
        font-size: 0.85rem;
    }

    .links-footer {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .useful-links-hero {
        min-height: 35vh;
        padding: 30px 15px;
    }

    .useful-links-hero .hero__logo-image {
        width: 90px;
        height: 90px;
    }

    .useful-links-hero .hero__title {
        font-size: 1.6rem;
    }

    .useful-links-hero .hero__subtitle {
        font-size: 1rem;
    }

    .links-main {
        padding: 30px 10px;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    .link-card {
        padding: 18px 12px;
    }

    .link-icon {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }

    .link-card h3 {
        font-size: 0.95rem;
    }
}

/* Light Shadow Effect for Cards */
.link-card {
    background: white;
    background-image: radial-gradient(circle at 0% 0%, rgba(11, 94, 215, 0.03), transparent 50%);
}

/* Glassmorphism Effect */
.link-card {
    backdrop-filter: blur(2px);
}
