:root {
    --primary-color: #4285f4;
    --light-gray: #f5f5f5;
    --border-radius: 8px;
    --box-radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f9f9f9;
    padding: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.logo-box {
    width: 40px;
    height: 40px;
    background-color: #4285f4;
    border-radius: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    text-decoration: none !important;
}

.percentage-icon {
    color: white;
    font-size: 24px;
    font-weight: bold;
    transform: scale(1.2);

}


.logo {
    color: white;
    font-size: 18px;
}

.title {
    font-size: 20px;
    font-weight: bold;
}

.subtitle {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin-bottom: 20px;
}

.calculator-box {
    margin-bottom: 15px;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.calculator-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.calculator-box:nth-of-type(2) .calculate-btn {
    margin-left: 144px; 
}


.calculator-box:nth-of-type(3) .calculate-btn {
    margin-left: 135px; 
}

.calculator-box:nth-of-type(4) .calculate-btn {
    margin-left: 50px; 
}


.input-field {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    width: 90px;
}

.select-field {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    width: 100px;
}

.calculate-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.result {
    padding: 8px 10px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 16px;
    text-align: center;
    min-width: 80px;
}

.static-text {
    font-size: 14px;
    white-space: nowrap;
}

.tip {
    margin-top: 20px;
    text-align: center;
    color: #777;
    font-size: 12px;
    text-decoration: none;
}

@media (max-width: 600px) {
    .calculator-row {
        gap: 6px;
    }
    
    .input-field, .result {
        width: 70px;
    }
    
    .select-field {
        width: 90px;
    }
    
    .calculate-btn {
        padding: 8px 10px;
        font-size: 13px;
    }
}
.calculator-container {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fd 100%);
    border-radius: var(--border-radius);
    padding: 25px 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin: 15px auto;
    border: 1px solid rgba(255,255,255,0.3);
    width: 100%;
    max-width: 800px;
}

.content {
    max-width: 800px;
    line-height: 1.6;
    color: #34495e;
    padding-top: 100px;
    font-size: 14px;
}

.content h3 {
    padding-top: 25px;
}

.title a.home-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.title a.home-link:hover {
    opacity: 0.8;
}

.footer {
    margin-top: 20px;
    text-align: center;
    color: #777;
    font-size: 12px;
}

.footer a {
    color: inherit;
    text-decoration: none;
    padding-left: 10px;
}

.content ul {
    list-style-type: none;
    padding-left: 20px;
    margin: 10px 0;
}

.content li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
}


.content li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.privacy-page .header {
    justify-content: flex-start;
    padding-left: 0px;
    max-width: 100%;
    margin: 0 auto 15px 0;
}

.privacy-page .header .logo-box {
    margin-right: 10px;
}

/* Formula and Example Styling */
.formula-container, .calculation-type {
    margin: 25px 0;
    padding: 15px;
    background: #f8f9fd;
    border-radius: 8px;
    border-left: 4px solid #4285f4;
}

.formula {
    background: white;
    padding: 12px;
    border-radius: 6px;
    margin: 15px 0;
    font-family: monospace;
    border: 1px solid #e0e0e0;
}

.formula-text {
    font-size: 1.1em;
    color: #2c3e50;
    margin: 0;
    padding: 0;
}

.example {
    background: #f0f4ff;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
}

.question {
    font-style: italic;
    color: #555;
    margin-bottom: 10px;
}

.calculation {
    font-family: monospace;
    font-size: 1.1em;
    background: white;
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
    margin: 8px 0;
}

.answer {
    font-weight: bold;
    margin-top: 10px;
    color: #2c3e50;
}

.example-heading {
    font-weight: bold;
    margin-bottom: 8px;
    color: #4285f4;
}

/* SEO Content Styling */
.seo-content {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    line-height: 1.7;
    color: #333;
}

.seo-content h2, .seo-content h3, .seo-content h4 {
    color: #2c3e50;
    margin: 25px 0 15px;
}

.feature-box, .calculation-types, .faq-section, .cta-box {
    background: #f8f9fd;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #4285f4;
}

.calculation-card {
    background: white;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
}

@media (max-width: 600px) {
    .seo-content {
        padding: 10px;
    }
    .example-grid {
        grid-template-columns: 1fr;
    }
}

.cal-main{
    text-align: center;
}