/*
Theme Name: COT Child
Theme URI: https://codeoftalent.com
Author: Code of Talent
Description: Child theme for COT — add customizations here, not in the parent theme.
Version: 1.0.0
Template: cot
Text Domain: cot-child
*/

/* =============================================================================
   COT Blog Archive — Hero
   ============================================================================= */

.cot-blog-page {
    padding-top: 0;
    min-height: 100vh;
    background: #fff;
}

.cot-blog-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #EFF6FF 0%, #ffffff 100%);
    padding: 100px 20px 80px;
    text-align: center;
    min-height: 404px;
    display: flex;
    align-items: center;
}

.cot-blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('http://31.14.22.227/wp-content/uploads/2026/03/Group-9755.webp');
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    pointer-events: none;
    z-index: 0;
}

.cot-blog-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

/* Sparkle decorative element */
.cot-blog-hero__sparkle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 180px;
    height: 180px;
    pointer-events: none;
}

/* Breadcrumbs */
.cot-blog-hero__breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #64748B;
    margin-bottom: 20px;
}

.cot-blog-hero__breadcrumbs a {
    color: #045cb4;
    text-decoration: none;
}

.cot-blog-hero__breadcrumbs a:hover {
    text-decoration: underline;
}

.cot-blog-hero__breadcrumbs svg {
    color: #94A3B8;
    flex-shrink: 0;
}

/* Hero title */
.cot-blog-hero__title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 800;
    color: #0F172A;
    line-height: 1.15;
    margin: 0;
}

/* =============================================================================
   COT Blog Archive — Filters override
   ============================================================================= */

.cot-blog-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 20px 60px;
}

.cot-blog-filters-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* Pill-shaped dropdown */
.cot-blog-filter-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.cot-blog-filter-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 10px 40px 10px 20px;
    border: 1.5px solid #CBD5E1;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    min-width: 180px;
    color: #4A89FF;
    background-color: #02010100;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: var(--e-global-color-7ffd795);
    border-radius: 80px 80px 80px 80px;
    padding: 8px 8px 8px 8px;
}

.cot-blog-filter-select:focus {
    outline: none;
    border-color: #045cb4;
    box-shadow: 0 0 0 3px rgba(4,92,180,0.10);
}

.cot-blog-filter-select-icon {
    position: absolute;
    right: 14px;
    pointer-events: none;
    color: #64748B;
}

/* Pill-shaped search — takes remaining space on the right */
.cot-blog-search-form {
    display: flex;
    align-items: center;
    border: 1.5px solid #CBD5E1;
    border-radius: 100px;
    background: #fff;
    flex: 1;
    max-width: 600px;
    transition: border-color 0.15s, box-shadow 0.15s;
    overflow: hidden;
    background: transparent;
    min-width: 0;
    color: #4A89FF;
    background-color: #02010100;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: #4A89FF;
    border-radius: 80px 80px 80px 80px;
}

.cot-blog-search-form:focus-within {
    border-color: #045cb4;
    box-shadow: 0 0 0 3px rgba(4,92,180,0.10);
}

.cot-blog-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 16px;
    font-size: 14px;
    padding-left: 40px;
    color: #334155;

}

.cot-blog-search-input::placeholder {
    color: #94A3B8;
}

.cot-blog-search-btn {
    border: none;
    background: none;
    padding: 10px 16px;
    cursor: pointer;
    color: #94A3B8;
    display: flex;
    align-items: center;
    transition: color 0.15s;
    flex-shrink: 0;
}

.cot-blog-search-btn:hover {
    color: #045cb4;
}

/* =============================================================================
   COT Blog Archive — Card grid and card overrides
   ============================================================================= */

.cot-blog-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 640px) {
    .cot-blog-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .cot-blog-cards-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Card */
.cot-blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
    box-shadow: none;
    border-style: solid;
    --border-style: solid;
    border-width: 1px 1px 1px 1px;
    --border-top-width: 1px;
    --border-right-width: 1px;
    --border-bottom-width: 1px;
    --border-left-width: 1px;
    border-color: #7AD4F6;
    --border-color: #7AD4F6;
    --border-radius: 8px 8px 8px 8px;
}

.cot-blog-card:hover {
    transform: translateY(-2px);
}

/* Cover image — no overlay, no border-radius (card clips it) */
.cot-blog-card__cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #E2E8F0;
    border-radius: 0;
}

.cot-blog-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.cot-blog-card:hover .cot-blog-card__cover img {
    transform: scale(1.04);
}

.cot-blog-card__cover-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #E2E8F0, #CBD5E1);
}

/* Hide old overlay if any remnant exists */
.cot-blog-card__overlay {
    display: none;
}

/* Card body */
.cot-blog-card__body {
    display: flex;
    flex-direction: column;
    padding: 20px 24px 24px;
    flex: 1;
    gap: 8px;
}

/* Meta: "Author – Date" */
.cot-blog-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748B;
    flex-wrap: wrap;
}

.cot-blog-card__author {
    font-weight: 400;
    color: #64748B;
}

.cot-blog-card__sep {
    color: #94A3B8;
}

.cot-blog-card__date {
    color: #64748B;
}

/* Title — dark navy blue */
.cot-blog-card__title {
    font-size: 17px;
    font-weight: 700;
    color: #0F2D5E;
    line-height: 1.45;
    margin: 4px 0 0;
    flex: 1;
    transition: color 0.15s;
}

.cot-blog-card:hover .cot-blog-card__title {
    color: #045cb4;
}

/* Read more with » */
.cot-blog-card__read-more {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #045cb4;
    margin-top: 8px;
    text-decoration: none;
    transition: color 0.15s;
    display:flex;
}

.cot-blog-card:hover .cot-blog-card__read-more {
    color: #0F5A85;
}

/* =============================================================================
   COT Blog Archive — Pagination
   ============================================================================= */

.cot-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 48px 20px;
}

.cot-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 10px;
    font-size: 14px;
    font-weight:400;
    color: #1E293B;
    background: #fff;
    border: 1.5px solid #D1D5DB;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.cot-pagination .page-numbers:hover {
    border-color: #4A5FE8;
    color: #4A5FE8;
    background: #fff;
}

.cot-pagination .page-numbers.current {
    background: #4A5FE8;
    color: #fff;
    border-color: #4A5FE8;
}

/* Hide "dots" spacer */
.cot-pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    pointer-events: none;
    color: #94A3B8;
}

/* Hide prev/next text — show only arrow character */
.cot-pagination .prev,
.cot-pagination .next {
    font-size: 18px;
    color: #1E293B;
}
.cot-pagination .next{
    width: 61px;
    font-size: 12px;
}

/* No results */
.cot-blog-no-results {
    text-align: center;
    padding: 5rem 0;
    color: #64748B;
}

/* AJAX search loader */
.cot-blog-search-loader {
    display: none;
    text-align: center;
    padding: 16px 0 8px;
    color: #94A3B8;
    font-size: 14px;
}

.cot-blog-search-loader--active {
    display: block;
}

.cot-blog-search-loader--active::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #E2E8F0;
    border-top-color: #045cb4;
    border-radius: 50%;
    animation: cot-spin 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes cot-spin {
    to { transform: rotate(360deg); }
}

/* Grid fade while loading */
.cot-blog-cards-grid--loading {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.2s;
}

/* =============================================================================
   COT Blog Archive — Responsive
   ============================================================================= */

@media (max-width: 768px) {
    .cot-blog-hero {
        padding: 70px 16px 50px;
    }

    .cot-blog-hero__sparkle {
        width: 100px;
        height: 100px;
        opacity: 0.4;
    }

    .cot-blog-filters-row {
        flex-direction: column;
        align-items: stretch;
    }

    .cot-blog-filter-select {
        width: 100%;
    }

    .cot-blog-search-form {
        max-width: 100%;
    }

    .cot-blog-container {
        padding: 32px 16px 48px;
    }
}

/* =============================================================================
   COT Single Post — Hero
   ============================================================================= */

.cot-single__hero {
    position: relative;
    background: linear-gradient(180deg, #FFFFFF 0%, #E6F1FA 100%);
    padding: 120px 20px 100px;
    overflow: hidden;
}

.cot-single__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('http://31.14.22.227/wp-content/uploads/2026/03/Group-9755.webp');
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    pointer-events: none;
    z-index: 0;
}

.cot-single__hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}

/* Left column */
.cot-single__hero-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Breadcrumbs */
.cot-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    line-height: 1.3;
    margin-bottom:0;
}

.cot-breadcrumbs a {
    color: #334155;
    text-decoration: none;
    transition: color 0.2s;
}

.cot-breadcrumbs a:hover {
    color: #045cb4;
}

.cot-breadcrumbs svg {
    color: #94A3B8;
    flex-shrink: 0;
}

.cot-breadcrumbs span[aria-current="page"] {
    color: #64748B;
}

/* Category / tag pills in hero */
.cot-single__hero-left .cot-post-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.cot-tag {
    display: inline-block;
    background: #E0F2FE;
    color: #0369A1;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    padding: 5px 12px;
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.cot-tag:hover {
    background: #BAE6FD;
    color: #045cb4;
}

/* H1 title */
.cot-single__title {
    font-family: 'Poppins', sans-serif;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.4;
    color: #1E293B;
    margin: 0;
}

/* Right column: featured image */
.cot-single__hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cot-single__hero-image {
    width: 100%;
    height: auto;
    border-radius: 0;
    object-fit: cover;
    display: block;
}

/* Author bar removed from template — kept hidden if remnant exists */
.cot-single__author-bar { display: none; }

/* "Written by" line inside content card */
.cot-single__written-by {
    font-size: 14px;
    color: #64748B;
    margin: 0 0 20px;
    line-height: 1.5;
}

.cot-single__author-link {
    color: #045cb4;
    font-weight: 500;
    text-decoration: none;
}

.cot-single__author-link:hover {
    text-decoration: underline;
}

/* Content card wrapper */
.cot-single__content-card {
    background: #F8FAFC;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 8px;
}

/* =============================================================================
   COT Single Post — Body layout (two columns: content + sidebar)
   ============================================================================= */

.cot-single__body {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: start;
}

/* =============================================================================
   COT Single Post — Article content typography
   ============================================================================= */

.cot-single__content {
    font-size: 17px;
    line-height: 1.8;
    color: #334155;
}

.cot-single__content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1E293B;
    margin: 2em 0 0.6em;
    line-height: 1.3;
}

.cot-single__content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1E293B;
    margin: 1.8em 0 0.5em;
    line-height: 1.3;
}

.cot-single__content h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1E293B;
    margin: 1.5em 0 0.4em;
}

.cot-single__content p {
    margin: 0 0 1.4em;
}

.cot-single__content a {
    color: #045cb4;
    text-decoration: none;
}

.cot-single__content a:hover {
    text-decoration: underline;
}

.cot-single__content ul,
.cot-single__content ol {
    margin: 0 0 1.4em 1.5em;
    padding: 0;
}

.cot-single__content li {
    margin-bottom: 0.5em;
}

.cot-single__content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 1.5em 0;
}

.cot-single__content blockquote {
    border-left: 4px solid #E0F2FE;
    margin: 1.5em 0;
    padding: 12px 20px;
    background: #F8FAFC;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #475569;
}

.cot-single__content strong {
    font-weight: 700;
    color: #1E293B;
}

/* =============================================================================
   COT Single Post — Sidebar (sticky, simple)
   ============================================================================= */

.cot-single__sidebar {
    position: sticky;
    top: 100px;
}

.cot-single__sidebar-title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 16px;
}

.cot-single__sidebar-cats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cot-single__sidebar-cat {
    display: block;
    padding: 8px 0;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    color: #1E293B;
    transition: color 0.15s;
    border: none;
    background: none;
}

.cot-single__sidebar-cat:hover {
    color: #045cb4;
}

.cot-single__sidebar-cat--active {
    color: #045cb4;
}

/* Old share block hidden (replaced by share-inline below) */
.cot-single__share { display: none; }

/* =============================================================================
   COT Single Post — CTA banner
   ============================================================================= */

.cot-single__cta {
    background: #4A5FE8;
    border-radius: 12px;
    padding: 48px 32px;
    text-align: center;
    margin-top: 40px;
}

.cot-single__cta-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 28px;
    line-height: 1.3;
}

.cot-single__cta-btn {
    display: inline-block;
    background: #F1F5F9;
    color: #1E293B;
    font-size: 17px;
    font-weight: 700;
    padding: 16px 48px;
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.cot-single__cta-btn:hover {
    background: #fff;
    transform: scale(1.03);
}

/* =============================================================================
   COT Single Post — Tags
   ============================================================================= */

.cot-single__tags {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.cot-single__tags-label {
    font-size: 16px;
    font-weight: 700;
    color: #1E293B;
    white-space: nowrap;
    padding-top: 6px;
}

.cot-single__tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cot-single__tag-pill {
    display: inline-block;
    background: #4A5FE8;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 8px 18px;
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.2s;
}

.cot-single__tag-pill:hover {
    background: #3749c8;
}

/* =============================================================================
   COT Single Post — Dashed divider
   ============================================================================= */

.cot-single__divider {
    border: none;
    border-top: 2px dashed #BAE6FD;
    margin: 28px 0;
}

/* =============================================================================
   COT Single Post — Share inline (label + buttons on same row)
   ============================================================================= */

.cot-single__share-inline {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cot-single__share-label {
    font-size: 16px;
    font-weight: 700;
    color: #1E293B;
    white-space: nowrap;
}

.cot-single__share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cot-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: filter 0.2s, transform 0.15s;
    flex-shrink: 0;
}

.cot-share-btn:hover {
    filter: brightness(0.88);
    transform: scale(1.06);
}

.cot-share-btn--facebook  { background: #4A5FE8; }
.cot-share-btn--twitter   { background: #4A5FE8; }
.cot-share-btn--linkedin  { background: #4A5FE8; }
.cot-share-btn--threads   { background: #4A5FE8; }
.cot-share-btn--pinterest { background: #4A5FE8; }
.cot-share-btn--whatsapp  { background: #4A5FE8; }
.cot-share-btn--email     { background: #4A5FE8; }

/* =============================================================================
   COT Single Post — Prev / Next navigation
   ============================================================================= */

.cot-single__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #E2E8F0;
}

.cot-single__nav-prev,
.cot-single__nav-next {
    flex: 1;
}

.cot-single__nav-next {
    text-align: right;
}

.cot-single__nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #045cb4;
    text-decoration: none;
    transition: color 0.2s;
}

.cot-single__nav-link:hover {
    color: #0F5A85;
    text-decoration: underline;
}

/* =============================================================================
   COT Single Post — Related Articles section
   ============================================================================= */

.cot-related {
    background: #F8FAFC;
    padding: 80px 20px;
}

.cot-related__inner {
    max-width: 1280px;
    margin: 0 auto;
}

.cot-related__title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 40px;
}

.cot-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.cot-related__card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
}

.cot-related__card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    transform: translateY(-3px);
}

.cot-related__card-image {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #E2E8F0;
}

.cot-related__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.cot-related__card:hover .cot-related__card-image img {
    transform: scale(1.04);
}

.cot-related__card-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #E2E8F0, #CBD5E1);
}

.cot-related__card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.cot-related__card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1E293B;
    line-height: 1.4;
    margin: 0;
}

.cot-related__card:hover .cot-related__card-title {
    color: #045cb4;
}

.cot-related__card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748B;
    margin-top: auto;
}

/* =============================================================================
   COT Single Post — Responsive
   ============================================================================= */

/* Tablet: ≤ 1024px */
@media (max-width: 1024px) {
    .cot-single__hero {
        padding: 80px 20px 60px;
    }

    .cot-single__title {
        font-size: 32px;
    }

    .cot-single__body {
        grid-template-columns: 1.5fr 1fr;
        gap: 32px;
    }
}

/* Mobile: ≤ 768px */
@media (max-width: 768px) {
    .cot-single__hero {
        padding: 60px 16px 40px;
    }

    .cot-single__hero-inner {
        grid-template-columns: 1fr;
    }

    /* Show image above title on mobile */
    .cot-single__hero-left  { order: 2; }
    .cot-single__hero-right { order: 1; }

    .cot-single__title {
        font-size: 28px;
    }

    .cot-single__author-bar {
        padding: 16px;
    }

    .cot-single__author-meta {
        margin-left: 0;
        width: 100%;
    }

    .cot-single__body {
        grid-template-columns: 1fr;
        padding: 40px 16px;
        gap: 40px;
    }

    .cot-single__sidebar {
        position: static;
    }

    .cot-related {
        padding: 60px 16px;
    }

    .cot-related__grid {
        grid-template-columns: 1fr;
    }

    .cot-related__title {
        font-size: 22px;
    }
}

/* Small mobile: ≤ 480px */
@media (max-width: 480px) {
    .cot-single__title {
        font-size: 24px;
    }

    .cot-share-btn {
        width: 36px;
        height: 36px;
    }
}
