/* =========================
   GLOBAL
========================= */
.ai-writer-name {
	margin-top: -1px;
}
.glossary-container {
    max-width: 1610px;
    margin: auto;
    padding: 40px 20px;
}

.glossary-container section {
    margin-bottom: 80px;
}

.glossary-container h1, .glossary-container h2, .glossary-container h3 {
    font-weight: 600;
}

.glossary-container p {
    line-height: 1.6;
/*     text-align: center;
    margin-bottom: 0; */
}

/* =========================
   HERO
========================= */
.glossary-hero {
    text-align: center;
    background: url("/wp-content/uploads/2026/03/ai-ml-banner.webp") left/cover no-repeat;
    border-radius: 12px;
    padding: 36px 32px;
}

.glossary-hero h1 {
    font-size: 2.8em;
    color: #0A3483;
    margin-bottom: 15px;
}

.glossary-hero p {
    font-size: 1.1em;
    color: #0A3483;
    font-weight: 600;
}

/* =========================
   SEARCH
========================= */
.search-box {
    max-width: 50%;
    margin: 30px auto 0;
    position: relative;
}

.search-box input {
    width: 100% !important;
    padding: 14px 42px 14px 16px !important;
    border-radius: 8px !important;
    border: none !important;
    background: #FAFDFF !important;
}

/* .search-box input[type=text]:focus{
	border-color: transparent;	
	border: none;
} */

.search-box input:focus-visible {
	outline: none;
}

.search-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #48a9f8;
    padding: 8px 12px;
    border-radius: 4px;
}

.search-icon img {
    margin-top: 2px;
}

.search-results{
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    background:#fff;
    border:1px solid #ddd;
    display:none;
    z-index:999;
    max-height:250px;
    overflow-y:auto;
}

.search-results ul{
    list-style:none;
    margin:0;
    padding:0;
}

.search-results li{
    padding:10px;
    border-bottom:1px solid #f1f1f1;
}

.search-results li:hover{
    background:#f8f8f8;
}

.search-results a{
    text-decoration:none;
    color:#333;
    display:block;
}

/* =========================
   SECTION HEADERS
========================= */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2em;
    color: #101828;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1em;
    color: #667085;
}

/* =========================
   ALPHABET NAV
========================= */
.alphabet-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f5f5f5;
}

.alphabet-nav .alphabet-btn {
    min-width: 43px;
    height: 49px;
    background: #FAFDFF;
    border-radius: 4px;
    font-weight: 600;
    color: #667085;
    cursor: pointer;
    border: 1px solid transparent;
    box-shadow: 0 1px 2px #1018280F;
    transition: 0.3s;
	padding: .5rem 1rem;
	line-height: 1.8;
}

.alphabet-nav .alphabet-btn:hover,
.alphabet-nav .alphabet-btn.active {
    border-color: #49A9F8;
}

/* =========================
   GRIDS
========================= */
.category-grid,
.terms-grid {
    display: grid;
}

.terms-grid {
    gap: 25px;
}

.category-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.terms-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.ai-terms-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
/* =========================
   CATEGORY CARDS
========================= */
.category-card {
    padding: 20px 24px;
    cursor: pointer;
}

.category-card h3 {
    font-size: 1.3em;
    font-weight: 700;
    color: #061D48;
    margin-bottom: 15px;
}

.category-card p {
    font-size: 14px;
    color: #1D2939;
}

/* Backgrounds */
.category-card[data-category="foundations"] {
    background: url('/wp-content/uploads/2026/03/yellow-gradient-bg.png');
	background-size: cover;
}
.category-card[data-category="generative"] {
    background: url('/wp-content/uploads/2026/03/green-gradient-bg.webp');
	background-size: cover;
}
.category-card[data-category="systems"] {
    background: url('/wp-content/uploads/2026/03/purple-gradient-bg.webp');
	background-size: cover;
}
.category-card[data-category="ml-data"] {
    background: url('/wp-content/uploads/2026/03/red-gradient-bg.webp');
	background-size: cover;
}

.category-icon img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

/* =========================
   TERM CARDS
========================= */
.term-card {
    background: #fff;
    border: 1px solid #f5f5f5;
    border-radius: 8px;
    padding: 25px;
    transition: 0.3s;
}

.term-card:hover {
    border-color: #C7E4FD;
    box-shadow: 0 1px 3px #1018281A;
}

.term-title {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    align-items: start;
}

.term-card h3 {
    font-size: 1.3em;
    color: #3A3D42;
    margin: 0;
}

.description {
    font-size: 0.95em;
    color: #667085;
    margin-bottom: 15px;
}

.meta {
    font-size: 0.75em;
    color: #667085;
    padding-top: 15px;
}

/* Badges */
.term-badge {
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.75em;
    font-weight: 600;
    height: fit-content;
}

.term-badge.hot {
    background: #FEF0C7;
    color: #F79009;
}

.term-badge.featured {
    background: #e8f5e9;
    color: #2e7d32;
}

/* =========================
   BUTTONS
========================= */
.view-full-btn {
    text-align: center;
    margin-top: 50px;
}

.view-full-btn #viewFullBtn,
.hero-btn {
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
    cursor: pointer;
}

.view-full-btn #viewFullBtn {
    background: #49A9F8;
    color: #fff;
    padding: 12px 20px;
    border: none;
}

.view-full-btn #viewFullBtn:hover {
    background: #1e88e5;
    transform: translateY(-2px);
}

/* =========================
   CTA HERO
========================= */
.hero-container {
    max-width: 1600px;
    margin: auto;
    background: url('/wp-content/uploads/2026/03/blue-banner-bg.webp') center/cover;
    border-radius: 16px;
    display: flex;
    align-items: center;
    overflow: hidden;
	background-position: left;
}

.hero-content {
    width: 50%;
    padding: 48px 56px;
    color: #fff;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 28px;
}

.hero-btn {
    background: #fff;
    color: #2f80ed;
    padding: 14px 26px;
    display: inline-block;
}

.hero-btn:hover {
    background: #f2f6ff;
}

.hero-image {
    width: 50%;
}

/* =========================
   STATES
========================= */
.no-results,
.loading {
    text-align: center;
    padding: 40px;
    color: #757575;
}

.alphabet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
	border-bottom: 1px solid #D0D5DD;
}

.alphabet-letter {
    font-size: 54px;
    font-weight: 700;
}

.view-more-btn {
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
    color: #6F7580;
}

.view-more-btn:hover {
    text-decoration: underline;
}


.alphabet-pagination {
    text-align: center;
    margin: 60px 0;
}

.page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    margin: 0 6px;
    border-radius: 50%;
    background: #f2f2f2;
    color: #555;
    text-decoration: none;
    transition: 0.3s ease;
}

.page-number:hover {
    background: #ddd;
}

.page-number.active {
    background: #B3C0D9;
    color: #fff;
}

.page-number.next {
    font-size: 20px;
}

button#loadMoreTerms {
    background-color: #EDF6FE;
    color: #429AE2;
    border: none;
    font-weight: 600;
    padding: 10px 22px;
}

/* =========================
   Quiz
========================= */
.quiz-section {
    background: url('/wp-content/uploads/2026/03/quiz-bg.png');
/*     height: 500px; */
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 8px;
    padding: 60px;
}

.quiz-block {
    background-color: #ffff;
/*     height: 100%; */
    width: 70%;
    margin: auto;
    border-radius: 16px;
	position: relative;
	border: 1px solid #D0D5DD;
	padding: 50px;
}

.quiz-block:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: #C7E4FD;
    border-radius: 20px;
    top: 0px;
    left: -8px;
    transform: rotate(3deg);
    z-index: -1;
}

.feedback {
    margin-top: 12px;
}

.quiz-btn {
    background: #EDF6FE;
    color: #429AE2;
    border: none;
    padding: 12px 60px;
    font-weight: 600;
    border-radius: 4px;
}

.quiz-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
	transition: 0.3s;
}

.quiz-btn:hover {
    background-color: #1e88e5;
}

.quiz-progress {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.quiz-block .step {
    width: 40px;
    height: 4px;
    background: #dce6f7;
    border-radius: 10px;
    transition: 0.3s;
}

.quiz-block .step.active {
    background: #163d8f;
}

.quiz-question {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 35px;
    text-align: center;
	color: #061D48;
}

.quiz-block .quiz-options label {
    display: block;
    padding: 18px 20px;
    border: 1px solid #e1e8f5;
    border-radius: 14px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 18px;
	line-height: 22px;
}

.quiz-block .quiz-options {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 16px;
}

.quiz-block .quiz-options input {
    display: none;
}

.quiz-block .quiz-options label:hover {
    border-color: #49A9F8;
/*     background: #f1f5ff; */
}

.quiz-block .correct {
    border-color: #28a745 !important;
    background: #eaf8ef;
}

.quiz-block .wrong {
    border-color: #dc3545 !important;
    background: #fdeaea;
}

#quiz-container .quiz-subheading {
	text-align: center;
	color: #061D48;
}

/* Result Screen */
.quiz-result {
    text-align: center;
}
.result-title {
    font-size: 28px;
    font-weight: 700;
    color: #061D48;
    margin-bottom: 15px;
}

.result-subtext {
    margin-bottom: 40px;
    font-size: 18px;
    color: #061D48;
    font-size: 22px;
}

.result-webinar-box {
    padding: 30px;
    border-radius: 24px;
    margin-bottom: 40px;
    background: linear-gradient(180deg, rgba(97, 171, 251, 0.19) 0%, rgba(217, 239, 255, 0.19) 100%);
}

.result-webinar-box h3 {
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    margin-bottom: 10px;
    color: #2E333B;
}

.webinar-desc {
    text-align: left;
    margin-bottom: 30px;
    font-size: 16px;
    color: #2E333B;
}

.result-stats {
    display: flex;
    gap: 25px;
    justify-content: space-between;
	flex-wrap: wrap;
}

.stat-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 18px;
    flex: 1;
    text-align: center;
}

.stat-box h4 {
    font-size: 36px;
    font-weight: 700;
    color: #0A3483;
    margin-bottom: 10px;
}

.stat-box p {
    font-size: 15px;
    color: #2E333B;
    font-weight: 500;
}

.result-btn {
    display: block;
    background: #163e8f;
    color: #fff;
    text-decoration: none;
    padding: 18px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
}

.result-btn:hover {
    background: #0f2d6d;
    color: #fff;
}

/* Single page - glossary category */
.ai-glossary-category-item {
    color: #0A3483;
    padding: 10px 14px;
    background-color: #F2F4F7;
    margin-right: 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

/* Single page - contributors */
.ai-contributors-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.ai-contributor-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ai-contributor-image img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.ai-contributor-name {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #2c3e50;
}

.ai-contributor-designation {
    margin: 5px 0 0;
    font-size: 16px;
    color: #2c3e50;
}

/* Single page - glossary terms */
.ai-term-item {
    color: #475467;
    padding: 10px 14px;
    background-color: #FAFDFF;
    margin-right: 10px;
    border-radius: 4px;
    border: 1px solid #E4E7EC;
    font-weight: 700;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
		padding: 30px;
	}
	.alphabet-letter {
		font-size: 36px;
	}
    .hero-content,
    .hero-image {
        width: 100%;
    }
	.hero-content {
		padding: 0;
	}
	
	.category-grid {
    	grid-template-columns: auto auto;
		gap: 25px;
	}
}

@media (max-width: 1300px) {
    .alphabet-nav {
        gap: 6px;
		overflow: scroll;
		justify-content: left;
    }
}

@media (max-width: 768px) {
	.search-icon {
    	right: 8px;	
	}
    .glossary-hero h1 {
        font-size: 1.8em;
    }
	.section-header h2,
	.hero-content h2 {
    	font-size: 1.5em;
	}
	.glossary-hero p,
	.section-header p,
	.glossary-container p {
    	font-size: 1em;
		line-height: 1.2;
	}
	
	.glossary-container section {
		margin-bottom: 50px;	
	}
	.popular-terms {
		margin-top: 80px;
	}
    .search-box {
        max-width: 100%;
    }

    .alphabet-nav button {
        min-width: 35px;
        height: 35px;
        font-size: 0.9em;
    }

    .category-grid,
    .terms-grid {
        grid-template-columns: 1fr;
    }
	.hero-content {
        text-align: left;
    }
	.hero-btn {
		width: 100%;
		text-align: center;
	}
	.category-grid {
        display: block;
    }

    .category-card {
        margin: 0 8px;
    }

    /* Hide default dot */
    .category-grid .slick-dots li button:before {
        display: none;
    }

    .category-grid .slick-dots {
        bottom: -35px;
        display: flex !important;
        justify-content: center;
        gap: 10px;
    }

    .category-grid .slick-dots li {
        width: 25px !important;
        height: 3px !important;
    }

    .line-indicator {
        display: block;
        height: 6px;
        background: #cfe3f8;
        border-radius: 4px;
        transition: 0.3s ease;
    }

    .category-grid .slick-dots li.slick-active .line-indicator {
        background: #49A9F8;
        width: 100%;
    }
	.quiz-block {
		width: 100%;
		padding: 30px;
	}
	.quiz-section {
		padding: 25px;
	}
	.quiz-question {
		font-size: 22px;
		line-height: 24px;
	}
	.quiz-block .quiz-options {
		grid-template-columns: auto !important;
	}
	.quiz-nav {
		flex-wrap: wrap;
	}
	
	.stat-box h4 {
    	font-size: 25px;
	}
	
	.result-webinar-box {
    	padding: 22px; 
	}
	
	.result-btn {
		padding: 10px;
		font-size: 14px;
	}
	
    #tag-list-pagination {
        display: none;
    }

    .mobile-load-more-wrap {
        display: block;
        text-align: center;
        margin: 30px 0;
    }
}

@media (min-width: 769px) {
    .mobile-load-more-wrap {
        display: none;
    }
}
