/* @import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;1,100&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    /* Brand Colors based on UPAMA Logo Analysis */
    --primary-color: #1e3c72; /* Deep Trustworthy Blue */
    --primary-gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    
    --secondary-color: #FF0000; /* Vibrant Red for Action/Hope */
    --secondary-gradient: linear-gradient(135deg, #FF0000 0%, #cc0000 100%);
    
    --accent-color: #28a745; /* Growth/Nature Green */
    --dark-color: #2d3436;
    --light-color: #f8f9fa;
    --white: #ffffff;
    
    --text-color: #4a4a4a;
    --text-light: #6c757d;
    
    --border-radius: 8px;
    --card-radius: 16px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Soft Premium Shadow */
    --hover-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style-type: none;
}

/*--------------------------------------------------------------
# Typography & Global Elements
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: var(--border-radius);
    padding: 10px 25px;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #002244;
    border-color: #002244;
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    border-radius: var(--border-radius);
    color: #fff;
    padding: 10px 25px;
    font-weight: 500;
}

.btn-secondary:hover {
    background-color: #cc0000;
    border-color: #cc0000;
    color: #fff;
}

/* Override Bootstrap Colors */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.bg-primary { 
    background-color: var(--primary-color) !important;
    color: #fff !important;
}
.bg-secondary { 
    background-color: var(--secondary-color) !important;
    color: #fff !important;
}
.border-primary { border-color: var(--primary-color) !important; }
.border-secondary { border-color: var(--secondary-color) !important; }

/* Ensure high contrast for badges */
.badge.bg-secondary, .badge.bg-primary {
    color: #fff !important;
}


/*--------------------------------------------------------------
# Header & Navigation
--------------------------------------------------------------*/
#logo {
    width: 200px;
    transition: var(--transition);
}

@media screen and (max-width: 992px) {
    #logo {
        width: 150px;
    }
}

.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
}

.nav-link {
    color: var(--primary-color) !important;
    font-weight: 500;
    margin-left: 15px;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary-color) !important;
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
    padding: 80px 0;
    overflow: hidden;
    position: relative;
}

.section-title {
    text-align: center;
    padding-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: "";
    position: absolute;
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 16px;
    color: var(--text-light);
}

/*--------------------------------------------------------------
# Cards & Content Boxes
--------------------------------------------------------------*/
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
    background: var(--white);
    margin-bottom: 30px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 25px;
}

.card-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.card-text {
    color: var(--text-light);
    font-size: 15px;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 60px 0 30px;
}

footer h3, footer h4 {
    color: var(--white);
    margin-bottom: 25px;
}

footer a {
    color: #ccc;
}

footer a:hover {
    color: var(--secondary-color);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--secondary-color);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 999;
    transition: var(--transition);
}

.back-to-top:hover {
    background: var(--primary-color);
    color: #fff;
}

/*--------------------------------------------------------------
# Breadcrumbs
--------------------------------------------------------------*/
.breadcrumbs {
    padding: 20px 0;
    background: var(--primary-color);
    color: var(--white);
    margin-bottom: 40px;
}

.breadcrumbs h2 {
    color: var(--white);
    font-size: 28px;
    margin: 0;
}

}

.breadcrumbs h2 {
  font-size: 28px;
  font-weight: 500;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0 0 10px 0;
  margin: 0;
  font-size: 14px;
}

.breadcrumbs ol a {
  color: #aaaaaa;
}

.breadcrumbs ol a:hover {
  color: #fff;
  transition: 0.3s;
}

.breadcrumbs ol li+li {
  padding-left: 10px;
}

.breadcrumbs ol li+li::before {
  display: inline-block;
  padding-right: 10px;
  color: #106eea;
  content: "/";
}

/*--------------------------------------------------------------
# Testimonials
--------------------------------------------------------------*/
.testimonials .testimonial-item {
    box-shadow: var(--box-shadow);
    background: var(--white);
    padding: 30px;
    margin: 30px 15px;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    border-left: 5px solid var(--secondary-color);
}

.testimonials .testimonial-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: -45px auto 15px;
    border: 4px solid var(--white);
    display: block;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.testimonials h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0 5px;
    color: var(--primary-color);
}

.testimonials h4 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.testimonials .quote-icon-left,
.testimonials .quote-icon-right {
    color: var(--secondary-color);
    font-size: 26px;
    opacity: 0.5;
}

.testimonials p {
    font-style: italic;
    margin: 0 auto 15px auto;
    color: var(--text-color);
}

/*--------------------------------------------------------------
# Image Overlays & Hover Effects
--------------------------------------------------------------*/
.featuredImage {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.featuredImage img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.featuredImage:hover img {
    transform: scale(1.1);
}

.featuredImage .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.featuredImage:hover .overlay {
    opacity: 1;
}

.featuredImage .overlay h4, 
.featuredImage .overlay p {
    color: var(--white);
    transform: translateY(20px);
    transition: var(--transition);
}

.featuredImage:hover .overlay h4, 
.featuredImage:hover .overlay p {
    transform: translateY(0);
}

/*--------------------------------------------------------------
# Success Stories / Voices of Change
--------------------------------------------------------------*/
.success-story-card {
    background: #f0f7ff; /* Very light blue */
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    border-bottom: 4px solid var(--primary-color);
    transition: var(--transition);
}

.success-story-card:hover {
    background: var(--white);
    box-shadow: var(--box-shadow);
    transform: translateY(-5px);
}

.success-story-quote {
    font-size: 48px;
    line-height: 1;
    color: var(--secondary-color);
    opacity: 0.3;
}

.success-story-text {
    color: var(--text-color);
    font-style: italic;
    line-height: 1.8;
    flex-grow: 1;
}

.success-story-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.success-story-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.success-story-info h5 {
    font-size: 16px;
    margin: 0;
    color: var(--primary-color);
}

.success-story-info span {
    font-size: 13px;
    color: var(--text-light);
}

/*--------------------------------------------------------------
# Animations
--------------------------------------------------------------*/
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

.typing-text {
    overflow: hidden;
    border-right: 3px solid var(--secondary-color);
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: 1px;
    animation: typing 4s steps(40, end), blink-caret .75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--secondary-color); }
}

/*--------------------------------------------------------------
# Media Queries for Responsiveness
--------------------------------------------------------------*/
/* Desktop Navigation Hover */
@media all and (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: none;
        margin-top: 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        border: none;
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }
    
    .navbar .nav-item:hover .dropdown-menu {
        display: block;
        animation: fadeIn 0.3s;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .section-title h2 {
        font-size: 28px;
    }
    
    .navbar-collapse {
        background: var(--white);
        padding: 15px;
        border-bottom: 2px solid var(--primary-color);
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .featuredImage img {
        height: 200px;
    }
}




/*--------------------------------------------------------------
# Inner Page Header
--------------------------------------------------------------*/
.page-header {
  padding: 80px 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: #fff;
  background-color: var(--primary-color);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-header a {
  color: #fff;
}

.breadcrumb-custom span {
  margin: 0 5px;
  color: #ccc;
}
.breadcrumb-custom .active {
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Contact Page
--------------------------------------------------------------*/
.contact-info-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
}
.contact-icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.form-floating-custom > label {
    padding-left: 1.5rem;
}
.form-floating-custom > .form-control {
    padding-left: 1.5rem;
    border-radius: 30px;
}
.form-floating-custom > textarea.form-control {
    border-radius: 20px;
}

/*--------------------------------------------------------------
# Donation Page
--------------------------------------------------------------*/
.donation-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/donation.jpg') center/cover;
    padding: 100px 0;
    color: #fff;
    text-align: center;
    margin-bottom: 50px;
}
.donation-method-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    text-align: center;
    padding: 30px 20px;
}
.donation-method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}
.donation-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.donation-details h5 {
    font-weight: 700;
    margin-bottom: 5px;
}
.account-number {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-family: monospace;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
}

/*--------------------------------------------------------------
# Volunteer Page
--------------------------------------------------------------*/
.volunteer-hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/volunteer-bg.jpg') center/cover; /* Placeholder image */
    padding: 80px 0;
    color: #fff;
}
.opportunity-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}
.opportunity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.opportunity-header {
    background: var(--primary-color);
    color: #fff;
    padding: 20px;
    text-align: center;
}
.opportunity-body {
    padding: 30px;
}
.opportunity-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #fff;
    opacity: 0.8;
}



/*--------------------------------------------------------------
# Inner Page Header
--------------------------------------------------------------*/
.page-header {
  padding: 80px 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: #fff;
  background-color: var(--primary-color);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-header a {
  color: #fff;
}

.breadcrumb-custom span {
  margin: 0 5px;
  color: #ccc;
}
.breadcrumb-custom .active {
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Contact Page
--------------------------------------------------------------*/
.contact-info-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
}
.contact-icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.form-floating-custom > label {
    padding-left: 1.5rem;
}
.form-floating-custom > .form-control {
    padding-left: 1.5rem;
    border-radius: 30px;
}
.form-floating-custom > textarea.form-control {
    border-radius: 20px;
}

/*--------------------------------------------------------------
# Donation Page
--------------------------------------------------------------*/
.donation-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/donation.jpg') center/cover;
    padding: 100px 0;
    color: #fff;
    text-align: center;
    margin-bottom: 50px;
}
.donation-method-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    text-align: center;
    padding: 30px 20px;
}
.donation-method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}
.donation-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.donation-details h5 {
    font-weight: 700;
    margin-bottom: 5px;
}
.account-number {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-family: monospace;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
}

/*--------------------------------------------------------------
# Volunteer Page
--------------------------------------------------------------*/
.volunteer-hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/volunteer-bg.jpg') center/cover; /* Placeholder image */
    padding: 80px 0;
    color: #fff;
}
.opportunity-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}
.opportunity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.opportunity-header {
    background: var(--primary-color);
    color: #fff;
    padding: 20px;
    text-align: center;
}
.opportunity-body {
    padding: 30px;
}
.opportunity-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #fff;
    opacity: 0.8;
}


/* Utility Classes for Professional Design */
.hover-shadow {
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.hover-shadow:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    transform: translateY(-5px);
}
.transition-all {
    transition: all 0.3s ease-in-out;
}
.hover-primary:hover {
    color: var(--primary-color) !important;
}
.text-justify {
    text-align: justify;
}
.ls-1 {
    letter-spacing: 1px;
}
.ls-2 {
    letter-spacing: 2px;
}
.opacity-10 {
    opacity: 0.1;
}
.opacity-25 {
    opacity: 0.25;
}
.opacity-50 {
    opacity: 0.5;
}
.font-head {
    font-family: 'Playfair Display', serif;
}
.font-body {
    font-family: 'Poppins', sans-serif;
}

