/* =========================================================
   Tech Tutorials
   Frontend UI
   ========================================================= */


/* ---------------------------------------------------------
   Main Page
   --------------------------------------------------------- */

.ait-tech-tutorial-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}


/* ---------------------------------------------------------
   Plugin Breadcrumb
   --------------------------------------------------------- */

.ait-tech-breadcrumb {
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.6;
}

.ait-tech-breadcrumb a {
    text-decoration: none;
}

.ait-tech-breadcrumb span {
    margin: 0 4px;
}

/* Hide Theme / Rank Math breadcrumb on Tech Tutorials */

body.single-ait_tech_tutorial .rank-math-breadcrumb,
body.post-type-archive-ait_tech_tutorial .rank-math-breadcrumb,
body.tax-ait_tech_category .rank-math-breadcrumb,
body.tax-ait_tech_technology .rank-math-breadcrumb {
    display: none !important;
}


/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.ait-tech-tutorial-header {
    margin-bottom: 25px;
}

.ait-tech-tutorial-title {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.3;
}


/* ---------------------------------------------------------
   Category / Technology Description
   --------------------------------------------------------- */

.ait-tech-category-description {
    margin-top: 8px;
    font-size: 16px;
    line-height: 1.7;
}


/* ---------------------------------------------------------
   Archive / Category / Technology List
   --------------------------------------------------------- */

.ait-tech-tutorials-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* ---------------------------------------------------------
   Tutorial / Technology Card
   --------------------------------------------------------- */

.ait-tech-tutorial-card {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 62px;
    padding: 12px 16px;
    box-sizing: border-box;

    border: 1px solid #e5e7eb;
    border-radius: 8px;

    text-decoration: none;
    background: #fff;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}


/* ---------------------------------------------------------
   Card Hover
   --------------------------------------------------------- */

.ait-tech-tutorial-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}


/* ---------------------------------------------------------
   Card Number
   --------------------------------------------------------- */

.ait-tech-tutorial-number {
    flex: 0 0 42px;
    width: 42px;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}


/* ---------------------------------------------------------
   Card Information
   --------------------------------------------------------- */

.ait-tech-tutorial-info {
    flex: 1;
    min-width: 0;
}


.ait-tech-tutorial-info .ait-tech-tutorial-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.45;
}


/* ---------------------------------------------------------
   Card Title Link
   --------------------------------------------------------- */

.ait-tech-tutorial-info .ait-tech-tutorial-title a {
    text-decoration: none;
}


/* ---------------------------------------------------------
   Card Excerpt
   --------------------------------------------------------- */

.ait-tech-tutorial-excerpt {
    margin-top: 5px;
    font-size: 14px;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   Card Arrow
   --------------------------------------------------------- */

.ait-tech-tutorial-arrow {
    flex: 0 0 30px;
    width: 30px;

    text-align: right;
    font-size: 20px;
    line-height: 1;

    transition: transform 0.2s ease;
}


.ait-tech-tutorial-card:hover .ait-tech-tutorial-arrow {
    transform: translateX(3px);
}


/* ---------------------------------------------------------
   No Tutorials
   --------------------------------------------------------- */

.ait-tech-no-tutorials,
.ait-tech-empty-content {
    padding: 18px 0;

    font-size: 15px;
    line-height: 1.7;
}


/* ---------------------------------------------------------
   Pagination
   --------------------------------------------------------- */

.ait-tech-pagination {
    margin-top: 25px;
}


/* =========================================================
   Single Tutorial
   ========================================================= */


/* ---------------------------------------------------------
   Two Column Layout
   --------------------------------------------------------- */

.ait-tech-tutorial-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}


/* ---------------------------------------------------------
   Left Sidebar
   --------------------------------------------------------- */

.ait-tech-tutorials-sidebar {
    border-left: 2px solid #e5e7eb;
    padding-left: 16px;
}


.ait-tech-sidebar-heading {
    margin-bottom: 14px;

    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}


.ait-tech-sidebar-tutorials {
    display: flex;
    flex-direction: column;
    gap: 5px;
}


/* ---------------------------------------------------------
   Sidebar Tutorial
   --------------------------------------------------------- */

.ait-tech-sidebar-tutorial {
    display: flex;
    align-items: flex-start;

    gap: 8px;
    width: 100%;

    padding: 7px 8px;

    box-sizing: border-box;

    text-decoration: none;
    line-height: 1.5;

    border-radius: 5px;
}


.ait-tech-sidebar-tutorial-number {
    flex: 0 0 24px;
    min-width: 24px;
}


.ait-tech-sidebar-tutorial-title {
    flex: 1;
}


/* ---------------------------------------------------------
   Current Tutorial
   --------------------------------------------------------- */

.ait-tech-sidebar-tutorial.is-current {
    font-weight: 600;
}


/* ---------------------------------------------------------
   Right Content
   --------------------------------------------------------- */

.ait-tech-tutorial-content {
    min-width: 0;
}


.ait-tech-tutorial-article {
    width: 100%;
}


.ait-tech-tutorial-heading {
    margin: 0 0 20px;

    font-size: 28px;
    line-height: 1.35;
}


.ait-tech-tutorial-body {
    font-size: 16px;
    line-height: 1.8;
}


.ait-tech-tutorial-body p {
    margin-bottom: 16px;
}


.ait-tech-tutorial-body h2,
.ait-tech-tutorial-body h3,
.ait-tech-tutorial-body h4 {
    margin-top: 28px;
    margin-bottom: 12px;
    line-height: 1.4;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 768px) {

    .ait-tech-tutorial-page {
        width: 100%;
    }


    /* Archive Cards */

    .ait-tech-tutorial-card {
        min-height: 58px;
        padding: 11px 12px;
    }


    .ait-tech-tutorial-number {
        flex-basis: 34px;
        width: 34px;
    }


    .ait-tech-tutorial-info .ait-tech-tutorial-title {
        font-size: 17px;
    }


    .ait-tech-tutorial-arrow {
        flex-basis: 24px;
        width: 24px;
    }


    /* Single Tutorial */

    .ait-tech-tutorial-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }


    .ait-tech-tutorials-sidebar {
        border-left: 2px solid #e5e7eb;
        padding-left: 14px;
    }


    .ait-tech-tutorial-title {
        font-size: 26px;
    }


    .ait-tech-tutorial-heading {
        font-size: 24px;
    }

}

/* =========================================================
   Tech Tutorials
   Category Cards
   ========================================================= */

.ait-tech-category-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}


/* ---------------------------------------------------------
   Category Card
   --------------------------------------------------------- */

.ait-tech-category-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 14px;
    overflow: hidden;
    box-sizing: border-box;
}


/* ---------------------------------------------------------
   Category Heading
   --------------------------------------------------------- */

.ait-tech-category-card-header {
    padding: 26px 22px 18px;
}

.ait-tech-category-card-header h2 {
    margin: 0;
    padding: 0 0 18px;
    border-bottom: 2px solid #222;
    font-size: 25px;
    line-height: 1.35;
}

.ait-tech-category-card-header h2 a {
	color: #172b4d;
    text-decoration: none;
}

.ait-tech-category-card-header h2 a:hover {
    color: #172b4d;
    text-decoration: none;
}

/* ---------------------------------------------------------
   Technology List
   --------------------------------------------------------- */

.ait-tech-technology-list {
    padding: 0 22px;
}


/* ---------------------------------------------------------
   Technology Row
   --------------------------------------------------------- */

.ait-tech-technology-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto 28px;
    align-items: center;
    gap: 0;
    min-height: 64px;
    border-bottom: 1px solid #e2e2e2;
    text-decoration: none;
    box-sizing: border-box;
}


/* Number */

.ait-tech-technology-number {
    font-size: 17px;
}


/* Technology Name */

.ait-tech-technology-name {
    font-size: 18px;
    line-height: 1.5;
}


/* Tutorial Count */

.ait-tech-technology-count {
    padding-left: 12px;
    font-size: 16px;
    white-space: nowrap;
}


/* Arrow */

.ait-tech-technology-arrow {
    text-align: right;
    font-size: 20px;
}


/* ---------------------------------------------------------
   Category Footer
   --------------------------------------------------------- */

.ait-tech-category-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 66px;
    background: #f5f5f5;
    text-align: center;
}

.ait-tech-category-footer a {
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}


/* ---------------------------------------------------------
   Hover
   --------------------------------------------------------- */

.ait-tech-technology-row:hover {
    text-decoration: none;
}

.ait-tech-category-footer a:hover {
    text-decoration: underline;
}


/* ---------------------------------------------------------
   Tablet
   --------------------------------------------------------- */

@media (max-width: 1024px) {

    .ait-tech-category-cards {
        grid-template-columns: 1fr;
    }

}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 768px) {

    .ait-tech-category-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ait-tech-category-card-header {
        padding: 22px 16px 14px;
    }

    .ait-tech-category-card-header h2 {
        font-size: 22px;
    }

    .ait-tech-technology-list {
        padding: 0 16px;
    }

    .ait-tech-technology-row {
        grid-template-columns: 30px minmax(0, 1fr) auto 24px;
        min-height: 58px;
    }

    .ait-tech-technology-name {
        font-size: 16px;
    }

    .ait-tech-technology-count {
        font-size: 14px;
    }

    .ait-tech-technology-arrow {
        font-size: 18px;
    }

}


/* =========================================
   Tech Index Cards
========================================= */

.ait-tech-index-card {
	display: flex;
	align-items: center;
	justify-content: space-between;

	padding: 22px 24px;

	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;

	text-decoration: none;
	color: #172b4d;

	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ait-tech-index-card:hover {
	color: #172b4d;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.ait-tech-index-card-title {
	font-size: 18px;
	font-weight: 600;
}

.ait-tech-index-card-arrow {
	font-size: 22px;
	font-weight: 500;
}


/* Desktop - 2 Columns */
.ait-tech-category-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}


/* Tablet */
@media (max-width: 1024px) {

	.ait-tech-category-cards {
		grid-template-columns: 1fr;
	}

}


/* Mobile */
@media (max-width: 768px) {

	.ait-tech-category-cards {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.ait-tech-index-card {
		padding: 18px 20px;
	}

	.ait-tech-index-card-title {
		font-size: 16px;
	}

}

/* =========================================
   Hide Theme Breadcrumb on Tech Tutorials
========================================= */

.archive.post-type-archive-ait_tech_tutorial .breadcrumb,
.archive.post-type-archive-ait_tech_tutorial .breadcrumbs,
.archive.post-type-archive-ait_tech_tutorial .breadcrumb-trail,
.archive.post-type-archive-ait_tech_tutorial .rank-math-breadcrumb,
.archive.post-type-archive-ait_tech_tutorial .yoast-breadcrumb,

.single-ait_tech_tutorial .breadcrumb,
.single-ait_tech_tutorial .breadcrumbs,
.single-ait_tech_tutorial .breadcrumb-trail,
.single-ait_tech_tutorial .rank-math-breadcrumb,
.single-ait_tech_tutorial .yoast-breadcrumb,

.tax-ait_tech_category .breadcrumb,
.tax-ait_tech_category .breadcrumbs,
.tax-ait_tech_category .breadcrumb-trail,
.tax-ait_tech_category .rank-math-breadcrumb,
.tax-ait_tech_category .yoast-breadcrumb,

.tax-ait_tech_technology .breadcrumb,
.tax-ait_tech_technology .breadcrumbs,
.tax-ait_tech_technology .breadcrumb-trail,
.tax-ait_tech_technology .rank-math-breadcrumb,
.tax-ait_tech_technology .yoast-breadcrumb,

body:has(.ait-tech-tutorial-page) .breadcrumb,
body:has(.ait-tech-tutorial-page) .breadcrumbs,
body:has(.ait-tech-tutorial-page) .breadcrumb-trail,
body:has(.ait-tech-tutorial-page) .rank-math-breadcrumb,
body:has(.ait-tech-tutorial-page) .yoast-breadcrumb {
	display: none !important;
}

/* =========================================
  tryyourself on Tech Tutorials
========================================= */


.ait-python-example-card {
    background: #eef0f2;
    padding: 28px;
    margin: 25px 0;
    border-radius: 6px;
}

.ait-python-example-card h2 {
    margin: 0 0 24px;
    font-size: 28px;
    font-weight: 500;
}

.ait-python-example-card p {
    margin: 0 0 18px;
    font-size: 18px;
}

.ait-python-example-card pre {
    background: #fff;
    padding: 18px 20px;
    margin: 0 0 20px;
    border-left: 5px solid linear-gradient(135deg, #0677f9, #711ad0) !important;
    overflow-x: auto;
}

.ait-try-it-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0677f9, #711ad0) !important;
    color: #fff !important;
    padding: 12px 22px !important;
    min-height: 0 !important;
    height: auto !important;
    line-height: 1.2 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    box-sizing: border-box !important;
}

.ait-try-it-button:hover {
    background: linear-gradient(135deg, #0677f9, #711ad0) !important;
    color: #fff !important;
    text-decoration: none !important;
}



.ait-mistake-item {
    counter-increment: ait-mistake;
    position: relative;
    margin-bottom: 18px;
    padding-left: 38px;
}

.ait-mistake-item::before {
    content: counter(ait-mistake);
    position: absolute;
    left: 0;
    top: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #eef0f2;
    color: #172b4d;
    font-weight: 600;
    text-align: center;
    line-height: 26px;
}

.ait-mistakes-list {
    counter-reset: ait-mistake;
}


.ait-interview-list {
    counter-reset: ait-interview;
}

.ait-interview-item {
    counter-increment: ait-interview;
    position: relative;
    margin-bottom: 22px;
    padding-left: 42px;
}

.ait-interview-item::before {
    content: counter(ait-interview) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: #172b4d;
}

.ait-interview-item p {
    margin: 0 0 10px;
}

.ait-interview-item p:first-child {
    font-weight: 600;
}

.ait-interview-item p:last-child {
    margin-bottom: 0;
}


.ait-exam-list {
    counter-reset: ait-exam;
}

.ait-exam-item {
    counter-increment: ait-exam;
    position: relative;
    margin-bottom: 24px;
    padding-left: 42px;
}

.ait-exam-item::before {
    content: counter(ait-exam) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: #172b4d;
}

.ait-exam-item p {
    margin: 0 0 10px;
}

.ait-exam-item p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   Tech Tutorial Quiz
   B.Com-style Quiz UI
   ========================================================= */

.ait-tech-quiz {
    margin: 35px 0 30px;
}

.ait-tech-quiz-card {
    background: #fff;
    border: 1px solid #446ab7;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ait-tech-quiz-card [hidden] {
    display: none !important;
}

/* Quiz Intro */

.ait-tech-quiz-intro h2 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.35;
}

.ait-tech-quiz-intro p {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.6;
}

.ait-tech-quiz-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.5;
}

.ait-tech-quiz-start,
.ait-tech-quiz-next,
.ait-tech-quiz-submit,
.ait-tech-quiz-retry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    height: auto;
    padding: 10px 16px;
    border: 0;
    border-radius: 5px;
    background: #0677d8;
    color: #fff !important;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.ait-tech-quiz-start:hover,
.ait-tech-quiz-next:hover,
.ait-tech-quiz-submit:hover,
.ait-tech-quiz-retry:hover {
    background: #056bc1;
    color: #fff !important;
}

/* Quiz App */

.ait-tech-quiz-progress {
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.5;
}

.ait-tech-quiz-question {
    background: #f7f9fb;
    border: 1px solid #dbe3ec;
    border-radius: 7px;
    padding: 20px 18px;
    margin-bottom: 16px;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 600;
}

.ait-tech-quiz-options {
    display: grid;
    gap: 10px;
}

.ait-tech-quiz-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 11px 13px;
    border: 1px solid #dbe3ec;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.5;
    transition: background .15s ease, border-color .15s ease;
}

.ait-tech-quiz-option:hover {
    background: #f7f9fb;
    border-color: #c7d3df;
}

.ait-tech-quiz-option input {
    flex: 0 0 auto;
    margin: 0;
}

.ait-tech-quiz-option-text {
    flex: 1;
    min-width: 0;
}

.ait-tech-quiz-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
}

/* Result */

.ait-tech-quiz-result {
    text-align: center;
}

.ait-tech-quiz-result h2 {
    margin: 0 0 15px;
    font-size: 24px;
}

.ait-tech-quiz-score {
    margin-bottom: 5px;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
}

.ait-tech-quiz-percentage {
    margin-bottom: 20px;
    font-size: 20px;
    line-height: 1.4;
}

/* Review */

.ait-tech-quiz-review {
    margin-top: 25px;
    text-align: left;
}

.ait-tech-quiz-review h3 {
    margin: 0 0 15px;
    font-size: 20px;
}

.ait-tech-quiz-review-item {
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid #dbe3ec;
    border-radius: 6px;
    background: #fff;
}

.ait-tech-quiz-review-question {
    margin: 0 0 8px;
    font-weight: 600;
}

.ait-tech-quiz-review-correct {
    margin: 0;
    color: #16803c;
}

.ait-tech-quiz-review-wrong {
    margin: 0;
    color: #c62828;
}

/* Mobile */

@media (max-width: 768px) {

    .ait-tech-quiz {
        margin-top: 28px;
    }

    .ait-tech-quiz-card {
        padding: 18px;
    }

    .ait-tech-quiz-intro h2 {
        font-size: 22px;
    }

    .ait-tech-quiz-question {
        padding: 17px 15px;
        font-size: 16px;
    }

    .ait-tech-quiz-actions {
        flex-wrap: wrap;
    }

    .ait-tech-quiz-start,
    .ait-tech-quiz-next,
    .ait-tech-quiz-submit,
    .ait-tech-quiz-retry {
        padding: 10px 14px;
    }

}


/* =========================================
   Previous / Next Lesson Navigation
   ========================================= */

.ait-tech-lesson-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 35px 0 30px;
}

.ait-tech-lesson-nav-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 48%;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ait-tech-lesson-nav-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.ait-tech-lesson-nav-previous {
    text-align: left;
}

.ait-tech-lesson-nav-next {
    text-align: right;
    margin-left: auto;
}

.ait-tech-lesson-nav-label {
    font-size: 13px;
    font-weight: 600;
    color: #0677d8;
}

.ait-tech-lesson-nav-title {
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
    color: #222;
}


/* Mobile */
@media (max-width: 767px) {

    .ait-tech-lesson-navigation {
        flex-direction: column;
        gap: 12px;
    }

    .ait-tech-lesson-nav-item {
        width: 100%;
    }

    .ait-tech-lesson-nav-next {
        text-align: left;
        margin-left: 0;
    }

}