/* ===========================================
    Bandwidth Calculator - Tool Specific Styles
    =========================================== */

/* Box Styling */
.bc-box {
    max-width: 650px;
    margin: 0 auto;
    padding: 0; 
}

/* Form Container */
.bc-form {
    padding: 20px; 
    border: 1px solid #C8E6C7; /* Light Green Border */
    border-radius: 8px;
    background-color: #F8FFF8; /* Very Light Green/White Background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.bc-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4CAF50; /* Green */
    border-bottom: 2px solid #C8E6C7;
    padding-bottom: 5px; 
    margin-top: 5px; 
    margin-bottom: 20px; 
}

/* Compact Input Grid */
.bc-compact-grid {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    gap: 15px 2%; /* Vertical and horizontal gap */
}

.bc-input-group {
    display: flex;
    flex-direction: column;
    flex-basis: 48%; /* Allows two inputs per row */
    min-width: 150px;
}

/* Responsive adjustment for small screens */
@media (max-width: 500px) {
    .bc-input-group {
        flex-basis: 100%; /* Stack inputs on small screens */
    }
}

.bc-input-group label {
    font-weight: 500;
    color: #495057;
    font-size: 0.95rem; 
    margin-bottom: 6px;
}

.bc-input-input-row {
    display: flex;
    gap: 8px;
}

.bc-input-group input, .bc-input-group select {
    padding: 10px;
    border: 1px solid #81C784;
    border-radius: 6px;
    font-size: 1rem;
    flex-grow: 1;
}

.bc-input-group input {
    text-align: right;
}

.bc-input-group select {
    flex-basis: 30%;
    min-width: 80px;
}

/* Specific styling for the Time select box, allowing hours/minutes/seconds */
.bc-time-group .bc-input-input-row {
    display: flex;
    gap: 5px; /* Tighter gap for multiple time inputs */
}
.bc-time-group input {
    flex-basis: 33%; /* Divide space among H, M, S inputs */
}
.bc-time-group label span {
    font-size: 0.8rem;
    color: #66BB6A;
    font-weight: 400;
}


/* Button Styles */
.bc-calculate-btn {
    display: block;
    width: 100%;
    padding: 14px; 
    margin-top: 25px; 
    background-color: #4CAF50; /* Primary Green */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}
.bc-calculate-btn:hover {
    background-color: #43A047;
}

/* Results Display */
.bc-results {
    margin-top: 20px; 
    padding: 20px;
    border: 2px solid #66BB6A; 
    border-radius: 8px;
    background-color: #E8F5E9; /* Lightest Green */
    text-align: center;
}

.bc-results-title {
    color: #4CAF50;
    font-size: 1.5rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #A5D6A7;
    padding-bottom: 5px;
}

/* Key Result Display */
.bc-key-result {
    margin: 15px 0;
}
.bc-key-result .bc-data-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6C7A89;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.bc-key-result .bc-data-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #00897B; /* Dark Teal/Cyan for contrast */
}
.bc-key-result .bc-data-unit {
    font-size: 1.2rem;
    font-weight: 600;
    color: #6C7A89;
    display: block;
    margin-top: 5px;
}

.bc-recalculate-btn {
    padding: 8px 15px;
    margin-top: 20px;
    background-color: #A5D6A7;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
}


/* ===========================================
    SEO Content FIXES (The Critical Formatting Overrides)
    =========================================== */

.seo-content h4 {
    margin-top: 25px !important;
    margin-bottom: 10px !important;
}

.seo-content .MathJax_Display, .seo-content [role="presentation"] {
    display: block !important;
    margin-top: 15px !important;
    margin-bottom: 15px !important;
    width: 100% !important;
}

.seo-content p {
    margin-bottom: 10px;
}