/*
Theme Name: Blocksy Child
Theme URI: https://creativethemes.com/blocksy/
Description: Child theme for Blocksy
Author: CreativeThemes
Author URI: https://creativethemes.com
Template: blocksy
Version: 1.0.0
Text Domain: blocksy-child
*/

/* ==============================
   COURSE SINGLE PAGE – BLOCKSY
================================ */

/* Course Cards Section */
.course-cards {
    margin: 20px 0;
}

.course-cards h2 {
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 600;
}
.course-extra h2 {
    margin-bottom: 10px;
}

/* Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

/* Each item becomes a card */
.cards-grid p,
.cards-grid li {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* Hover effect */
.cards-grid p:hover,
.cards-grid li:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* Text */
.cards-grid p,
.cards-grid li {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

/*general*/
#main-container .course-single {
    max-width: 1140px;
    margin: 0 auto;
    padding: 40px 20px;
    overflow: visible;
}

/* Title */
#main-container .course-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111;
}

/* Header spacing */
#main-container .course-header {
    margin-bottom: 25px;
}

/* Meta box */
/* ===== COURSE INFO BLOCK ===== */

.course-info {
    background: #CDECF9;
    padding: 28px;
    border-radius: 16px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;

    @media (max-width: 768px) {
            grid-template-columns: auto auto;}
}

.info-item {
    background: #ffffff;
    border-left: 4px solid #018CD1;
    padding: 18px 20px;
    border-radius: 10px;
}

.info-item span {
    font-size: 13px;
    color: #056A9B;
    display: block;
    margin-bottom: 4px;
}

.info-item strong {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
}

/* Fees emphasis */
.info-item.highlight {
    border-left-color: #E92002;
}

.info-item.highlight strong {
    color: #E92002;
}


/* Main content */
#main-container .course-content {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 50px;
    color: #222;
}
/* Modules table */
/* Wrapper */
.course-modules-table {
    width: 100%;
    overflow-x: auto;
}

/* Base table */
.course-modules-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    font-family: inherit;
    margin-bottom: 24px;
}

/* Table header */
.course-modules-table thead th {
    background-color: #056A9B;
    color: #ffffff;
    font-weight: 600;
    padding: 14px;
    text-align: left;
}

/* First column (Module column) highlight */
.course-modules-table tbody th {
    background-color: #018CD1;
    color: #ffffff;
    font-weight: 600;
    width: 18%;
    text-align: center;
    padding: 14px;
    vertical-align: middle;
}

/* Regular table cells */
.course-modules-table tbody td {
    padding: 14px;
    color: #333333;
    border-bottom: 1px solid #CDECF9;
    vertical-align: middle;
}

/* Zebra striping (content column only) */
.course-modules-table tbody tr:nth-child(even) td {
    background-color: #F3F9FC;
}

/* Hover effect */
.course-modules-table tbody tr:hover td {
    background-color: #E6F4FB;
}

/* Optional row highlight (add class="highlight" to <tr>) */
.course-modules-table tbody tr.highlight th,
.course-modules-table tbody tr.highlight td {
    background-color: #014F7A;
    color: #ffffff;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .course-modules-table thead {
        display: none;
    }

    .course-modules-table table,
    .course-modules-table tbody,
    .course-modules-table tr {
        display: block;
        width: 100%;
    }

    .course-modules-table tr {
        margin-bottom: 16px;
        border-radius: 10px;
        overflow: hidden;
        border: 1px solid #CDECF9;
    }

    .course-modules-table tbody th,
    .course-modules-table tbody td {
        display: block;
        width: 100%;
        text-align: left;
    }

    .course-modules-table tbody th {
        background-color: #056A9B;
        text-align: center;
    }
}
/* Career path table */

.career-path-table {
width: 100%;
overflow-x: auto;
}

/* Base table */
.career-path-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    font-family: inherit;
}

/* Table header */
.career-path-table thead th {
    background-color: #056A9B;
    color: #ffffff;
    font-weight: 600;
    padding: 14px;
    text-align: left;
}

/* First column (Module column) highlight */
.career-path-table tbody th {
    background-color: #018CD1;
    color: #ffffff;
    font-weight: 600;
    width: 18%;
    text-align: center;
    padding: 14px;
    vertical-align: middle;
}

/* Regular table cells */
.career-path-table tbody td {
    padding: 14px;
    color: #333333;
    border-bottom: 1px solid #CDECF9;
    vertical-align: middle;
}

/* Zebra striping (content column only) */
.career-path-table tbody tr:nth-child(even) td {
    background-color: #F3F9FC;
}

/* Hover effect */
.career-path-table tbody tr:hover td {
    background-color: #E6F4FB;
}

/* Optional row highlight (add class="highlight" to <tr>) */
.career-path-table tbody tr.highlight th,
.career-path-table tbody tr.highlight td {
    background-color: #014F7A;
    color: #ffffff;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .career-path-table thead {
        display: none;
    }

    .career-path-table table,
    .career-path-table tbody,
    .career-path-table tr {
        display: block;
        width: 100%;
    }

    .career-path-table tr {
        margin-bottom: 16px;
        border-radius: 10px;
        overflow: hidden;
        border: 1px solid #CDECF9;
    }

    .career-path-table tbody th,
    .career-path-table tbody td {
        display: block;
        width: 100%;
        text-align: left;
    }

    .career-path-table tbody th {
        background-color: #056A9B;
        text-align: center;
    }
}
/*layout*/
.course-single {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: start;
}
/*main content*/
.course-main{
    overflow: visible;
    min-width: 0;
}
.course-extra {
    overflow: visible;
    padding: 10px 0;
    
}
/*sidebar*/
.course-sidebar {
    height: fit-content;
    position: sticky;
    top: 10px;
    overflow: visible;
    align-self: start;
}
/*sticky form*/
.sticky-form {
    background: #ffffff;
    padding: 20px;
    border-radius: 14px;
    border-top: 4px solid #e92002;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}
.sticky-form .wpcf7 p {
    margin: 0 0 10px;
}
.sticky-form h3 {
    font-size: 20px;
    font-weight: 600;
    color: #056A9B;
    margin-bottom: 14px;
    text-align: center;
}
.sticky-form .wpcf7 label {
    font-size: 13px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 4px;
    display: block;
}
.sticky-form .wpcf7-form-control {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    background: #fff;
    transition: all 0.2s ease;
}
.sticky-form input[type="submit"] {
    background: linear-gradient(135deg, #e92002, #F55B42);
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    margin-top: 6px;
}

.sticky-form input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(233, 32, 2, 0.3);
}
.sticky-form select {
    line-height: 1.4;
    height: 42px;
    appearance: none;
}
.sticky-form br {
    display: none;
}
.sticky-form .wpcf7 p {
    margin: 0 0 10px;
}
.sticky-form .wpcf7-form-control-wrap {
    display: block;
}
@media (max-width: 1024px) {
    .course-single {
        display: block;
    }

    .course-main,
    .course-sidebar {
        width: 100%;
    }

    .course-sidebar {
        position: static;
        margin-top: 32px;
    }
}