:root {
    --primary-color: #054a91; /* Navy blue */
    --primary-color-light: #3a6ea5;
    --primary-color-dark: #03376d;
    --secondary-color: #1db954; /* Green */
    --secondary-color-light: #4cd964;
    --secondary-color-dark: #128f3e;
    --text-color: #333333;
    --text-color-light: #666666;
    --background-color: #ffffff;
    --background-color-alt: #f9f9f9;
    --border-color: #e0e0e0;
    --success-color: #4cd964;
    --warning-color: #ffcc00;
    --danger-color: #ff3b30;
    --info-color: #5ac8fa;
    --brown-color: #8B7355; /* Dull brown */
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

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

.btn-success {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-success:hover, 
.btn-success:focus {
    background-color: var(--secondary-color-dark);
    border-color: var(--secondary-color-dark);
}

/* Header/Navbar */
.navbar {
    background-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    color: #fff !important;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 40px;
    width: auto;
    margin-right: 10px;
    border-radius: 5px;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 1) !important;
}

.navbar-nav .active .nav-link {
    color: var(--secondary-color) !important;
}

/* Hero Section */
.hero {
    position: relative;
    color: white;
    min-height: 50px;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--primary-color-dark);
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 2s ease;
    transform: scale(1);
    overflow: hidden;
}

.hero-slide::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background-image: var(--slide-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(5px);
    z-index: -1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide.fade-out {
    opacity: 0;
    transform: scale(1.05);
}

.hero-slide.slide-in {
    animation: slideIn 1s forwards;
}

.hero-slide.slide-out {
    animation: slideOut 1s forwards;
}

.hero-slide.rotate-in {
    animation: rotateIn 1s forwards;
}

@keyframes slideIn {
    from { transform: translateX(30%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-30%); opacity: 0; }
}

@keyframes rotateIn {
    from { transform: rotate(5deg) scale(0.9); opacity: 0; }
    to { transform: rotate(0) scale(1); opacity: 1; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 74, 145, 0.7); /* Using primary color with opacity */
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 4rem 0;
    width: 100%;
}

/* Cards */
.card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
    border: none;
}

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

.card-title {
    color: var(--primary-color);
    font-weight: 600;
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

/* Section Titles */
.section-title {
    position: relative;
    margin-bottom: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.text-center .section-title:after {
    left: 50%;
    transform: translateX(-50%);
}

/* Navy Section Headers */
.brown-section-header {
    background-color: var(--primary-color);
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--secondary-color);
}

.brown-section-header h2, 
.brown-section-header h3 {
    color: #ffffff !important;
    margin: 0;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.brown-section-header p {
    color: #ffffff !important;
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Forms */
.form-control {
    border-radius: 0.25rem;
    border: 1px solid var(--border-color);
    padding: 0.75rem;
}

.form-control:focus {
    border-color: var(--primary-color-light);
    box-shadow: 0 0 0 0.25rem rgba(5, 74, 145, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Alerts */
.alert {
    border-radius: 0.25rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: rgba(29, 185, 84, 0.1);
    border-color: var(--secondary-color);
    color: var(--secondary-color-dark);
}

.alert-danger {
    background-color: rgba(255, 59, 48, 0.1);
    border-color: var(--danger-color);
    color: var(--danger-color);
}

/* Footer */
footer {
    background-color: var(--primary-color-dark);
    color: white;
    padding: 3rem 0;
}

footer h5 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1.25rem;
}

footer ul {
    list-style: none;
    padding-left: 0;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    margin-top: 2rem;
}

/* Page Sections */
.page-section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--background-color-alt) !important;
}

/* Resources Section */
.resource-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.resource-card .card-body {
    flex: 1;
}

.resource-category {
    display: inline-block;
    background-color: var(--primary-color-light);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

/* Partnership Section */
.partnership-logo {
    max-height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.social-links a {
    margin-right: 0.75rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* Support Q&A Section */
.question-card {
    margin-bottom: 1.5rem;
}

.question-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.question-meta {
    font-size: 0.85rem;
    color: var(--text-color-light);
}

.answer {
    padding: 1rem;
    background-color: rgba(5, 74, 145, 0.05);
    border-left: 3px solid var(--primary-color);
    margin-top: 1rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .page-section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

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

/* Volunteer Form */
.volunteer-form,
.partnership-form,
.donation-form,
.resource-form,
.support-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Donate Page */
.donation-options {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.donation-option {
    padding: 1rem 2rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.donation-option:hover {
    border-color: var(--secondary-color);
}

.donation-option.active {
    border-color: var(--secondary-color);
    background-color: rgba(29, 185, 84, 0.1);
}

.donation-option h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* About Page */
.mission-vision {
    background-color: var(--background-color-alt);
    padding: 3rem;
    border-radius: 0.5rem;
    margin-bottom: 3rem;
}

.team-member {
    text-align: center;
    margin-bottom: 2rem;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

/* User Profile */
.profile-header {
    background-color: var(--primary-color-light);
    padding: 2rem;
    color: white;
    margin-bottom: 2rem;
}

.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
}

.profile-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}
