/* RWOHFED Website Styles */

/* CSS Variables */
:root {
    --primary-green: #40BF00;
    --sunrise-yellow: #FFD700;
    --charcoal: #222222;
    --leaf-green: #7CFC00;
    --background: #FFFFFF;
    --soft-gray: #F5F5F5;
    --text-muted: #6c757d;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--charcoal);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.text-charcoal {
    color: var(--charcoal) !important;
}

.text-success {
    color: var(--primary-green) !important;
}

.bg-success {
    background-color: var(--primary-green) !important;
}

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

.btn-success:hover {
    background-color: var(--sunrise-yellow);
    border-color: var(--sunrise-yellow);
    color: var(--charcoal);
}

.btn-outline-success {
    color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-outline-success:hover {
    background-color: var(--sunrise-yellow);
    border-color: var(--sunrise-yellow);
    color: var(--charcoal);
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
    z-index: 1030;
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    color: var(--charcoal) !important;
}

.nav-link:hover {
    color: var(--sunrise-yellow) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--sunrise-yellow);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 0;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/IMG-20250730-WA0025.jpg') center/cover;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1;
}

.overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(116, 189, 110, 0.8) 0%, rgba(64, 191, 0, 0.6) 100%);
    z-index: 1;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
    z-index: 3;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-20px) translateX(-50%);}
    60% {transform: translateY(-10px) translateX(-50%);}
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.hero-content h1 {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    color: white;
    line-height: 1.2; /* Adjust line height for better two-line display */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Add text shadow for prominence */
}

.hero-buttons .btn {
    transition: all 0.3s ease;
    transform: translateY(0);
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    text-shadow: none;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn-light {
    background-color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.95);
    color: var(--charcoal);
    font-weight: 700;
}

.hero-buttons .btn-light:hover {
    background-color: var(--sunrise-yellow);
    border-color: var(--sunrise-yellow);
    color: var(--charcoal);
    transform: translateY(-3px) scale(1.05);
}

.hero-buttons .btn-outline-light {
    border-width: 3px;
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: 600;
    color: #fff;
}

.hero-buttons .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: white;
    transform: translateY(-3px) scale(1.05);
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pillar Cards */
.pillar-card {
    background: var(--background);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--sunrise-yellow);
}

.pillar-icon {
    transition: transform 0.3s ease;
}

.pillar-card:hover .pillar-icon {
    transform: scale(1.1);
}

/* Program Cards */
.program-card {
    background: var(--background);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.program-image {
    position: relative;
    overflow: hidden;
}

.program-image img {
    transition: transform 0.3s ease;
}

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

.program-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.program-card:hover .program-overlay {
    opacity: 1;
}

.program-content {
    background: var(--background);
}

/* News Cards */
.news-card {
    background: var(--background);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Partner Section */
.partner-card {
    background: var(--background);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--sunrise-yellow);
}

.partner-logo {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.partner-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.divider {
    width: 80px;
    height: 3px;
    background: var(--primary-green);
}

.btn-sunrise {
    background-color: var(--sunrise-yellow);
    border-color: var(--sunrise-yellow);
    color: var(--charcoal);
}

.btn-sunrise:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    color: var(--charcoal);
}

.btn-outline-sunrise {
    color: var(--sunrise-yellow);
    border-color: var(--sunrise-yellow);
}

.btn-outline-sunrise:hover {
    background-color: var(--sunrise-yellow);
    color: var(--charcoal);
}

/* Contact Form */
.form-control, .form-select {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--sunrise-yellow);
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}

/* Footer */
footer {
    background: var(--charcoal);
    color: #FFFFFF; /* Changed to white */
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--sunrise-yellow);
    color: var(--charcoal);
    transform: translateY(-2px);
}

/* Donation Options */
.donation-option {
    transition: all 0.3s ease;
    cursor: pointer;
}

.donation-option:hover {
    border-color: var(--sunrise-yellow) !important;
    background-color: rgba(255, 215, 0, 0.05);
}

/* Event Items */
.event-item {
    transition: all 0.3s ease;
}

.event-item:hover {
    background-color: rgba(255, 215, 0, 0.05);
    padding: 0.5rem;
    border-radius: 5px;
    border-left: 3px solid var(--sunrise-yellow);
}

/* Team Members */
.team-member {
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateX(5px);
}

/* Sunrise Yellow Accent Classes */
.text-sunrise {
    color: var(--sunrise-yellow) !important;
}

.bg-sunrise {
    background-color: var(--sunrise-yellow) !important;
}

/* Icon Hover Effects */
.icon-hover {
    transition: all 0.3s ease;
}

.icon-hover:hover {
    color: var(--sunrise-yellow) !important;
    transform: scale(1.1);
}

/* Progress Bar Accent */
.progress-bar-sunrise {
    background-color: var(--sunrise-yellow) !important;
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh; /* Further reduce height for very small mobile screens */
        padding-top: 70px;
        justify-content: center; /* Center content vertically */
    }
    
    .hero-content {
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem; /* Slightly smaller font size for better fit on mobile */
        padding: 1rem; /* Add some padding to prevent text from touching edges */
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }
    
    .hero-buttons .btn {
        display: block;
        width: 80%; /* Make buttons take up more width */
        margin: 0.5rem auto; /* Center buttons and add vertical spacing */
        padding: 0.8rem 1.5rem; /* Slightly larger padding for easier tapping */
        font-size: 1rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .nav-item {
        margin: 0.5rem 0;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
}

@media (min-width: 1200px) {
    .hero-content h1 {
        font-size: 4.5rem;
    }
    
    .hero-buttons .btn {
        padding: 1.25rem 3rem;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-content {
        padding: 1rem; /* Reduce padding for very small screens */
        margin: 0 0.5rem; /* Adjust margin for very small screens */
    }
    
    .hero-content h1 {
        font-size: 1.5rem; /* Even smaller font size for very small mobile screens */
        padding: 0.25rem; /* Reduce padding further */
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }
    
    .hero-buttons .btn {
        width: 90%; /* Adjust width for very small screens */
        padding: 0.6rem 0.8rem; /* Adjust padding for very small screens */
        font-size: 0.85rem; /* Slightly smaller font size for very small screens */
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Animations */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

/* Form Validation Styles */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(64, 191, 0, 0.25);
}

/* Success Message Animation */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary-green);
    color: white;
    padding: 1rem 2rem;
    border-radius: 5px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.success-message.show {
    transform: translateX(0);
}

/* Progress Bar Animation */
.progress-bar {
    transition: width 1s ease;
}

/* Hover Effects for Buttons */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #359a00;
}

/* Print Styles */
@media print {
    .navbar, .hero-section, footer, .btn {
        display: none !important;
    }
    
    body {
        color: black !important;
        background: white !important;
    }
}


.contact-section {
  width: 100%;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  padding: 3rem 1rem;
}

.contact-intro > * + * {
  margin-top: 1rem;
}

.contact-title {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
}

.contact-description {
  color: rgb(107 114 128);
}

.form-group-container {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

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

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

.form-input,
.form-textarea {
  padding: 0.5rem;
  border: 1px solid #e5e7eb;
  display: flex;
  height: 2.5rem;
  width: 100%;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.form-input::placeholder,
.form-textarea:focus-visible {
  color: #6b7280;
}

.form-input:focus-visible,
.form-textarea:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.form-textarea {
  min-height: 120px;
}

.form-submit {
  width: 100%;
  margin-top: 1.2rem;
   background-color: var(--primary-green) !important;
  color: #fff;
  padding: 13px 5px;
  border-radius: 0.375rem;
}