/* Base Styles */
:root {
    --primary-color: #10B981;
    --primary-dark: #059669;
    --primary-light: #D1FAE5;
    --secondary-color: #3B82F6;
    --dark-color: #0F172A;
    --light-color: #F8FAFC;
    --gray-color: #64748B;
    --white: #FFFFFF;
    --black: #000000;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: aut0;
}

a {
    text-decoration: none;
    color: inherit;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.section-title {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--dark-color);
}

.section-subtitle {
    color: var(--gray-color);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* ---------- Navigation (works with your HTML) ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(15, 23, 42, 0.9);
  transition: var(--transition);
}

.navbar.scrolled {
  background-color: rgba(15, 23, 42, 0.95);
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Make the inner container do the layout */
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;    /* keep a little breathing room */
  max-width: 100%;  /* let it stretch full width */
  margin: 0;        /* remove centering */
}

/* Logo */
.logo img {
  height: 55px;
  transition: var(--transition);
}

/* Links (desktop) */
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--primary-color); }

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -5px; left: 0;
  width: 100%; height: 2px;
  background: var(--primary-color);
}

/* Donate button */
.donate-btn {
  background: var(--primary-color);
  color: var(--white);
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}
.donate-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
}

/* Hamburger (hidden on desktop, appears on mobile at far right) */
.hamburger {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
}

/* Mobile menu */
#cancelBtn { display: none; } /* hide on desktop */

@media (max-width: 768px) {
  .nav-links {
    display: none;                 /* hidden until opened */
    position: fixed;
    inset: 0;                      /* full-screen overlay */
    background: rgba(15, 23, 42, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 96px;             /* space for close button/top bar */
    gap: 22px;
    z-index: 1100;
  }
  .nav-links.active { display: flex; }

  .hamburger { display: block; margin-left: auto; }

  /* Show cancel button on mobile, top-right inside overlay */
  #cancelBtn {
    display: block;
    position: absolute;
    top: 16px; right: 16px;
    background: none;
    border: 0;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
  }
}

/* Prevent stray horizontal scroll on mobile */
html, body { overflow-x: hidden; }
body.no-scroll { overflow: hidden; position: fixed; width: 100%; }


/* ---------------------------------------Hero Section------------------------------------------------------- */
.hero {
    height: 100vh;
    min-height: 700px;
    background: url('images/back.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-secondary);
    font-size: 3.2rem;
    font-weight: 200;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 2rem;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    animation: bounce 2s infinite;
}

.hero-scroll i {
    margin-top: 10px;
    font-size: 1.2rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

    /* ----------------------------------Image Gallery Styles---------------------------------- */
    .image-gallery {
        position: relative;
        width: 100%;
        overflow: hidden;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    
    .gallery-slides {
        position: relative;
        height: 300px; /* Adjust height as needed */
    }
    
    .gallery-slides img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: opacity 0.5s ease;
        opacity: 0;
    }
    
    .gallery-slides img.active {
        opacity: 1;
    }
    
    .gallery-controls {
        position: absolute;
        bottom: 10px;
        left: 0;
        right: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
        z-index: 10;
    }
    
    .gallery-controls button {
        background: rgba(255,255,255,0.7);
        border: none;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .gallery-dots {
        display: flex;
        gap: 8px;
    }
    
    .gallery-dots .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255,255,255,0.5);
        cursor: pointer;
    }
    
    .gallery-dots .dot.active {
        background: white;
    }
    
    @media (max-width: 768px) {
        .gallery-slides {
            height: 250px; /* Smaller height on mobile */
        }
    }


/* About Section */
.about-section {
    padding: 100px 0;
    background-color: var(--light-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-content h2 {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.about-content p {
    margin-bottom: 2rem;
    color: var(--gray-color);
}

.impact-stats {
    display: flex;
    gap: 30px;
    margin: 2rem 0;
}

.stat {
    text-align: center;
}

.number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.label {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Services Section */
.services-section {
    padding: 10px 0;
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-20px);
    box-shadow: var(--box-shadow);
}

.service-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-dark);
    border-radius: 50%;
}

.service-icon img {
    width: 60px;
    height: 60px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-card p {
    color: var(--gray-color);
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--light-color);
    position: relative;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    display: none;
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    text-align: center;
}

.testimonial.active {
    display: block;
}

.testimonial-content p {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--dark-color);
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: '"';
    font-size: 3rem;
    color: var(--primary-light);
    position: absolute;
    opacity: 0.3;
}

.testimonial-content p::before {
    top: -20px;
    left: -15px;
}

.testimonial-content p::after {
    bottom: -40px;
    right: -15px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.testimonial-author span {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.slider-prev,
.slider-next {
    background-color: var(--primary-color);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.slider-prev:hover,
.slider-next:hover {
    background-color: var(--primary-dark);
}

/* ------------------------CTA Section------------------------------------------- */
    .cta-section {
        padding: 30px 0;
        background: linear-gradient(135deg, #11a50c 0%, #215c06 100%);
        color: white;
        text-align: center;
        position: relative;
        overflow: hidden;
    }
    
    .cta-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover;
        opacity: 0.15;
        z-index: 0;
    }

    .cta-section .container {
        position: relative;
        z-index: 1;
    }

    .cta-box {
        max-width: 700px;
        margin: 0 auto;
        padding: 50px 30px;
        background: rgba(230, 225, 225, 0.1);
        backdrop-filter: blur(10px);
        border-radius: 15px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

.cta-box h2 {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.cta-box p {
    margin-bottom: 2rem;
    opacity: 0.9;
    font-size: 1.1rem;
    color: #FFFFFF;
}

/*----------------------- Meet the team------------------------ */

/* Meet the Team Styles */
.team-section {
    padding: 80px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.team-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.team-section h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: #10B981;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.team-section p.subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 50px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 0 20px;
}

.column {
    flex: 0 0 calc(33.333% - 30px);
    max-width: calc(33.333% - 30px);
}

.card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
}

.card:hover img {
    opacity: 0.9;
}

.container {
    padding: 25px;
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #10B981, #3B82F6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover .container::before {
    transform: scaleX(1);
}

.container h2 {
    font-size: 1.5rem;
    margin: 15px 1 5px;
    color: #2c3e50;
}

.title {
    color: #10B981;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
}

.container p {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.container p:last-of-type {
    margin-bottom: 20px;
    color: #3498db;
    font-weight: 500;
}

.button {
    border: none;
    outline: none;
    background: linear-gradient(135deg, #10B981, #3B82F6);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

/* Social Icons (optional) */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #10B981;
    color: white;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .column {
        flex: 0 0 calc(50% - 30px);
        max-width: calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    .column {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .team-section h2 {
        font-size: 2rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.column {
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

.column:nth-child(1) { animation-delay: 0.1s; }
.column:nth-child(2) { animation-delay: 0.3s; }
.column:nth-child(3) { animation-delay: 0.5s; }

/* -----------------      Footer --------------------------------*/
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-about p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links h3,
.footer-contact h3,
.footer-newsletter h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after,
.footer-newsletter h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.footer-contact i {
    color: var(--primary-color);
    width: 20px;
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 50px 0 0 50px;
    font-family: var(--font-primary);
}

.newsletter-form button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 20px;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--primary-dark);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    opacity: 0.8;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-legal a:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--dark-color);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 20px;
        clip-path: circle(0px at 90% -10%);
        transition: all 0.5s ease-out;
        pointer-events: none;
    }
    
    .nav-links.active {
        clip-path: circle(1000px at 90% -10%);
        pointer-events: all;
    }

    .navbar {
        padding: 0.5px 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

/* ---------------DISABLED WITH A COMMENT COMMAND----------

/* Join us today button on index file
.center-button {
    display: flex;
    justify-content: center;
}

/* To style the link directly
.btn-primary {
    display: block;
    margin: 0 auto;
    width: fit-content;
}
*/
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial {
        padding: 30px 20px;
    }
    
    .cta-box {
        padding: 40px 20px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .impact-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 10px;
    }
}

/* Navigation - Mobile Styles */

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: rgba(15, 23, 42, 0.95);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        clip-path: circle(0px at 90% -10%);
        transition: all 0.5s ease-out;
        pointer-events: none;
    }
    
    .nav-links.active {
        clip-path: circle(1000px at 90% -10%);
        pointer-events: all;
    }
    
    .hamburger {
        display: block;
    }
}

/* Testimonial Slider Styles */
.testimonial {
    display: none;
    animation: fadeIn 0.6s ease;
}

.testimonial.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: #10B981;
}

body.no-scroll {
    overflow: hidden;
}

/* Hide cancel button by default (desktop) */
#cancelBtn {
    display: none;
}

/* Show cancel button only on mobile */
@media (max-width: 768px) {
    #cancelBtn {
        display: block;
        background: none;
        border: none;
        font-size: 1.8rem;
        color: white; /* adjust based on your menu style */
        cursor: pointer;
        position: absolute;
        top: 15px;
        right: 20px;
        z-index: 999;
    }
}

body.no-scroll {
    overflow: hidden;
    position: fixed; /* Prevent touch scroll on mobile */
    width: 100%;
}

/* Slide Image */

.img-comp-container {
    position: relative;
    width: 500px;
    height: 400px;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    overflow: hidden;
}

.img-comp-img {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.img-comp-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-comp-overlay {
    width: 50%;
    overflow: hidden;
}

.img-comp-slider {
    position: absolute;
    z-index: 9;
    cursor: ew-resize;
    width: 40px;
    height: 40px;
    background-color: #2196F3;
    opacity: 0.7;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.img-comp-slider-line {
    position: absolute;
    width: 2px;
    height: 100%;
    background-color: #2196F3;
    left: 50%;
    transform: translateX(-50%);
    z-index: 8;
}

@media (max-width: 600px) {
    .img-comp-container {
        width: 100%;
        height: auto;
        aspect-ratio: 5/4;
    }

    /*---Prevent taking too much mobile space ---*/
}
@media (max-width: 600px) {
    .img-comp-container {
        max-height: 70vh; /* Optional: prevents taking too much screen space */
    }
}

/* Snackbar base style */
.snackbar {
  visibility: hidden;
  max-width: 350px;
  margin-left: -125px;
  background-color: #333;
  color: white;
  text-align: center;
  border-radius: 8px;
  padding: 16px;
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 50px;
  font-size: 16px;
  transition: visibility 0s, opacity 0.5s ease-in-out;
  opacity: 0;
}

/* Show animation */
.snackbar.show {
  visibility: visible;
  opacity: 1;
}

/* Success state */
.snackbar.success {
  background-color:#10B981;
  color: white;
}

/* Error state */
.snackbar.error {
  background-color: red;
  color: white;
}

/*<--------------Loading Spinner Styles for Newsletter Button------------------>*/
.newsletter-form button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.newsletter-form button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.newsletter-form button.loading .loading-spinner {
    display: block;
}

.newsletter-form button.loading i {
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}