/*
GMS Custom Styles
Generous Minds Society - Custom styling for Mellow template adaptation
*/

/* GMS Brand Variables */
:root {
  --gms-primary: #95442f;
  --gms-secondary: #f4f1ed;
  --gms-accent: #c8986b;
  --gms-dark: #2d1810;
  --gms-success: #6b8e23;
  --gms-black: #1A1A1A;
  --gms-gray: #777F81;
  --gms-light: #fdfdfd;
  --gms-cream: #faf8f5;
}

/* Override Mellow template colors for GMS branding */
.text-primary,
.btn-primary {
  color: var(--gms-primary) !important;
}

.btn-primary {
  background-color: var(--gms-primary);
  border-color: var(--gms-primary);
  color: white;
  transition: all 0.3s ease;
}

a.menu-link {
    text-decoration: none !important;
}
.button-wrapper
{
    padding-top: 10px;
}
.btn-primary:hover {
  background-color: var(--gms-accent);
  border-color: var(--gms-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(149, 68, 47, 0.3);
}

/* GMS Hero Section Customization */
.hero-section {
  background: linear-gradient(135deg, var(--gms-primary) 0%, var(--gms-accent) 100%);
}

.hero-title {
  color: #884322;
}
a.btn.btn-outline-light.btn-lg, .btn.btn-outline-primary{
    color: #95442f !important;
    border: 1px solid #95442f !important;
}
button.btn.btn-light.btn-lg.me-3,button.btn.btn-primary.btn-lg,button.btn.btn-primary,a.btn.btn-primary.btn-lg,a.btn.btn-primary {
    color: white !important;
    background: #884322 !important;
}
button.btn.btn-light.btn-lg.me-3,button.btn.btn-primary.btn-lg,button.btn.btn-primary,a.btn.btn-primary.btn-lg :hover{
    color: #95442f !important;
    border: 1px solid #95442f !important;
    background: #fefefe !important;
}
a.btn.btn-outline-light.btn-lg, .btn.btn-outline-primary:hover{
    color: white !important;
    background: #884322 !important;
}

.hero-subtitle ,p.hero-description.text-light.mb-4.lead{
  color: #884322 !important;
}

.display-3,.color-theme,.display-4{
  color: #884322 !important;
}
.text-dark,p.mb-4.text-dark{
    color: #000000 !important;
}
.bg-primary.rounded-circle.d-inline-flex.align-items-center.justify-content-center.color-theme,.bg-primary.rounded-circle.d-flex.align-items-center.justify-content-center.theme-color,.bg-primary.rounded-circle.d-inline-flex.align-items-center.justify-content-center.theme-color {
    color: white !important;
    background: #884322 !important;
}
/* Contact Information Section Styling */
.contact-info {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(149, 68, 47, 0.15);
}

.contact-info p {
  color: #333333 !important;
}

.contact-info .text-muted {
  color: #666666 !important;
}
/* Fixed Header Styling */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  background: var(--gms-light);
  box-shadow: 0 2px 10px rgba(149, 68, 47, 0.1);
}

/* Body padding to prevent content overlap with fixed header */
body {
  padding-top: 140px;
}

/* Mobile responsive adjustments for fixed header */
@media (max-width: 991.98px) {
  body {
    padding-top: 120px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 100px;
  }
}

#header .header-top {
  background-color: var(--gms-secondary) !important;
  border-bottom: 1px solid var(--gms-accent);
}

#header .header-top .info li {
  color: var(--gms-primary);
}

#header .header-top .info svg {
  color: var(--gms-primary);
}

#header .header-top .social-links a {
  color: var(--gms-primary);
  transition: color 0.3s ease;
}

#header .header-top .social-links a:hover {
  color: var(--gms-accent);
}

#header .header-bottom,
#header #primary-header {
  background-color: var(--gms-light);
  border: none;
  box-shadow: none;
}

#header .navbar-brand .logo {
  filter: drop-shadow(0 2px 4px rgba(149, 68, 47, 0.1));
}

img.logo.img-fluid.brand-logo-css {
  width: 100%;
  max-width: 150px;
}

#header .nav-link {
  color: var(--gms-dark) !important;
  font-weight: 500;
  text-transform: capitalize;
  transition: all 0.3s ease;
}

#header .nav-link:focus {
  color: var(--gms-dark) !important;
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

#header .nav-link.active,
#header .nav-link:hover {
  color: var(--gms-primary) !important;
  outline: none;
}

/* Additional focus styles removal */
#header .nav-link:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Remove focus outline from all navigation elements */
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link:focus-visible,
.dropdown-item:focus,
.dropdown-item:focus-visible,
.dropdown-toggle:focus,
.dropdown-toggle:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Remove browser default focus outlines globally for better UX */
button:focus,
a:focus,
input:focus {
  outline: none !important;
}

#header .dropdown-menu {
  border: 1px solid var(--gms-secondary);
  box-shadow: 0 4px 12px rgba(149, 68, 47, 0.15);
}

#header .dropdown-item:hover {
  background-color: var(--gms-secondary);
  color: var(--gms-primary);
}

/* Search Form Styling */
#header .form-control {
  border: 2px solid var(--gms-secondary);
  border-radius: 25px;
}

#header .form-control:focus {
  border-color: var(--gms-primary);
  box-shadow: 0 0 0 0.2rem rgba(149, 68, 47, 0.25);
}

#header .btn-outline-primary {
  border-color: var(--gms-primary);
  color: var(--gms-primary);
  border-radius: 25px;
}

#header .btn-outline-primary:hover {
  background-color: var(--gms-primary);
  border-color: var(--gms-primary);
}

/* Mobile Header Responsive */
@media (max-width: 991.98px) {
  #header .header-top .info {
    flex-direction: column;
    gap: 8px;
  }

  #header .header-top .info li {
    font-size: 13px !important;
  }

  #header .navbar-brand .logo {
    max-height: 50px !important;
  }

  #header .offcanvas-header .logo {
    max-height: 35px !important;
  }
}

@media (max-width: 768px) {
  #header .header-top {
    padding: 8px 0 !important;
  }

  #header .header-top .info li {
    margin-right: 16px !important;
  }

  #header .social-links {
    display: none;
  }
}

/* GMS Stats Section */
.stats-section {
  background-color: var(--gms-secondary);
}

.stat-number {
  color: var(--gms-primary);
  font-weight: 700;
}

/* GMS Program Cards (formerly Room cards) */
.program-card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.program-card .card-title {
  color: var(--gms-primary);
}

/* GSAP Animation Helper Classes */
.fade-in {
  opacity: 0;
}

.slide-up {
  transform: translateY(50px);
  opacity: 0;
}

.slide-right {
  transform: translateX(-50px);
  opacity: 0;
}

.scale-in {
  transform: scale(0.8);
  opacity: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}

/* Animation performance optimization */
.animated-element {
  will-change: transform, opacity;
}

/* Bouncing Balls Animation */
.bouncing-balls-container {
  top: 0;
  left: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 1.5rem;
}

.bounce-ball {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.ball-1 {
  width: 40px;
  height: 40px;
  background: rgba(136, 67, 34, 0.8);
  top: 30%;
  left: 0;
  box-shadow: 0 4px 12px rgba(136, 67, 34, 0.3);
}

.ball-2 {
  width: 30px;
  height: 30px;
  background: rgba(149, 68, 47, 0.7);
  top: 40%;
  left: 60%;
  box-shadow: 0 3px 10px rgba(149, 68, 47, 0.3);
}

.ball-3 {
  width: 25px;
  height: 25px;
  background: rgba(200, 152, 107, 0.8);
  top: 50%;
  left: 30%;
  box-shadow: 0 2px 8px rgba(200, 152, 107, 0.4);
}

.ball-4 {
  width: 32px;
  height: 32px;
  background: rgba(136, 67, 34, 0.6);
  top: 20%;
  left: 80%;
  box-shadow: 0 3px 9px rgba(136, 67, 34, 0.3);
}

.ball-5 {
  width: 35px;
  height: 35px;
  background: rgba(149, 68, 47, 0.5);
  top: 70%;
  left: 20%;
  box-shadow: 0 4px 11px rgba(149, 68, 47, 0.3);
}

/* Custom Spacing Classes */
.padding-moderate {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 1200px) {
  .padding-moderate {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

@media (max-width: 768px) {
  .padding-moderate {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}


/* Tabler Icon Styling */
.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: text-bottom;
  fill: currentColor;
}

.icon-3x {
  width: 3em;
  height: 3em;
}

/* Form label icon styling */
.form-label .icon {
  color: var(--gms-primary);
  opacity: 0.8;
}

/* Button icon styling */
.btn .icon {
  margin-right: 0.375rem;
}

/* Board Members Slider Styling */
.board-members-slider {
  max-width: 1200px;
  margin: 0 auto;
}

.boardSwiper {
  padding: 0 50px 40px;
}

.boardSwiper .swiper-slide {
  height: auto;
  display: flex;
  align-items: stretch;
}

.boardSwiper .swiper-slide .card {
  width: 100%;
  margin: 0;
}

/* Navigation Arrows */
.board-next,
.board-prev {
  color: var(--gms-primary) !important;
  background: rgba(149, 68, 47, 0.1);
  border-radius: 50%;
  width: 40px !important;
  height: 40px !important;
  margin-top: -20px !important;
  transition: all 0.3s ease;
}

.board-next:after,
.board-prev:after {
  font-size: 16px !important;
  font-weight: bold;
}

.board-next:hover,
.board-prev:hover {
  background: var(--gms-primary);
  color: white !important;
  transform: scale(1.1);
}

/* Pagination Dots */
.board-pagination {
  position: relative !important;
  margin-top: 20px;
}

.board-pagination .swiper-pagination-bullet {
  background: rgba(149, 68, 47, 0.3);
  opacity: 1;
  transition: all 0.3s ease;
}

.board-pagination .swiper-pagination-bullet-active {
  background: var(--gms-primary);
  transform: scale(1.2);
}

/* Enhanced Board Member Card Styling */
.board-member-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px !important;
  overflow: hidden;
}

.board-member-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(149, 68, 47, 0.2) !important;
}

.position-badge {
  background: linear-gradient(135deg, var(--gms-primary), var(--gms-accent));
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

.member-email {
  color: #666;
  font-size: 13px;
  font-weight: 500;
}

.member-email i {
  color: var(--gms-primary);
  opacity: 0.8;
}

.member-country {
  color: #555;
  font-size: 13px;
  font-weight: 500;
}

.member-country i {
  color: var(--gms-accent);
}

.member-initials {
  background: rgba(149, 68, 47, 0.1);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--gms-primary);
}

/* Email Button Styling */
.member-actions .btn {
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.3s ease;
  border: 2px solid var(--gms-primary);
}

.member-actions .btn:hover {
  background-color: var(--gms-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(149, 68, 47, 0.3);
}

/* Gallery Tabs Styling */
.gallery-tab {
  background: transparent;
  color: var(--gms-primary);
  border: 2px solid var(--gms-primary);
  border-radius: 25px;
  padding: 10px 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin: 0 5px;
}

.gallery-tab:hover,
.gallery-tab.active {
  background: var(--gms-primary);
  color: white;
  border-color: var(--gms-primary);
}

/* Gallery Cards */
.gallery-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(149, 68, 47, 0.2);
}

.gallery-card .card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.gallery-card .btn {
  border-radius: 20px;
  padding: 5px 15px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.gallery-card .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(149, 68, 47, 0.3);
}

/* Modal Styling */
.modal-content {
  border-radius: 15px;
  border: none;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.modal-header {
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
}

.modal-title {
  font-weight: 600;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .boardSwiper {
    padding: 0 0 40px;
  }

  .board-next,
  .board-prev {
    display: none;
  }

  .member-email,
  .member-country {
    font-size: 12px;
  }

  .position-badge {
    font-size: 11px;
    padding: 3px 10px;
  }

  .gallery-tab {
    padding: 8px 15px;
    font-size: 14px;
    margin: 0 3px 10px;
  }

  .gallery-card .card-title {
    font-size: 13px;
  }
}

/* DataTables Pagination Bottom Spacing */
.dt-paging {
    padding-bottom: 5px;
}

/* Language Switcher Enhanced Styling */
.language-switcher {
  position: relative;
}

.language-button {
  border-radius: 8px !important;
  transition: all 0.2s ease;
  min-width: 140px;
  justify-content: flex-start !important;
}

.language-button:hover {
  background-color: rgba(149, 68, 47, 0.05) !important;
  transform: translateY(-1px);
}

.language-button:focus {
  box-shadow: 0 0 0 2px rgba(149, 68, 47, 0.2) !important;
  outline: none;
}

.language-dropdown {
  border: 1px solid rgba(149, 68, 47, 0.1) !important;
  box-shadow: 0 8px 25px rgba(149, 68, 47, 0.15) !important;
  backdrop-filter: blur(10px);
  z-index: 1060;
}

.language-item {
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.language-item:hover {
  background-color: rgba(149, 68, 47, 0.08) !important;
  color: var(--gms-primary) !important;
  transform: translateX(4px);
}

.language-item.active {
  background-color: rgba(149, 68, 47, 0.1) !important;
  color: var(--gms-primary) !important;
  font-weight: 600;
}

.language-item .flag-emoji {
  filter: brightness(1.1) contrast(1.05);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Emoji fallback system */
@supports not (font-variation-settings: normal) {
  .flag-emoji {
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'Twemoji Mozilla', sans-serif !important;
  }
}

/* Cross-browser emoji support */
.flag-emoji {
  font-variant-emoji: emoji;
  font-feature-settings: "liga" off;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fallback for browsers without emoji support */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  .language-fallback,
  .language-code-fallback {
    display: inline !important;
  }
  
  .flag-emoji {
    display: none;
  }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .language-button {
    min-width: 120px;
    padding: 8px 12px !important;
  }
  
  .language-text {
    font-size: 13px !important;
  }
  
  .flag-emoji {
    font-size: 16px !important;
  }
  
  .language-dropdown {
    min-width: 140px !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .language-button {
    border: 2px solid var(--gms-primary) !important;
  }
  
  .language-item {
    border-bottom: 1px solid rgba(149, 68, 47, 0.2);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .bounce-ball {
    animation: none !important;
  }
  
  .language-button,
  .language-item {
    transition: none !important;
  }
}
