/* ========== Google Kannada Font ========== */
@import url('https://fonts.googleapis.com/css2?family=Baloo+Tamma+2:wght@400;600&display=swap');

/* ========== Global Reset ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  background-color: #ffffff;
  color: #222;
  line-height: 1.6;
}

/* Kannada Font Style */
.lang-kn, .kn, #society-kn {
  font-family: "Baloo Tamma 2", cursive;
}

/* ========== Header ========== */
header {
  background-color: #0D3B66; /* Deep Navy Blue */
  color: white;
  text-align: center;
  padding: 20px 10px;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 75px;
  width: 75px;
  object-fit: contain;
}

.society-name h1, .society-name h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 5px 0;
}

/* Language Toggle */
.lang-btn {
  background-color: transparent;
  color: white;
  border: 2px solid white;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 10px;
}

.lang-btn:hover {
  background-color: #F4A300;
  color: #0D3B66;
  border-color: #F4A300;
}

/* ========== Navigation Bar ========== */
nav {
  background-color: #F4A300; /* Orange Bar */
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  display: block;
  padding: 12px 18px;
  color: #222;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  opacity: 0.85;
}

.nav-menu li.active a,
.nav-menu a:hover {
  background-color: #0D3B66;
  color: white;
  opacity: 1;
}

/* ========== Scrolling Banner ========== */
.banner {
  background-color: #fdf4e3;
  color: #663300;
  padding: 8px 0;
  font-weight: 500;
  border-top: 1px solid #f7dca0;
  border-bottom: 1px solid #f7dca0;
}

/* ===== IMAGE CAROUSEL ===== */
.carousel {
  width: 100%;
  height: auto;                     /* Carousel Height */
  overflow: hidden;
  position: relative;
  border-bottom: 4px solid #F4A300;  /* optional accent line */
}

.carousel .slides {
  display: flex;
  width: 100%;                       /* 3 images */
  height: 100%;
  animation: slide 15s infinite;
}

.carousel img {
  width: 100%;
  height: auto;
  object-fit: cover;
  flex: 1 0 100%;
  transition: transform 0.5s ease-in-out;
}

/* Keyframes for smooth infinite sliding */
@keyframes slide {
  0%   { transform: translateX(0%); }
  30%  { transform: translateX(0%); }
  35%  { transform: translateX(-100%); }
  65%  { transform: translateX(-100%); }
  70%  { transform: translateX(-200%); }
  100% { transform: translateX(-200%); }
}


/* ========== Main Content ========== */
main {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.content-section {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 40px;
}

.content-section h2 {
  color: #0D3B66;
  border-bottom: 3px solid #F4A300;
  display: inline-block;
  padding-bottom: 5px;
  margin-bottom: 15px;
  font-weight: 600;
}

/* ========== Buttons ========== */
.submit-btn {
  background-color: #0D3B66;
  color: white;
  border: none;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.submit-btn:hover {
  background-color: #F4A300;
  color: #0D3B66;
}

/* ========== Forms ========== */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input, textarea, select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  outline: none;
  width: 100%;
}

input:focus, textarea:focus {
  border-color: #0D3B66;
  box-shadow: 0 0 4px rgba(13, 59, 102, 0.3);
}

/* ========== Tables ========== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

th, td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

th {
  background-color: #f4f4f4;
  color: #0D3B66;
  font-weight: bold;
}

/* ========== Gallery & Leadership Cards ========== */
.gallery-grid, .leaders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.gallery-card, .leader-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  text-align: center;
  padding-bottom: 10px;
}

.gallery-card:hover, .leader-card:hover {
  transform: translateY(-5px);
}

.gallery-card img, .leader-card img {
  width: auto;
  height: auto;
  object-fit: cover;
  border-bottom: 3px solid #F4A300;
}

.gallery-card p, .leader-card p {
  padding: 10px;
  font-size: 14px;
  color: #333;
}

/* ========== Contact Info & Map ========== */
.contact-info {
  background-color: #f7faff;
  padding: 15px 20px;
  border-radius: 10px;
  margin-top: 20px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.contact-info h3 {
  color: #0D3B66;
  margin-bottom: 10px;
}

iframe {
  width: 100%;
  height: 350px;
  border-radius: 8px;
  border: 0;
}

/* ========== Footer ========== */
footer {
  background-color: #0D3B66;
  color: white;
  text-align: center;
  padding: 12px 0;
  font-size: 14px;
  margin-top: 40px;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .society-name h2 {
    font-size: 1.2rem;
  }

  nav {
    font-size: 14px;
  }

  .nav-menu a {
    padding: 10px 12px;
  }

  .content-section {
    padding: 20px;
  }

  .logo {
    height: 60px;
    width: 60px;
  }
}
