/* Section */
.related-calculators {
    padding: 40px 20px;
}

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Grid */
.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Card */
.calc-card {
    background: #121826;
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    color: #fff;
    transition: 0.3s ease;
    display: block;
    position: relative;
}

.calc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Icon box */
.icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 20px;
}

/* Icon colors */
.icon.math {
    background: rgba(255, 87, 34, 0.15);
    color: #ff5722;
}

.icon.health {
    background: rgba(0, 200, 150, 0.15);
    color: #00c896;
}

.icon.finance {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

/* Conversion GROUP Page */
.icon.conversion, .tag.conversion
{
      background: var(--blue-g) !important;
      color: var(--blue)!important;
}

/* Education GROUP Page */
.icon.education, .tag.education
{
  background: var(--pink-g) !important;
  color: var(--pink) !important;
}

/* Health GROUP Page */
.icon.health, .tag.health
{
  background: var(--teal-g) !important;
  color: var(--teal) !important;
}

/* Developer GROUP Page */
.icon.developer, .tag.developer
{
  background: var(--purple-g) !important;
  color: var(--purple) !important;
}

/* Text */
.calc-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.calc-card p {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 15px;
}

/* Tag */
.tag {
    display: inline-block;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(255, 87, 34, 0.15);
    color: #ff5722;
}

.tag.green {
    background: rgba(0, 200, 150, 0.15);
    color: #00c896;
}

.tag.yellow {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

/* FAQ Section for Dark Theme */
.faq-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-section h3 {
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

details {
    background: #1f2937;
    /* Slightly lighter than #121826 */
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

details:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: #26303d;
}

summary {
    font-weight: 500;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e5e7eb;
    /* Soft white */
    font-family: 'Space Grotesk', sans-serif;
}

summary::-webkit-details-marker {
    display: none;
}

/* Rotating the icon when open */
details[open] summary i {
    transform: rotate(180deg);
}

summary i {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    color: #9ca3af;
}

details p {
    margin-top: 15px;
    color: #9ca3af;
    /* Muted gray text for readability */
    line-height: 1.7;
    font-family: 'Space Grotesk', sans-serif;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}
