/* Base Styles */
/* Default light mode */
:root {
  --text-color: black;
  --background-color: white;
}

/* Dark mode */
.dark-mode {
  --text-color: white;
  --background-color: black;
}

/* Apply colors globally */
body {
  color: var(--text-color);
  background-color: var(--background-color);
}

/* Inherit text color */
h2, h3, h4, h5, h6, p, a, li, span, div, p {
  color: inherit;
}
h2 {
  color: var(--text-color); /* Inherits from the CSS variable */
}

h3 {
  color: var(--text-color); /* Inherits from the CSS variable */
}
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  transition: all 0.3s;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #333;
  color: #fff;
}

header .logo img {
  height: 50px;
}

header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: url('images/hero-bg.jpg') no-repeat center center/cover;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: Inherit;
  
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin: 0;
}

.hero p {
  font-size: 1.5rem;
}

.hero .btn {
  background: #ff6f61;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 25px;
  margin-top: 20px;
  transition: background 0.3s, transform 0.3s;
}

.hero .btn:hover {
  background: #ff4a3d;
  transform: scale(1.05);
}

/* Donation Ticker */
.donation-ticker {
  background: #f8f9fa;
  padding: 1rem;
  overflow: hidden;
}

.ticker-content {
  display: flex;
  animation: ticker 20s linear infinite;
}

@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.ticker-content span {
  white-space: nowrap;
  margin-right: 3rem;
  font-weight: 500;
  color: #333;
}

/* Initiatives Cards */
.initiatives {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.initiatives .card {
  background: #fff;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.initiatives .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

/* Footer */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

footer a {
  color: #ff6f61;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
.h1 {
  color:#ff6f61;
}

/* Typing Text Container */
.typing-text {
  color: #ff6f61; /* Visible in both light and dark modes */
  font-size: 2.5rem;
  font-weight: bold;
  white-space: pre-wrap; /* Allow text to wrap */
  overflow: hidden;
  border-right: 2px solid #ff6f61; /* Cursor */
  display: inline-block;
  max-width: 90%; /* Ensure text doesn't overflow the screen */
  margin: 0 auto; /* Center the text */
}
/* Side Menu */
.side-menu {
  width: 250px;
  height: 100%;
  position: fixed;
  top: 0;
  left: -250px;
  background: #333;
  color: #fff;
  transition: left 0.3s ease-in-out;
  z-index: 1000;
}

.side-menu.open {
  left: 0;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #444;
}

.menu-header img {
  height: 50px;
}

.nav-links {
  list-style: none;
  padding: 0;
}

.nav-links li {
  margin: 10px 0;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  display: block;
  transition: background 0.3s;
}

.nav-links a:hover {
  background: #444;
}

/* Main Content */
main {
  margin-left: 0;
  transition: margin-left 0.3s ease-in-out;
}

main.shifted {
  margin-left: 250px;
}

/* Footer Social Media */
footer .social-media {
  margin-bottom: 10px;
}

footer .social-media a {
  color: #ff6f61;
  text-decoration: none;
  margin: 0 10px;
}

footer .social-media a:hover {
  text-decoration: underline;
}
/* Team Member Cards */
.team-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.team-content .card {
  background: #fff;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.team-content .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.team-content .card img {
  width: 250px;
  height: 330px;
  border-radius: 30%;
  margin-bottom: 1rem;
}

.team-content .card h2 {
  font-size: 1.5rem;
  margin: 0.5rem 0;
}

.team-content .card p {
  font-size: 1rem;
  margin: 0.5rem 0;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  padding: 2rem;
}

.gallery-item {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.gallery-item p {
  padding: 1rem;
  text-align: center;
  font-size: 1rem;
  margin: 0;
}

/* Contact Form */
.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.contact-content .card {
  background: #fff;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact-content .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.contact-content form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-content input, .contact-content textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.contact-content button {
  background: #ff6f61;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-content button:hover {
  background: #ff4a3d;
}

/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: #f4f4f4;
  color: #333;
  transition: background 0.3s, color 0.3s;
}

/* Side Menu */
.side-menu {
  width: 250px;
  height: 100%;
  position: fixed;
  top: 0;
  left: -250px;
  background: #333;
  color: #fff;
  transition: left 0.3s;
  z-index: 1000;
}

.side-menu.open {
  left: 0;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #444;
}

.menu-header img {
  height: 50px;
}

.nav-links {
  list-style: none;
  padding: 0;
}

.nav-links li {
  margin: 10px 0;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  display: block;
  transition: background 0.3s;
}

.nav-links a:hover {
  background: #444;
}

/* Main Content */
main {
  margin-left: 0;
  transition: margin-left 0.3s;
}

main.shifted {
  margin-left: 250px;
}

header {
  background: #333;
  color: #fff;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#openMenu, #toggleDarkMode {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: url('images/hero-bg.jpg') no-repeat center center/cover;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin: 0;
}

.hero p {
  font-size: 1.5rem;
}

.btn {
  background: #ff6f61;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 25px;
  margin-top: 20px;
  transition: background 0.3s, transform 0.3s;
}

.btn:hover {
  background: #ff4a3d;
  transform: scale(1.05);
}

/* Mission & Vision */
.mission-vision {
  padding: 20px;
  text-align: center;
}

/* Footer */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

footer a {
  color: #ff6f61;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Donation Cards */
.donation-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 300px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.card p {
  margin: 10px 0;
  font-size: 1rem;
  color: #555;
}

.card img {
  width: 80px;
  margin-bottom: 15px;
}

/* Company-Themed Hovers */
.card.dfcu:hover {
  background: #ff4066;
  color: #fff;
}

.card.mtn:hover {
  background: #ffd700;
  color: #000;
}

.card.airtel:hover {
  background: #ff0000;
  color: #fff;
}

/* Dark Mode Adjustments */
body.dark-mode {
  background: #121212;
  color: #ffffff;
}

body.dark-mode .side-menu {
  background: #1e1e1e;
}

body.dark-mode .nav-links a {
  color: #ffffff;
}

body.dark-mode .nav-links a:hover {
  background: #333;
}

body.dark-mode header {
  background: #1e1e1e;
}

body.dark-mode footer {
  background: #1e1e1e;
}

body.dark-mode .btn {
  background: #ff6f61;
  color: #fff;
}

body.dark-mode .btn:hover {
  background: #ff4a3d;
}

body.dark-mode .card {
  background: #1e1e1e;
  color: #fff;
}

body.dark-mode .card p {
  color: #ccc;
}

body.dark-mode .card.dfcu:hover {
  background: #ff4066;
}

body.dark-mode .card.mtn:hover {
  background: #e6b800;
}

body.dark-mode .card.airtel:hover {
  background: #cc0000;
}

/* Donation Cards */
.donation-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 300px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.card p {
  margin: 10px 0;
  font-size: 1rem;
  color: #555;
}

.logo-circle {
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.logo-circle img {
  width: 40px;
  height: 40px;
}

/* Company-Themed Hovers */
.card.dfcu:hover {
  background: #ff4066;
  color: #fff;
}

.card.stanbic:hover {
  background: #ff6f61;
  color: #fff;
}

.card.centenary:hover {
  background: #0056b3;
  color: #000;
}

.card.mtn:hover {
  background: #ffd700;
  color: #000;
}

.card.airtel:hover {
  background: #ff0000;
  color: #fff;
}

/* Scrolling Donation Ticker */
.donation-ticker {
  width: 100%;
  overflow: hidden;
  background: #f4f4f4;
  padding: 10px 0;
  margin-top: 20px;
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  animation: tickerScroll 20s linear infinite;
}

.ticker-content p {
  display: inline-block;
  margin: 0 20px;
  font-size: 1.2rem;
  color: #333;
}

@keyframes tickerScroll {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

/* General Styles */
.donate {
  padding: 20px;
  text-align: center;
}

.donation-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}


.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}


/* Bank Logo Styles */
.bank-logo {
  width: 100px; /* Adjust size as needed */
  height: 100px; /* Adjust size as needed */
  border-radius: 50%; /* Makes the container circular */
  overflow: hidden; /* Ensures the image stays within the circle */
  margin: 0 auto 15px; /* Centers the logo and adds spacing */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0; /* Background color for the circle */
}

.bank-logo img {
  width: 80%; /* Adjust image size within the circle */
  height: auto; /* Maintains aspect ratio */
  border-radius: 50%; /* Ensures the image itself is circular */
}

/* Theme Colors for Cards */
.dfcu {
  border: 2px solid #0056b3; /* DFCU Blue */
}

.dfcu:hover {
  background: #0056b3;
  color: white;
}

.stanbic {
  border: 2px solid #ffcc00; /* Stanbic Yellow */
}

.stanbic:hover {
  background: #ffcc00;
  color: black;
}

.centenary {
  border: 2px solid #008000; /* Centenary Green */
}

.centenary:hover {
  background: #008000;
  color: white;
}

.mtn {
  border: 2px solid #ffd700; /* MTN Yellow */
}

.mtn:hover {
  background: #ffd700;
  color: black;
}

.airtel {
  border: 2px solid #ff0000; /* Airtel Red */
}

.airtel:hover {
  background: #ff0000;
  color: white;
}

/* Animations */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.clicked {
  animation: bounce 0.3s ease;
}

/* Donation Ticker */
.donation-ticker {
  margin-top: 30px;
  padding: 10px;
  background: #f0f0f0;
  border-radius: 10px;
}

.ticker-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ticker-content span {
  font-size: 12px;
  color: #333;
}