/*
HOME.CSS
*/

:root {
  --sai-red: #E53954;
  --sai-yellow: #F1FF68;
  --sai-blue-green: #00A99D;
  --sai-dark-gray: #212529;
  --sai-white: #FFFFFF;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.main-header .top-bar {
    background-color: #f8f9fa;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.main-header .top-bar a {
    color: var(--sai-dark-gray);
    text-decoration: none;
}

.main-header .navbar {
    background-color: var(--sai-red);
    padding: 1rem 0;
}

.main-header .navbar-brand img {
  max-height: 40px;
}

.main-header .nav-link {
    color: var(--sai-white);
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.main-header .nav-link:hover, .main-header .nav-link.active {
    color: var(--sai-white);
}

.main-header .btn-donate {
    background-color: var(--sai-white);
    color: var(--sai-red);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: .25rem;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.main-header .btn-donate:hover {
    background-color: var(--sai-red);
    color: var(--sai-white);
    border: 1px solid var(--sai-white);
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
  position: relative;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--sai-white);
}

.hero-section__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: var(--sai-dark-gray);
}

.hero-section__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.hero-section__content {
  max-width: 800px;
}

.hero-section__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 4rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-section__subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero-section .btn--primary {
  background-color: var(--sai-red);
  color: var(--sai-white);
  font-weight: 700;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: .25rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.hero-section .btn--primary:hover {
  background-color: #c42a44; /* A slightly darker red for hover */
}

.hero-section__cta-note {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
}

/*--------------------------------------------------------------
# Help Us Help Others Section
--------------------------------------------------------------*/
.help-us-help-others-section {
    padding: 4rem 0;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--sai-red);
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
    font-size: 1.2rem;
    color: #6c757d;
}

.urgent-help-card {
    position: relative;
    overflow: hidden;
    border-radius: .25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.urgent-help-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.urgent-help-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.urgent-help-card__body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
}

.urgent-help-card__title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--sai-white);
    margin: 0;
}


/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#colophon.site-footer {
    background-color: var(--sai-dark-gray);
    color: var(--sai-white);
    padding: 4rem 0;
    border-top: 5px solid var(--sai-red);
}

.site-footer .footer-logo img {
    max-height: 50px;
    margin-bottom: 1.5rem;
}

.site-footer h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--sai-red);
}

.site-footer .certifications img {
    max-height: 40px;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.site-footer h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--sai-red);
}

.site-footer a {
    color: var(--sai-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--sai-red);
}

.site-footer p {
    color: #adb5bd;
}

/*--------------------------------------------------------------
# Brand buttons: use design red for primary CTAs
--------------------------------------------------------------*/
.btn-primary {
    background-color: var(--sai-red) !important;
    border-color: var(--sai-red) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #c42a44 !important; /* slightly darker */
    border-color: #c42a44 !important;
    color: #ffffff !important;
}

/* Ensure small card CTAs that are links with btn styling also inherit the red */
.read-more-link.btn-primary, .help-cards .btn-primary {
    background-color: var(--sai-red) !important;
    border-color: var(--sai-red) !important;
}
