/*
Theme Name: 	Techon Child
Theme URI: 		http://thememascot.net
Description: 	Technology IT Services WordPress Theme. You can get more themes from here: https://themeforest.net/user/thememascot/portfolio
Author: 		ThemeMascot Team
Author URI: 	http://themeforest.net/user/thememascot
Version: 		3.0
License: 		GNU General Public License v2 or later
License URI: 	http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 	techon-child
Template: 		techon
*/


.pricing-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 60px;
}

.pricing-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 15px;
}

.pricing-header p {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
}

/* Section Styling */
.pricing-section {
    margin-bottom: 80px;
}

.pricing-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.table-wrapper {
    overflow-x: auto; /* Allows horizontal scrolling on small screens */
    border: 1px solid #dee2e6;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    background: #fff;
}

/* Table Styling */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.pricing-table th,
.pricing-table td {
    padding: 20px;
    vertical-align: middle;
}

.pricing-table thead {
    background-color: #f8f9fa;
}

.pricing-table th {
    font-size: 1.2rem;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.pricing-table tbody tr {
    border-bottom: 1px solid #e9ecef;
}

.pricing-table tbody tr:last-child {
    border-bottom: none;
}

.pricing-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: #212529;
    width: 35%; /* Give more space to the feature column */
}

/* 'Most Popular' Column Styling */
.popular {
    position: relative;
    background-color: #e9f5ff;
}

.popular::after {
    content: 'Most Popular';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #007bff;
    color: #fff;
    padding: 0px 10px;
    border-radius: 20px;
    font-size: 0.55rem;
    font-weight: 700;
}

.popular-cell {
    background-color: #f1f9ff;
}


/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .pricing-table thead {
        display: none; /* Hide table header on mobile */
    }

    .pricing-table tr {
        display: block;
        border-bottom: 2px solid #007bff;
        margin-bottom: 20px;
    }
    
    .pricing-table td {
        display: block;
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px solid #e9ecef;
    }

    .pricing-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: calc(50% - 30px);
        text-align: left;
        font-weight: 600;
        color: #495057;
    }

    .pricing-table td:first-child {
        text-align: center;
        width: auto;
        padding: 15px;
        background-color: #f1f3f5;
        font-size: 1.1rem;
    }
    
    .pricing-table td:first-child:before {
        display: none;
    }
}
