/* Base Styles */
html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin-bottom: 0;
  padding-bottom: 0;
  font-family: 'Open Sans', sans-serif;
  color: #65467B;
}

/* Focus Styles */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Main Content */
main {
  padding-bottom: 2rem;
}

/* Header Styles */
header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: #fff;
}

header nav {
  background-color: #fff;
}

header nav.border-bottom {
  border-bottom-color: rgba(101, 70, 123, 0.2) !important;
}

header nav.box-shadow {
  box-shadow: 0 0.25rem 0.75rem rgba(101, 70, 123, 0.15) !important;
}

.header-container {
  max-width: 1560px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.75rem 1.5rem;
}

.header-container .navbar-brand {
  margin-right: 0;
  padding: 0;
  color: #65467B;
}

.header-container .navbar-brand span {
  color: #65467B;
  font-weight: bold;
  line-height: 1.3;
  display: block;
}

.header-container .navbar-collapse {
  margin-left: auto;
}

/* Navigation Styles */
.navbar-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  width: auto;
}

.navbar-row-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.navbar-nav-top,
.navbar-nav-bottom {
  flex-direction: row;
  gap: 0.5rem;
}

header .navbar-nav .nav-link {
  color: #65467B;
  padding: 0.25rem 0.75rem;
}

header .navbar-nav .nav-link:hover {
  color: #4d2f5c;
}

.navbar-nav-top .nav-link {
  font-size: 0.95rem;
}

.navbar-nav-bottom .nav-link {
  font-size: 1.05rem;
  font-weight: 600;
}

header .text-dark {
  color: #65467B !important;
}

.navbar-nav .dropdown-menu {
  text-align: right;
  min-width: auto;
}

header .dropdown-menu .dropdown-item {
  color: #65467B;
}

header .dropdown-menu .dropdown-item:hover {
  color: #4d2f5c;
  background-color: rgba(101, 70, 123, 0.1);
}

/* Donation Button */
.btn-donate {
  background-color: #2D9CDB;
  border-color: #2D9CDB;
  color: #fff;
  font-weight: 600;
  padding: 0.4rem 1.25rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  margin-left: 0.5rem;
}

.btn-donate:hover,
.btn-donate:focus {
  background-color: #2388C4;
  border-color: #2388C4;
  color: #fff;
}

.btn-donate:active {
  background-color: #1F73A8;
  border-color: #1F73A8;
}

/* Home Sections */
.home-sections {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 0 auto;
  max-width: 960px;
  padding: 2rem 1rem 2rem;
  margin-bottom: 0;
}

.home-section-card {
  min-height: 60vh;
  border: none;
  box-shadow: 0 0.5rem 1rem rgba(101, 70, 123, 0.15);
}

.home-section-card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
}

.home-section-card .btn-primary {
  background-color: #4d2f5c;
  border-color: #4d2f5c;
  color: #fff;
}

.home-section-card .btn-primary:hover,
.home-section-card .btn-primary:focus {
  background-color: #3d2447;
  border-color: #3d2447;
}

/* Footer Styles */
.footer {
  position: relative !important;
  bottom: auto !important;
  width: 100%;
  padding: 2rem 0;
  margin-top: 2rem;
  color: #65467B;
}

.footer.border-top {
  border-top-color: rgba(101, 70, 123, 0.2) !important;
}

.footer .container {
  max-width: 1560px;
  margin: 0 auto;
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.footer .text-dark,
.footer.text-muted,
.footer .text-muted {
  color: #65467B !important;
}

.footer a {
  color: #65467B;
}

.footer a:hover {
  color: #4d2f5c;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  flex: 1;
  min-width: 200px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-logo .navbar-brand {
  margin-right: 0;
  padding: 0;
}

.footer-logo .navbar-brand span {
  font-weight: bold;
  line-height: 1.3;
  display: block;
}

.footer-copyright {
  margin: 0;
}

.footer-social-section {
  display: flex;
  align-items: flex-end;
  align-self: flex-end;
}

.footer-social-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-social-label {
  font-weight: 600;
  margin-bottom: 0;
}

.footer-social {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.footer-social .social-link {
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.footer-social .social-link:hover {
  opacity: 0.7;
}

.footer-social .social-link svg {
  display: block;
}

.footer-social .social-link svg path {
  fill: #4d2f5c;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
  }

  .header-container .navbar-brand {
    justify-content: center;
    display: flex;
  }

  .header-container .navbar-collapse {
    width: 100%;
    margin-left: 0;
  }

  .navbar-menu {
    align-items: stretch;
    width: 100%;
  }

  .navbar-row-top {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .btn-donate {
    width: 100%;
    margin-left: 0;
  }

  .navbar-nav-top,
  .navbar-nav-bottom {
    flex-direction: column;
    gap: 0;
  }

  .navbar-nav-bottom .nav-link {
    font-size: 1rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-left {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-logo {
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
  }

  .footer-social-section {
    align-items: center;
    align-self: center;
  }

  .footer-social-wrapper {
    align-items: center;
  }

  .footer-social {
    justify-content: center;
  }
}

/* NuestraMission Page Styles */
.mision-image-container {
  overflow: hidden; /* Clearfix for floated image - contains the float */
}

.mision-image {
  width: 30%;
  float: left;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
  display: block;
  max-width: 100%;
  height: auto;
}

/* Text content will naturally wrap around the floated image */
/* When text extends beyond the image height, it will continue below */

/* Logo Styles */
.navbar-brand img {
  height: 120px;
}

.footer-logo .navbar-brand img {
  height: 120px;
}

/* Language Flag SVG Styles */
.language-flag-icon {
  vertical-align: middle;
  margin-right: 5px;
}
