/*!
 * TalentDove Theme
 * Fueling Ambitions, Building Careers.
 *
 * Theme Name: TalentDove
 * Theme URI: https://talentdove.local
 * Description: A professional, modern career platform theme built with Lindy UI Kit and Bootstrap 5. Perfect for job search, resume tools, and career resources.
 * Version: 1.0.0
 * Author: TalentDove Team
 * Author URI: https://talentdove.local
 * License: GPL v2 or later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: talentdove
 * Domain Path: /languages
 * Requires at least: 5.0
 * Requires PHP: 7.4
 *
 * This theme is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or
 * any later version.
 *
 * TalentDove is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 */

/* ============================================
   WordPress-specific overrides for Lindy UI Kit
   lindy-uikit.css provides the design system.
   This file only adds WP-specific styles.
   ============================================ */

/* WordPress core alignment classes */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

.alignwide {
    max-width: 100%;
}

.alignfull {
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* WordPress gallery */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.gallery-item {
    flex: 1 0 auto;
}

.gallery-caption {
    font-size: 0.875rem;
    color: #585978;
}

/* WordPress image captions */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: #585978;
    text-align: center;
    padding: 0.5rem 0;
}

/* Widget styling for Lindy */
.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ============================================
   Blog Card (Modern)
   ============================================ */
.td-blog-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #E9E9E9;
    overflow: hidden;
    margin-bottom: 2rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.td-blog-card:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* Card image wrapper */
.td-blog-card-img {
    position: relative;
    overflow: hidden;
    line-height: 0;
}

.td-blog-card-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.td-blog-card:hover .td-blog-card-img img {
    transform: scale(1.06);
}

.td-blog-card-placeholder {
    width: 100%;
    height: 220px;
    background: #f0f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #b0b8c9;
}

/* Category badge overlay */
.td-blog-card-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: #2F80ED;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 30px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s;
    line-height: 1.5;
    z-index: 1;
}

.td-blog-card-badge:hover {
    background: #1a6ad4;
    color: #fff;
    text-decoration: none;
}

/* Card body */
.td-blog-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.td-blog-card-title {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.td-blog-card-title a {
    color: #323450;
    text-decoration: none;
    transition: color 0.3s;
}

.td-blog-card-title a:hover {
    color: #2F80ED;
}

/* Meta line */
.td-blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.82rem;
    color: #8a8da8;
    margin-bottom: 0.75rem;
}

.td-blog-card-meta i {
    color: #2F80ED;
    margin-right: 3px;
    font-size: 0.85rem;
}

.td-blog-card-excerpt {
    color: #585978;
    font-size: 0.93rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.td-blog-card-excerpt p {
    margin-bottom: 0;
}

.td-blog-card-link {
    color: #2F80ED;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s;
}

.td-blog-card-link:hover {
    color: #1a6ad4;
    text-decoration: none;
}

.td-blog-card-link i {
    margin-left: 4px;
    transition: transform 0.3s;
    font-size: 0.8rem;
}

.td-blog-card-link:hover i {
    transform: translateX(4px);
}

/* ============================================
   Featured Post (Blog Index Hero Card)
   ============================================ */
.td-featured-post {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #E9E9E9;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.td-featured-post:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.td-featured-post-img {
    position: relative;
    overflow: hidden;
    height: 100%;
    line-height: 0;
}

.td-featured-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 320px;
    transition: transform 0.5s ease;
}

.td-featured-post:hover .td-featured-post-img img {
    transform: scale(1.04);
}

.td-featured-placeholder {
    min-height: 320px;
}

.td-featured-post-body {
    padding: 2rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.td-featured-label {
    display: inline-block;
    background: #EBF4FF;
    color: #2F80ED;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 14px;
    border-radius: 30px;
    margin-bottom: 1rem;
}

.td-featured-post-title {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.td-featured-post-title a {
    color: #323450;
    text-decoration: none;
    transition: color 0.3s;
}

.td-featured-post-title a:hover {
    color: #2F80ED;
}

/* ============================================
   Single Post
   ============================================ */
.td-single-featured-img {
    border-radius: 14px;
    object-fit: cover;
}

.td-single-article .td-page-content {
    font-size: 1.05rem;
    line-height: 1.9;
}

/* Tags */
.td-single-tags {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E9E9E9;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.td-single-tags > i {
    color: #8a8da8;
    margin-right: 4px;
}

.td-single-tags a {
    background: #EBF4FF;
    color: #2F80ED;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 0.82rem;
    text-decoration: none;
    transition: all 0.3s;
}

.td-single-tags a:hover {
    background: #2F80ED;
    color: #fff;
}

/* Author Bio Box */
.td-author-bio {
    display: flex;
    gap: 1.25rem;
    margin-top: 2rem;
    padding: 1.75rem;
    background: #f8faff;
    border-radius: 12px;
    border: 1px solid #eef1f6;
    align-items: flex-start;
}

.td-author-bio-avatar img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.td-author-bio-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2F80ED;
}

.td-author-bio-name {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #323450;
    margin: 4px 0 6px;
}

.td-author-bio-desc {
    color: #585978;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Post Navigation */
.td-post-nav {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #E9E9E9;
}

.td-post-nav-card {
    flex: 1;
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #E9E9E9;
    border-radius: 10px;
    text-decoration: none;
    transition: box-shadow 0.3s, transform 0.3s;
    align-items: center;
}

.td-post-nav-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    text-decoration: none;
}

.td-post-nav-thumb img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.td-post-nav-info {
    flex: 1;
    min-width: 0;
}

.td-post-nav-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #2F80ED;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.td-post-nav-title {
    display: block;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #323450;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.td-post-nav-card:hover .td-post-nav-title {
    color: #2F80ED;
}

/* ============================================
   Blog Responsive
   ============================================ */
@media (max-width: 991px) {
    .td-featured-post-img img {
        min-height: 260px;
    }

    .td-featured-post-body {
        padding: 1.5rem;
    }

    .td-featured-post-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 767px) {
    .td-blog-card-img img {
        height: 180px;
    }

    .td-blog-card-placeholder {
        height: 180px;
    }

    .td-featured-post-img img {
        min-height: 200px;
    }

    .td-featured-placeholder {
        min-height: 200px;
    }

    .td-featured-post-title {
        font-size: 1.15rem;
    }

    .td-post-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .td-author-bio {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 575px) {
    .td-blog-card-body {
        padding: 1rem 1.15rem 1.25rem;
    }

    .td-blog-card-meta {
        gap: 8px;
        font-size: 0.78rem;
    }

    .td-featured-post-body {
        padding: 1.25rem;
    }

    .td-post-nav-thumb img {
        width: 50px;
        height: 50px;
    }
}

/* Sidebar card styling */
.sidebar-card {
    background: #fff;
    border-radius: 5px;
    border: 1px solid #E9E9E9;
    margin-bottom: 2rem;
    overflow: hidden;
}

.sidebar-card .card-header {
    background-color: #2F80ED;
    color: #fff;
    padding: 1rem 1.5rem;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 700;
}

.sidebar-card .card-header h5 {
    margin: 0;
    color: #fff;
    font-size: 1.1rem;
}

.sidebar-card .card-body {
    padding: 1.5rem;
}

.sidebar-card .card-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-card .card-body ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f3f3;
}

.sidebar-card .card-body ul li:last-child {
    border-bottom: none;
}

.sidebar-card .card-body ul li a {
    color: #585978;
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar-card .card-body ul li a:hover {
    color: #2F80ED;
}

/* WordPress comments styling */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment-body {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #f3f3f3;
    border-radius: 5px;
}

.comment-author {
    font-weight: 700;
    color: #323450;
}

.comment-metadata {
    font-size: 0.875rem;
    color: #585978;
}

/* Pagination override */
.pagination {
    justify-content: center;
}

.page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background: #fff;
    border: 1px solid #E9E9E9;
    border-radius: 5px;
    color: #585978;
    text-decoration: none;
    transition: all 0.3s;
}

.page-numbers.current,
.page-numbers:hover {
    background: #2F80ED;
    color: #fff;
    border-color: #2F80ED;
}

/* Inner page header: always white */
.hero-section-wrapper-2 .header.header-2 {
    background: #ffffff !important;
}

/* Admin bar fix for sticky header */
.admin-bar .header.sticky {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .header.sticky {
        top: 46px;
    }
}

/* WordPress page content styling */
.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.page-content a {
    color: #2F80ED;
}

.page-content a:hover {
    color: #1a6dd4;
}

/* Breadcrumbs */
.td-breadcrumbs {
    margin-bottom: 14px;
    font-size: 0.85rem;
    color: #b0b8c9;
}
.td-breadcrumbs a {
    color: #7a8ba8;
    text-decoration: none;
    transition: color 0.15s;
}
.td-breadcrumbs a:hover {
    color: #2F80ED;
}
.td-breadcrumbs span {
    color: #b0b8c9;
}
.td-breadcrumb-sep {
    margin: 0 6px;
    color: #4a5568;
}

/* Inner Page Hero Banner (dark, matching Jobs hero) */
.td-page-hero {
    background: #0a1628;
    padding: 170px 0 70px;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    min-height: 220px;
}

.td-page-hero-has-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.88) 0%, rgba(47, 128, 237, 0.75) 100%);
    z-index: 0;
}

.td-page-hero-has-bg > .container {
    position: relative;
    z-index: 1;
}

.td-page-hero h1 {
    font-family: 'Fira Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.td-page-hero h1 span {
    color: #2F80ED;
}

.td-page-hero p {
    font-size: 1.1rem;
    color: #b0b8c9;
    margin-bottom: 0;
}

.td-page-hero-meta {
    margin-top: 12px;
    font-size: 0.9rem;
    color: #b0b8c9;
}

.td-page-hero-meta span {
    margin: 0 10px;
}

.td-page-hero-meta i {
    color: #2F80ED;
    margin-right: 4px;
}

/* Page content typography */
.td-page-content {
    line-height: 1.8;
    color: #585978;
}

.td-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.td-page-content a {
    color: #2F80ED;
}

.td-page-content a:hover {
    color: #1a6dd4;
}

.td-page-content h2,
.td-page-content h3,
.td-page-content h4 {
    font-family: 'Fira Sans', sans-serif;
    color: #323450;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Reusable utility classes (replaces inline styles) */
.post-divider {
    border-top: 1px solid #E9E9E9;
}

.text-muted {
    color: #585978 !important;
}

.td-rounded-img {
    border-radius: 8px;
}

.td-error-code {
    font-size: 6rem;
    color: #2F80ED;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 991px) {
    .td-page-hero {
        padding: 50px 0;
        min-height: 180px;
    }
    .td-page-hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .logo-img {
        width: 33% !important;
    }
    .td-page-hero {
        padding: 50px 0 30px;
        min-height: 160px;
    }
    .td-page-hero h1 {
        font-size: 1.75rem;
    }
    .td-error-code {
        font-size: 4rem;
    }
}

@media (max-width: 575px) {
    .td-page-hero h1 {
        font-size: 1.5rem;
    }
    .td-error-code {
        font-size: 2.5rem;
    }
}

/* Header Auth Button */
.td-header-auth-btn {
    margin-left: 15px;
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 8px 20px !important;
}

.td-header-auth-btn i {
    margin-right: 4px;
}

.td-header-logout-btn {
    background: transparent !important;
    border: 2px solid #2F80ED !important;
    color: #2F80ED !important;
}

.td-header-logout-btn:hover {
    background: #2F80ED !important;
    color: #fff !important;
}

@media (max-width: 991px) {
    .td-header-auth-btn {
        margin-left: 0;
        margin-top: 10px;
        display: inline-block;
    }

    .td-header-logout-btn {
        color: #2F80ED !important;
    }
}

@media (max-width: 575px) {
    .td-header-auth-btn {
        font-size: 0.8rem;
        padding: 6px 14px !important;
    }
}

/* ============================================
   Auth Page (Login / Register)
   ============================================ */

.td-auth-section {
    background: #f8f9fc;
}

/* Auth Card */
.td-auth-card {
    background: #fff;
    border: 1px solid #E9E9E9;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
}

/* Tabs */
.td-auth-tabs {
    display: flex;
    background: #f0f2f8;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 2rem;
}

.td-auth-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #585978;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}

.td-auth-tab.active {
    background: #2F80ED;
    color: #fff;
    box-shadow: 0 2px 8px rgba(47, 128, 237, 0.3);
}

.td-auth-tab:hover:not(.active) {
    color: #2F80ED;
}

/* ── Field Groups (Bootstrap-style inputs) ── */
.td-field-group {
    margin-bottom: 1.25rem;
}

.td-field-group label {
    display: block;
    font-weight: 600;
    color: #323450;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.td-required {
    color: #e74c3c;
}

/* Input wrapper — icon-left, optional toggle-right */
.td-input-wrap {
    display: flex;
    align-items: center;
    border: 2px solid #E9E9E9;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.25s, box-shadow 0.25s;
    overflow: hidden;
}

.td-input-wrap:focus-within {
    border-color: #2F80ED;
    box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.12);
}

/* Left icon */
.td-input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-width: 48px;
    height: 48px;
    color: #8a8da8;
    font-size: 1.1rem;
    background: #f8f9fc;
    border-right: 2px solid #E9E9E9;
    transition: color 0.25s, background 0.25s, border-color 0.25s;
}

.td-input-wrap:focus-within .td-input-icon {
    color: #2F80ED;
    background: #EBF4FF;
    border-color: #2F80ED;
}

/* The input itself */
.td-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 0 14px;
    height: 48px;
    font-size: 0.95rem;
    color: #323450;
    font-family: inherit;
    min-width: 0;
}

.td-input::placeholder {
    color: #b0b4c8;
}

/* Remove number input spinners */
.td-input[type="number"]::-webkit-inner-spin-button,
.td-input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.td-input[type="number"] {
    -moz-appearance: textfield;
}

/* Right toggle button (eye icon) */
.td-input-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 48px;
    background: none;
    border: none;
    color: #8a8da8;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.td-input-toggle:hover {
    color: #2F80ED;
}

/* ── Validation States ── */
.td-has-error {
    border-color: #e74c3c !important;
}

.td-has-error .td-input-icon {
    color: #e74c3c;
    background: #fdeaea;
    border-color: #e74c3c;
}

.td-has-success {
    border-color: #27ae60 !important;
}

.td-has-success .td-input-icon {
    color: #27ae60;
    background: #eafaf1;
    border-color: #27ae60;
}

.td-field-error {
    display: none;
    font-size: 0.82rem;
    color: #e74c3c;
    margin-top: 5px;
    padding-left: 2px;
}

/* ── Password Strength ── */
.td-password-strength {
    height: 6px;
    background: #f0f2f8;
    border-radius: 3px;
    margin-top: 8px;
    position: relative;
    overflow: visible;
}

.td-password-strength-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s, background 0.3s;
    width: 0;
}

.td-strength-weak { background: #e74c3c; }
.td-strength-fair { background: #f39c12; }
.td-strength-good { background: #2ecc71; }
.td-strength-strong { background: #27ae60; }

.td-password-strength-text {
    position: absolute;
    right: 0;
    top: -18px;
    font-size: 0.75rem;
    color: #585978;
}

@media (max-width: 575px) {
    .td-password-strength-text {
        position: static;
        margin-top: 4px;
        text-align: right;
    }
}

/* ── Captcha Row ── */
.td-captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.td-captcha-question {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f2f8;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    color: #323450;
    font-size: 0.95rem;
    border: 2px solid #E9E9E9;
}

.td-captcha-question i {
    color: #2F80ED;
    font-size: 1.15rem;
}

.td-captcha-input-wrap {
    max-width: 100px;
}

.td-captcha-input-wrap .td-input {
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ── Submit ── */
.td-auth-submit {
    width: 100%;
    margin-top: 0.5rem;
}

/* ── Extras (remember / forgot) ── */
.td-auth-extras {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.td-auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #585978;
}

.td-auth-checkbox input[type="checkbox"] {
    accent-color: #2F80ED;
    width: 17px;
    height: 17px;
}

.td-auth-forgot {
    font-size: 0.9rem;
    color: #2F80ED;
    text-decoration: none;
}

.td-auth-forgot:hover {
    text-decoration: underline;
}

/* ── Message box ── */
.td-auth-msg {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.td-auth-msg-error {
    background: #fdeaea;
    color: #e74c3c;
    border: 1px solid #f5c6cb;
}

.td-auth-msg-success {
    background: #eafaf1;
    color: #27ae60;
    border: 1px solid #c3e6cb;
}

/* Spinner */
.td-auth-spinner i {
    font-size: 1.1rem;
}

/* ── Branding panel ── */
.td-auth-branding {
    padding: 2.5rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.td-auth-branding h3 {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 700;
    color: #323450;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.td-auth-branding-tagline {
    color: #585978;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.td-auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.td-auth-features li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.td-auth-features li > i {
    font-size: 1.5rem;
    color: #2F80ED;
    margin-top: 2px;
    flex-shrink: 0;
}

.td-auth-features li strong {
    display: block;
    color: #323450;
    font-weight: 600;
    margin-bottom: 2px;
}

.td-auth-features li span {
    color: #585978;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ── Logged-in welcome state ── */
.td-auth-welcome {
    background: #fff;
    border: 1px solid #E9E9E9;
    border-radius: 12px;
    padding: 3rem 2rem;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
}

.td-auth-welcome-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #EBF4FF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.td-auth-welcome-icon i {
    font-size: 2rem;
    color: #2F80ED;
}

.td-auth-welcome h3 {
    font-family: 'Fira Sans', sans-serif;
    color: #323450;
    margin-bottom: 0.5rem;
}

.td-auth-welcome p {
    color: #585978;
    margin-bottom: 1.5rem;
}

.td-auth-welcome-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.td-auth-welcome-links .button i {
    margin-right: 4px;
}

.td-auth-welcome-links .button-outline {
    background: transparent;
    border: 2px solid #2F80ED;
    color: #2F80ED;
}

.td-auth-welcome-links .button-outline:hover {
    background: #2F80ED;
    color: #fff;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .td-auth-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 575px) {
    .td-auth-card {
        padding: 1.5rem 1rem;
    }

    .td-auth-extras {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .td-captcha-row {
        flex-direction: column;
        align-items: stretch;
    }

    .td-captcha-input-wrap {
        max-width: 100%;
    }

    .td-auth-welcome-links {
        flex-direction: column;
    }

    .td-auth-welcome-links .button {
        width: 100%;
    }
}

/* ============================================
   Services Page — Section Styles
   ============================================ */

/* --- Services Cards Section --- */
.td-svc-section {
    background: #ffffff;
}

.td-svc-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2F80ED;
    margin-bottom: 15px;
}

.td-svc-label::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 2px;
    background: #2F80ED;
}

.td-svc-label-center {
    justify-content: center;
}

.td-svc-label-center::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 2px;
    background: #2F80ED;
}

.td-svc-title-wrap h3 {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.3;
    color: #1d1d42;
    margin-bottom: 15px;
}

.td-svc-title-wrap p {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.7;
}

.td-svc-flashcard {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #eef1f6;
}

.td-svc-flashcard:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.td-svc-flashcard h5 {
    font-size: 22px;
    font-weight: 800;
    color: #1d1d42;
    margin-bottom: 8px;
}

.td-svc-flashcard p {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 0;
}

/* --- CTA / Offerings Section (dark) --- */
.td-cta-section {
    background: #1a1a2e;
    padding: 80px 0;
}

.td-cta-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2F80ED;
    margin-bottom: 15px;
}

.td-cta-label::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 2px;
    background: #2F80ED;
}

.td-cta-content h3 {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.3;
    color: #ffffff;
    margin-bottom: 18px;
}

.td-cta-content p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 25px;
}

.td-cta-btn {
    background: #2F80ED !important;
    color: #ffffff !important;
    border: none !important;
}

.td-cta-btn:hover {
    background: #1a6ad4 !important;
}

.td-cta-image {
    text-align: center;
}

.td-cta-image img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    max-height: 400px;
}

.td-cta-form {
    background: #2F80ED;
    border-radius: 10px;
    padding: 30px 25px;
}

.td-cta-form h4 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.td-cta-field {
    margin-bottom: 15px;
}

.td-cta-field input,
.td-cta-field textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    padding: 10px 0;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.td-cta-field input::placeholder,
.td-cta-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.td-cta-field input:focus,
.td-cta-field textarea:focus {
    border-bottom-color: #ffffff;
}

.td-cta-submit {
    background: #ffffff !important;
    color: #2F80ED !important;
    border: none !important;
    font-weight: 600;
    margin-top: 5px;
}

.td-cta-submit:hover {
    background: #f0f0f0 !important;
}

/* --- Team Section (Services page) --- */
.td-svc-team-section {
    background: #ffffff;
}

.td-svc-team-card {
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid #e8edf5;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.td-svc-team-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.td-svc-team-img {
    overflow: hidden;
    background: #f0f4ff;
    height: 240px;
}

.td-svc-team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.td-svc-team-info {
    padding: 20px 15px;
}

.td-svc-team-role {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2F80ED;
    margin-bottom: 6px;
}

.td-svc-team-info h6 {
    font-size: 17px;
    font-weight: 700;
    color: #1d1d42;
    margin-bottom: 0;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .td-svc-title-wrap {
        margin-bottom: 40px;
    }
    .td-cta-content {
        margin-bottom: 40px;
    }
    .td-cta-image {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .td-svc-title-wrap h3,
    .td-cta-content h3 {
        font-size: 24px;
    }
    .td-cta-section {
        padding: 60px 0;
    }
    .td-svc-team-img {
        height: 200px;
    }
}

@media (max-width: 575px) {
    .td-svc-title-wrap h3,
    .td-cta-content h3 {
        font-size: 20px;
    }
    .td-svc-flashcard {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    .td-svc-flashcard h5 {
        font-size: 18px;
    }
    .td-cta-section {
        padding: 40px 0;
    }
    .td-cta-form {
        padding: 22px 18px;
    }
    .td-cta-field input,
    .td-cta-field textarea {
        padding: 12px 0;
        font-size: 15px;
    }
    .td-svc-team-img {
        height: 160px;
    }
    .td-svc-team-info {
        padding: 15px 12px;
    }
}

/* ============================================
   Skills Tag Cloud (About Page)
   ============================================ */

.td-skills-cloud-section {
    background: #f8faff;
}

.td-sphere-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 550px;
    position: relative;
}

.td-sphere-cloud {
    color: #1d1d42;
    font-family: 'Fira Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
}

.td-sphere-cloud .tagcloud--item {
    cursor: pointer;
    transition: color 0.3s ease;
}

.td-sphere-cloud .tagcloud--item:hover {
    color: #2F80ED !important;
}

@media (max-width: 767px) {
    .td-sphere-wrap {
        min-height: 400px;
    }
    .td-sphere-cloud {
        font-size: 14px;
    }
}

@media (max-width: 575px) {
    .td-sphere-wrap {
        min-height: 320px;
    }
    .td-sphere-cloud {
        font-size: 12px;
    }
}

/* ============================================
   OAuth Social Login Buttons
   ============================================ */

.td-oauth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    font-size: 0.85rem;
    color: #8a8da8;
    font-weight: 500;
    text-transform: lowercase;
}

.td-oauth-divider::before,
.td-oauth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E9E9E9;
}

.td-oauth-buttons {
    display: flex;
    gap: 0.75rem;
}

.td-oauth-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.7rem 1rem;
    background: #fff;
    border: 2px solid #E9E9E9;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #323450;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.td-oauth-btn i {
    font-size: 1.15rem;
}

.td-oauth-btn:hover {
    color: #fff;
    text-decoration: none;
}

/* Google */
.td-oauth-google {
    border-color: #EA4335;
}

.td-oauth-google i {
    color: #EA4335;
}

.td-oauth-google:hover {
    background: #EA4335;
    border-color: #EA4335;
}

.td-oauth-google:hover i {
    color: #fff;
}

/* LinkedIn */
.td-oauth-linkedin {
    border-color: #0A66C2;
}

.td-oauth-linkedin i {
    color: #0A66C2;
}

.td-oauth-linkedin:hover {
    background: #0A66C2;
    border-color: #0A66C2;
}

.td-oauth-linkedin:hover i {
    color: #fff;
}

/* GitHub */
.td-oauth-github {
    border-color: #333;
}

.td-oauth-github i {
    color: #333;
}

.td-oauth-github:hover {
    background: #333;
    border-color: #333;
}

.td-oauth-github:hover i {
    color: #fff;
}

@media (max-width: 575px) {
    .td-oauth-buttons {
        flex-direction: column;
    }

    .td-oauth-btn {
        font-size: 0.85rem;
        padding: 0.6rem 0.75rem;
    }
}

/* Mobile heading & spacing reduction */
@media (max-width: 767px) {
    h1, .h1 { font-size: 1.75rem !important; }
    h2, .h2 { font-size: 1.5rem !important; }
    h3, .h3 { font-size: 1.25rem !important; }
    h4, .h4 { font-size: 1.1rem !important; }

    .pt-100 { padding-top: 60px !important; }
    .pb-100 { padding-bottom: 60px !important; }
    .pt-50 { padding-top: 30px !important; }
    .pb-50 { padding-bottom: 30px !important; }
    .pb-80 { padding-bottom: 50px !important; }
    .mb-60 { margin-bottom: 35px !important; }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .scroll-top {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
    }
}

.logo-img{
    width:77% !important;
}

/* ── Email Verification Banner ── */
.td-email-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 16px 20px;
}

.td-email-banner-icon {
    font-size: 24px;
    color: #856404;
    flex-shrink: 0;
}

.td-email-banner-content {
    flex: 1;
}

.td-email-banner-content strong {
    display: block;
    color: #856404;
    margin-bottom: 2px;
}

.td-email-banner-content p {
    margin: 0;
    font-size: 14px;
    color: #664d03;
}

.td-email-banner-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .td-email-banner {
        flex-wrap: wrap;
    }
    .td-email-banner-btn {
        width: 100%;
        text-align: center;
    }
}

/* ── OTP Verification Step ── */
.td-otp-step {
    padding: 8px 0;
}

.td-otp-back {
    background: none;
    border: none;
    color: #2F80ED;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.td-otp-back:hover {
    text-decoration: underline;
}

.td-otp-header {
    text-align: center;
    margin-bottom: 24px;
}

.td-otp-header > i {
    font-size: 40px;
    color: #2F80ED;
    margin-bottom: 12px;
    display: block;
}

.td-otp-header h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.td-otp-header p {
    color: #6c757d;
    margin: 0;
    font-size: 14px;
}

.td-otp-input {
    text-align: center;
    font-size: 28px !important;
    letter-spacing: 10px;
    font-weight: 600;
    padding: 12px !important;
}

.td-otp-resend {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: #6c757d;
}

.td-otp-resend-link {
    color: #2F80ED;
    text-decoration: none;
    font-weight: 500;
}

.td-otp-resend-link:hover {
    text-decoration: underline;
}

.td-otp-timer {
    color: #999;
    font-size: 13px;
    margin-left: 4px;
}

/* ============================================
   Advanced AJAX Search Overlay
   ============================================ */

.td-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(10, 22, 40, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.td-search-overlay.td-search-active {
    opacity: 1;
    visibility: visible;
}

.td-search-overlay-inner {
    width: 100%;
    max-width: 640px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: translateY(-20px) scale(0.97);
    transition: transform 0.25s ease;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}

.td-search-active .td-search-overlay-inner {
    transform: translateY(0) scale(1);
}

/* Header / Input */
.td-search-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 6px 6px 20px;
    border-bottom: 1px solid #E9E9E9;
}

.td-search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.td-search-input-wrap > i {
    color: #2F80ED;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.td-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.05rem;
    color: #323450;
    font-family: inherit;
    padding: 14px 0;
    min-width: 0;
}

.td-search-input::placeholder {
    color: #b0b4c8;
}

.td-search-kbd {
    font-family: inherit;
    font-size: 0.7rem;
    color: #8a8da8;
    background: #f0f2f8;
    border: 1px solid #E9E9E9;
    border-radius: 4px;
    padding: 2px 8px;
    flex-shrink: 0;
}

.td-search-close {
    background: none;
    border: none;
    color: #8a8da8;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}

.td-search-close:hover {
    color: #e74c3c;
    background: #fdeaea;
}

/* Results */
.td-search-results {
    overflow-y: auto;
    flex: 1;
    padding: 8px;
}

.td-search-hint,
.td-search-loading,
.td-search-no-results {
    text-align: center;
    padding: 2rem 1rem;
    color: #8a8da8;
    font-size: 0.95rem;
}

.td-search-no-results i {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
    color: #b0b4c8;
}

.td-search-loading i {
    margin-right: 6px;
}

/* Group labels */
.td-search-group {
    margin-bottom: 4px;
}

.td-search-group-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #8a8da8;
    padding: 8px 12px 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.td-search-group-label i {
    color: #2F80ED;
    font-size: 0.85rem;
}

/* Result items */
.td-search-result-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #323450;
    transition: background 0.15s;
}

.td-search-result-item a:hover,
.td-search-result-item.td-search-focused a {
    background: #f0f4ff;
    text-decoration: none;
}

.td-search-result-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.td-search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.td-search-result-icon i {
    font-size: 1.1rem;
    color: #2F80ED;
}

.td-search-result-info {
    flex: 1;
    min-width: 0;
}

.td-search-result-title {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.td-search-result-title mark {
    background: #DBEAFE;
    color: #2F80ED;
    border-radius: 2px;
    padding: 0 1px;
}

.td-search-result-meta {
    display: block;
    font-size: 0.78rem;
    color: #8a8da8;
    margin-top: 1px;
}

.td-search-result-badge {
    font-size: 0.7rem;
    font-weight: 600;
    background: #EBF4FF;
    color: #2F80ED;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: capitalize;
}

/* View all link */
.td-search-view-all {
    border-top: 1px solid #E9E9E9;
    margin-top: 4px;
    padding: 12px;
    text-align: center;
}

.td-search-view-all a {
    color: #2F80ED;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.2s;
}

.td-search-view-all a:hover {
    color: #1a6ad4;
}

.td-search-view-all a i {
    margin-right: 4px;
}

/* Search trigger button in header */
.td-search-trigger {
    background: none;
    border: none;
    color: #585978;
    font-size: 1.15rem;
    cursor: pointer;
    padding: 8px;
    margin-left: 8px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.td-search-trigger:hover {
    color: #2F80ED;
    background: #EBF4FF;
}

/* Responsive */
@media (max-width: 767px) {
    .td-search-overlay {
        padding-top: 5vh;
        padding-left: 12px;
        padding-right: 12px;
    }

    .td-search-overlay-inner {
        max-height: 80vh;
        border-radius: 12px;
    }

    .td-search-kbd {
        display: none;
    }

    .td-search-result-badge {
        display: none;
    }
}

@media (max-width: 575px) {
    .td-search-overlay {
        padding-top: 2vh;
    }

    .td-search-overlay-inner {
        max-height: 90vh;
    }

    .td-search-header {
        padding: 4px 4px 4px 14px;
    }

    .td-search-input {
        font-size: 0.95rem;
    }
}

/* ============================================
   Single Resource - Clean Minimal Design
   Added: Reading Progress & Modern Layout
   ============================================ */

.td-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.td-reading-progress.visible {
    opacity: 1;
}

.td-reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--td-primary, #2e5090), var(--td-secondary, #f39c12));
    width: 0%;
    transition: width 0.1s ease-out;
    border-radius: 0 2px 2px 0;
}

.td-single-resource-main {
    position: relative;
}

.td-resource-hero-image {
    padding: 40px 0 20px;
}

.td-hero-image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.td-featured-img {
    width: 100%;
    height: auto;
    display: block;
}

.td-resource-content-section {
    padding: 40px 0 60px;
}

.td-resource-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--td-text-color, #333);
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--td-light, #f5f7fa);
    font-weight: 500;
}

.td-resource-intro p {
    margin-bottom: 0;
}

.td-page-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--td-text-color, #333);
}

.td-page-content h1,
.td-page-content h2,
.td-page-content h3,
.td-page-content h4,
.td-page-content h5,
.td-page-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--td-heading-color, #1a1a2e);
}

.td-page-content h2 { font-size: 1.75rem; }
.td-page-content h3 { font-size: 1.4rem; }
.td-page-content h4 { font-size: 1.2rem; }

.td-page-content p {
    margin-bottom: 1.5rem;
}

.td-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.td-page-content ul,
.td-page-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.td-page-content li {
    margin-bottom: 0.5rem;
}

.td-page-content blockquote {
    border-left: 4px solid var(--td-primary, #2e5090);
    padding-left: 20px;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
}

.td-page-content code {
    background: var(--td-light, #f5f7fa);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.td-page-content pre {
    background: var(--td-dark, #1a1a2e);
    color: #f8f8f2;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.td-resource-tags {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--td-light, #e9ecef);
}

.td-tags-label {
    display: inline-block;
    font-weight: 600;
    margin-right: 10px;
    color: var(--td-heading-color, #1a1a2e);
}

.td-tag-link {
    display: inline-block;
    padding: 6px 14px;
    margin: 4px;
    background: var(--td-light, #f5f7fa);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--td-text-color, #555);
    text-decoration: none;
    transition: all 0.3s ease;
}

.td-tag-link:hover {
    background: var(--td-primary, #2e5090);
    color: #fff;
    text-decoration: none;
}

.td-author-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 50px 0;
    padding: 30px;
    background: var(--td-light, #f8f9fa);
    border-radius: 12px;
}

.td-author-card .td-author-avatar {
    flex-shrink: 0;
}

.td-author-card .td-author-avatar img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.td-author-card .td-author-info {
    flex: 1;
}

.td-author-card .td-author-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--td-text-muted, #888);
    margin-bottom: 4px;
}

.td-author-card .td-author-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--td-heading-color, #1a1a2e);
}

.td-author-card .td-author-desc {
    font-size: 0.95rem;
    color: var(--td-text-color, #555);
    margin: 0;
    line-height: 1.5;
}

.td-post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid var(--td-light, #e9ecef);
    border-bottom: 1px solid var(--td-light, #e9ecef);
}

.td-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--td-text-color, #555);
    transition: all 0.3s ease;
    max-width: 45%;
}

.td-nav-link:hover {
    color: var(--td-primary, #2e5090);
}

.td-nav-prev {
    justify-content: flex-start;
}

.td-nav-next {
    justify-content: flex-end;
    text-align: right;
}

.td-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--td-light, #f5f7fa);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.td-nav-link:hover .td-nav-icon {
    background: var(--td-primary, #2e5090);
    color: #fff;
}

.td-nav-text {
    display: flex;
    flex-direction: column;
}

.td-nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--td-text-muted, #888);
    margin-bottom: 2px;
}

.td-nav-title {
    font-weight: 600;
    color: var(--td-heading-color, #1a1a2e);
}

.td-back-to-section {
    padding: 40px 0 60px;
}

.td-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--td-light, #f5f7fa);
    border-radius: 30px;
    font-weight: 500;
    color: var(--td-text-color, #555);
    text-decoration: none;
    transition: all 0.3s ease;
}

.td-back-link:hover {
    background: var(--td-primary, #2e5090);
    color: #fff;
    text-decoration: none;
}

.td-back-link i {
    font-size: 0.9rem;
}

.td-comments-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--td-light, #e9ecef);
}

/* Page Links / Pagination */
.td-comments-section .page-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.td-comments-section .page-links a,
.td-comments-section .page-links span {
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.td-comments-section .page-links a {
    background: var(--td-light, #f5f7fa);
    color: var(--td-text-color, #555);
}

.td-comments-section .page-links a:hover {
    background: var(--td-primary, #2e5090);
    color: #fff;
}

.td-comments-section .page-links span {
    background: var(--td-primary, #2e5090);
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .td-resource-intro {
        font-size: 1.1rem;
    }

    .td-page-content {
        font-size: 1rem;
    }

    .td-author-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .td-post-navigation {
        flex-direction: column;
    }

    .td-nav-link {
        max-width: 100%;
    }

    .td-nav-prev {
        justify-content: center;
    }

    .td-nav-next {
        justify-content: center;
    }

    .td-nav-next .td-nav-text {
        text-align: left;
    }
}
