:root {
    --primary-color: #d4af37; /* Gold */
    --primary-light: #f5d76e;
    --primary-dark: #b8860b;
    --secondary-color: #222222;
    --text-dark: #111111;
    --text-light: #777777;
    --text-white: #f8f9fa;
    --background-light: #ffffff;
    --background-off: #f8f9fa;
    --background-dark: #111111;
    --background-darker: #000000;
    --success-color: #4cc9f0;
    --warning-color: #f8961e;
    --danger-color: #ef476f;
    --border-radius: 8px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --gold-gradient: linear-gradient(135deg, #d4af37, #f5d76e);
    --dark-gradient: linear-gradient(135deg, #111111, #333333);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-dark);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-white);
}

h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-white);
}

h1 {
    font-size: 2.75rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.3px;
}

h3 {
    font-size: 1.75rem;
    letter-spacing: -0.2px;
}

h4 {
    font-size: 1.35rem;
}

h5 {
    font-size: 1.1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

a:hover {
    color: var(--primary-light);
}

.gold-text {
    color: var(--primary-color);
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

.divider-line {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    flex-grow: 1;
    max-width: 200px;
}

.divider-icon {
    margin: 0 1rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.5px;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn:hover:before {
    width: 100%;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background: var(--gold-gradient);
    color: var(--text-dark);
    border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-white);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background-color: #333333;
    color: var(--text-white);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-dark);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.btn-small {
    padding: 10px 18px;
    font-size: 0.875rem;
}

/* Header */
header {
    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 20px;
}

.logo h1 {
    font-size: 1.75rem;
    margin-bottom: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--text-white);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    display: flex;
    align-items: center;
}

nav ul li a i {
    margin-right: 6px;
    font-size: 0.875rem;
    color: var(--primary-color);
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--gold-gradient);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary-light);
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

.menu-toggle {
    display: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background-color: var(--background-darker);
    color: var(--text-white);
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1507679799987-c73779587ccf?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2342&q=80') no-repeat center center;
    background-size: cover;
    opacity: 0.2;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.9));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 700px;
    margin-bottom: 4rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    color: var(--text-white);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat-box {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    flex: 1;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(212, 175, 55, 0.4);
}

.stat-box h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.stat-box p {
    margin-bottom: 0;
    opacity: 0.8;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.875rem;
}

/* Categories Section */
.categories {
    padding: 6rem 0;
    background-color: var(--background-dark);
    position: relative;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.category-card {
    background-color: rgba(34, 34, 34, 0.7);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.category-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), transparent);
    z-index: -1;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(212, 175, 55, 0.3);
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: var(--gold-gradient);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 1.75rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.category-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.category-card h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold-gradient);
}

.category-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.category-link {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 3px;
}

.category-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-gradient);
    transition: var(--transition);
}

.category-link i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.category-link:hover:after {
    width: 100%;
}

.category-link:hover i {
    transform: translateX(5px);
}

/* Top Picks Section */
.top-picks {
    padding: 6rem 0;
    background-color: var(--background-darker);
    position: relative;
}

.grants-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 850px;
    margin: 4rem auto 0;
}

.grant-card {
    background-color: rgba(34, 34, 34, 0.7);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
}

.grant-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(212, 175, 55, 0.3);
}

.grant-card.featured {
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.grant-card.featured:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), transparent);
    z-index: 0;
}

.grant-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gold-gradient);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.grant-header {
    padding: 2rem 2rem 1rem;
    position: relative;
    z-index: 1;
}

.grant-header h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    color: var(--text-white);
}

.grant-amount {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 0.5rem;
    display: inline-block;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.grant-body {
    padding: 1rem 2rem 2rem;
    position: relative;
    z-index: 1;
}

.grant-body p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.grant-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.ease-rating {
    display: inline-flex;
    align-items: center;
}

.ease-rating i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.deadline {
    display: inline-flex;
    align-items: center;
}

.deadline i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.grants-list .btn-outline {
    margin: 2rem auto 0;
    display: block;
    width: fit-content;
}

/* Search & Filter Section */
.search-filter {
    padding: 6rem 0;
    background-color: var(--background-dark);
    color: var(--text-white);
    position: relative;
}

.search-container {
    max-width: 900px;
    margin: 4rem auto 0;
    background-color: rgba(34, 34, 34, 0.7);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.search-box {
    position: relative;
    margin-bottom: 2rem;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.25rem;
}

#grant-search {
    width: 100%;
    padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(212, 175, 55, 0.2);
    margin-bottom: 0;
    font-size: 1rem;
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--text-white);
    transition: var(--transition);
}

#grant-search:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

#grant-search::placeholder {
    color: var(--text-light);
}

.search-clear {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.search-clear:hover {
    opacity: 1;
    color: var(--primary-color);
}

.filter-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.filter-group label i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.filter-group select {
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(212, 175, 55, 0.2);
    font-size: 0.95rem;
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--text-white);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23d4af37' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
    transition: var(--transition);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.filter-tag {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tag:hover {
    background-color: rgba(212, 175, 55, 0.2);
}

.filter-tag i.fa-times {
    font-size: 0.75rem;
}

.search-results-count {
    color: var(--text-light);
    font-size: 0.95rem;
    text-align: center;
    margin-top: 1.5rem;
}

.search-results-count span {
    color: var(--primary-color);
    font-weight: 600;
}

/* All Grants Section */
.all-grants {
    padding: 6rem 0;
    background-color: var(--background-darker);
    position: relative;
}

.grants-accordion {
    max-width: 950px;
    margin: 4rem auto 0;
}

.category-section {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(212, 175, 55, 0.1);
    background-color: rgba(34, 34, 34, 0.7);
    transition: var(--transition);
}

.category-section:hover {
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.category-header {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 1.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.category-header:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

.category-header h3 {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.35rem;
}

.category-header h3 i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.toggle-icon {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: var(--transition);
}

.category-section.active .toggle-icon {
    transform: rotate(45deg);
}

.category-content {
    background-color: transparent;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.category-section.active .category-content {
    padding: 2.5rem;
    max-height: 5000px;
}

.no-results {
    width: 100%;
    padding: 50px 20px;
    text-align: center;
    background-color: #1a1a1a;
    border-radius: 10px;
    margin-bottom: 30px;
}

.no-results-content {
    max-width: 500px;
    margin: 0 auto;
}

.no-results i {
    font-size: 48px;
    color: #d4af37;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
}

.no-results p {
    color: #aaa;
    margin-bottom: 20px;
}

.grant-detail {
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    padding-bottom: 3rem;
    margin-bottom: 3rem;
}

.grant-detail:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.grant-detail-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.grant-detail-header h4 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-white);
    flex: 1;
    min-width: 300px;
}

.grant-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.grant-tag {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.grant-tag i {
    font-size: 0.8rem;
}

.grant-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid rgba(212, 175, 55, 0.05);
}

.grant-info-item h5 {
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.grant-info-item h5 i {
    color: var(--primary-color);
}

.grant-info-item p {
    color: var(--text-white);
    font-size: 0.95rem;
    line-height: 1.6;
}

.stars {
    color: var(--primary-color);
    letter-spacing: 2px;
    margin-right: 0.5rem;
}

.external-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.external-link:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.grant-details-section {
    margin-top: 2rem;
}

.details-tab-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.05);
}

.details-tabs {
    display: flex;
    background-color: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.details-tab {
    padding: 1.25rem 2rem;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.details-tab:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gold-gradient);
    transition: var(--transition);
}

.details-tab.active {
    color: var(--primary-color);
}

.details-tab.active:after {
    width: 100%;
}

.details-tab:hover {
    color: var(--primary-light);
}

.details-content {
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.2);
}

.details-pane {
    display: none;
}

.details-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.details-pane h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.details-pane p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.details-pane ol, .details-pane ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.details-pane li {
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

/* About Section */
.about {
    padding: 6rem 0;
    background-color: var(--background-dark);
    position: relative;
}

.about-content {
    max-width: 1100px;
    margin: 4rem auto 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 100%;
}

.about-image:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    z-index: 1;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text {
    color: var(--text-light);
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--gold-gradient);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-text p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Footer */
footer {
    background-color: var(--background-darker);
    color: var(--text-white);
    position: relative;
}

.footer-top {
    padding: 5rem 0 3rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.footer-logo h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.footer-logo p {
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--text-dark);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-categories h4,
.footer-newsletter h4 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-links h4:after,
.footer-categories h4:after,
.footer-newsletter h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold-gradient);
}

.footer-links ul,
.footer-categories ul {
    list-style: none;
}

.footer-links li,
.footer-categories li {
    margin-bottom: 1rem;
}

.footer-links a,
.footer-categories a {
    color: var(--text-light);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover,
.footer-categories a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-newsletter p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.newsletter-form {
    display: flex;
    position: relative;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(212, 175, 55, 0.2);
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--text-white);
    font-size: 0.95rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.newsletter-form button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gold-gradient);
    color: var(--text-dark);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    transform: translateY(-50%) scale(1.1);
}

.footer-bottom {
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gold-gradient);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Micro-interactions */
.btn:active {
    transform: scale(0.98);
}

.category-card:active {
    transform: scale(0.98);
}

.grant-card:active {
    transform: scale(0.98);
}

.social-icon:active {
    transform: scale(0.9);
}

.details-tab:active {
    transform: scale(0.95);
}

/* Additional Styles */
.mobile-hidden {
    display: none !important;
}

.menu-toggle {
    display: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.menu-toggle:hover {
    color: var(--primary-light);
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image {
        max-height: 400px;
    }
    
    .grant-detail-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .grant-tags {
        margin-top: -0.5rem;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 20px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        padding: 1.5rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        z-index: 999;
        transition: var(--transition);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
    }
    
    nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 1rem 0;
    }
    
    .hero {
        padding: 5rem 0 3rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .filter-options {
        grid-template-columns: 1fr;
    }
    
    .grant-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .grant-amount {
        margin-top: 0.5rem;
    }
    
    .grant-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .details-tabs {
        flex-wrap: wrap;
    }
    
    .details-tab {
        flex: 1;
        min-width: 120px;
        padding: 1rem;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-logo, .footer-links, .footer-categories, .footer-newsletter {
        text-align: center;
    }
    
    .footer-links h4:after, .footer-categories h4:after, .footer-newsletter h4:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links a, .footer-categories a {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .newsletter-form {
        max-width: 350px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .grant-info-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .category-section.active .category-content {
        padding: 1.5rem;
    }
    
    .grant-detail {
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }
    
    .details-content {
        padding: 1.5rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}