/* Scholarship Card Styles for Scholarships Page */
.scholarship-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.scholarship-card-new {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.scholarship-card-new:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.scholarship-card-new h3 {
    color: #2a4099;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.scholarship-card-new p {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.scholarship-card-new .divider {
    height: 1px;
    background-color: #eee;
    margin: 15px 0;
    width: 100%;
}

.scholarship-card-new .details {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.scholarship-card-new .country {
    display: flex;
    align-items: center;
    color: #666;
    font-weight: 500;
}

.scholarship-card-new .country i {
    margin-right: 8px;
    color: #27ae60;
    font-size: 1.1rem;
}

.scholarship-card-new .learn-more {
    display: inline-block;
    background-color: #2a4099;
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    align-self: flex-start;
}

.scholarship-card-new .learn-more:hover {
    background-color: #1a237e;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.scholarships-header {
    text-align: center;
    margin-bottom: 40px;
}

.scholarships-header h2 {
    color: #2a4099;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.scholarships-header p {
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}


/* ======================================== */
/* Visual Enhancements & Animations V3    */
/* ======================================== */

/* Subtle background for scholarship listing page */
.scholarship-listing-page {
    padding: 4rem 0;
    background-color: #f0f4f8; /* Lighter blue-grey background */
    position: relative;
}

/* Optional: Add a very subtle pattern */
.scholarship-listing-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/subtle-pattern.png'); /* Needs a subtle pattern image */
    background-repeat: repeat;
    opacity: 0.03;
    z-index: 0;
}

.scholarship-listing-page .container {
    position: relative; /* Ensure content is above the pattern */
    z-index: 1;
}

/* Enhanced Page Header Styling */
.scholarships-header {
    text-align: center;
    margin-bottom: 4rem; /* Increased margin */
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

.scholarships-header h2 {
    color: var(--primary-color);
    font-size: 2.8rem; /* Larger heading */
    margin-bottom: 1rem;
    font-weight: 700;
}

.scholarships-header p {
    color: #555;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Card Entry Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scholarship-card-new {
    /* Apply animation */
    opacity: 0; /* Start hidden */
    animation: fadeInUp 0.5s ease-out forwards;
    /* Add staggered delay using JS if possible, otherwise rely on CSS order */
}

/* Stagger animation delay (Example for first few cards) */
.scholarship-cards-container .scholarship-card-new:nth-child(1) { animation-delay: 0.1s; }
.scholarship-cards-container .scholarship-card-new:nth-child(2) { animation-delay: 0.2s; }
.scholarship-cards-container .scholarship-card-new:nth-child(3) { animation-delay: 0.3s; }
.scholarship-cards-container .scholarship-card-new:nth-child(4) { animation-delay: 0.4s; }
.scholarship-cards-container .scholarship-card-new:nth-child(5) { animation-delay: 0.5s; }
.scholarship-cards-container .scholarship-card-new:nth-child(6) { animation-delay: 0.6s; }
/* Add more if needed */

/* Refined Card Hover Effect */
.scholarship-card-new:hover {
    transform: translateY(-12px) scale(1.02); /* Slightly more pronounced lift and scale */
    box-shadow: 0 18px 35px rgba(42, 64, 153, 0.15); /* Softer, blue-tinted shadow */
}

/* Refined Button Style */
.scholarship-card-new .learn-more {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a237e 100%);
    border: none;
    box-shadow: 0 4px 10px rgba(42, 64, 153, 0.3);
}

.scholarship-card-new .learn-more:hover {
    background: linear-gradient(135deg, #1a237e 0%, var(--primary-color) 100%);
    box-shadow: 0 6px 15px rgba(42, 64, 153, 0.4);
}

/* Ensure overall site consistency improvements */
body {
    font-family: 'Roboto', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

/* Add smooth scrolling if not already present */
html {
    scroll-behavior: smooth;
}

