/*
@Author: ThemeMascot
@URL: http://ThemeMascot.com

This is the file where you can add your custom styles to change the look of the
theme. But don't modify style-main.css file.

*/

/* Your custom css codes start here: */
/* Make every team thumb a square and crop images consistently */
.team-member .team-thumb{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;   /* modern browsers */
  overflow: hidden;
  background:#f5f5f5;    /* looks nicer behind PNGs */
}

/* iOS/old Safari fallback (no aspect-ratio) */
@supports not (aspect-ratio: 1 / 1) {
  .team-member .team-thumb::before{
    content:"";
    display:block;
    padding-top:100%;    /* square box */
  }
  .team-member .team-thumb > *{
    position:absolute; inset:0;
  }
}

.team-member .team-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;      /* center-crop to square */
  object-position:center;
  display:block;
}
.funfact .animate-number::before {
  content: "$";
  margin-right: .15em;
}
/* ==============================
   DONATE SECTION – ALL BREAKPOINTS
   ============================== */

/* Section background and spacing */
#donate {
  padding: 80px 0;
  background: #f5f5f5;
}

/* White card */
#donate .about-details {
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  padding: 50px 60px 60px;
  border-radius: 18px;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.18);
  text-align: center;
}

/* Heading spacing */
#donate .about-details h2 {
  margin-bottom: 30px;
}

/* ------------------------------
   PRESET AMOUNT BUTTONS (6 TOTAL)
   ------------------------------ */

#donate .preset-amounts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 25px auto;
  max-width: 100%;
}

/* Neutralize Bootstrap grid inside preset-amounts */
#donate .preset-amounts > [class*="col-"] {
  float: none !important;
  box-sizing: border-box;
  padding: 0 8px 12px;
  display: flex;
  justify-content: center;
}

/* MOBILE FIRST: one per row */
#donate .preset-amounts > [class*="col-"] {
  width: 100%;
}

/* Small tablets: 2 per row */
@media (min-width: 480px) {
  #donate .preset-amounts > [class*="col-"] {
    width: 50%;
  }
}

/* Tablets & up: 3 per row (3x2 layout) */
@media (min-width: 768px) {
  #donate .preset-amounts > [class*="col-"] {
    width: 33.3333%;
  }
}

/* Buttons themselves */
#donate .preset-amounts .btn {
  width: 100%;
  min-height: 52px;
  padding: 14px 26px;
  font-size: 18px;
  font-weight: 700;
}

/* ------------------------------
   CUSTOM DONATION AREA
   ------------------------------ */

#donate .custom-donation-row {
  margin-top: 10px;
}

/* Center the column that holds the input-group */
#donate .custom-donation-row .col-md-8,
#donate .custom-donation-row .col-xs-10 {
  float: none !important;
  margin: 20px auto 0 !important;
  max-width: 320px;              /* base: phones */
}

/* Slightly wider on small tablets */
@media (min-width: 480px) {
  #donate .custom-donation-row .col-md-8,
  #donate .custom-donation-row .col-xs-10 {
    max-width: 380px;
  }
}

/* Wider on tablets */
@media (min-width: 768px) {
  #donate .custom-donation-row .col-md-8,
  #donate .custom-donation-row .col-xs-10 {
    max-width: 420px;
  }
}

/* Widest on desktop */
@media (min-width: 992px) {
  #donate .custom-donation-row .col-md-8,
  #donate .custom-donation-row .col-xs-10 {
    max-width: 480px;
  }
}

/* Make the input + button a single, full-width control */
#donate .custom-donation-row .input-group {
  display: flex;
  width: 100%;
}

/* Input field */
#donate .custom-donation-row .form-control.input-m {
  flex: 1 1 auto;
  min-width: 0;
  height: 52px !important;
  font-size: 16px;
  padding: 10px 12px;
  border-radius: 0;
}

/* Input-group button container */
#donate .custom-donation-row .input-group-btn {
  display: flex;
  align-items: stretch;
}

/* Custom Donation button */
#donate .custom-donation-row #customButton {
  height: 52px !important;
  font-size: 16px;
  font-weight: 600;
  padding: 0 26px;
  border-radius: 0;
  white-space: nowrap;
}
/* ============================
   1) PERFECTLY CENTER CUSTOM ROW
   ============================ */

/* Center the custom-donation column and kill any Bootstrap offsets */
#donate .custom-donation-row > [class*="col-"] {
  float: none !important;
  margin: 24px auto 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 480px;
  padding: 0 8px;
}

/* Make the input-group fill that centered column */
#donate .custom-donation-row .input-group {
  display: flex;
  width: 100%;
}

/* Make the text input match the button height */
#donate .custom-donation-row .form-control.input-m {
  flex: 1 1 auto;
  min-width: 0;
  height: 52px !important;
  line-height: 52px !important;
  font-size: 16px;
  border-radius: 0;
}

/* ============================
   2) VERTICALLY CENTER BUTTON TEXT
   ============================ */

/* Use flexbox inside the red buttons so the label is dead-center */
#donate .preset-amounts .btn,
#donate .custom-donation-row #customButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px !important;
  padding: 0 26px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 0;
}

/* Keep preset buttons full-width inside their grid cells */
#donate .preset-amounts > [class*="col-"] {
  display: flex;
  justify-content: center;
}
#donate .preset-amounts .btn {
  width: 100%;
}
/* =======================================
   FULL-WIDTH 2-LINE CUSTOM DONATION BAR
   ======================================= */

#donate .custom-donation-full {
  width: 100%;
  margin: 30px auto 0;
  max-width: 500px;      /* adjust size of the custom area */
}

#donate .custom-donation-full .custom-input {
  width: 100%;
  height: 52px;
  font-size: 18px;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 0;
  display: block;
  margin-bottom: 12px;   /* spacing between input & button */
}

#donate .custom-donation-full .custom-btn {
  width: 100%;
  height: 52px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 0;
  display: block;
  white-space: nowrap;
}
/* HERO CTA: make all "#donate" buttons in the slider pop */
.rev_slider_default .tp-caption a[href="#donate"] {
  display: inline-block;
  background: #e91e63;              /* stronger pink/red */
  border-color: #e91e63;
  color: #fff !important;
  margin-top: 20px;
  padding: 16px 44px;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;             /* pill shape */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
}

/* Hover state */
.rev_slider_default .tp-caption a[href="#donate"]:hover {
  background: #c2185b;
  border-color: #c2185b;
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
}
