:root {
  --color-primary-dark: #2c3e50; /* Deep charcoal blue */
  --color-primary-light: #f8f9fa; /* Soft off-white */
  --color-accent: #e67e22; /* Warm, hopeful gold/ochre */
  --color-text-dark: #34495e; /* Softer dark grey for text */
  --color-text-light: #ecf0f1; /* Light grey for text on dark bg */
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Lato", sans-serif;
  --shadow-subtle: 0 4px 15px rgba(0, 0, 0, 0.08);
}

body {
  font-family: var(--font-body);
  background-color: var(--color-primary-light);
  color: var(--color-text-dark);
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary-dark);
}

/* 2. Custom Navbar Styling */
.navbar-custom {
  background-color: var(--color-primary-dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  padding: 0.5rem 0;
}
.navbar-brand .navbar-logo {
  height: 50px;
  margin-right: 15px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
}
.navbar-brand .brand-main {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  display: block;
  line-height: 1.1;
  color: var(--color-text-light);
}
.navbar-brand .brand-subtitle {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--color-text-light);
  opacity: 0.8;
  display: block;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}
.navbar-custom .navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 1.2rem;
  transition: color 0.3s ease;
}
.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .nav-link:focus {
  color: #ffffff;
}
.navbar-custom .navbar-nav .nav-link.active {
  color: var(--color-accent);
}
.navbar-custom .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.2);
}
.navbar-custom .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 3. Main Content & Card Styling */
main {
  padding: 2rem 0;
}
.slideshow {
  position: relative;
  width: 97%;
  max-width: 1200px;
  height: 500px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-subtle);
}
/* Responsive padding for mobile screens */
@media (max-width: 768px) {
  .slideshow {
    padding: 1.2rem 4vw;
    height: 260px;
    border-radius: 8px;
  }
}

@media (max-width: 600px) {
  .navbar-brand .brand-subtitle,
  .brand-subtitle {
    font-size: 0.7rem;
    font-weight: 400;
    text-align: left;
    display: block;
    white-space: normal;
  }
}

.slideshow img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  pointer-events: none;
}
.slideshow img.active {
  opacity: 1;
  pointer-events: auto;
}
.event {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: auto;
}
.event-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn-up 0.8s ease-out forwards;
}
.event-card img,
.event-card .grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border: none;
}
.event-card .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.event-card .card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.event-card h4 {
  margin-top: 0;
  margin-bottom: 1rem;
}
.event-card p {
  flex-grow: 1;
  margin-bottom: 1.5rem;
}
.short-text,
.short-text1 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.full-text,
.full-text1 {
  display: none;
}
.show-more-btn,
.show-more-btn1 {
  background-color: var(--color-accent);
  color: white;
  border: none;
  padding: 0.4rem 1rem;
  cursor: pointer;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  align-self: flex-start;
}
.show-more-btn:hover,
.show-more-btn1:hover {
  background-color: #d35400;
  transform: translateY(-2px);
}

/* 4. Modern Footer */
.footer {
  background-color: var(--color-primary-dark);
  color: var(--color-text-light);
  padding: 4rem 1rem 1rem 1rem;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer h4 {
  color: #ffffff;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.footer h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--color-accent);
}
.footer p,
.footer a {
  color: var(--color-text-light);
  opacity: 0.8;
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}
.footer a:hover {
  color: var(--color-accent);
  opacity: 1;
}
.social-media a {
  margin-right: 15px;
}
.social-media img {
  width: 32px;
  height: 32px;
  filter: grayscale(100%) brightness(5);
  transition: filter 0.3s ease;
}
.social-media a:hover img {
  filter: grayscale(0%) brightness(1);
}
.newsletter input[type="email"] {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  color: white;
  margin-bottom: 0.8rem;
}
.newsletter button {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  background-color: var(--color-accent);
  color: white;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  transition: background-color 0.3s ease;
}
.newsletter button:hover {
  background-color: #d35400;
}
.copyright {
  text-align: center;
  padding-top: 2rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
  opacity: 0.6;
}

/* 5. Animation */
@keyframes fadeIn-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.event-card:nth-child(1) {
  animation-delay: 0.1s;
}
.event-card:nth-child(2) {
  animation-delay: 0.2s;
}
.event-card:nth-child(3) {
  animation-delay: 0.3s;
}


/* Styles/style.css */

/* === Add this new CSS at the end of your file === */

/* --- Event Card Footer for Buttons --- */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Pushes button and icons apart */
  margin-top: 15px;
  gap: 10px;
}

/* --- Social Share Icons --- */
.share-icons {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.share-icons button {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f0f2f5; /* A slightly softer background */
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.share-icons button i {
  color: #0d6efd; /* Your theme's primary blue */
  font-size: 16px;
}

.share-icons button:hover {
  background: #e4e6eb;
  transform: scale(1.1);
}

.share-icons button:focus {
  outline: 2px solid rgba(13, 110, 253, 0.2);
}