/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/* Hide Total Marks, Pass Marks, and Earned Marks columns in Tutor LMS assignment table (from previous) */
.tutor-assignment-result-table th:nth-child(2), /* Total Marks header */
.tutor-assignment-result-table td:nth-child(2), /* Total Marks data */
.tutor-assignment-result-table th:nth-child(3), /* Pass Marks header */
.tutor-assignment-result-table td:nth-child(3), /* Pass Marks data */
.tutor-assignment-result-table th:nth-child(4), /* Earned Marks header */
.tutor-assignment-result-table td:nth-child(4)  /* Earned Marks data */
{
    display: none !important;
}

/* Ensure the table takes full width and uses fixed layout for consistent sizing */
.tutor-assignment-result-table {
    width: 100% !important; /* Forces table to span full container */
    table-layout: fixed !important; /* Ensures consistent column sizing */
}

/* Date column styling: width and nowrap to prevent wrapping */
.tutor-assignment-result-table th:nth-child(1),
.tutor-assignment-result-table td:nth-child(1) {
    width: 80% !important;
    text-align: left !important;
    white-space: nowrap !important;
}

/* Result column styling: narrower width, centered text, padding to align right edge with red line */
.tutor-assignment-result-table th:nth-child(5),
.tutor-assignment-result-table td:nth-child(5) {
    width: 20% !important;
    text-align: center !important; /* Centers the text (e.g., "Result" and "Pending/Passed") */
    padding-left: 10px !important; /* Adjusts left spacing for positioning */
    padding-right: 10px !important; /* Adjusts right spacing to line up with red mark */
}

/* New: Hide Total Marks and Passing Mark sections in assignment meta info */
.tutor-assignment-marks,
.tutor-assignmetn-pass-mark {
    display: none !important;
}

/* Optional: Adjust the meta info container if needed after hiding (prevents uneven spacing) */
.tutor-assignment-meta-info .tutor-assignment-detail-info:last-child {
    display: none !important; /* Hides the entire second info block if empty after removal */
}

/* Fix responsiveness at around 663px (e.g., for resized browsers or specific tablets) */
@media screen and (max-width: 663px) {
    .tutor-assignment-result-table {
        overflow-x: auto !important; /* Enables horizontal scrolling to prevent cutoff */
        width: 100vw !important; /* Uses viewport width for full adaptation */
    }

    .tutor-assignment-result-table th:nth-child(1),
    .tutor-assignment-result-table td:nth-child(1) {
        width: 50% !important; /* Narrower for this breakpoint to fit screen */
        white-space: normal !important; /* Allows wrapping if text is too long */
    }

    .tutor-assignment-result-table th:nth-child(5),
    .tutor-assignment-result-table td:nth-child(5) {
        width: 50% !important; /* Adjusts for better fit at 663px */
        padding-left: 5px !important;
        padding-right: 5px !important; /* Reduced padding to prevent overflow */
    }
}

/* Fix cutoff in portrait mode on iPhone */
@media screen and (orientation: portrait) and (max-width: 430px) { /* Targets iPhone portrait widths[1] */
    .tutor-assignment-result-table {
        overflow-x: auto !important; /* Enables horizontal scrolling to prevent cutoff */
        width: 100vw !important; /* Uses viewport width for full adaptation */
    }

    .tutor-assignment-result-table th:nth-child(1),
    .tutor-assignment-result-table td:nth-child(1) {
        width: 50% !important; /* Narrower for portrait to fit screen */
        white-space: normal !important; /* Allows wrapping if text is too long */
    }

    .tutor-assignment-result-table th:nth-child(5),
    .tutor-assignment-result-table td:nth-child(5) {
        width: 50% !important; /* Adjusts for better fit in narrow portrait view */
        padding-left: 5px !important;
        padding-right: 5px !important; /* Reduced padding to prevent overflow */
    }
	
