/* ===========================
   RCF Finance - Custom Styles
   =========================== */

/* --- Color Variables --- */
:root {
  --rcf-blue:       #1565C0;
  --rcf-dark:       #0d2b6b;
  --rcf-green:      #2e7d32;
  --rcf-orange:     #e65100;
  --rcf-gold:       #f59e0b;
  --rcf-light-bg:   #f4f7fb;
  --rcf-white:      #ffffff;
  --rcf-text:       #212529;
  --rcf-muted:      #6c757d;
}

/* --- Global --- */
body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--rcf-text);
  background-color: var(--rcf-white);
}

a {
  color: var(--rcf-blue);
  text-decoration: none;
}

a:hover {
  color: var(--rcf-dark);
}

/* --- Top Info Bar --- */
.top-info-bar {
  background-color: var(--rcf-dark);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
  padding: 6px 0;
}

.top-info-bar a {
  color: rgba(255,255,255,0.85);
}

.top-info-bar a:hover {
  color: var(--rcf-gold);
}

/* --- Navbar --- */
.rcf-navbar {
  background-color: var(--rcf-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 10px 0;
}

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

.rcf-navbar .nav-link {
  color: var(--rcf-dark) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 14px !important;
  border-radius: 4px;
  transition: all 0.25s;
}

.rcf-navbar .nav-link:hover,
.rcf-navbar .nav-link.active {
  background-color: var(--rcf-blue);
  color: var(--rcf-white) !important;
}

.rcf-navbar .navbar-toggler {
  border-color: var(--rcf-blue);
}

/* --- Hero Section --- */
.hero-section {
  background: linear-gradient(135deg, var(--rcf-dark) 0%, var(--rcf-blue) 60%, #1e88e5 100%);
  min-height: 520px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-section .hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 0.8rem;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.hero-section h1 {
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.hero-section .lead {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
}

.hero-section .highlight-text {
  color: var(--rcf-gold);
}

.hero-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  backdrop-filter: blur(4px);
  padding: 28px 24px;
  color: #fff;
}

.hero-card .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--rcf-gold);
}

.hero-card .stat-label {
  font-size: 0.82rem;
  opacity: 0.8;
}

/* --- Section Titles --- */
.section-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--rcf-dark);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--rcf-muted);
}

.title-divider {
  display: block;
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, var(--rcf-blue), var(--rcf-orange));
  border-radius: 2px;
  margin: 12px auto 20px;
}

.title-divider.left {
  margin-left: 0;
}

/* --- Highlight Cards (Features) --- */
.feature-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px;
}

.icon-blue   { background: #e3f0fb; color: var(--rcf-blue); }
.icon-green  { background: #e8f5e9; color: var(--rcf-green); }
.icon-orange { background: #fbe9e7; color: var(--rcf-orange); }
.icon-gold   { background: #fef9e7; color: #b7791f; }

/* --- Stats Bar --- */
.stats-section {
  background: linear-gradient(135deg, var(--rcf-dark), var(--rcf-blue));
  color: #fff;
  padding: 60px 0;
}

.stat-item .stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--rcf-gold);
  line-height: 1;
}

.stat-item .stat-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  margin-top: 6px;
}

/* --- Info Section --- */
.info-section {
  background: var(--rcf-light-bg);
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--rcf-dark) 0%, var(--rcf-blue) 100%);
  padding: 70px 0 50px;
  color: #fff;
}

.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
}

.page-hero .breadcrumb-item,
.page-hero .breadcrumb-item a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.page-hero .breadcrumb-item.active {
  color: var(--rcf-gold);
}

.page-hero .breadcrumb-divider { color: rgba(255,255,255,0.4); }

/* --- Branch Cards --- */
.branch-card {
  background: #fff;
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border-left: 4px solid var(--rcf-blue);
  transition: transform 0.25s;
}

.branch-card:hover {
  transform: translateX(4px);
}

.branch-card .branch-name {
  font-weight: 600;
  color: var(--rcf-dark);
  font-size: 1rem;
}

/* --- Grievance Table --- */
.grievance-table th {
  background: var(--rcf-blue);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.grievance-table td {
  font-size: 0.9rem;
  vertical-align: middle;
}

.grievance-table tbody tr:nth-child(even) {
  background: #f0f5ff;
}

/* --- Contact Section --- */
.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--rcf-light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rcf-blue);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-map-placeholder {
  background: var(--rcf-light-bg);
  border-radius: 12px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rcf-muted);
  font-size: 1rem;
  border: 2px dashed #ccd6f6;
}

/* --- Buttons --- */
.btn-rcf-primary {
  background: var(--rcf-blue);
  border-color: var(--rcf-blue);
  color: #fff;
  font-weight: 500;
  border-radius: 6px;
  padding: 10px 24px;
  transition: all 0.25s;
}

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

.btn-rcf-outline {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
  font-weight: 500;
  border-radius: 6px;
  padding: 10px 24px;
  transition: all 0.25s;
}

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

.btn-rcf-orange {
  background: var(--rcf-orange);
  border-color: var(--rcf-orange);
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  padding: 10px 24px;
  transition: all 0.25s;
}

.btn-rcf-orange:hover {
  background: #bf360c;
  border-color: #bf360c;
  color: #fff;
}

/* --- Offering Item --- */
.offering-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 16px;
  transition: transform 0.25s;
}

.offering-item:hover {
  transform: translateX(5px);
}

.offering-item .offering-icon {
  font-size: 1.8rem;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #e3f0fb;
  color: var(--rcf-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.offering-item h6 {
  font-weight: 600;
  color: var(--rcf-dark);
  margin-bottom: 4px;
}

.offering-item p {
  font-size: 0.88rem;
  color: var(--rcf-muted);
  margin: 0;
}

/* --- USP Box --- */
.usp-box {
  background: linear-gradient(135deg, #fff7ed, #fff);
  border: 2px solid #fed7aa;
  border-radius: 14px;
  padding: 32px;
}

.usp-box .usp-icon {
  font-size: 2.5rem;
  color: var(--rcf-orange);
}

/* --- Highlight Banner --- */
.highlight-banner {
  background: linear-gradient(135deg, var(--rcf-green), #388e3c);
  color: #fff;
  border-radius: 14px;
  padding: 32px;
}

/* --- Timeline --- */
.timeline-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 24px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: -24px;
  width: 2px;
  background: var(--rcf-blue);
  opacity: 0.25;
}

.timeline-item:last-child::before { display: none; }

.timeline-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--rcf-blue);
  border: 3px solid #e3f0fb;
}

/* --- Accordion --- */
.rcf-accordion .accordion-button {
  background: var(--rcf-light-bg);
  color: var(--rcf-dark);
  font-weight: 600;
}

.rcf-accordion .accordion-button:not(.collapsed) {
  background: var(--rcf-blue);
  color: #fff;
  box-shadow: none;
}

.rcf-accordion .accordion-button:not(.collapsed)::after {
  filter: brightness(10);
}

/* --- Footer --- */
.rcf-footer {
  background: var(--rcf-dark);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 0;
}

.rcf-footer h5 {
  color: var(--rcf-gold);
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rcf-footer p,
.rcf-footer li {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
}

.rcf-footer ul {
  list-style: none;
  padding: 0;
}

.rcf-footer ul li {
  margin-bottom: 8px;
}

.rcf-footer ul li a {
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}

.rcf-footer ul li a:hover {
  color: var(--rcf-gold);
}

.footer-logo img {
  height: 60px;
  background: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  object-fit: contain;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0;
  margin-top: 40px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

.footer-social a {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.75);
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  transition: all 0.25s;
}

.footer-social a:hover {
  background: var(--rcf-blue);
  color: #fff;
}

/* --- RBI Badge --- */
.rbi-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
  margin-top: 12px;
}

.rbi-badge i { color: var(--rcf-gold); font-size: 1rem; }

/* --- About Page Specific --- */
.about-img-block {
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #e3f0fb, #f0f5ff);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-item {
  padding: 22px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
  text-align: center;
  height: 100%;
}

.value-item i { font-size: 1.8rem; margin-bottom: 12px; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-section h1 { font-size: 1.9rem; }
  .stat-item .stat-num { font-size: 1.8rem; }
  .section-title { font-size: 1.5rem; }
  .page-hero h1 { font-size: 1.6rem; }
  .page-hero { padding: 50px 0 36px; }
}
