/* components css */

/******************* buttons *******************************/

/* Target Astra's global button classes */


.ast-button, 
button, 
.button, 
input[type="submit"] {
    background-color: transparent;
    color: var(--brand-color);
    border: none;
    border-radius: var(--border-radius);
    padding: 0;
    margin-top: 1em;
    font-size: 1rem;
    font-family: var(--brand-font);
    font-weight: 700;
    transition: all var(--transition-fast);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

/* Hover State */
.ast-button:hover, 
button:hover, 
.button:hover, 
input[type="submit"]:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
    background-color: transparent;
    color: var(--brand-color);
}




/**** same button styles for links appearing as a button except color & background to be controlled by specific element*****/
.btn {
    padding: .5em 1.2em;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--brand-font);
    font-weight: 700;
    border: none;
    transition: all var(--transition-fast);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.btn-solid,
.btn-clear,
.btn-transparent {
    padding: .8em 1.4em;
   
}


.btn-solid {    
    color: #fff;
    background: var(--brand-color);
}

.btn-clear {
    background: #F4E9F7;
    color: var(--brand-color);
}

.btn-transparent {
    color: #F4E9F7;
    background: transparent;
    border: 1px solid #F4E9F7;
}
    
}

.btn:hover,
.btn:focus {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}



/************************ ====== Masonry gallery with no cropping ======********************/

.light-link {
  color: var(--brand-color);
  text-decoration: none;
  font-weight: 600;
}

.arrow {
    margin-left: .5em;
}

.gallery {
  margin-top: 2em;
  columns: 1;           /* controls “masonry” column size */
  column-gap: 1em;
  padding: 0;
}

.gallery-item {
  /* button reset */
  appearance: none;
  border: 2px solid rgba(0,0,0,0.3);
  padding: 0;
  background: transparent;
  cursor: pointer;

  /* masonry behavior */
  width: 100%;
  display: inline-block;
  margin: 0 0 1em;
  break-inside: avoid;

  /* aesthetic */
  border-radius: var(--border-radius-lg);
  overflow: hidden; /* keeps hover scale from spilling outside rounded corners */
}

.gallery-item img {
  width: 100%;
  height: auto;     /* no fixed sizes, keeps portrait/landscape naturally */
  display: block;
}

.link-btn-wrapper a{
  text-align: center;
  margin: 1em auto 2em;
  display: block;
  width: 50%;
}


/* Hover scale ONLY on devices that actually support hover (no mobile scale) */
@media (hover: hover) and (pointer: fine) {
  .gallery-item img {
    transition: transform 160ms ease;
    transform-origin: center;
  }
  .gallery-item:hover img,
  .gallery-item:focus-visible img {
    transform: scale(1.04);
  }
}

.gallery-item:focus-visible {
  outline: 3px solid rgba(0,0,0,0.35);
  outline-offset: 3px;
}




 



/***********************************************About us grid***********************/

.about-grid {
  display: grid;
  width: 100%;
  margin-top: 1em;
  gap: 2em;
}

.about-card {
  display: flex;
  flex-direction: column;
  gap: 1em;
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--light-border); 
}

.about-card:nth-child(2){
    flex-direction: column-reverse;
}

.about-img-container{
  flex: 1;
}

.about-img-container img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-card-content {
  flex: 1;
}

.about-card h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.about-card p {
  margin: 0;
  font-size: 0.95rem;
}


.value-content-container{
  flex: 2;

}

.value-title{
  margin-bottom: 1em;
}

.wrapper {
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--light-border); 
}

/*****************************Get-involved Tabs***********************/

.gi-tabs { margin: 2em auto; }
.gi-tablist { margin-left: 2em; display: flex; gap: .5rem; flex-wrap: wrap;  }
.gi-tab {
  padding: .75rem 1rem;
  border: 1px solid #ddd;
  border-bottom: none;
  border-radius: .75rem .75rem 0 0;
  background: #f7f7f7;
  color: var(--brand-color);
  cursor: pointer;
  box-shadow: none;
  z-index: 2;
}
.gi-tab[aria-selected="true"] { background: #fff; font-weight: 600; color: var(--brand-color);}
.gi-tab:focus-visible { outline: 2px solid #000; outline-offset: 2px; }

.gi-panels { border: 1px solid #ddd; border-radius: var(--border-radius-lg); border-top: none; padding: 1.25rem; background: #fff}

.gi-panel input, .gi-panel textarea { padding: .75rem; font: inherit; }

.gi-panel button {
    margin-top: 1em;
}

/****************************** Modal Popup Styles **********************/
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
  animation: fadeIn 0.3s ease-out forwards;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    visibility: hidden;
  }
  to {
    opacity: 1;
    visibility: visible;
  }
}

.modal-content {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 3rem 2rem;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(151, 35, 173, 0.2);
  text-align: center;
  animation: slideUp 0.4s ease-out;
  position: relative;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: bounce 0.6s ease-out;
}

@keyframes bounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brand-color);
  margin: 1rem 0 0.5rem;
  letter-spacing: 0.01em;
}

.modal-message {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.modal-button {
  background: var(--brand-color);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-out;
  box-shadow: 0 4px 15px rgba(151, 35, 173, 0.3);
}

.modal-button:hover {
  background: #7d1a8a;
  box-shadow: 0 6px 20px rgba(151, 35, 173, 0.4);
  transform: translateY(-2px);
}

.modal-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(151, 35, 173, 0.3);
}

/* Error state styling */
.modal-content.error .modal-icon {
  color: #ef4444;
}

.modal-content.error .modal-title {
  color: #ef4444;
}

.modal-content.error .modal-button {
  background: #ef4444;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.modal-content.error .modal-button:hover {
  background: #dc2626;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Success state styling */
.modal-content.success .modal-icon {
  color: var(--brand-color);
}

.modal-content.success .modal-title {
  color: var(--brand-color);
}

.modal-content.success .modal-button {
  background: var(--brand-green);
  box-shadow: 0 4px 15px rgba(159, 211, 86, 0.3);
}

.modal-content.success .modal-button:hover {
  background: #84c52d;
  box-shadow: 0 6px 20px rgba(159, 211, 86, 0.4);
}

.decorative-element {
  position: absolute;
  opacity: 0.1;
  pointer-events: none;
}

.decorative-top-left {
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  background: var(--brand-color);
  border-radius: 50%;
}

.decorative-bottom-right {
  bottom: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: var(--brand-color);
  border-radius: 50%;
}



/**********************Donate page**************/

.donate-hero {
    background: linear-gradient(135deg, #9723ad 0%, #f4e9f7 100%);
    padding: 4em 2em;
    text-align: center;
    border-radius: var(--border-radius-lg);
    margin-bottom: 3em;
    color: #fff;
    box-shadow: var(--shadow-soft);
}
            

.donate-hero p {
    max-width: 600px;
    margin: .5em auto 1.5em;
    line-height: 1.6;
}

/* Why Donate Section */
.why-donate-section {
    margin: 4em 0;
}

.why-donate-header {
    text-align: center;
    margin-bottom: 3em;
}

         

.why-donate-header p {
    color: var(--text-muted);
    max-width: 700px;
    margin: 2em auto 0;
}

/* Reasons Grid */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2em;
    margin: 3em 0;
}

.reason-card {
    background: #fff;
    border-radius: var(--border-radius-lg);
    padding: 2em;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border-left: 5px solid var(--brand-color);
    border-right: 5px solid transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.reason-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(207, 221, 183, 0.3) 0%, transparent 70%);
    border-radius: 0 0 0 50%;
}

.reason-card.rtl {
    border-right: 5px solid transparent;
}




.reason-card:nth-child(1) {
    border-left-color: var(--brand-green);
}


.reason-card:nth-child(1)::before {
    background: radial-gradient(circle, rgba(159, 211, 86, 0.2) 0%, transparent 70%);
}

.reason-card:nth-child(2) {
    border-left-color: var(--brand-blue);
}


.reason-card:nth-child(2)::before {
    background: radial-gradient(circle, rgba(60, 145, 230, 0.2) 0%, transparent 70%);
}

.reason-card:nth-child(3) {
    border-left-color: var(--brand-orange);
}


.reason-card:nth-child(3)::before {
    background: radial-gradient(circle, rgba(250, 130, 76, 0.2) 0%, transparent 70%);
}

.reason-card:nth-child(4)::before {
    left:0;
    background: radial-gradient(circle, rgba(159, 211, 86, 0.2) 0%, transparent 70%);
}

.reason-card:nth-child(5)::before {
    left:0;
    background: radial-gradient(circle, rgba(60, 145, 230, 0.2) 0%, transparent 70%);
}

.reason-card:nth-child(6)::before {
    left:0;
    background: radial-gradient(circle, rgba(250, 130, 76, 0.2) 0%, transparent 70%);
}

.reason-card:nth-child(4) {
    border-right-color: var(--brand-green);
    border-left-color: transparent;
}
.reason-card:nth-child(5) {
    border-right-color: var(--brand-blue);
    border-left-color: transparent;
}
.reason-card:nth-child(6) {
    border-right-color: var(--brand-orange);
    border-left-color: transparent;
}



.reason-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}


.reason-icon {
    font-size: 3em;
    margin-bottom: 0.5em;
    /*display: inline-block;*/
    margin-inline-start: 0 auto;
}

.reason-card h3 {
    margin-bottom: 0.8em;
    position: relative;
    z-index: 1;
}

.reason-card p {
    position: relative;
    z-index: 1;
}

/* Impact Section */
.impact-section {
    background: linear-gradient(135deg, #F4E9F7 0%, rgba(159, 211, 86, 0.1) 100%);
    padding: 3em 2em;
    border-radius: var(--border-radius-lg);
    text-align: center;
}



.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2em;
    margin: 2em 0;
}

.stat-box {
    background: #fff;
    padding: 1.5em;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--brand-color);
    margin-bottom: 0.3em;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

/* CTA Section */
.donate-cta-section {
    background: linear-gradient(135deg, #9723ad 0%, #6b5b95 100%);
    padding: 3em 2em;
    border-radius: var(--border-radius-lg);
    text-align: center;
}


.donate-cta-section p {
    max-width: 600px;
    margin: 1em auto 2em;
}

.donate-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1em;
    margin-top: 2em;
}



/* Image Section */
.donate-image-container {
    margin: 3em 0;
    text-align: center;
}

.donate-image-container img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    box-shadow: var(--shadow-hover);
}

          




/*****************************Media queries***********************/

@media (min-width: 480px) {

}



@media (min-width: 769px) { 
  .gallery {
        columns: 2; 
        column-gap: 1.5em;
    }
    .gallery-item {
        /*margin: 0 0 1.5em;*/
    }
    
  

  .about-card, .about-card:nth-child(2) {
      display: flex;
      flex-direction: row;
      gap: 1.5em;
    }
    
    
    .donate-hero {
            padding: 2.5em 1.5em;
        }

        .reasons-grid {
            gap: 1.5em;
            grid-template-columns: repeat(3, 1fr);
        }

        .reason-card {
            padding: 1.5em;
        }

        .impact-stats {
            gap: 1em;
        }

        .donate-buttons {
            flex-direction: column;
        }
   
    


}



@media (min-width: 990px) {
  

    

}
@media (min-width: 1280px) {
    
  .gallery {
      columns: 3; 
      column-gap: 2em;
  }
  .gallery-item {
      /*margin: 0 0 2em;*/
  }
    
   

}




 
