/*
 * Be Like Ike Foundation - Custom Styles
 * Brand-specific customizations for Lenity template
 * Load AFTER all template CSS files
 */

/* ========================================
   1. CSS VARIABLES & BRAND COLORS
   ======================================== */
:root {
  /* Be Like Ike Brand Colors */
  --bli-primary-orange: #EEBB43;
  --bli-primary-orange-rgb: 238, 187, 67;
  --bli-orange-light: #F4CD6B;
  --bli-orange-dark: #D4A12B;
  --bli-orange-hover: rgba(238, 187, 67, 0.9);

  /* Neutral Grays */
  --bli-gray-50: #f7f7f8;
  --bli-gray-100: #e8e8ea;
  --bli-gray-200: #d4d4d7;
  --bli-gray-300: #b5b5ba;
  --bli-gray-400: #92929a;
  --bli-gray-500: #6d6d75;
  --bli-gray-600: #52525a;
  --bli-gray-700: #3f3f46;
  --bli-gray-800: #27272a;
  --bli-gray-900: #121217;

  /* Semantic Colors */
  --bli-text-primary: #121217;
  --bli-text-secondary: #52525a;
  --bli-text-muted: #92929a;
  --bli-bg-primary: #ffffff;
  --bli-bg-secondary: #f7f7f8;
  --bli-bg-dark: #121217;

  /* Fonts */
  --bli-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bli-font-secondary: 'Onest', sans-serif;

  /* Spacing */
  --bli-section-padding: 80px 0;
  --bli-section-padding-mobile: 60px 0;
}

/* ========================================
   2. GLOBAL OVERRIDES
   ======================================== */

/* Primary Color Replacements */
.btn-default,
.btn-primary,
.primary-bg,
.section-title::before,
.nav-link.active::after {
  background-color: var(--bli-primary-orange) !important;
  border-color: var(--bli-primary-orange) !important;
  color: #ffffff !important;
}

.btn-default:hover,
.btn-primary:hover {
  background-color: var(--bli-orange-dark) !important;
  border-color: var(--bli-orange-dark) !important;
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* Links */
a {
  color: var(--bli-primary-orange);
  transition: color 0.3s ease;
  text-decoration: none;
}

a:hover {
  color: var(--bli-orange-dark);
}

/* ========================================
   3. NAVIGATION
   ======================================== */

.navbar {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
}

.navbar-brand img {
  max-height: 60px;
  width: auto;
}

.nav-link {
  color: var(--bli-gray-900) !important;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
  padding: 10px 20px !important;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--bli-primary-orange) !important;
}

.nav-link.active {
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 3px;
  background-color: var(--bli-primary-orange);
}

/* Donate Button in Header */
.navbar .btn-donate {
  background-color: var(--bli-primary-orange);
  color: #ffffff;
  padding: 10px 30px;
  border-radius: 30px;
  font-weight: 600;
  margin-left: 20px;
  transition: all 0.3s ease;
}

.navbar .btn-donate:hover {
  background-color: var(--bli-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(217, 119, 87, 0.3);
}

/* ========================================
   4. HERO SECTION
   ======================================== */

.hero-slider .swiper-slide {
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide {
  width: 100%;
  height: 600px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(18, 18, 23, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: left;
  color: #ffffff;
  max-width: 800px;
  margin: 0;
  padding: 0 20px;
}

.hero-title {
  font-size: 60px;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 24px;
  margin-bottom: 30px;
  font-weight: 300;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero-buttons .btn-default {
  padding: 15px 40px;
  font-size: 18px;
  border-radius: 30px;
  background-color: var(--bli-primary-blue);
  color: #ffffff;
  border: none;
  cursor: pointer;
}

.hero-buttons .btn-outline {
  background: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
  padding: 15px 40px;
  font-size: 18px;
  border-radius: 30px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.hero-buttons .btn-outline:hover {
  background: #ffffff;
  color: var(--bli-primary-orange);
}

/* ========================================
   5. SECTIONS
   ======================================== */

.section {
  padding: var(--bli-section-padding);
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--bli-gray-900);
  margin-bottom: 50px;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--bli-primary-orange);
  margin: 20px auto 0;
}

.section-alt {
  background-color: var(--bli-gray-50);
}

/* ========================================
   6. CARDS & COMPONENTS
   ======================================== */

.program-card,
.service-card,
.event-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

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

.program-card img,
.service-card img,
.event-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.program-card-content,
.service-card-content,
.event-card-content {
  padding: 30px;
}

.program-card h3,
.service-card h3,
.event-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--bli-gray-900);
}

.program-card p,
.service-card p,
.event-card p {
  color: var(--bli-gray-600);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ========================================
   7. STATISTICS/COUNTER SECTION
   ======================================== */

.stats-section {
  background: linear-gradient(135deg, var(--bli-primary-orange) 0%, var(--bli-orange-dark) 100%);
  color: #ffffff;
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 56px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========================================
   8. DONATION SECTION
   ======================================== */

.donation-section {
  background: linear-gradient(135deg, var(--bli-primary-orange) 0%, var(--bli-orange-dark) 100%);
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
}

.donation-section h2 {
  font-size: 42px;
  margin-bottom: 20px;
  color: #ffffff;
}

.donation-section p {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-donate-large {
  background-color: #ffffff;
  color: var(--bli-primary-orange);
  padding: 20px 60px;
  font-size: 20px;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.btn-donate-large:hover {
  background-color: var(--bli-gray-50);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  color: var(--bli-primary-orange);
  text-decoration: none;
}

.donation-note {
  margin-top: 20px;
  font-size: 14px;
  opacity: 0.8;
}

/* ========================================
   9. GALLERY
   ======================================== */

.gallery-section {
  padding: 80px 0;
}

.gallery-filters {
  text-align: center;
  margin-bottom: 40px;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--bli-gray-300);
  color: var(--bli-gray-900);
  padding: 10px 25px;
  margin: 5px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 14px;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--bli-primary-orange);
  border-color: var(--bli-primary-orange);
  color: #ffffff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* ========================================
   10. PAGE HERO BANNERS
   ======================================== */

.page-hero {
  background: linear-gradient(135deg, var(--bli-primary-orange) 0%, var(--bli-orange-dark) 100%);
  padding: 100px 0;
  text-align: center;
  color: white;
}

.page-hero h1 {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-hero p {
  font-size: 24px;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

@media (max-width: 992px) {
  .page-hero {
    padding: 80px 0;
  }

  .page-hero h1 {
    font-size: 46px;
  }

  .page-hero p {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 60px 0;
  }

  .page-hero h1 {
    font-size: 36px;
  }

  .page-hero p {
    font-size: 18px;
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding: 50px 0;
  }

  .page-hero h1 {
    font-size: 30px;
  }

  .page-hero p {
    font-size: 16px;
  }
}

/* ========================================
   11. FOOTER
   ======================================== */

footer {
  background-color: var(--bli-gray-900);
  color: #ffffff;
  padding: 60px 0 30px;
}

footer h3 {
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 600;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #ffffff;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer ul li {
  margin-bottom: 10px;
}

.footer-social {
  margin-top: 20px;
}

.footer-social a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--bli-primary-orange);
  color: #ffffff;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 30px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

/* ========================================
   11. RESPONSIVE DESIGN
   ======================================== */

/* Tablet - 992px and below */
@media (max-width: 992px) {
  .section {
    padding: var(--bli-section-padding-mobile);
  }

  .section-title {
    font-size: 36px;
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-slide {
    height: 500px;
  }

  .hero-slider .swiper-slide {
    min-height: 500px;
  }

  /* Hide swiper navigation arrows on tablet */
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }

  /* Stats grid adjustments */
  .stats-grid {
    gap: 30px;
  }

  .stat-number {
    font-size: 48px;
  }
}

/* Mobile landscape and small tablets - 768px and below */
@media (max-width: 768px) {
  /* Navigation mobile styles */
  .navbar {
    padding: 10px 0;
  }

  .navbar-brand img {
    max-height: 50px;
  }

  .navbar-collapse {
    background: #ffffff;
    padding: 20px;
    margin-top: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  }

  .nav-link {
    padding: 15px 20px !important;
    border-bottom: 1px solid var(--bli-gray-100);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .navbar .btn-donate {
    margin: 20px 0 0 0;
    width: 100%;
    text-align: center;
    display: block;
  }

  /* Hero sections */
  .hero-slide {
    height: 450px;
  }

  .hero-slider .swiper-slide {
    min-height: 450px;
  }

  .hero-content {
    text-align: center;
    padding: 0 15px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn-default,
  .hero-buttons .btn-outline {
    width: 100%;
    max-width: 280px;
    padding: 14px 30px;
    font-size: 16px;
  }

  /* Section titles */
  .section-title {
    font-size: 30px;
    margin-bottom: 30px;
  }

  .section-title::after {
    width: 60px;
    margin-top: 15px;
  }

  /* Stats section */
  .stats-section {
    padding: 60px 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .stat-number {
    font-size: 42px;
  }

  .stat-label {
    font-size: 14px;
  }

  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  /* Donation section */
  .donation-section {
    padding: 60px 0;
  }

  .donation-section h2 {
    font-size: 32px;
  }

  .donation-section p {
    font-size: 18px;
    padding: 0 15px;
  }

  .btn-donate-large {
    padding: 15px 40px;
    font-size: 18px;
  }

  /* Cards */
  .program-card img,
  .service-card img,
  .event-card img {
    height: 200px;
  }

  .program-card-content,
  .service-card-content,
  .event-card-content {
    padding: 20px;
  }

  .program-card h3,
  .service-card h3,
  .event-card h3 {
    font-size: 20px;
  }

  /* Footer */
  footer {
    padding: 40px 0 20px;
  }

  footer h3 {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
  }

  /* Collage wrapper improvements */
  .collage-wrapper {
    height: 450px;
  }

  .collage-container {
    max-width: 400px;
  }

  /* Values/BELIKEIKE grid - ensure proper wrapping */
  .row.text-center .col-6 {
    padding: 0 10px;
  }
}

/* Mobile portrait - 576px and below */
@media (max-width: 576px) {
  /* Container padding */
  .container {
    padding: 0 15px;
  }

  /* Hero sections */
  .hero-slide {
    height: 400px;
  }

  .hero-slider .swiper-slide {
    min-height: 400px;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  /* Section spacing */
  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 26px;
  }

  /* Stats section single column */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stat-number {
    font-size: 38px;
  }

  /* Cards */
  .program-card img,
  .service-card img,
  .event-card img {
    height: 180px;
  }

  /* Donation section */
  .donation-section h2 {
    font-size: 26px;
  }

  .donation-section p {
    font-size: 16px;
  }

  .btn-donate-large {
    padding: 14px 30px;
    font-size: 16px;
    width: 90%;
    max-width: 280px;
  }

  /* Collage becomes stacked images */
  .collage-wrapper {
    height: auto;
    min-height: 300px;
  }

  .collage-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 100%;
  }

  .collage-img {
    position: relative !important;
    width: 100% !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
  }

  .collage-img:hover {
    transform: scale(1.02) !important;
  }
}

/* Small mobile - 480px and below */
@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 24px;
  }

  /* Smaller buttons for very small screens */
  .btn-default,
  .btn-primary {
    padding: 12px 24px;
    font-size: 14px;
  }

  /* Footer adjustments */
  footer h3 {
    font-size: 16px;
  }

  .footer-social a {
    width: 36px;
    height: 36px;
    line-height: 36px;
  }
}

/* ========================================
   12. ADDITIONAL MOBILE IMPROVEMENTS
   ======================================== */

/* Responsive inline button styles */
@media (max-width: 768px) {
  /* Handle inline outline buttons */
  .btn-outline,
  a[class*="btn-outline"] {
    display: block !important;
    width: 100%;
    max-width: 300px;
    margin: 10px auto !important;
    text-align: center;
  }

  /* Accordion responsive improvements */
  .accordion-button {
    font-size: 16px !important;
    padding: 15px !important;
    flex-wrap: wrap;
  }

  .accordion-button span {
    display: block;
    width: 100%;
    margin-bottom: 5px;
  }

  .accordion-body {
    padding: 15px !important;
  }

  .accordion-body .grid-2 {
    gap: 20px;
  }

  /* Team member cards - responsive sizing */
  .col-md-4 img[style*="border-radius: 50%"] {
    width: 140px !important;
    height: 140px !important;
  }

  /* Contact info boxes */
  div[style*="display: flex"][style*="align-items: start"] {
    flex-wrap: wrap;
  }

  /* Forms - ensure full width on mobile */
  input[type="text"],
  input[type="email"],
  textarea {
    font-size: 16px !important; /* Prevents iOS zoom on focus */
  }
}

@media (max-width: 576px) {
  /* Values section letters */
  .row.text-center div[style*="font-size: 48px"] {
    font-size: 36px !important;
  }

  /* Team member section */
  div[style*="padding: 40px 30px"] {
    padding: 25px 20px !important;
  }

  /* Inline styled headings - generic mobile sizing */
  h2[style*="font-size: 36px"],
  h2[style*="font-size: 42px"] {
    font-size: 28px !important;
  }

  h3[style*="font-size: 28px"],
  h3[style*="font-size: 24px"] {
    font-size: 22px !important;
  }

  /* Inline styled paragraphs with font-size */
  p[style*="font-size: 24px"] {
    font-size: 18px !important;
  }

  p[style*="font-size: 20px"],
  p[style*="font-size: 18px"] {
    font-size: 16px !important;
  }

  /* Award amount display */
  p[style*="font-size: 32px"] {
    font-size: 28px !important;
  }

  /* Application steps - better mobile layout */
  div[style*="display: flex"][style*="align-items: start"] > div:first-child {
    margin-bottom: 10px;
  }
}

/* ========================================
   12. UTILITY CLASSES
   ======================================== */

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

.text-center {
  text-align: center;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-40 {
  margin-bottom: 40px;
}

.mt-40 {
  margin-top: 40px;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

@media (max-width: 992px) {
  .grid-2 {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

/* ========================================
   13. CUSTOM IMAGE COLLAGE
   ======================================== */

.collage-wrapper {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.collage-container {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 650px;
  /* Constrain width to keep collage tight */
  margin: 0 auto;
}

.collage-img {
  position: absolute;
  background: #fff;
  padding: 8px;
  /* White border effect */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  /* Slight roundness looks cleaner */
  transition: all 0.4s ease;
  object-fit: cover;
}

.collage-img:hover {
  z-index: 10 !important;
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Top Center Image */
.img-legacy {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  z-index: 2;
}

/* Bottom Right Image */
.img-lyman2 {
  bottom: 20px;
  right: 0;
  width: 55%;
  z-index: 3;
  transform: rotate(5deg);
}

/* Bottom Left Image */
.img-lyman3 {
  bottom: 0;
  left: 0;
  width: 50%;
  z-index: 1;
  transform: rotate(-5deg);
}

/* Hover Effects Specifics to maintain rotation on hover */
.img-lyman2:hover {
  transform: scale(1.05) rotate(0deg);
}

.img-lyman3:hover {
  transform: scale(1.05) rotate(0deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .collage-wrapper {
    height: 450px;
  }

  .collage-container {
    max-width: 400px;
  }
}