/* Header Styles */
.header {
  background-color: #002556;
  color: white;
  position: relative;
  z-index: 1000;
}
.menu-toggle {
  display: none;
}
.top-bar {
  background-color: #ffffff;
  color: #262626;
  padding: 10px 0;
}

.header .top-bar {
  padding: 20px 0;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 0 20px;
}

.logo-section,
.logo-section a {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  cursor: pointer;
}

.logo {
  width: 55px;
  height: 54px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header .logo {
  width: 80px;
  height: 80px;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Right side */
.header-right-column {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
}

.language-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-flags {
  display: flex;
  gap: 8px;
}

.flag-item {
  width: 24px;
  height: 16px;
  background-color: #f0f0f0;
  border-radius: 2px;
}

.flag-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

/* Foundation Name */
.foundation-names {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.foundation-names p {
  margin: 0;
  line-height: 1.1;
}

.foundation-names .foundation-name {
  font-size: 22px;
  font-weight: 700;
  color: #002556;
  line-height: 1;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 21px;
}

/* language selector */
.language-selector {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: #002556;
}

.language-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
  border: 1px solid #828282;
  border-radius: 4px;
  padding: 0 2px;
}

.language-toggle svg {
  margin-left: 5px;
  margin-top: 3px;
  transition: 0.3s ease;
}

.language-menu {
  position: absolute;
  top: 120%;
  right: 0;
  background: #ffffff;
  min-width: 150px;
  padding: 8px 0;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.25s ease;
  z-index: 999;
}

.language-selector.active .language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-selector.active svg {
  transform: rotate(180deg);
}


.language-menu li {
  list-style: none;
  padding: 10px 15px;
  cursor: pointer;
  white-space: nowrap;
}

.language-menu li:hover {
  background: #f3f3f3;
}

#language-selector {
  background-color: white;
  border: 1px solid #ada6a6;
  color: #666363;
  padding: 0 4px;
  border-radius: 4px;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px 3px;
  border: 1px solid #828282;
  border-radius: 4px;
  background: white;
  font-size: 12px;
  text-align: center;
  color: #363636;
  cursor: pointer;
  box-shadow: 0px 2px 0px 0px rgba(0, 0, 0, 0.02);
}

.action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 400;
  text-align: center;
  cursor: pointer;
  border: none;
  text-shadow: 0px -1px 0px 0px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  width: auto;
  min-width: 95px;
  white-space: nowrap;
}

.btn-primary {
  background-color: #3d82cf;
  color: white;
  height: 40px;
}

.btn-secondary {
  background-color: #3d82cf;
  color: white;
  height: 40px;
}

.btn-primary:hover,
.btn-secondary:hover {
  background-color: #2a6db8;
}

/* Navigation */
.navigation {
  background-color: #002556;
  padding: 0;
}

.navigation a {
  text-decoration: none;
}

.navigation .logo-section,
.navigation span,
.navigation hr {
  display: none;
}

.nav-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 35px;
  list-style: none;
}

/* Dropdown Styles */
.nav-item {
  position: relative;
  list-style: none;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 220px;
  padding: 10px 0;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1000;
}

.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a:hover {
  background: #f3f3f3;
}

.dropdown svg {
  transition: 0.3s ease;
}

.dropdown.active svg {
  transform: rotate(180deg);
  margin-bottom: 4px;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 10px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}

.nav-item a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #02b4f0;
}

li.nav-item.dropdown {
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-item.dropdown svg {
  margin-left: 5px;
  margin-top: 3px;
}

/* Footer Section */
.footer {
  background-color: #093471;
  color: white;
  position: relative;
  height: auto;
}

.footer-main {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: flex-start;
}

.footer-logo {
  width: 30%;
  gap: 20px;
  background-color: transparent;
  padding: 60px 40px;
}

.footer-logo .logo img {
  transform: scale(1.4);
}

.footer-logo .footer-foundation-names {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.footer-logo .footer-foundation-names p {
  margin: 0;
  line-height: 1.1;
}

.footer-logo .footer-foundation-name {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.footer-logo h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.25;
}

.footer-logo .logo-section {
  margin-bottom: 20px;
}

.footer-logo p {
  font-size: 14px;
  font-weight: 500;
  color: #f5f5f5;
  line-height: 1.5;
  margin-bottom: 20px;
}

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

.social-links a {
  width: 34px;
  height: 34px;
  background: #ffffff;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.social-links a:hover {
  background: #f1f5fb;
  transform: translateY(-1px);
}

.social-links a img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.05);
}

.footer-columns {
  display: flex;
  gap: 20px;
  width: 70%;
  padding: 60px 40px;
  background-color: #093471;
}

.footer-column {
  flex: 1;
}

.footer-column h4 {
  font-size: 19px;
  font-weight: bold;
  color: #f5f5f5;
  margin-bottom: 23px;
  text-transform: uppercase;
  line-height: 1.25;
  font-family: inter;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column li a {
  color: #f5f5f5;
  text-decoration: none;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
  font-family: Pridi;
  font-style: Light;
}

.footer-columns .footer-column-parent {
  display: flex;
  justify-content: center;
  align-items: start;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 23px;
}

.contact-item span {
  font-size: 14px;
  font-weight: 300;
  color: #f5f5f5;
  line-height: 1.6;
}

.btn-donate-footer {
  background-color: white;
  color: #000000;
  border: 1px solid #ffffff;
  border-radius: 5px;
  width: 91px;
  height: 39px;
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
  text-shadow: 0px -1px 0px 0px rgba(0, 0, 0, 0.12);
  margin-top: 20px;
}

.footer-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #093471;
  padding: 10px;
  text-align: center;
}

.footer-bottom p {
  font-size: 16px;
  font-weight: 400;
  color: white;
  line-height: 1.5;
}

.sponsor-section {
    padding: 60px 0;
    background-color: #fff;
    overflow: hidden;
}

.sponsor-section .section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 24px;
    color: #888;
    letter-spacing: 2px;
}

/* The Outer Container */
.marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    /* This creates the beautiful fade effect on the edges */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

/* The Moving Row */
.marquee-content {
    display: flex;
    width: calc(250px * 12); /* 250px per logo * 12 logos total */
    animation: scroll 30s linear infinite;
}
/* sister concern */
.sister-concern-section {
    padding: 60px 0;
    background-color: #fff;
    overflow: hidden;
}

.sister-concern-section .section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 24px;
    color: #888;
    letter-spacing: 2px;
}

.marquee-sister {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    /* Keeps the edges clean */
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-content-sister {
    display: flex;
    width: auto;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    animation: none;
}

.sister-logo {
    width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.sister-logo img {
    width: 100%;
    max-height: 65px; /* Slightly taller for more impact */
    object-fit: contain;
    
    /* BRIGHT STYLE: No grayscale, full opacity */
    filter: grayscale(0%); 
    opacity: 1;
    transition: transform 0.3s ease;
}

.sister-logo:hover img {
    transform: scale(1.1);
}

/* THE ANIMATION - 5 logos * 250px = 1250px shift */
@keyframes scroll-sister {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Move by exactly half the width (the 5 original logos) */
        transform: translateX(calc(-250px * 5)); 
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sister-logo {
        width: 160px;
        padding: 0 16px;
    }
    .marquee-content-sister {
        width: auto;
        gap: 16px;
    }
    @keyframes scroll-sister {
        100% { transform: translateX(calc(-180px * 5)); }
    }
}

.sponsor-logo-bright {
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
}

.sponsor-logo-bright img {
    width: 100%;
    max-height: 60px; /* Slightly larger height to make them pop */
    object-fit: contain;
    
    /* THE BRIGHT CHANGES: */
    filter: grayscale(0%); /* Full color */
    opacity: 1;            /* Full visibility */
    transition: transform 0.3s ease;
}

.sponsor-logo-bright:hover img {
    transform: scale(1.05); /* Gentle lift on hover */
}

/* THE ANIMATION */
@keyframes scroll-bright {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Adjust the multiplier to half of your total logos */
        transform: translateX(calc(-250px * 7)); 
    }
}

/* Responsive */
@media (max-width: 768px) {
    .sponsor-logo-bright {
        width: 180px;
        padding: 0 20px;
    }
    .marquee-content-bright {
        width: calc(180px * 14);
    }
    @keyframes scroll-bright {
        100% { transform: translateX(calc(-180px * 7)); }
    }
}
/* Individual Logo Styles */
.sponsor-logo {
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    transition: transform 0.3s ease;
}

.sponsor-logo img {
    width: 100%;
    max-height: 50px;
    object-fit: contain;
    filter: grayscale(100%); /* Elegant grayscale by default */
    opacity: 0.6;
    transition: all 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    .sponsor-logo:hover img {
        filter: grayscale(0%);
        opacity: 1;
        transform: scale(1.05);
    }
}

@media (hover: none) {
    .sponsor-logo img {
        filter: grayscale(100%);
        opacity: 0.6;
    }
}

.marquee:hover .marquee-content {
    animation-play-state: paused;
}

/* Hover Effects */
.marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    /* Full compatibility for the fade effect */
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-content {
    display: flex;
    /* Updated to 14 to match your HTML count */
    width: calc(250px * 14); 
    -webkit-animation: scroll 30s linear infinite;
    animation: scroll 30s linear infinite;
}

/* THE ANIMATION - Added prefixes for better migration */
@keyframes scroll {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
    100% {
        /* Move by exactly half the actual logos (7 out of 14) */
        -webkit-transform: translateX(calc(-250px * 7));
        transform: translateX(calc(-250px * 7)); 
    }
}

/* Repeat prefix for the responsive block as well */
@media (max-width: 768px) {
    .marquee-content {
        width: calc(180px * 14);
    }
    @keyframes scroll {
        100% { 
            -webkit-transform: translateX(calc(-180px * 7));
            transform: translateX(calc(-180px * 7)); 
        }
    }
}