:root {
    --color-primary: #331a5c;
    --color-primary-light: #4a2582;
    --color-background: #f8fafc;
    --color-text-dark: #1f2937;
    --color-text-gray: #4b5563;
    --color-card-bg: #ffffff;
    --color-red-highlight: #dc2626;
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-background);
    color: var(--color-text-dark);
    margin: 0;
    padding: 0;
}


/* Header Styles */
.header {
    background-color: #331a5c;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
}
.logo_con{
    width: 120px;
    height: 40px;
    background-color: #331a5c;
    display: flex;
    justify-content: center;
    border-radius: 10px;
}
.logo{
    width: 120px;
    height: 40px;
    object-fit: cover;
}

.location-text {
    font-size: 14px;
    color: #6b7280;
}

.location-value {
    font-weight: 600;
    color: #1f2937;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 26px;
}


.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background: #331a5c;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color:white;
    min-width: 160px;
    /* box-shadow: var(--shadow); */
    border-radius: 5px;
    z-index: 1;
    margin-top: 5px;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* .dropdown-content a:hover {
    background-color: var(--secondary-color);
} */

.dropdown:hover .dropdown-content {
    display: block;
}


/* Container & Layout */
.page-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 16px; 
    margin-top: 70px;
}

/* General Card Styling */
.card {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    overflow: hidden;
}

/* --- Header Section --- */
.banner-image-container {
    height: 250px;
    width: 100%;
    position: relative;
}
.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-primary);
    opacity: 0.2;
}

.header-content {
    padding:10px;
}

.scholarship-tag {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 9999px; /* Fully rounded */
    font-size: 0.75rem;
    font-weight: 600;
    background-color: var(--color-primary-light);
    color: var(--color-card-bg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.scholarship-title {
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.meta-info {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--color-text-gray);
}
.meta-info strong {
    color: var(--color-text-dark);
}
.meta-separator {
    margin: 0 12px;
    color: #d1d5db; /* Light gray */
}

/* --- Main Content Grid --- */
.content-grid {
    display: grid;
}

/* Key Information Sidebar */
.sidebar-card {
    padding: 24px;
    border-bottom: 1px solid #e5e7eb; /* Subtle border for separation */
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-dark);
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 8px;
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-gray);
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #f3f4f6; /* Very light separator */
}
.detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-item span:first-child {
    font-weight: 600;
    display: flex;
    align-items: center;
}
.detail-item span:last-child {
    font-weight: 600;
    color: var(--color-text-dark);
}

/* Deadline specific styling */
.deadline-highlight span:first-child svg {
    color: var(--color-red-highlight);
}
.deadline-highlight span:last-child {
    color: var(--color-red-highlight);
}

/* Icon styles (using inline SVG is standard HTML/CSS practice) */
.detail-item svg {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    color: var(--color-primary-light);
}

/* Apply Button Styling */
.apply-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 24px;
    border: none;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 8px;
    color: var(--color-card-bg);
    background-color: var(--color-primary);
    box-shadow: 0 4px 6px rgba(51, 26, 92, 0.3);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.apply-button:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(51, 26, 92, 0.4);
}

/* --- Main Content Details (Description/Requirements) --- */
.content-card-body {
    padding: 32px;
}
.content-card-title {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 700;
    color: var(--color-text-dark);
    border-bottom: 3px solid var(--color-primary);
    padding-bottom: 12px;
    margin-bottom: 1.5rem;
}

.prose p {
    line-height: 1.75;
    margin-bottom: 1em;
    color: var(--color-text-gray);
}

.requirements-list {
    list-style: disc;
    padding-left: 20px;
    color: var(--color-text-gray);
}
.requirements-list li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
    padding-left: 8px;
}

/* --- Responsiveness (Tablet/Desktop) --- */
@media (min-width: 1024px) {
    .content-grid {
        /* Sidebar (1/4) | Main Content (3/4) */
        grid-template-columns: 1fr 3fr; 
    }
    .sidebar-area {
        order: 1; /* Key details sidebar comes first visually */
    }
    .main-content-area {
        order: 2; /* Main description content comes second visually */
    }
}

@media (min-width: 768px) {
    .banner-image-container {
        height: 384px; /* h-96 on medium screens */
    }
    .header-content {
        padding: 40px;
    }
}