:root {
    --color-primary-blue: #1e40af; 
    --color-primary-light: #3b82f6;
    --color-bg-light: #f9fafb;
    --color-text-dark: #111827;
    --color-text-muted: #6b7280;
    --color-deadline-red: #ef4444;
    --color-shadow-light: rgba(0, 0, 0, 0.1);
    --color-shadow-hover: rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Navigation Bar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.4s ease, padding 0.4s ease;
}

nav.scrolled {
    background-color: #fff;
    padding: 15px 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-left: 10px;
}
.name-img{
    height: 40px;
    width: 70px;
}
nav.scrolled .logo-text {
    color: #331a5c;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav.scrolled .nav-links a {
    color: #331a5c;
}

.nav-links a:hover {
    color: #9c7bd8;
}

.menu-toggle {
    display: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

nav.scrolled .menu-toggle {
    color: #331a5c;
}

/* Hero Section */
.hero {
    height: 35vh;
    min-height: 300px;
    position: relative;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-size: cover;
    background-position: center;
    z-index: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(46, 40, 49, 0.555);
    z-index: 2;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3;
    width: 80%;
    max-width: 800px;
}

.hero-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: rgba(46, 40, 49, 0.329);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.hero-logo span {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
}

.logo-img{
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-position: center;
}

.hero-content h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.5rem;
    color: #e0d6f5;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Content Section */
.content {
    padding: 10px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.content h2 {
    font-size: 1.8rem;
    color: #331a5c;
    margin-bottom: 30px;
    text-align: center;
}

.content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #555;
    line-height: 1.8;
}



.nav-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 15px;
    overflow-x: auto; 
    white-space: nowrap; 
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e6f0; 
    background-color: #ffffff;
    padding-top: 10px;
}

.nav-container::-webkit-scrollbar {
    height: 6px;
}

.nav-container::-webkit-scrollbar-thumb {
    background-color: #a0aec0;
    border-radius: 3px;
}
.nav-container {
    scrollbar-width: thin;
    scrollbar-color: #a0aec0 transparent;
}

.cclink {
    display: inline-flex;
    align-items: center;
    padding: 5px 15px;
    font-size: 1rem;
    font-weight: 600; 
    color: #3182ce; 
    border-radius: 20px; 
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #ebf4ff;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    flex-shrink: 0;
    text-decoration: none;
}
.cclink:hover {
    color: #ffffff; 
    background-color: #4c85c7; 
    box-shadow: 0 4px 10px rgba(76, 133, 199, 0.4); 
    transform: translateY(-1px);
}
.cclink.active {
    color: #ffffff;
    background-color: #3182ce;
    border-color: #3182ce;
}











.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header {
    text-align: left;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.scholarship-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}


@media (min-width: 640px) {
    .scholarship-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .scholarship-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


@media (min-width: 1280px) {
    .scholarship-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.scholarship-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--color-shadow-light);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease-in-out;
    border-left: 5px solid transparent;
}

.scholarship-card:hover {
    box-shadow: 0 10px 20px var(--color-shadow-hover);
    transform: translateY(-5px);
    border-left-color: var(--color-primary-light); 
}


.banner-container {
    position: relative;
    height: 140px;
    background-size: cover;
    background-position: center;
}

.scholarship-type-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    color: white;
    border-radius: 9999px; /* Fully rounded */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tag-international { background-color: var(--color-primary-light); }
.tag-local { background-color: #10b981; } /* Green */


.card-content {
    padding: 16px;
}

.scholarship-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px; 
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.detail-item {
    display: flex;
    align-items: center; 
    line-height: 1.2;
    min-width: 0; 
}

detail-item strong {
    font-weight: 600;
    color: var(--color-text-dark);
    margin-right: 4px;
    flex-shrink: 0; 
}


.detail-item span {
    overflow: hidden;
    white-space: nowrap;  
    text-overflow: ellipsie;
    min-width: 0;
}

.detail-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    color: var(--color-primary-light);
    flex-shrink: 0; /* Prevents icon from shrinking */
}

/* Custom Icon Colors for variety */
.detail-item:nth-child(1) .detail-icon { color: var(--color-primary-light); }
.detail-item:nth-child(2) .detail-icon { color: #10b981; }
.detail-item:nth-child(3) .detail-icon { color: #f59e0b; }
.detail-item:nth-child(4) .detail-icon { color: #374151; }


/* Footer / Action Section */
.card-footer {
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.deadline-info {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-deadline-red);
}

.deadline-icon {
    width: 20px;
    height: 20px;
    margin-right: 4px;
    stroke-width: 2;
}

.apply-button {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    background-color: var(--color-primary-light);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
}

.apply-button:hover {
    background-color: var(--color-primary-blue);
}