html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #333;
    background-color: white;
    touch-action: pan-y;
}

.sticky {
    position: sticky;
    top: 0;
    z-index: 99;
}

.section-heading {
    font-size: 2rem;
    color: #b61614;
    margin-bottom: 55px;
    font-weight: bold;
    text-align: center;
}

.section-divider {
    border: none;
    border-top: 2px solid #eee;
    margin: 60px auto 40px;
    width: 80%;
}

.catalogue-section,
.unit-team-section {
    background-color: #fafafa;
    padding-top: 60px;
    padding-bottom: 60px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: white;
    margin-bottom: 40px;
}

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.8s ease-in-out;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 1;
}

.hero-bg.fade-out {
    opacity: 0;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), transparent);
    z-index: 2;
    top: 0;
    left: 0;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    z-index: 3;
    max-width: 600px;
    text-align: left;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: white;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
    color: white;
}

.hero-section,
.hero-bg,
.hero-overlay {
    max-width: 100vw;
    overflow-x: hidden;
}

.btn-explore {
    background-color: #b61614;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-explore:hover {
    background-color: #b61614;
    transform: translateY(-2px);
}

.hero-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 10px;
}

.hero-pagination .dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.hero-pagination .dot.active {
    background-color: white;
}

/* === SEARCH BAR STYLES === */
.search-section {
    padding: 0 20px;
    margin-bottom: 40px;
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
}

.search-bar {
    display: flex;
    width: 100%;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    outline: none;
    border-right: none;
}

.search-button {
    background-color: #b61614;
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    background-color: #b61614;
}

/* === TOP INVENTOR SECTION === */
.inventor-section {
    background: white;
    padding: 40px 0;
}

.inventor-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.inventor-card {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    padding: 0;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

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

.inventor-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: #f5f5f5;
    border-radius: 12px 12px 0 0;
}

.inventor-info {
    padding: 20px 15px;
    position: relative;
}

.inventor-name {
    font-weight: bold;
    margin: 10px 0 5px;
    font-size: 1.1rem;
    color: #333;
}

.inventor-title-role {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.rank-badge {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 4px solid white;
    transition: all 0.3s ease;
}

.inventor-card:hover .rank-badge {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
}

.rank-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #a8a8a8 100%);
}

.rank-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #a05a2c 100%);
}

.rank-4,
.rank-5 {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

/* === CATALOGUE SECTION === */
.catalogue-section {
    padding: 20px 0 50px;
    background: white;
}

.catalogue-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    padding: 0 20px;
    align-items: flex-start;
}

.flex-grow-1 {
    min-width: 0;
    /* Penting untuk flexbox truncation */
    flex: 1;
}

/* === FILTER TAGS === */
.filter-tags-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filter-tag {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f0f0f0;
    color: #555;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.filter-tag:hover {
    background-color: #e0e0e0;
}

.filter-tag.active {
    background-color: #b61614;
    color: white;
    border-color: #b61614;
}

.see-all-btn {
    background: transparent;
    border: 1px solid #b61614;
    color: #b61614;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.see-all-btn:hover {
    background-color: #b61614;
    color: white;
}

/* === PRODUCT SEARCH === */
.product-search-container {
    margin-bottom: 25px;
    width: 100%;
}

/* === FILTER SIDEBAR === */
.filter-sidebar {
    width: 250px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.filter-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.filter-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
    color: #333;
}

.filter-box {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

/* DROPDOWN FILTER STYLES */
.filter-group {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
    user-select: none;
}

.filter-group-title {
    font-weight: bold;
    margin: 0;
    color: #555;
    font-size: 0.95rem;
}

.filter-group-arrow {
    transition: transform 0.3s ease;
    color: #777;
    font-size: 0.8rem;
}

.filter-group-arrow.rotated {
    transform: rotate(180deg);
}

.filter-options {
    padding-top: 10px;
    max-height: 300px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.filter-options.collapsed {
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    opacity: 0;
}

.filter-option {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    padding: 4px 0;
}

.filter-option input {
    margin-right: 10px;
    accent-color: #b61614;
    cursor: pointer;
}

.filter-option label {
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    transition: color 0.2s;
}

.filter-option label:hover {
    color: #b61614;
}

.main-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* === PRODUCT GRID === */
.catalogue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
}

.card-title-container {
    width: 100%;
    overflow: hidden;
}

.card-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
    line-height: 1.4;
}

.d-flex.align-items-start {
    width: 100%;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.tooltip {
    font-size: 0.875rem;
    z-index: 9999 !important;
}

.tooltip-inner {
    max-width: 300px;
    text-align: left;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    background: #f5f5f5;
}

.product-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.product-description {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.product-link {
    display: inline-block;
    background-color: #b61614;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: background-color 0.3s ease;
    margin-top: auto;
    align-self: center;
    width: max-content;
}

.product-link:hover {
    background-color: #b61614;
}

/* === IMAGE ERROR HANDLING === */
.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e9e9e9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.8rem;
    text-align: center;
    padding: 10px;
}

.image-error {
    opacity: 0.6;
    background: #f8f9fa;
}

.custom-card {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    transition: 0.3s ease-in-out;
}

.custom-card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.ki-category-text {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.ki-type-text {
    font-size: 0.7rem;
    color: #888;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1200px) {
    .catalogue-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .catalogue-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .inventor-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .filter-sidebar {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .catalogue-container {
        flex-direction: column;
    }

    .filter-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 20px;
    }

    .catalogue-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .inventor-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-tags-container {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .catalogue-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-section {
        height: 400px;
    }

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

.year-filter-container {
    margin-top: 8px;
}

.filter-option.year-range {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
}

.filter-option.year-range input[type="number"] {
    width: 80px;
    margin-right: 0% !important;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
    text-align: center;
    background-color: white;
    transition: border-color 0.2s ease;
    -moz-appearance: textfield;
    /* Remove spinner di Firefox */
}

/* Remove spinner di Chrome, Safari, Edge */
.filter-option.year-range input[type="number"]::-webkit-outer-spin-button,
.filter-option.year-range input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.filter-option.year-range input[type="number"]:focus {
    outline: none;
    border-color: #b61614;
    box-shadow: 0 0 0 2px rgba(182, 22, 20, 0.1);
}

.filter-option.year-range input[type="number"]::placeholder {
    color: #999;
    font-size: 0.8rem;
}

.filter-option.year-range span {
    color: #666;
    font-weight: 500;
    font-size: 0.85rem;
    margin: 0 2px;
}

/* Label untuk "Rentang Tahun" */
.filter-option.year-range+label,
.filter-option label {
    display: block;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 6px;
    font-weight: 500;
}

/* Responsif untuk mobile */
@media (max-width: 576px) {
    .filter-option.year-range {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .filter-option.year-range input[type="number"] {
        width: 100%;
        max-width: none;
        text-align: left;
    }

    .filter-option.year-range span {
        display: none;
    }
}

/* Untuk container yang lebih rapi */
@media (max-width: 768px) {
    .filter-option.year-range {
        gap: 6px;
    }

    .filter-option.year-range input[type="number"] {
        width: 70px;
        font-size: 0.8rem;
    }
}

/* Hero Section for Innovation Grants */
.grants-hero {
    background: linear-gradient(135deg, #b61614 0%, #8b1013 100%);
    color: white;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.grants-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.grants-hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.grants-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.grants-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
    color: #fff !important;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    color: #fff !important;
}

/* Navigation Tabs */
.grants-navigation {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tab {
    padding: 20px 30px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-tab:hover {
    color: #b61614;
    background: rgba(182, 22, 20, 0.05);
}

.nav-tab.active {
    color: #b61614;
    border-bottom-color: #b61614;
}

/* Content Sections */
.grant-section {
    display: none;
    padding: 60px 0;
}

.grant-section.active {
    display: block;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* BTP Innovation Grants */
.btp-grants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.grant-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.grant-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #b61614, #d32f2f);
}

.grant-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.grant-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.grant-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #b61614, #d32f2f);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    box-shadow: 0 5px 15px rgba(182, 22, 20, 0.3);
}

.grant-icon i {
    font-size: 1.5rem;
    color: white;
}

.grant-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.grant-scheme {
    color: #b61614;
    font-weight: 600;
    font-size: 0.9rem;
}

.grant-description {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.grant-details {
    margin-bottom: 25px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.detail-value {
    color: #666;
    font-size: 0.9rem;
    text-align: right;
}

.funding-amount {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.requirements-list {
    list-style: none;
    margin: 20px 0;
}

.requirements-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
    font-size: 0.9rem;
}

.requirements-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 8px;
    color: #28a745;
    font-weight: bold;
}

.timeline-badge {
    background: #ffc107;
    color: #856404;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.apply-btn {
    background: linear-gradient(135deg, #b61614, #d32f2f);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.apply-btn:hover {
    background: linear-gradient(135deg, #8b1013, #b71c1c);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(182, 22, 20, 0.4);
    color: white;
}

/* Internal Grants Grid */
.internal-grants-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
    align-items: stretch;
}

.internal-grants-grid .grant-card:nth-child(4),
.internal-grants-grid .grant-card:nth-child(5) {
    grid-row: 2;
}

.internal-grants-grid .grant-card:nth-child(4) {
    grid-column: 1;
}

.internal-grants-grid .grant-card:nth-child(5) {
    grid-column: 2;
}

.external-grants-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
    align-items: stretch;
}

/* Adjust grid for card positioning */
.external-grants-grid .grant-card:nth-child(4),
.external-grants-grid .grant-card:nth-child(5) {
    grid-row: 2;
}

.external-grants-grid .grant-card:nth-child(4) {
    grid-column: 1;
}

.external-grants-grid .grant-card:nth-child(5) {
    grid-column: 2;
}

.external-grants-grid .grant-card:nth-child(6) {
    grid-column: 3;
}

.grant-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.grant-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #b61614, #d32f2f);
}

.grant-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-body {
    flex: 1;
}

.card-footer {
    margin-top: 20px;
}

.grant-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.grant-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #b61614, #d32f2f);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    box-shadow: 0 5px 15px rgba(182, 22, 20, 0.3);
}

.grant-icon i {
    font-size: 1.5rem;
    color: white;
}

.grant-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.grant-scheme {
    color: #b61614;
    font-weight: 600;
    font-size: 0.9rem;
}

.grant-description {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.grant-details {
    margin-bottom: 25px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.detail-value {
    color: #666;
    font-size: 0.9rem;
    text-align: right;
}

.funding-amount {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.unlimited-funding {
    background: linear-gradient(135deg, #6f42c1, #8e24aa);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.requirements-list {
    list-style: none;
    margin: 20px 0;
}

.requirements-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
    font-size: 0.9rem;
}

.requirements-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 8px;
    color: #28a745;
    font-weight: bold;
}

.timeline-badge {
    background: #ffc107;
    color: #856404;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge {
    background: #17a2b8;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.apply-btn {
    background: linear-gradient(135deg, #b61614, #d32f2f);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.apply-btn:hover {
    background: linear-gradient(135deg, #8b1013, #b71c1c);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(182, 22, 20, 0.4);
    color: white;
}

.learn-btn {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.learn-btn:hover {
    background: linear-gradient(135deg, #5a6268, #343a40);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .external-grants-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .external-grants-grid .grant-card:nth-child(5) {
        grid-column: 1;
    }

    .external-grants-grid .grant-card:nth-child(6) {
        grid-column: 2;
    }

    .internal-grants-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .internal-grants-grid .grant-card:nth-child(4),
    .internal-grants-grid .grant-card:nth-child(5) {
        margin-left: 0;
        margin-right: 0;
    }

    .internal-grants-grid .grant-card:nth-child(5) {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .internal-grants-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .internal-grants-grid .grant-card:nth-child(4),
    .internal-grants-grid .grant-card:nth-child(5) {
        margin-left: 0;
        margin-right: 0;
        max-width: none;
    }

    .grant-card {
        padding: 20px;
    }

    .grant-header {
        flex-direction: column;
        text-align: center;
    }

    .grant-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .detail-value {
        text-align: left;
    }
}

/* Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.grant-card {
    animation: slideInUp 0.6s ease forwards;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    max-width: 1000px;
    width: 90%;
    text-align: center;
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

.modal-image {
    width: 100%;
    /* Biar responsive */
    max-width: 1000px;
    /* Batas maksimal gambar */
    height: auto;
    /* Jaga rasio */
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
    /* Potong gambar kalau proporsinya beda */
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background-color: #007BFF;
    color: white;
}

.btn-secondary {
    background-color: #6C757D;
    color: white;
}