/* =========================================================
   ಕರ್ನಾಟಕ ಪತ್ರಕರ್ತರ ಸಹಕಾರ ಸಂಘ ನಿಯಮಿತ — Bank Style System
   Concept: Institutional, trustworthy, Cooperative Bank theme.
   Primary: Navy Blue, Accent: Gold/Maroon.
   ========================================================= */

:root {
  --primary-blue: #0A3161;
  --primary-blue-dark: #072244;
  --primary-blue-light: #164a8c;
  --accent-gold: #D4AF37;
  --accent-gold-dark: #b5952f;
  --accent-red: #B31942;
  --text-main: #333333;
  --text-muted: #666666;
  --bg-main: #F8F9FA;
  --bg-white: #FFFFFF;
  --line-color: #E0E0E0;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
  --radius: 4px;
  --font-display: 'Noto Serif Kannada', 'Noto Serif', Georgia, serif;
  --font-body: 'Noto Sans Kannada', 'Noto Sans', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--bg-main);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
  color: var(--primary-blue);
  font-weight: 700;
}

a { color: var(--primary-blue); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-red); }

::selection { background: var(--primary-blue); color: #fff; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--primary-blue-dark);
  color: #FFFFFF;
  font-size: 0.85rem;
  padding: 0.4rem 0;
}
.topbar a { color: #FFFFFF; }
.topbar a:hover { color: var(--accent-gold); }
.topbar .divider { opacity: 0.5; margin: 0 0.8rem; }

/* ---------- Main Header ---------- */
.main-header {
  background: var(--bg-white);
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-color);
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand-logo {
  height: 90px;
  width: auto;
  object-fit: contain;
}
.brand-text-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}
.brand-text-kn {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-blue);
  line-height: 1.2;
}
.brand-text-en {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.brand-logo-right {
  height: 90px;
  width: auto;
  object-fit: contain;
}

/* ---------- Navigation Bar ---------- */
.bank-nav {
  background: var(--primary-blue);
  box-shadow: var(--shadow-sm);
}
.bank-nav .navbar-nav .nav-link {
  color: #FFFFFF;
  font-weight: 600;
  padding: 0.8rem 1.2rem !important;
  font-size: 0.95rem;
  position: relative;
}
.bank-nav .navbar-nav .nav-link:hover,
.bank-nav .navbar-nav .nav-link.active {
  background: var(--primary-blue-light);
  color: #FFFFFF;
}
.btn-nav-cta {
  background: var(--accent-gold);
  color: var(--primary-blue-dark) !important;
  font-weight: 700 !important;
  border-radius: var(--radius);
  margin-left: 1rem;
  padding: 0.5rem 1.2rem !important;
  align-self: center;
}
.btn-nav-cta:hover {
  background: var(--accent-gold-dark);
}

/* ---------- Marquee (Ticker) ---------- */
.news-ticker {
  background: var(--bg-white);
  border-bottom: 2px solid var(--primary-blue);
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}
.news-ticker-label {
  background: var(--accent-red);
  color: #fff;
  font-weight: 700;
  padding: 0.5rem 1rem;
  white-space: nowrap;
}
.news-ticker-content {
  overflow: hidden;
  white-space: nowrap;
  flex-grow: 1;
  padding: 0 1rem;
}
.news-ticker-content marquee {
  color: var(--text-main);
  font-weight: 500;
  margin-bottom: 0;
}

/* ---------- Hero Carousel ---------- */
.hero-carousel .carousel-item {
  height: 70vh;
  min-height: 500px;
  max-height: 700px;
  background-color: var(--primary-blue-dark);
  position: relative;
  overflow: hidden;
}
.hero-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0.8;
  transition: transform 1.5s ease;
}
.hero-carousel .carousel-item:hover img {
  transform: scale(1.03);
}
.carousel-caption {
  bottom: 10%;
  left: 5%;
  right: 5%;
  z-index: 3;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.carousel-caption h1 {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.carousel-caption p {
  font-size: 1.2rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  color: #f8f9fa;
}

/* ---------- Sections ---------- */
section { padding: 4rem 0; }
.section-white { background: var(--bg-white); }
.section-light { background: var(--bg-main); }
.section-blue { background: var(--primary-blue); color: #fff; }
.section-blue h2, .section-blue h3 { color: #fff; }
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 1rem;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent-red);
}

/* ---------- Services Grid ---------- */
.service-card {
  background: var(--bg-white);
  border: 1px solid var(--line-color);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 4px solid var(--primary-blue);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--accent-red);
}
.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(10, 49, 97, 0.1);
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.8rem;
}
.service-card h3 { font-size: 1.3rem; margin-bottom: 0.8rem; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; }
.service-card ul { 
  text-align: left; 
  display: inline-block; 
  margin: 0 auto 1rem;
}
.service-card .amount {
  display: inline-block;
  background: var(--bg-main);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-weight: 700;
  color: var(--primary-blue);
  font-size: 0.9rem;
  margin-top: auto;
  align-self: center;
}

/* ---------- Stat Cards ---------- */
.stat-card {
  background: var(--primary-blue);
  color: #fff;
  border-radius: 8px;
  padding: 2rem 1rem;
  text-align: center;
  height: 100%;
  box-shadow: var(--shadow-md);
}
.stat-card .stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.stat-card .stat-label { font-weight: 600; font-size: 1.1rem; }
.stat-card .stat-desc { font-size: 0.85rem; opacity: 0.8; margin-top: 0.5rem; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--bg-white);
}
.gallery-item img {
  width: 100%;
  height: 350px;
  object-fit: contain;
  background-color: #e9ecef;
  transition: transform 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ---------- Buttons ---------- */
.btn-primary {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #fff;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius);
}
.btn-primary:hover { background: var(--primary-blue-dark); border-color: var(--primary-blue-dark); color: #fff;}
.btn-outline-primary {
  color: var(--primary-blue);
  border-color: var(--primary-blue);
  font-weight: 600;
  padding: 0.6rem 1.5rem;
}
.btn-outline-primary:hover { background: var(--primary-blue); color: #fff; }

/* ---------- Tables ---------- */
.table-bank {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  border-radius: 6px;
  overflow: hidden;
}
.table-bank thead th {
  background: var(--primary-blue);
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 1rem;
}
.table-bank tbody td { padding: 1rem; border-color: var(--line-color); vertical-align: middle; }
.table-bank tbody tr:hover { background-color: var(--bg-main); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-blue-dark);
  color: #E0E0E0;
  padding: 4rem 0 2rem;
  border-top: 4px solid var(--accent-red);
}
.site-footer h5 { color: #fff; margin-bottom: 1.5rem; font-size: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin-bottom: 0.8rem; }
.site-footer a { color: #E0E0E0; }
.site-footer a:hover { color: var(--accent-gold); }
.fbottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ---------- Utils ---------- */
.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-lift:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.page-header {
  background: var(--primary-blue-dark) url('../images/souvenir/page_4_img_424.jpeg') center/cover;
  position: relative;
  padding: 4rem 0;
  color: #fff;
  text-align: center;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 49, 97, 0.85);
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { color: #fff; margin-bottom: 0.5rem; }

@media (max-width: 991.98px) {
  .header-content { flex-direction: column; text-align: center; gap: 0.5rem; }
  .brand-logo { height: 70px; }
  .brand-text-kn { font-size: 1.4rem; }
  .carousel-caption h1 { font-size: 1.8rem; }
}

/* ---------- Board Members ---------- */
.person-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  height: 100%;
}
.person-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.ph-placeholder {
  background: #f1f5f9;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
}
.ph-placeholder svg {
  width: 80px;
  height: 80px;
}
.person-card .p-body {
  padding: 1.5rem 1rem;
}
.person-card .p-name {
  font-weight: 700;
  color: var(--primary-blue-dark);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.person-card .p-role {
  color: var(--accent-red);
  font-size: 0.95rem;
  font-weight: 600;
}

/* ---------- Alternating Timeline ---------- */
.timeline-alt {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
}
.timeline-alt::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--primary-blue-light);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}
.tl-container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}
.tl-left {
  left: 0;
}
.tl-right {
  left: 50%;
}
.tl-container::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: white;
  border: 4px solid var(--accent-red);
  top: 25px;
  border-radius: 50%;
  z-index: 1;
}
.tl-right::after {
  left: -10px;
}
.tl-content {
  padding: 20px 30px;
  background-color: white;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}
.tl-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.tl-date {
  color: var(--accent-red);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 5px;
  display: block;
}
.tl-title {
  color: var(--primary-blue-dark);
  font-weight: 700;
  margin-bottom: 10px;
}
@media screen and (max-width: 768px) {
  .timeline-alt::after { left: 31px; }
  .tl-container { width: 100%; padding-left: 70px; padding-right: 15px; }
  .tl-container::after { left: 21px; }
  .tl-right { left: 0%; }
}

/* ---------- Board Ticker ---------- */
.board-ticker-wrap {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  padding: 10px 0;
}
.board-ticker-wrap::before, .board-ticker-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.board-ticker-wrap::before {
  left: 0;
  background: linear-gradient(to right, #f8f9fa 0%, transparent 100%);
}
.board-ticker-wrap::after {
  right: 0;
  background: linear-gradient(to left, #f8f9fa 0%, transparent 100%);
}
.board-ticker-track {
  display: inline-flex;
  animation: scrollBoard 25s linear infinite;
}
.board-ticker-track:hover {
  animation-play-state: paused;
}
.board-ticker-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 25px;
  min-width: 150px;
}
.board-ticker-item img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}
.board-ticker-item:hover img {
  transform: scale(1.15);
}
.bt-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-blue-dark);
}
.bt-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}
@keyframes scrollBoard {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
