/*
Theme Name: Tamizhan Abroad Education (TAEGLOBALEDU)
Theme URI: https://taeglobaledu.com/
Author: TAE Global Education Consulting
Author URI: https://taeglobaledu.com/
Description: Complete, fully responsive overseas education consultancy WordPress theme for TAEGLOBALEDU. Engineered for high performance across all screens (4K/UltraWide monitors, desktop PCs, laptops, tablets, and smartphones). Features MBBS & Engineering program finders, government scholarships portal, country destination guides, 46 authentic student photo gallery with interactive modal lightbox, and instant lead capture forms.
Version: 2.3.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: taeglobaledu
Tags: education, medical, engineering, scholarships, responsive-layout, grid-layout, custom-menu, featured-images, theme-options, translation-ready
*/

/* Core styles are enqueued from assets/css/style.css and assets/css/responsive-enhancements.css */
@import url('assets/css/style.css');
@import url('assets/css/responsive-enhancements.css');

/* ==========================================================================
   TAE GLOBAL EDUCATION - BULLETPROOF TABLE & DATA ALIGNMENT STYLES
   Engineered to match local host pixel-perfection across all browsers & WordPress
   ========================================================================== */

/* 1. Main Course Grid Layout */
.course-layout {
    display: grid !important;
    grid-template-columns: 1.55fr 0.45fr !important;
    gap: 36px !important;
    align-items: start !important;
    margin-top: 10px !important;
    margin-bottom: 40px !important;
    width: 100% !important;
}

.main-content-container {
    grid-column: 1 !important;
    min-width: 0 !important;
    width: 100% !important;
    text-align: left !important;
}

.sidebar-container {
    grid-column: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    position: sticky !important;
    top: 90px !important;
}

/* 2. Main Content Heading & Typography Alignment */
.main-content-container .section-subtitle,
.main-content-container span.section-subtitle {
    display: inline-flex !important;
    margin: 0 0 12px 0 !important;
    text-align: left !important;
    padding: 4px 18px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: #00aeef !important;
    background: rgba(0, 174, 239, 0.08) !important;
    border-radius: 30px !important;
}

.main-content-container .section-title,
.main-content-container h2.section-title {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 24px !important;
    font-size: 2.15rem !important;
    line-height: 1.3 !important;
    color: #1e293b !important;
    font-weight: 800 !important;
}

.main-content-container .about-desc,
.main-content-container p.about-desc {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    font-size: 0.98rem !important;
    line-height: 1.75 !important;
    color: #64748b !important;
    margin-bottom: 18px !important;
}

/* 3. Pixel-Perfect Data Tables & Responsiveness */
.table-responsive {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin: 28px 0 34px 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    position: relative !important;
}

.table-responsive table,
.course-layout table,
.main-content-container table,
.info-table,
table.tae-data-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    text-align: left !important;
    background-color: #ffffff !important;
    margin: 0 !important;
    border: none !important;
}

/* Table Header Styles */
.table-responsive table thead,
.course-layout table thead,
.main-content-container table thead,
.info-table thead {
    background: #303890 !important;
}

.table-responsive table thead tr th,
.course-layout table thead tr th,
.main-content-container table thead tr th,
.info-table thead tr th {
    background: #303890 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-family: 'Outfit', 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 0.98rem !important;
    letter-spacing: 0.3px !important;
    padding: 16px 22px !important;
    vertical-align: middle !important;
    border: none !important;
}

/* Corner Radius on Thead for separate border-collapse */
.table-responsive table thead tr:first-child th:first-child,
.course-layout table thead tr:first-child th:first-child,
.main-content-container table thead tr:first-child th:first-child,
.info-table thead tr:first-child th:first-child {
    border-top-left-radius: 11px !important;
}

.table-responsive table thead tr:first-child th:last-child,
.course-layout table thead tr:first-child th:last-child,
.main-content-container table thead tr:first-child th:last-child,
.info-table thead tr:first-child th:last-child {
    border-top-right-radius: 11px !important;
}

/* Centered Colspan Title Headers (e.g. International MBA Specifics) */
.table-responsive table thead tr th[colspan],
.course-layout table thead tr th[colspan],
.main-content-container table thead tr th[colspan],
.info-table thead tr th[colspan] {
    text-align: center !important;
    font-size: 1.08rem !important;
    letter-spacing: 0.5px !important;
    padding: 16px 20px !important;
    background: #303890 !important;
    color: #ffffff !important;
    border-top-left-radius: 11px !important;
    border-top-right-radius: 11px !important;
    border-bottom: none !important;
}

/* Table Body Cells */
.table-responsive table tbody tr td,
.course-layout table tbody tr td,
.main-content-container table tbody tr td,
.info-table tbody tr td {
    padding: 15px 22px !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-size: 0.94rem !important;
    vertical-align: middle !important;
    line-height: 1.6 !important;
    color: #334155 !important;
    background: transparent !important;
}

/* Parameter First Column (Left Side) */
.table-responsive table tbody tr td:first-child,
.course-layout table tbody tr td:first-child,
.main-content-container table tbody tr td:first-child,
.info-table tbody tr td:first-child {
    width: 28% !important;
    min-width: 175px !important;
    color: #303890 !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

/* Alternating Zebra Rows */
.table-responsive table tbody tr:nth-child(even),
.course-layout table tbody tr:nth-child(even),
.main-content-container table tbody tr:nth-child(even),
.info-table tbody tr:nth-child(even) {
    background-color: #f8fafc !important;
}

.table-responsive table tbody tr:nth-child(odd),
.course-layout table tbody tr:nth-child(odd),
.main-content-container table tbody tr:nth-child(odd),
.info-table tbody tr:nth-child(odd) {
    background-color: #ffffff !important;
}

/* Row Hover State */
.table-responsive table tbody tr:hover,
.course-layout table tbody tr:hover,
.main-content-container table tbody tr:hover,
.info-table tbody tr:hover {
    background-color: #f1f5f9 !important;
}

/* Last Row Border Removal and Bottom Corner Radius */
.table-responsive table tbody tr:last-child td,
.course-layout table tbody tr:last-child td,
.main-content-container table tbody tr:last-child td,
.info-table tbody tr:last-child td {
    border-bottom: none !important;
}

.table-responsive table tbody tr:last-child td:first-child,
.course-layout table tbody tr:last-child td:first-child,
.main-content-container table tbody tr:last-child td:first-child,
.info-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 11px !important;
}

.table-responsive table tbody tr:last-child td:last-child,
.course-layout table tbody tr:last-child td:last-child,
.main-content-container table tbody tr:last-child td:last-child,
.info-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 11px !important;
}

/* 4. Bullet Boxes & Card Components */
.bullet-box {
    background-color: #ffffff !important;
    border-radius: 12px !important;
    padding: 28px 30px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 30px !important;
}

.bullet-box h3 {
    font-size: 1.3rem !important;
    color: #303890 !important;
    margin-top: 0 !important;
    margin-bottom: 18px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
}

.bullet-box h3 i {
    color: #00aeef !important;
    font-size: 1.15rem !important;
    flex-shrink: 0 !important;
}

.bullet-list {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}

.bullet-list li {
    display: block !important;
    position: relative !important;
    padding-left: 28px !important;
    font-size: 0.94rem !important;
    line-height: 1.6 !important;
    color: #1e293b !important;
    margin: 0 !important;
}

.bullet-list li > i {
    position: absolute !important;
    left: 0 !important;
    top: 4px !important;
    color: #00aeef !important;
    font-size: 0.95rem !important;
    line-height: 1 !important;
    width: 20px !important;
    text-align: center !important;
}

.bullet-list li > i.fa-circle {
    font-size: 0.52rem !important;
    top: 7px !important;
    color: #00aeef !important;
}

.bullet-list li > i.fa-check,
.bullet-list li > i.fa-check-circle {
    color: #10b981 !important;
}

.bullet-list li strong {
    color: #303890 !important;
    font-weight: 600 !important;
}

/* 5. Specialization & Scholarship Cards */
.spec-list-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    gap: 16px !important;
    margin-top: 15px !important;
}

.spec-item-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 18px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
}

.spec-item-card:hover {
    border-color: #00aeef !important;
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    transform: translateY(-2px) !important;
}

.spec-item-card h4 {
    font-size: 1.02rem !important;
    color: #303890 !important;
    margin-bottom: 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.spec-item-card h4 i {
    color: #00aeef !important;
    font-size: 0.95rem !important;
}

.spec-item-card p {
    color: #64748b !important;
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    flex: 1 !important;
}

.scholarship-badge-item {
    background: #f8fafc !important;
    border-left: 4px solid #00aeef !important;
    padding: 20px !important;
    border-radius: 0 10px 10px 0 !important;
    margin-bottom: 18px !important;
    border-top: 1px solid #e2e8f0 !important;
    border-right: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.scholarship-badge-item h4 {
    font-size: 1.15rem !important;
    color: #303890 !important;
    margin-bottom: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.scholarship-badge-item .badge-pill {
    background: #ecfdf5 !important;
    color: #059669 !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
}

/* 6. Responsive Stack for Mobile & Tablets */
@media (max-width: 991px) {
    .course-layout {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .sidebar-container {
        position: static !important;
        width: 100% !important;
        order: 2 !important;
    }
    .main-content-container {
        order: 1 !important;
    }
    .main-content-container .section-title {
        font-size: 1.75rem !important;
    }
    .table-responsive table tbody tr td:first-child,
    .course-layout table tbody tr td:first-child,
    .main-content-container table tbody tr td:first-child {
        width: 35% !important;
        min-width: 140px !important;
        white-space: normal !important;
    }
    .table-responsive table tbody tr td,
    .course-layout table tbody tr td,
    .main-content-container table tbody tr td {
        padding: 12px 14px !important;
        font-size: 0.88rem !important;
    }
}
