﻿/* OneNext custom overrides */
:root {
  --accent: #1a56db;
  --funding-bar-h: 38px;
}

body.has-funding-bar #page-wraper,
body.has-funding-bar .responsive-nav {
  margin-top: var(--funding-bar-h);
}

body.has-funding-bar section.section:first-child {
  padding-top: calc(var(--funding-bar-h) + 60px);
}

#page-wraper {
  background: linear-gradient(135deg, #0d2137 0%, #1a3a5c 50%, #0d2137 100%) no-repeat center center fixed;
  background-size: cover;
}

.section-heading h2 {
  color: #fff;
  font-size: 2em;
}

.section-heading .line-dec {
  background: #1a56db;
  width: 60px;
  height: 3px;
  margin: 1em auto;
}

.section-heading span {
  color: #c8dff7;
  font-size: 0.95em;
  display: block;
  max-width: 680px;
  margin: 0 auto;
}

.service-item {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 1.5em;
  margin-bottom: 1.5em;
  transition: background 0.2s;
}

.service-item:hover {
  background: rgba(26,86,219,0.2);
}

.service-item i {
  font-size: 1.8em;
  color: #7ec8f7;
  margin-bottom: 0.5em;
  display: block;
}

.service-item h4 {
  font-size: 1.1em;
  margin-bottom: 0.4em;
}

.white-button a, a.white-button {
  background: #1a56db !important;
  color: #fff !important;
  border-radius: 4px;
  padding: 0.6em 1.5em;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}

.white-button a:hover, a.white-button:hover {
  background: #1340a8 !important;
  color: #fff !important;
}

.menu {
  background: #0a1929 !important;
}

.menu .main-menu li a {
  color: #c8dff7 !important;
}

.menu .main-menu li.active a,
.menu .main-menu li a:hover {
  color: #7ec8f7 !important;
}

.team-card {
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2em;
  border: 1px solid rgba(255,255,255,0.1);
}

.team-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.team-card .team-info {
  padding: 1.2em 1.5em;
}

.team-card .team-info h4 {
  font-size: 1.1em;
  margin-bottom: 0.2em;
}

.team-card .team-info .role {
  color: #7ec8f7;
  font-size: 0.85em;
  display: block;
  margin-bottom: 0.6em;
}

.blog-card {
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5em;
  border: 1px solid rgba(255,255,255,0.1);
  transition: border-color 0.2s;
}

.blog-card:hover {
  border-color: #1a56db;
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-card .card-body {
  padding: 1.2em;
}

.blog-card .card-date {
  color: #7ec8f7;
  font-size: 0.78em;
  display: block;
  margin-bottom: 0.4em;
}

.blog-card .card-title {
  color: #fff;
  font-size: 1em;
  font-weight: 700;
  margin-bottom: 0.5em;
  line-height: 1.4;
}

.blog-card .card-excerpt {
  color: #aac6e4;
  font-size: 0.85em;
  line-height: 1.6;
  margin-bottom: 0.8em;
}

.blog-card .read-more {
  color: #7ec8f7;
  font-size: 0.82em;
  text-decoration: none;
}

.article-body {
  color: #c8dff7;
  line-height: 1.9;
  font-size: 1.02em;
}

.article-body h2, .article-body h3 {
  color: #fff;
  margin-top: 2em;
  margin-bottom: 0.7em;
}

.article-body a {
  color: #7ec8f7;
}

.pinned-badge {
  background: #1a56db;
  color: #fff;
  font-size: 0.72em;
  padding: 0.2em 0.6em;
  border-radius: 3px;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 0.5em;
  vertical-align: middle;
}

.contact-info-block {
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 1.5em;
  margin-bottom: 1.5em;
  border: 1px solid rgba(255,255,255,0.1);
}

.about-section {
  padding: 4em 0;
}

.section {
  padding: 4em 0;
}

/* Fix: remove min-height:100vh from section (single-page template default) */
.section {
  min-height: unset !important;
}

/* Fix: service items equal height per row */
.section .row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
.section .row > [class*="col-"] {
  display: flex;
  flex-direction: column;
}
.service-item {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Fix hover contrast: override tooplate white hover bg, keep blue theme */
.service-item:hover {
  background: rgba(26, 86, 219, 0.25) !important;
  border-color: rgba(26, 86, 219, 0.5) !important;
}



/* Prevent tooplate hover color overrides - keep original text colors on hover */
.service-item:hover h4 { color: inherit !important; }
.service-item:hover p { color: inherit !important; }
.service-item:hover i,
.service-item:hover .fa { color: inherit !important; }
