/*
Theme Name: Kadence Child
Theme URI: https://www.kadencewp.com/kadence-theme/
Author: Kadence WP
Author URI: https://www.kadencewp.com/
Description: Child theme for Kadence. Keep this activated — everything loads from the parent Kadence theme. Add your custom CSS or PHP code in this child theme.
Template: kadence
Version: 1.0.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-child
*/

/*
===========================================
  Kadence Theme Table CSS
===========================================
*/

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 16px;
    text-align: left;
    background-color: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.entry-content table thead tr {
    background-color: #0073aa;
    color: #ffffff;
    text-align: left;
    font-weight: bold;
}

.entry-content table th,
.entry-content table td {
    padding: 15px 20px;
    border: 1px solid #eef2f5;
}

.entry-content table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.entry-content table tbody tr:nth-of-type(even) {
    background-color: #f8fafc;
}

.entry-content table tbody tr:hover {
    background-color: #f1f5f9;
    transition: background-color 0.2s ease;
}

@media screen and (max-width: 768px) {
    .entry-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}


/* AAWP Image Centering Fix */
.cg-aawp-box {
    text-align: center !important;
    display: block;
    width: 100%;
}

.cg-aawp-box img {
		min-width:300px;
    margin: 0 auto !important;
    display: inline-block !important;
}
.cg-product-review h3 {
    text-align: center;
}


/* For Desktop and Tablets */
.gp-author-box {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    padding: 25px;
    margin-top: 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    gap: 20px;
}

.gp-author-avatar img {
    border-radius: 50%;
    width: 300px;
    height: 90px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.gp-author-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.gp-author-bio {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

/* Mobile (Responsive Fix) */
@media (max-width: 768px) {
    .gp-author-box {
        flex-direction: column; 
        text-align: center;
        padding: 20px;
    }
    
    .gp-author-avatar {
        margin-bottom: 15px;  
    }
    
    .gp-author-avatar img {
        width: 80px; 
        height: 80px;
    }
}


/* --- Button Style --- */
.cg-amazon-cta-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff !important;
    background-color: #161b18;
    border: none;
    margin-bottom: 15px;
    font-weight: bold;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: #135959 0px 6px 0px 0px;
    transition: background-color 0.3s ease;
}

/* --- Typography & Layout --- */
body { font-size: 15px; }
h1 { font-size: 32px; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }
p { text-align: justify; }

a:link, a:visited { text-decoration: none; }

.posted-on .updated { display: inline !important; }
.entry-meta { margin-top: 1em; }
.inside-right-sidebar ul li { list-style-type: auto; }

/* Spacing fixes */
.post-image:not(:first-child),
.entry-content:not(:first-child), 
.entry-summary:not(:first-child), 
.page-content:not(:first-child) {
    margin-top: 1em;
}

/* Internal Links List */
.cg-internal-links-list li {
    line-height: 2;
}

.cg-title {
    text-align: center;
}

/* --- Table Styles (Responsive & Design) --- */

/* 1. Responsive Wrapper - ensures scrolling on small screens */
.cg-review-table, 
div.table-is-responsive {
    width: 100%;
    overflow-x: auto; /* Enable horizontal scroll */
    -webkit-overflow-scrolling: touch; /* Smooth scroll on mobile */
    margin-bottom: 20px;
    display: block;
}

/* 2. Base Table Style */
table {
    border-collapse: collapse;
    width: 100%;
}

/* Force table to be wide enough to trigger scroll inside the wrapper */
.cg-review-table table {
    min-width: 600px; 
}

/* 3. Table Cells (TH & TD) */
th, td {
    padding: 12px 15px;
    text-align: left;
    font-size: 16px;
}

/* Table Header Design */
th {
    background-color: #2271b1 !important; /* Blue Header */
    color: white !important;
    font-weight: bold;
}

/* Zebra Striping (Alternating Row Colors) */
tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Hover Effect */
tr:hover {
    background-color: #f1f1f1;
}

/* Desktop specific padding adjustments */
@media (min-width: 768px) {
    table td {
        padding: 7px 5px 7px 15px !important;
    }
    table th {
        padding: 15px 15px !important;
    }
}

/* --- Mobile Padding Fixes --- */
@media (max-width: 768px) {
    .separate-containers .inside-article, 
    .separate-containers .comments-area, 
    .separate-containers .page-header, 
    .separate-containers .paging-navigation, 
    .one-container .site-content, 
    .inside-page-header {
        padding: 20px;
    }
    .inside-header {
        padding: 12px 40px;
    }
}

/* --- Navigation & Links --- */
/* Touch Targets for Previous/Next Links */
.nav-links a, .post-navigation a, a[rel="prev"], a[rel="next"] {
    padding: 15px 10px !important;
    display: inline-block !important;
    line-height: 1;
    margin-bottom: 5px;
}

/* Category Link Bold */
.entry-meta .cat-links a {
    font-weight: bold;
}
.site-info {
    border-top: 1px solid #eee;
}
