/* Additional styles for enhanced team page and country grid */

/* Team Member Enhancements */
.team-member {
    position: relative;
    overflow: hidden;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-color-1), var(--accent-color-2));
    border-radius: 3px 0 0 3px;
}

.team-member h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

/* Countries Grid Styling */
.specialization-section {
    background-color: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.specialization-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background-image: url('../images/world-map-dots.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.specialization-section h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.specialization-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color-2);
    border-radius: 3px;
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.country-item {
    background-color: var(--light-bg);
    padding: 0.8rem 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    font-weight: 500;
}

.country-item:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.country-item i {
    margin-right: 0.8rem;
    color: var(--accent-color-1);
}

.country-item:hover i {
    color: white;
}

/* Focus Section Styling */
.focus-section {
    background-color: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
    border-left: 5px solid var(--accent-color-3);
}

.focus-section h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.focus-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color-3);
    border-radius: 3px;
}

.focus-section p {
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.focus-section a {
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: underline;
}

.focus-section a:hover {
    color: var(--accent-color-1);
}

/* Enhanced Scholarship Page */
.scholarships-grid {
    margin-top: 3rem;
}

.scholarship-card {
    position: relative;
    overflow: hidden;
}

.scholarship-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--accent-color-1), var(--accent-color-2), var(--accent-color-3), var(--accent-color-4));
    border-radius: 12px 12px 0 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .countries-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .specialization-section, .focus-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .countries-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* Animation for country items */
.country-item {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation delay for country items */
.country-item:nth-child(1) { animation-delay: 0.1s; }
.country-item:nth-child(2) { animation-delay: 0.15s; }
.country-item:nth-child(3) { animation-delay: 0.2s; }
.country-item:nth-child(4) { animation-delay: 0.25s; }
.country-item:nth-child(5) { animation-delay: 0.3s; }
.country-item:nth-child(6) { animation-delay: 0.35s; }
.country-item:nth-child(7) { animation-delay: 0.4s; }
.country-item:nth-child(8) { animation-delay: 0.45s; }
.country-item:nth-child(9) { animation-delay: 0.5s; }
.country-item:nth-child(10) { animation-delay: 0.55s; }
/* ... and so on for all country items */
