:root {
    --primary: #4361ee;
    --secondary: #3f37c9;
    --accent: #4895ef;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #4cc9f0;
    --warning: #f72585;
    --info: #7209b7;
}

.calculator-hub-container {
    width: 100%;
    max-width: 100%;
    /*padding: 20px;*/
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Add this to ensure full width */
#primary.content-area {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* If using Astra theme, add this */
.ast-container {
    max-width: 100%;
}

.calculator-hub-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 0px;
    box-shadow: 0 4px 20px rgba(67, 97, 238, 0.3);
}

.calculator-hub-header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.calculator-hub-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 10px;
}

.calculator-hub-search-bar {
    margin: 20px auto;
    max-width: 600px;
    position: relative;
}

.calculator-hub-search-bar input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.calculator-hub-search-bar button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 7px 15px;
    cursor: pointer;
    margin-right: 20px;
    padding-left: 20px;
    padding-right: 20px;
}

.calculator-hub-search-results {
    display: none;
    position: absolute;
    width: 100%;
    background: white;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
}

.calculator-hub-search-result-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.calculator-hub-search-result-item:hover {
    background-color: #f5f7ff;
}

.calculator-hub-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.calculator-hub-category-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calculator-hub-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.calculator-hub-category-header {
    padding: 15px 20px;
    color: white;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.calculator-hub-category-header i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.calculator-hub-general { background: var(--primary); }
.calculator-hub-finance { background: #2e7d32; }
.calculator-hub-real-estate { background: #d84315; }
.calculator-hub-construction { background: #6a1b9a; }
.calculator-hub-education { background: #0277bd; }
.calculator-hub-lifestyle { background: #c2185b; }

.calculator-hub-category-list {
    padding: 15px 20px;
}

.calculator-hub-category-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.calculator-hub-category-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.calculator-hub-category-list li:last-child {
    border-bottom: none;
}

.calculator-hub-category-list a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.2s;
}

.calculator-hub-category-list a:hover {
    color: var(--primary);
}

.calculator-hub-view-all {
    color: var(--primary);
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}

.calculator-hub-popular-calculators {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin: 40px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.calculator-hub-section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark);
    position: relative;
    padding-bottom: 10px;
}

.calculator-hub-section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.calculator-hub-popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.calculator-hub-popular-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.calculator-hub-popular-item:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.calculator-hub-popular-item i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.calculator-hub-popular-item:hover i {
    color: white;
}

.calculator-hub-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.calculator-hub-feature-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.calculator-hub-feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.calculator-hub-feature-card h3 {
    margin: 0 0 10px;
    color: var(--dark);
}

.calculator-hub-footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    background: var(--dark);
    color: white;
    border-radius: 10px;
}

.calculator-hub-footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.calculator-hub-footer-links a {
    color: white;
    text-decoration: none;
}

.calculator-hub-footer-links a:hover {
    text-decoration: underline;
}

.calculator-hub-social-icons {
    margin: 20px 0;
}

.calculator-hub-social-icons a {
    color: white;
    margin: 0 10px;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .calculator-hub-category-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator-hub-popular-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

