/*--------------------------------------------------------------
# CBCS Website - style.css
# Brand colors from logo.svg:
#   Red:        #be1e2d   Navy:       #00308f
#   Blue:       #4b9cd3   Dark Green: #046738
#   Green:      #2ab472   Teal:       #12a79d
#   Light Blue: #a1caf1   Orange:     #f6931c
#   Coral:      #ed4035
--------------------------------------------------------------*/
:root {
  --brand-red:       #be1e2d;
  --brand-blue:      #4b9cd3;
  --brand-green:     #2ab472;
  --brand-lightblue: #a1caf1;
  --brand-teal:      #12a79d;
  --brand-orange:    #f6931c;
  --brand-coral:     #ed4035;
  --brand-navy:      #00308f;
  --brand-darkgreen: #046738;
  --color-primary:   #be1e2d;
  --color-secondary: #00308f;
  --font-default: "Open Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-default); color: #444; background: #fff; }
a { color: var(--brand-red); text-decoration: none; }
a:hover { color: var(--brand-coral); }

/* Topbar */
#topbar { background: var(--brand-navy); height: 40px; font-size: 14px; color: #ccc; }
#topbar .contact-info a { color: #ccc; }
#topbar .contact-info a:hover { color: #fff; }
#topbar .contact-info i { padding-right: 4px; font-size: 15px; color: var(--brand-lightblue); }
#topbar .social-links a { color: #aaa; margin-left: 10px; font-size: 15px; transition: color 0.3s; }
#topbar .social-links a:hover { color: #fff; }

/* Header */
#header {
  background: #fff; transition: all 0.5s; z-index: 997;
  padding: 10px 0; border-bottom: 2px solid var(--brand-lightblue);
  position: sticky; top: 0;
}
#header.header-scrolled { box-shadow: 0 2px 20px rgba(0,48,143,0.12); }
#header .logo { text-decoration: none; line-height: 0; display: flex; align-items: center; }
#header .logo svg { height: 55px; width: auto; display: block; }

/* Navbar */
.navbar { padding: 0; }
.navbar ul { margin: 0; padding: 0; list-style: none; align-items: center; display: flex; }
.navbar li { position: relative; }
.navbar > ul > li { white-space: nowrap; padding: 10px 0 10px 28px; }
.navbar a, .navbar a:focus {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3px; font-size: 13px; font-weight: 700;
  color: var(--brand-navy); white-space: nowrap; letter-spacing: 0.5px;
  text-transform: uppercase; transition: 0.3s;
}
.navbar a:hover, .navbar .active, .navbar .active:focus { color: var(--brand-red); }
.navbar .dropdown ul {
  display: block; position: absolute; left: 28px; top: calc(100% + 30px);
  margin: 0; padding: 10px 0; background: #fff;
  box-shadow: 0 4px 24px rgba(0,48,143,0.13);
  border-top: 3px solid var(--brand-red);
  border-radius: 0 0 6px 6px; z-index: 99; min-width: 200px;
  opacity: 0; visibility: hidden; transition: 0.3s;
}
.navbar .dropdown ul li { min-width: 200px; }
.navbar .dropdown ul a { padding: 10px 20px; font-size: 13px; color: #444; font-weight: 500; text-transform: none; }
.navbar .dropdown ul a:hover { color: var(--brand-red); }
.navbar .dropdown:hover > ul { opacity: 1; top: 100%; visibility: visible; }
.navbar .dropdown .dropdown ul { top: 0; left: calc(100% - 30px); visibility: hidden; opacity: 0; }
.navbar .dropdown .dropdown:hover > ul { opacity: 1; top: 0; left: 100%; visibility: visible; }
.mobile-nav-toggle { color: var(--brand-navy); font-size: 28px; cursor: pointer; display: none; line-height: 0; }
@media (max-width: 991px) {
  .mobile-nav-toggle { display: block; }
  .navbar ul { display: none; }
  .navbar-mobile { position: fixed; overflow: hidden; top: 0; right: 0; left: 0; bottom: 0; background: rgba(0,48,143,0.95); z-index: 999; }
  .navbar-mobile .mobile-nav-toggle { position: absolute; top: 15px; right: 15px; color: #fff; }
  .navbar-mobile ul { display: block; position: absolute; top: 55px; right: 15px; bottom: 15px; left: 15px; padding: 10px 0; border-radius: 8px; background: #fff; overflow-y: auto; }
  .navbar-mobile a { padding: 10px 20px; font-size: 15px; color: var(--brand-navy); }
  .navbar-mobile .dropdown ul { position: static; display: none; padding: 10px 0; box-shadow: none; }
  .navbar-mobile .dropdown ul.dropdown-active { display: block; }
}

/* Carousel */
#banner { margin-top: 0; }
#banner .carousel-item { height: 500px; overflow: hidden; }
#banner .carousel-item img { object-fit: cover; height: 100%; width: 100%; }
#banner .carousel-caption { bottom: 0; top: 0; display: flex; align-items: center; background: rgba(0,48,143,0.55); }
#banner .carousel-caption .col-lg-7 { text-align: left; }
#banner .carousel-indicators button.active { background-color: var(--brand-orange); }
@media (max-width: 768px) {
  #banner .carousel-item { height: 300px; }
  #banner .carousel-caption h1, #banner .carousel-caption h2 { font-size: 1.3rem; }
}

/* Sections */
.cbcs-section { padding: 60px 0; }
.cbcs-section.bg-fixed { background: #f4f8fd; }
.cbcs-section.pad0 { padding: 0; }
.section-header { margin-bottom: 40px; text-align: center; }
.section-header h2 { font-size: 2rem; font-weight: 700; color: var(--brand-navy); }
.section-header h2 span { color: var(--brand-red); }
.section-header p { color: #666; max-width: 700px; margin: 12px auto 0; font-size: 15px; line-height: 1.7; }
.subheading { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--brand-red); font-weight: 700; display: block; margin-bottom: 8px; }
.heading-section h2 { font-size: 1.8rem; font-weight: 700; color: var(--brand-navy); line-height: 1.3; }
.heading-section h2 span { color: var(--brand-red); }
.heading-section h5 { font-size: 15px; color: #555; font-weight: 600; margin: 12px 0 10px; line-height: 1.6; }
.heading-section p { color: #666; font-size: 14px; line-height: 1.7; }

/* Service Cards */
.services-wrap { padding: 8px; }
.services { background: #fff; border-radius: 8px; padding: 22px; box-shadow: 0 2px 14px rgba(0,48,143,0.07); transition: all 0.3s; width: 100%; border-left: 3px solid transparent; }
.services:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,48,143,0.13); }
.services.active { border-left-color: var(--brand-blue); }
.services.red { background: #fdf5f5; }
.services.red.active { border-left-color: var(--brand-red); }
.services.red:hover { box-shadow: 0 10px 28px rgba(190,30,45,0.12); }
.services.orange { background: #fffaf4; }
.services.orange.active { border-left-color: var(--brand-orange); }
.services.orange:hover { box-shadow: 0 10px 28px rgba(246,147,28,0.12); }
.services .icon { margin-bottom: 12px; }
.services .icon img { width: 44px; height: 44px; object-fit: contain; }
.services .text h2 { font-size: 12px; font-weight: 700; color: var(--brand-navy); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.6px; }
.services .text p { font-size: 13px; color: #666; line-height: 1.6; }
.services-wrap.s-img .services { padding: 0; overflow: hidden; }
.services-wrap.s-img .services img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; }

/* Values / Advantage */
.advantage { padding: 60px 0; }
.values .box { padding: 30px; background: #fff; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,48,143,0.08); text-align: center; height: 100%; transition: 0.3s; border-top: 4px solid var(--brand-blue); }
.values .box:hover { transform: translateY(-5px); box-shadow: 0 10px 32px rgba(0,48,143,0.15); }
.values .box img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 16px; }
.values .box h3 { font-size: 16px; font-weight: 700; color: var(--brand-navy); margin-bottom: 10px; }
.values .box p { font-size: 13px; color: #666; line-height: 1.7; }

/* Buttons */
.btn-primary { background-color: var(--brand-red); border-color: var(--brand-red); font-weight: 600; }
.btn-primary:hover { background-color: var(--brand-coral); border-color: var(--brand-coral); }

/* Footer */
#footer { background: var(--brand-navy); color: #ccc; font-size: 14px; }
#footer .footer-newsletter { background: #001f6b; padding: 40px 0; border-bottom: 1px solid rgba(161,202,241,0.15); }
#footer .footer-newsletter h4 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; }
#footer .footer-newsletter p { color: #aab8d4; }
#footer .footer-newsletter form { display: flex; max-width: 420px; margin: 16px auto 0; }
#footer .footer-newsletter input[type=email] { flex: 1; padding: 10px 14px; border: none; border-radius: 4px 0 0 4px; font-size: 14px; }
#footer .footer-newsletter input[type=submit] { background: var(--brand-red); color: #fff; border: none; padding: 10px 22px; border-radius: 0 4px 4px 0; cursor: pointer; font-weight: 700; transition: background 0.2s; }
#footer .footer-newsletter input[type=submit]:hover { background: var(--brand-coral); }
#footer .footer-top { padding: 44px 0 30px; }
#footer .footer-info p { line-height: 1.8; color: #aab8d4; margin-top: 14px; }

/* Footer logo — inline SVG shows full brand colors */
#footer .footer-info .logo { display: inline-flex; align-items: center; line-height: 0; }
#footer .footer-info .logo svg { height: 50px; width: auto; display: block; }

#footer .social-links a { font-size: 18px; color: #aab8d4; margin-right: 10px; border: 1px solid rgba(161,202,241,0.3); border-radius: 50%; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; transition: 0.3s; }
#footer .social-links a:hover { color: #fff; border-color: var(--brand-red); background: var(--brand-red); }
#footer .footer-links h4 { font-size: 13px; font-weight: 700; color: var(--brand-lightblue); margin-bottom: 16px; letter-spacing: 1px; text-transform: uppercase; }
#footer .footer-links ul { list-style: none; padding: 0; }
#footer .footer-links ul li { display: flex; align-items: center; padding: 5px 0; }
#footer .footer-links ul li i { color: var(--brand-orange); margin-right: 8px; font-size: 12px; }
#footer .footer-links ul li a { color: #aab8d4; transition: 0.3s; }
#footer .footer-links ul li a:hover { color: #fff; }
#footer .footer-contact h4 { font-size: 13px; font-weight: 700; color: var(--brand-lightblue); margin-bottom: 16px; letter-spacing: 1px; text-transform: uppercase; }
#footer .footer-contact p { line-height: 2; color: #aab8d4; }
#footer .footer-contact strong { color: #cdd8ee; }
#footer .container .copyright { padding: 20px 0; text-align: center; border-top: 1px solid rgba(161,202,241,0.15); color: #778aaa; }
#footer .container .copyright span { color: var(--brand-lightblue); font-weight: 600; }

/* Back to Top */
.back-to-top { position: fixed; visibility: hidden; opacity: 0; right: 18px; bottom: 18px; z-index: 996; background: var(--brand-red); width: 40px; height: 40px; border-radius: 50%; transition: all 0.4s; color: #fff; font-size: 22px; }
.back-to-top.active { visibility: visible; opacity: 1; }
.back-to-top:hover { background: var(--brand-coral); color: #fff; }
