﻿:root {
  --rvc-primary: #0c2d6b;
  --rvc-secondary: #d4af37;
  --rvc-white: #fff;
  --rvc-black: #333;
}

.calculatorlist-section {
  padding-bottom: 60px;
}

.calculatorlist-section h3 {
  color: #0c2d6b;
  font-weight: 700;
  font-size: 28px;
  border-bottom: 3px solid #d4af37;
  display: inline-block;
  padding-bottom: 10px;
  margin-top: 50px;
  margin-bottom: 30px;
}

.calculatorlist-section .calculator-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: -15px;
}

.calculatorlist-section .calculator-list li {
  width: 25%;
  padding: 15px;
}
@media only screen and (max-width: 992px) {
  .calculatorlist-section .calculator-list li {
    width: 33.33%;
  }
}
@media only screen and (max-width: 768px) {
  .calculatorlist-section .calculator-list li {
    width: 50%;
  }
}
@media only screen and (max-width: 575px) {
  .calculatorlist-section .calculator-list li {
    width: 100%;
  }
}

.calculatorlist-section .calculator-list li a {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid #eee;
  box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.calculatorlist-section .calculator-list li a:hover,
.calculatorlist-section .calculator-list li a.active {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(12, 45, 107, 0.1);
  border-color: #d4af37;
  background: #fdfcf9;
}

.calculatorlist-section .calculator-list li a span {
  font-size: 16px;
  font-weight: 700;
  transition: 0.3s;
  text-align: left;
  color: #0c2d6b;
  line-height: 1.3;
}

.calculatorlist-section .calculator-list li a:hover span,
.calculatorlist-section .calculator-list li a.active span {
  color: #0c2d6b;
}

.calculatorlist-section .calculator-list li a .image {
  max-width: 45px;
  height: 45px;
  width: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f6f9;
  border-radius: 50%;
  padding: 10px;
  transition: 0.3s;
}

.calculatorlist-section .calculator-list li a:hover .image,
.calculatorlist-section .calculator-list li a.active .image {
  background: #0c2d6b;
}

.calculatorlist-section .calculator-list li a .image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: 0.3s;
  filter: invert(15%) sepia(87%) saturate(2256%) hue-rotate(208deg) brightness(90%) contrast(106%);
}

.calculatorlist-section .calculator-list li a:hover .image img,
.calculatorlist-section .calculator-list li a.active .image img {
  filter: brightness(0) invert(1);
}

.calculatorlist-section .rvcaliframe {
  position: relative;
  width: 100%;
  height: var(--rvmaxh);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
  overflow: hidden;
  border: 1px solid #eee;
  background: #fff;
  margin-top: 30px;
}
@media only screen and (max-width: 992px) {
  .calculatorlist-section .rvcaliframe {
    height: var(--rvminh);
  }
}
.calculatorlist-section .rvcaliframe iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.calculators_section {
  display: none;
}
.calculators_section.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.calculator-title {
  padding: 20px 30px;
  margin: 40px 0 0;
  background: #0c2d6b;
  color: #fff;
  display: flex;
  align-items: center;
  border-radius: 15px 15px 0 0;
}
.calculator-title span {
  font-size: 24px;
  font-weight: 700;
}
.calculator-title img {
  width: 35px;
  height: 35px;
  filter: brightness(0) invert(1);
  margin-right: 15px;
  object-fit: contain;
}