/* Ulliyeri Service Co-Operative Bank Ltd - Main CSS */
:root {
  --primary-color: #0d7a75;
  --primary-dark: #07524e;
  --secondary-color: #c0392b;
  --secondary-dark: #962d22;
  --accent-gold: #f39c12;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --text-dark: #2c3e50;
  --text-muted: #6c757d;
  --border-color: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
  color: var(--text-dark);
  background-color: #f4f7f6;
  line-height: 1.6;
}

/* Header & Top Bar */
.top-bar {
  background-color: var(--primary-dark);
  color: #fff;
  padding: 8px 5%;
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.top-bar-info span {
  margin-right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.top-bar-info a {
  color: #fff;
  text-decoration: none;
}

header {
  background: var(--bg-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 5%;
  max-width: 1280px;
  margin: 0 auto;
}

.logo img {
  height: 60px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s;
  padding: 8px 0;
  position: relative;
}

.nav-menu a:hover, .nav-menu a.active {
  color: var(--primary-color);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  border-radius: 2px;
}

/* Ticker / Announcement */
.ticker-bar {
  background-color: #e8f4f3;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 8px 5%;
  font-size: 0.9rem;
}

.ticker-title {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 4px 12px;
  font-weight: bold;
  font-size: 0.8rem;
  text-transform: uppercase;
  border-radius: 4px;
  margin-right: 15px;
  white-space: nowrap;
}

.ticker-content {
  overflow: hidden;
  white-space: nowrap;
}

.ticker-text {
  display: inline-block;
  animation: marquee 25s linear infinite;
}

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

/* Banner Slider */
.slider-container {
  position: relative;
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  background-color: #000;
}

.slide {
  display: none;
  position: relative;
  width: 100%;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  opacity: 0.88;
}

.slide-caption {
  position: absolute;
  bottom: 40px;
  left: 5%;
  right: 5%;
  color: #fff;
  background: rgba(13, 122, 117, 0.85);
  padding: 20px 30px;
  border-radius: 8px;
  border-left: 5px solid var(--secondary-color);
  max-width: 650px;
  backdrop-filter: blur(4px);
}

.slide-caption h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.slide-caption p {
  font-size: 1rem;
  margin-bottom: 15px;
}

.btn-primary {
  display: inline-block;
  background-color: var(--secondary-color);
  color: #fff;
  padding: 10px 22px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-primary:hover {
  background-color: var(--secondary-dark);
}

.btn-outline {
  display: inline-block;
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 8px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  margin-left: 10px;
  transition: all 0.3s;
}

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

.slider-dots {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: rgba(255,255,255,0.5);
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
}

.dot.active {
  background-color: var(--secondary-color);
  width: 25px;
  border-radius: 6px;
}

/* Section styling */
.section {
  padding: 60px 5%;
  max-width: 1280px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  color: var(--primary-dark);
  font-size: 2rem;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.section-title p {
  color: var(--text-muted);
  margin-top: 8px;
}

/* Quick Links Grid */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

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

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

.card {
  background: var(--bg-white);
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 4px solid var(--primary-color);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 60px;
  height: 60px;
  background-color: #e8f4f3;
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.card h3 {
  color: var(--primary-dark);
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.card-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* About Snippet Section */
.about-snippet {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 40px;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  color: var(--primary-color);
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.about-stats {
  display: flex;
  gap: 20px;
  margin: 25px 0;
}

.stat-box {
  background-color: #f4f7f6;
  padding: 15px 20px;
  border-radius: 6px;
  text-align: center;
  border-bottom: 3px solid var(--secondary-color);
}

.stat-box h4 {
  color: var(--primary-dark);
  font-size: 1.5rem;
}

.stat-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Tabs & Accordion */
.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--border-color);
  overflow-x: auto;
}

.tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Table styling */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.data-table th {
  background-color: var(--primary-dark);
  color: #fff;
  text-align: left;
  padding: 14px 20px;
}

.data-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
}

.data-table tr:nth-child(even) {
  background-color: #f8fafc;
}

/* Testimonials */
.testimonial-card {
  background: var(--bg-white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--secondary-color);
  position: relative;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 15px;
  color: #4a5568;
}

.testimonial-author {
  font-weight: bold;
  color: var(--primary-dark);
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Management Grid */
.member-card {
  background: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}

.member-img {
  width: 100%;
  height: 240px;
  background-color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 3rem;
}

.member-info {
  padding: 20px;
}

.member-info h4 {
  color: var(--primary-dark);
  font-size: 1.1rem;
}

.member-info p {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Footer */
footer {
  background-color: #1a252f;
  color: #cbd5e1;
  padding-top: 50px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  padding: 0 5% 40px 5%;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-col ul {
  list-style: none;
}

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

.footer-col ul a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col ul a:hover {
  color: #fff;
}

.footer-bottom {
  background-color: #111827;
  text-align: center;
  padding: 18px;
  font-size: 0.88rem;
  border-top: 1px solid #2d3748;
}

/* Form Styling */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(13, 122, 117, 0.2);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow);
  }
  .nav-menu.show {
    display: flex;
  }
  .about-snippet {
    flex-direction: column;
  }
  .slide img {
    height: 320px;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
