/* Global Styles */
:root {
    /* Okabe & Ito Color Palette (Color Blind Safe) */
    --primary-color: #0072B2; /* Blue */
    --primary-light: #56B4E9; /* Sky Blue */
    --primary-dark: #005080;
    --secondary-color: #000000; /* Black for text */
    --accent-color: #E69F00; /* Orange */
    --success-color: #009E73; /* Bluish Green */
    --text-color: #000000;
    --text-light: #444444;
    --bg-light: #F0F0F0;
    --white: #ffffff;
    --font-family: 'Poppins', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.2);
}

* {
    border-radius: 0 !important; /* Force sharp corners everywhere */
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--secondary-color);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    padding: 10px 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-light {
    padding: 5px 20px;
    border: 2px solid var(--white);
    font-weight: 600;
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--secondary-color);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    color: var(--secondary-color);
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 6px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    font-weight: 500;
}

/* Top Bar */
.top-bar {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.95rem;
    font-weight: 500;
}

.top-bar a {
    color: var(--white);
}

.top-bar .left-info span {
    margin-right: 20px;
}

.top-bar .left-info i {
    color: var(--accent-color);
    margin-right: 5px;
}

/* Navbar */
.navbar {
    background-color: var(--white) !important;
    box-shadow: var(--shadow-sm);
    padding: 20px 0;
    border-bottom: 4px solid var(--primary-color);
}

.navbar-brand .logo-img {
    max-height: 70px;
}

.nav-link {
    color: var(--secondary-color) !important;
    font-weight: 700;
    margin: 0 15px;
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
    background-color: transparent !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 4px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    background-color: #000; /* Fallback */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Darker overlay for better contrast */
    z-index: 0;
}

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

.hero-section h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 25px;
    color: var(--white);
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
    text-transform: uppercase;
}

.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    background-color: rgba(0,0,0,0.5);
    padding: 10px;
}

/* Donation Categories */
.categories-section {
    padding: 80px 0;
    background-color: var(--white);
}

.category-card {
    border: 2px solid #eee;
    transition: all 0.3s ease;
    background: var(--white);
    height: 100%;
    text-align: center;
    padding: 30px 20px;
    display: block;
    color: var(--secondary-color);
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.category-card img {
    height: 100px;
    width: auto;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-card .card-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
    text-transform: uppercase;
}

/* Latest Donations */
.latest-donations-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.donation-card {
    border: 1px solid #ddd;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.donation-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.donation-card .image-container {
    position: relative;
    height: 300px; /* Increased height for larger images */
    overflow: hidden;
    width: 100%;
}

.donation-card .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.donation-card:hover .image-container img {
    transform: scale(1.05);
}

.donation-card .badge {
    background-color: var(--primary-color) !important;
    font-weight: 700;
    padding: 10px 15px;
    font-size: 0.85rem;
    text-transform: uppercase;
    border-radius: 0 !important;
}

.donation-card .card-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.donation-card .card-title {
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-size: 1.25rem;
}

.donation-card .progress {
    height: 20px; /* Thicker progress bar for visibility */
    background-color: #ddd;
    margin-bottom: 20px;
    border: 1px solid #ccc;
}

.donation-card .progress-bar {
    background-color: var(--accent-color);
}

.donation-stats {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 25px;
    margin-top: auto;
}

.donation-stats strong {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.donation-card .btn-donate {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    font-size: 1rem;
}

.donation-card .btn-donate:hover {
    background-color: var(--primary-dark);
}

/* Latest News */
.latest-news-section {
    padding: 100px 0;
    background-color: var(--white);
}

.news-card {
    border: 1px solid #eee;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.news-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.news-card .card-body {
    padding: 30px;
}

.news-card .date {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
    text-transform: uppercase;
}

.news-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    line-height: 1.4;
    font-weight: 700;
}

.news-card .read-more {
    color: var(--secondary-color);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 2px;
}

.news-card .read-more:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Partners */
.partners-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    border-top: 1px solid #ddd;
}

.partners-logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    align-items: center;
}

.partner-item {
    background: var(--white);
    padding: 30px;
    border: 1px solid #ddd;
    transition: transform 0.3s ease;
    width: 180px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-item:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.partner-logo {
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.partner-item:hover .partner-logo {
    filter: grayscale(0);
    opacity: 1;
}

/* Footer */
.footer-section {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 80px 0 30px;
    border-top: 5px solid var(--accent-color);
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section a {
    color: var(--white);
    opacity: 0.8;
}

.footer-section a:hover {
    color: var(--accent-color);
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 50px;
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .donation-card .image-container {
        height: 250px;
    }
}
