
/* ==========================================================================
   FRONTPAGE - COMPONENT STYLES
   ========================================================================== */

/* Brand Colors */
:root {
  --primary-blue: #0079a3;
  --secondary-green: #4a7732;
  --secondary-green-hover: #15803d;
  --purple: #7275b7;
  --yellow: #fbbf24;
  --yellow-text: #92400e;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

/* Layout Components */
.container {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 2rem 0;
}

.featured-news .card {
  background-color: #f6f4ee;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s;
}

.card {
  background-color: #f6f4ee;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-padding {
  padding: 1rem;
  position: relative;
  min-height: 240px;
  padding-bottom: 4rem;
  min-height: 240px;
}

/* Position Read More link in bottom right corner */
.card-padding .link-primary {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  margin: 0;
  z-index: 10;
}

.card-image {
  aspect-ratio: 16/9;
  width: 100%;
  overflow: hidden;
  border-radius: 0.5rem 0.5rem 0 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 214px;
}

/* Optional overlay for better contrast with background images */
.card-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* Optional: Icon background for better visibility over images */
.card-icon-bg {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon {
  width: 4rem;
  height: 4rem;
}

/* Typography */
.hero-title {
  font-size: 60px;
  font-weight: 500;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--gray-500);
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: bold;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.card-description {
  color: var(--gray-500);
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-blue);
  color: white;
  border: none;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  text-decoration: none;
  display: inline-block;
}

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

.btn-secondary {
  background-color: var(--secondary-green);
  color: white;
  border: none;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-bottom: 40px;
}

.btn-secondary:hover {
  background-color: var(--secondary-green-hover);
}

.btn-search {
  height: 50px;
  margin-left: -14px;
  /* width: 3rem;
  background-color: var(--primary-blue);
  color: white; */
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  /* transition: background-color 0.2s; */
}

/* .btn-search:hover {
  background-color: var(--primary-blue);
} */

/* Form Elements */
.input-primary {
  width: 100%;
  height: 50px;
  padding: 0 1rem;
  font-size: 1rem;
  outline: none;
  display: flex;
  margin: 0 !important;
  align-items: center;
  flex: 1 0 0;
  border-radius: 5px 0px 0px 5px !important;
  border-top: 3px solid #e99918;
  border-bottom: 3px solid #e99918;
  border-left: 3px solid #e99918;
  border-right: none;
  background: #fefdfe;
}

.input-primary:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(30, 64, 175, 0.2);
}

.search-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.search-input-container {
  flex: 1;
  position: relative;
}

/* Links */
.link-primary {
  color: var(--primary-blue);
  font-size: 1.0rem;
  text-decoration: underline;
  transition: color 0.2s;
}

.link-primary:hover {
  color: var(--primary-blue);
}


/* Hero Section */
.hero.section-padding {
  margin-bottom: 0rem;
}

.hero-grid {
  align-items: center;
}

.hero-content {
  max-width: 36rem;
}

.trust-icon-container {
  position: relative;
  opacity: 0.9;
  display: none;
}

.trust-icon-bg {
  width: 18rem;
  height: 18rem;
  /* background-color: #dcfce7; */
  background-size: contain;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Feature Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Publications Grid - Always 3 columns, responsive sizing */
.publications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .publications-grid {
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .publications-grid {
    gap: 2.5rem;
  }
}


/* News Section */
.news-section {
  background: linear-gradient(
        0deg,
        rgba(238, 238, 238, 0.2) 0%,
        rgba(238, 238, 238, 0.2) 100%
      ),
      rgba(216, 240, 219, 0.25);
}

.featured-news-first-card {
  overflow: hidden;
  height: 100%;
}

.featured-news-first-inner {
    display: flex;
    height: 100%;
}

.featured-news-first-content {
  overflow: hidden;
  padding: 30px 50px 30px 30px;
  order: 2;
  flex-shrink: 0;
}

.featured-news-first-image-wrapper {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  order: 1;
  height: 100%
}

.featured-news-first-image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.featured-news-first-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-news-first-image-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background-color: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {

  .featured-news-first-content {
    flex: 1;
    order: 1;
  }

  .featured-news-first-image-wrapper {
    flex: 1;
    order: 2;
  }

  .featured-news-first-image-placeholder {
    aspect-ratio: auto;
    height: 100%;
  }
}

/* Featured News Cards - Match newsletter height */
.featured-news-card-content {
  display: -webkit-box;
  line-clamp: 7;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 1024px) {
  /* Match newsletter height on desktop */
  .featured-news-card {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .featured-news-card .card-padding {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .featured-news-card .card-title {
    display: -webkit-box;
    line-clamp: 6;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.news-article {
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.news-article-content {
  display: flex;
  gap: 1rem;
  padding: 1rem;
}

.news-thumbnail {
  flex-shrink: 0;
}

.news-thumbnail-large {
  width: 80px;
  height: 80px;
  background-color: var(--gray-200);
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-thumbnail-small {
  width: 60px;
  height: 60px;
  background-color: var(--gray-200);
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-avatar {
  background-color: var(--gray-300);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-avatar-large {
  width: 50px;
  height: 50px;
}

.news-avatar-small {
  width: 35px;
  height: 35px;
}

.news-content {
  flex: 1;
  min-width: 0;
}

.news-title {
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  font-size: 0.95rem;
}

.news-excerpt {
  color: var(--gray-500);
  font-size: 16px;
  line-height: 1.4;
}

/* Newsletter Signup */
.newsletter {
  background-color: var(--purple);
  color: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.newsletter-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: white;
  margin-top: 0;
}

.newsletter-description {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  opacity: 0.9;
  color: white;
}

.newsletter-form {
  margin-bottom: 1rem;
}

.newsletter-input {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 0.375rem;
  margin-bottom: 0.75rem;
  color: var(--gray-600);
}

.newsletter-button {
  width: 100%;
  background-color: #3f454f;
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
}

.newsletter-privacy {
  font-size: 0.75rem;
  opacity: 0.8;
  color: white;
  text-align: center;
  margin-bottom: 0;
}

/* Publications */
.publication-card {
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  display: block;
  text-decoration: none;
  color: inherit;
  border: 2px solid #3f454f;
}

.publication-card:hover {
  transform: translateY(-4px);
  text-decoration: none;
  color: inherit;
}

.publication-cover {
  aspect-ratio: 4/5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Mobile responsive adjustments for publication cards */
@media (max-width: 767px) {
  .publication-card {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  }
}


/* Media Mentions */
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: center;
}

.media-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-logo {
  max-height: 3rem;
  max-width: 7rem;
  object-fit: contain;
}

/* Mission Statement */
.mission {
  margin-top: 5rem;
  text-align: center;
}

.mission-text {
  font-size: 2.0rem;
  color: var(--primary-blue);
  max-width: 100%;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.4;
  font-style: italic;
}

.mission-highlight {
    color: var(--primary-blue);

}

/* Section-Specific Component Classes */
.hero-section {
  padding-bottom: 0rem !important;
}

.news-videos-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--secondary-green);
  margin-bottom: 1rem;
  margin-top: 0;
}

.news-videos-description {
  color: var(--gray-500);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.publications-section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title-primary {
  color: #00437b;
}

.media-mentions-section {
  padding: 3rem 0;
  border-top: 1px solid var(--gray-200);
}

.media-mentions-header {
  text-align: center;
  margin-bottom: 2rem;
}

.media-mentions-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 2rem;
}

.publication-cover-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* News Article Specific Styles */
.news-article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.news-article-small {
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.news-article-small-content {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
}

.news-article-small-thumbnail {
  flex-shrink: 0;
}

.news-thumbnail-60 {
  width: 60px;
  height: 60px;
  background-color: #e5e7eb;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-thumbnail-blue {
  background-color: #1e40af;
}

.news-thumbnail-yellow {
  background-color: #fbbf24;
}

.news-thumbnail-text {
  color: white;
  font-weight: bold;
  font-size: 0.6rem;
  text-align: center;
  line-height: 1.1;
}

.news-thumbnail-text-yellow {
  color: #92400e;
}

.news-article-small-body {
  flex: 1;
  min-width: 0;
}

.news-article-small-title {
  color: #1e40af;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.news-article-small-excerpt {
  color: #6b7280;
  font-size: 0.75rem;
  line-height: 1.3;
}

/* Accessibility */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

/* Responsive Utility Classes */
@media (min-width: 640px) {
  .sm-inline { display: inline !important; }
  .sm-flex-row { flex-direction: row !important; }
  .sm-px-4 { padding-left: 1rem; padding-right: 1rem !important; }
}

@media (min-width: 768px) {
  .md-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .md-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .md-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

@media (min-width: 1024px) {
  .lg-flex { display: flex !important; }
  .lg-hidden { display: none !important; }
  .lg-grid { display: grid !important; }
  .lg-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .lg-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .lg-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .lg-grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; }
  .lg-justify-end { justify-content: flex-end !important; }
  .lg-py-24 { padding-top: 4rem; padding-bottom: 4rem !important; }
  .lg-text-5xl { font-size: 3rem; line-height: 1 !important; }
  .lg-gap-12 { gap: 3rem !important; }
  .lg-p-12 { padding: 3rem !important; }

  .hero-title { font-size: 40px; line-height: 1; }
  .trust-icon-container { display: flex; justify-content: flex-end; }
  .trust-icon-bg { width: 20rem; height: 20rem; }
}

@media (min-width: 1280px) {
  .xl-w-80 { width: 20rem !important; }
  .xl-h-80 { height: 20rem !important; }
}

.news-videos-section {
    padding: 5% 8%;
}

.give-causes-newsletter {
    justify-content: space-around;
}

.news-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

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

.featured-news-first-card { grid-column: span 3; }

@media( max-width: 1023px) {
    .news-grid-container {
        grid-template-columns: 1fr;
    }

    .featured-news-first-inner {
        flex-direction: column;
    }

    .featured-news-first-content {
        padding: 30px;
    }

    /* Items will stack in source order, but we'll reorder with grid-row */
    .featured-news-description { order: 1; }
    .featured-news-first-card { grid-column: span 1; order: 2; }
    .give-causes-newsletter { order: 3; }
    .featured-news-card:nth-of-type(1) { order: 4; }
    .featured-news-card:nth-of-type(2) { order: 5; }
    .featured-news-card:nth-of-type(3) { order: 6; }
}
a.link-card, a.featured-news-card, a.featured-news-description, a.featured-news-first-card {
    text-decoration-thickness: 0px;
    text-decoration: none;
}
aside.lg-flex.lg-justify-end.trust-icon-container {
    flex-direction: column;
}
aside.lg-flex.lg-justify-end.trust-icon-container a {
    justify-content: center;
    display: flex;
    padding-left: 18px;
}
.trust-icon-bg.xl-w-80.xl-h-80 {
    margin-left: 80px;
}
.trust-icon-bg.xl-w-80.xl-h-80 {
    padding: 10px;
}
@media (min-width: 1280px) {
    aside div.xl-w-80 { width: 20rem !important; }
    aside div.xl-h-80 { height: 8rem !important; }
}
button.give-now {
    height: auto !important;
}
button.give-now-1 {
font-weight: bold;
    font-size: 14px;
}
button.give-now-2 {
    font-size: 1rem;
    padding-left: 3rem !important;
    padding-right: 3rem !important;
    font-weight: bold;
}
.mission {
    margin-top: 0;
    text-align: center;
    display: grid;
    align-items: center;
}
@media (min-width: 780px) {
    .mobile-break {
        display: none;
    }
}
@media (max-width: 1279px) {
    .trust-icon-bg.xl-w-80.xl-h-80 {
        padding: 20px;
    }
    .icon-button,  .give-now-1  {
        margin-top: 0 !important;
    }
}
 /*.mobile-give-now {*/
 /*    background-color: #00437B !important;*/
 /*    color: #ffffff !important;;*/
 /*}*/
.give-org-nav-cta-button:hover {
    background-color: #00437B !important; !important;
}
.mobile-give-now-section {

    width: 100%;
    display: grid;
    justify-content: center;

}
@media (min-width: 1024px) {
    section.mobile-give-now-section {
        display: none;
    }
}

button.give-now.give-now-1.give-org-nav-cta-button.aligncenter:hover,
button.give-now-2.give-now.give-org-nav-cta-button.aligncenter:hover {
    background-color: rgb(253, 185, 19) !important;
}

