/* ============================================
   CUSTOM BLOG & SINGLE POST STYLES
   Integrated with Numerique Design System
   ============================================ */

/* Blog Listing Wrapper */
.custom-blog-page-wrapper {
    background: var(--bg);
    min-height: 100vh;
    padding: clamp(40px, 6vw, 60px) 0;
}

.custom-blog-container {
    max-width: var(--mw);
    margin: 0 auto;
    padding: 0 var(--px);
}

/* Blog Header */
.custom-blog-header {
    text-align: center;
    margin-bottom: 56px;
}

.custom-blog-header-inner {
    max-width: 800px;
    margin: 0 auto;
}

.custom-blog-page-title {
    font-family: var(--fd);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--t1);
}

.custom-blog-description {
    font-family: var(--fb);
    font-size: 16px;
    color: var(--t2);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Grid */
.custom-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* Blog Card */
.custom-blog-card {
    background: var(--card);
    border-radius: var(--rl);
    overflow: hidden;
    transition: all 0.25s ease;
    border: 1.5px solid var(--b1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.custom-blog-card:hover {
    box-shadow: var(--s3);
    border-color: var(--b2);
    transform: translateY(-4px);
}

/* Card Thumbnail */
.custom-card-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--t1);
}

.custom-card-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.custom-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.custom-blog-card:hover .custom-card-thumbnail img {
    transform: scale(1.05);
}

.custom-no-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--violet), var(--blue));
}

.no-thumbnail-placeholder {
    color: rgba(255,255,255,0.7);
}

/* Card Content */
.custom-card-content {
    padding: 24px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.custom-card-categories {
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.card-tag {
    display: inline-block;
    padding: 4px 10px;
    font-family: var(--fm);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 4px;
}

.card-tag-blog,
.card-tag-digital-marketing,
.card-tag-marketing {
    background: var(--blue-bg);
    color: var(--blue);
}

.card-tag-geo {
    background: var(--teal-pal);
    color: var(--teal);
}

.card-tag-aeo {
    background: #FFF3E0;
    color: #E65100;
}

.card-tag-seo {
    background: var(--violet-pal);
    color: var(--violet);
}

.custom-card-title {
    font-family: var(--fd);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.4px;
    margin-bottom: 12px;
}

.custom-card-title a {
    color: var(--t1);
    text-decoration: none;
    transition: color 0.2s;
}

.custom-card-title a:hover {
    color: var(--violet);
}

.custom-card-excerpt {
    font-family: var(--fb);
    font-size: 14px;
    color: var(--t2);
    line-height: 1.65;
    margin-bottom: 18px;
    flex: 1;
}

.custom-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding-top: 14px;
    border-top: 1.5px solid var(--b1);
    font-family: var(--fb);
    font-size: 12px;
    color: var(--t3);
}

.card-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-meta-separator {
    color: var(--b3);
}

.custom-card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--fm);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--violet);
    text-decoration: none;
    transition: gap 0.2s, color 0.2s;
    align-self: flex-start;
}

.custom-card-read-more:hover {
    gap: 10px;
    color: var(--teal);
}

/* Pagination */
.custom-pagination {
    margin-top: 56px;
    text-align: center;
    grid-column: 1 / -1;
}

.custom-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    margin: 0 4px;
    background: var(--card);
    border: 1.5px solid var(--b1);
    color: var(--t2);
    text-decoration: none;
    border-radius: 8px;
    font-family: var(--fb);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.custom-pagination .page-numbers.current {
    background: var(--gCTA);
    border-color: transparent;
    color: #fff;
}

.custom-pagination .page-numbers:hover:not(.current) {
    border-color: var(--violet);
    color: var(--violet);
    background: var(--violet-pal);
}

/* ============================================
   SINGLE POST STYLES
   ============================================ */

.custom-single-post-wrapper {
    background: var(--bg);
    min-height: 100vh;
    padding: clamp(40px, 6vw, 60px) 0;
}

.custom-single-post-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 var(--px);
}

.custom-single-article {
    background: var(--card);
    border-radius: var(--rxl);
    border: 1.5px solid var(--b1);
    padding: clamp(32px, 5vw, 48px);
    box-shadow: var(--s1);
}

/* Single Post Header */
.custom-single-header {
    margin-bottom: 32px;
}

.custom-single-categories {
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cat-tag {
    display: inline-block;
    padding: 5px 12px;
    font-family: var(--fm);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.2s;
}

.cat-tag-blog,
.cat-tag-digital-marketing,
.cat-tag-marketing {
    background: var(--blue-bg);
    color: var(--blue);
}

.cat-tag-geo {
    background: var(--teal-pal);
    color: var(--teal);
}

.cat-tag:hover {
    filter: brightness(0.95);
}

.custom-single-title {
    font-family: var(--fd);
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
    color: var(--t1);
    margin-bottom: 20px;
}

.custom-single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-family: var(--fb);
    font-size: 14px;
    color: var(--t3);
}

.custom-single-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.custom-single-meta-separator {
    color: var(--b3);
}

/* Featured Image */
.custom-single-thumbnail {
    margin-bottom: 36px;
    border-radius: var(--rl);
    overflow: hidden;
    border: 1.5px solid var(--b1);
}

.custom-single-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Single Post Content - WordPress Default Styles Preserved */
.custom-single-content {
    font-family: var(--fb);
    font-size: 17px;
    line-height: 1.75;
    color: var(--t2);
}

/* Preserve WordPress formatting - NO forced line breaks */
.custom-single-content h1,
.custom-single-content h2,
.custom-single-content h3,
.custom-single-content h4,
.custom-single-content h5,
.custom-single-content h6 {
    font-family: var(--fd);
    color: var(--t1);
    margin: 36px 0 16px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.custom-single-content h2 {
    font-size: 28px;
    font-weight: 700;
}

.custom-single-content h3 {
    font-size: 24px;
    font-weight: 700;
}

.custom-single-content h4 {
    font-size: 20px;
    font-weight: 600;
}

.custom-single-content p {
    margin-bottom: 24px;
}

.custom-single-content strong,
.custom-single-content b {
    font-weight: 700;
    color: var(--t1);
}

.custom-single-content em,
.custom-single-content i {
    font-style: italic;
}

.custom-single-content ul,
.custom-single-content ol {
    margin: 16px 0 24px;
    padding-left: 28px;
}

.custom-single-content li {
    margin-bottom: 8px;
}

.custom-single-content ul li {
    list-style-type: disc;
}

.custom-single-content ol li {
    list-style-type: decimal;
}

/* Links - Higher specificity for links inside bold text */
.custom-single-content a,
.custom-single-content strong a,
.custom-single-content a b {
    color: #2B7DD4 !important;  /* Force blue color */
    text-decoration: none;
    
    
}

/* Links - Higher specificity for links inside bold text */
.custom-single-content a, .custom-single-content strong a, .custom-single-content p span a strong,.custom-single-content p a strong, .custom-single-content b a {
    color: #2B7DD4 !important;  /* Force blue color */
    text-decoration: none;
    
    
}
.custom-single-content a:hover,
.custom-single-content strong a:hover,
.custom-single-content b a:hover {
    color: #1a5a9c !important;
    
}
.custom-single-content blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    background: var(--violet-pal);
    border-left: 4px solid var(--violet);
    border-radius: 0 var(--r) var(--r) 0;
    font-style: italic;
}

.custom-single-content blockquote p:last-child {
    margin-bottom: 0;
}

.custom-single-content code {
    background: var(--bg3);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.custom-single-content pre {
    background: var(--t1);
    color: #e2e8f0;
    padding: 20px;
    border-radius: var(--r);
    overflow-x: auto;
    margin: 24px 0;
}

.custom-single-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.custom-single-content hr {
    margin: 40px 0;
    border: none;
    height: 1.5px;
    background: var(--b1);
}

.custom-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--r);
}

.custom-single-content figure {
    margin: 24px 0;
}

.custom-single-content figcaption {
    font-size: 13px;
    color: var(--t3);
    text-align: center;
    margin-top: 8px;
}

.custom-single-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.custom-single-content th,
.custom-single-content td {
    padding: 12px;
    border: 1.5px solid var(--b1);
    text-align: left;
}

.custom-single-content th {
    background: var(--bg3);
    font-weight: 600;
    color: var(--t1);
}

/* Single Post Footer */
.custom-single-footer {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1.5px solid var(--b1);
}

.custom-single-tags {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.tags-label {
    font-family: var(--fm);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--t3);
}

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

.tag-link {
    display: inline-block;
    padding: 5px 14px;
    background: var(--bg3);
    border-radius: 100px;
    font-family: var(--fb);
    font-size: 13px;
    color: var(--t2);
    text-decoration: none;
    transition: all 0.2s;
}

.tag-link:hover {
    background: var(--violet);
    color: #fff;
}

/* Comments */
.comments-area {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1.5px solid var(--b1);
}

/* No Posts */
.custom-no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 24px;
    background: var(--card);
    border-radius: var(--rl);
    border: 1.5px solid var(--b1);
}

.custom-no-posts h2 {
    font-family: var(--fd);
    font-size: 28px;
    color: var(--t1);
    margin: 16px 0 8px;
}

.custom-no-posts p {
    font-family: var(--fb);
    color: var(--t2);
    margin-bottom: 24px;
}

/* Hide Vamtam Elements */
.vamtam-header,
.vamtam-footer,
.vamtam-page-wrapper,
.page-wrapper:not(.custom-blog-page-wrapper *),
#vamtam-header,
#vamtam-footer {
    display: none !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .custom-blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .custom-blog-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .custom-single-article {
        padding: 28px 22px;
    }
    
    .custom-single-title {
        font-size: 28px;
    }
    
    .custom-card-title {
        font-size: 18px;
    }
    
    .custom-blog-page-title {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .custom-blog-container,
    .custom-single-post-container {
        padding: 0 16px;
    }
    
    .custom-single-article {
        padding: 24px 18px;
    }
    
    .custom-single-title {
        font-size: 24px;
    }
    
    .custom-card-thumbnail {
        height: 180px;
    }
}





/* ============================================
   CUSTOM 404 PAGE STYLES
   Integrated with Numerique Design System
   ============================================ */

.custom-404-page-wrapper {
    background: var(--bg);
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: clamp(40px, 6vw, 60px) 0;
}

.custom-404-container {
    max-width: var(--mw);
    margin: 0 auto;
    padding: 0 var(--px);
    width: 100%;
    position: relative;
    z-index: 2;
}

.custom-404-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* 404 Number Animation */
.custom-404-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-family: var(--fd);
    font-size: 120px;
    font-weight: 800;
    line-height: 1;
    color: var(--t1);
    letter-spacing: -4px;
}

.digit-4 {
    background: var(--gBrand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: float 3s ease-in-out infinite;
}

.digit-4:last-child {
    animation-delay: 0.3s;
}

.digit-0 {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.circle-animation {
    animation: drawCircle 2s ease-out forwards;
}

@keyframes drawCircle {
    from { stroke-dashoffset: 251; }
    to { stroke-dashoffset: 0; }
}

/* 404 Tag */
.custom-404-tag {
    margin-bottom: 24px;
}

/* 404 Title */
.custom-404-title {
    font-family: var(--fd);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
    color: var(--t1);
    margin-bottom: 20px;
}

.custom-404-title .gt {
    background: var(--gBrand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 404 Description */
.custom-404-description {
    font-family: var(--fb);
    font-size: 16px;
    color: var(--t2);
    line-height: 1.7;
    margin-bottom: 48px;
}

/* Quick Links Grid */
.custom-404-quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.quick-link-card {
    background: var(--card);
    border: 1.5px solid var(--b1);
    border-radius: var(--r);
    padding: 24px 16px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.25s ease;
}

.quick-link-card:hover {
    border-color: var(--b2);
    box-shadow: var(--s2);
    transform: translateY(-3px);
    background: var(--violet-pal);
}

.quick-link-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--blue-bg);
    border: 1.5px solid var(--blue-bdr);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    margin-bottom: 16px;
    transition: all 0.2s;
}

.quick-link-card:hover .quick-link-icon {
    background: var(--violet);
    border-color: var(--violet);
    color: #fff;
}

.quick-link-text {
    font-family: var(--fb);
    font-size: 14px;
    font-weight: 600;
    color: var(--t1);
    margin-bottom: 8px;
}

.quick-link-arrow {
    font-family: var(--fm);
    font-size: 14px;
    color: var(--violet);
    transition: transform 0.2s;
}

.quick-link-card:hover .quick-link-arrow {
    transform: translateX(4px);
}



.search-label {
    font-family: var(--fm);
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--t3);
    margin-bottom: 16px;
}

.search-form-wrapper {
    display: flex;
    gap: 12px;
}

.search-form-wrapper .search-form {
    display: flex;
    width: 100%;
    gap: 10px;
}

.search-form-wrapper input[type="search"] {
    flex: 1;
    padding: 14px 18px;
    background: var(--card);
    border: 1.5px solid var(--b1);
    border-radius: var(--r);
    font-family: var(--fb);
    font-size: 15px;
    color: var(--t1);
    outline: none;
    transition: all 0.2s;
}

.search-form-wrapper input[type="search"]:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgba(107, 99, 212, 0.1);
}

.search-form-wrapper input[type="search"]::placeholder {
    color: var(--t3);
}

.search-form-wrapper input[type="submit"] {
    padding: 14px 28px;
    background: var(--gCTA);
    border: none;
    border-radius: var(--r);
    font-family: var(--fd);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(107, 99, 212, 0.25);
}

.search-form-wrapper input[type="submit"]:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(107, 99, 212, 0.35);
}

/* Popular Links */
.custom-404-popular {
    padding-top: 32px;
    border-top: 1.5px solid var(--b1);
}

.popular-label {
    font-family: var(--fm);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--t3);
    margin-right: 16px;
}

.popular-links {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.popular-links a {
    font-family: var(--fb);
    font-size: 14px;
    color: var(--t2);
    text-decoration: none;
    transition: color 0.2s;
}

.popular-links a:hover {
    color: var(--violet);
}

.popular-links .separator {
    color: var(--b3);
    font-size: 10px;
}

/* Background Elements */
.custom-404-bg-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
}

.bg-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(43, 125, 212, 0.08) 0%, transparent 70%);
    top: -200px;
    left: -150px;
    animation: orbFloat1 15s ease-in-out infinite;
}

.bg-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(107, 99, 212, 0.06) 0%, transparent 70%);
    bottom: -150px;
    right: -100px;
    animation: orbFloat2 18s ease-in-out infinite;
}

.bg-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(14, 143, 104, 0.05) 0%, transparent 70%);
    top: 30%;
    right: 10%;
    animation: orbFloat3 12s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -20px); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, 25px); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(15px, -10px); }
    66% { transform: translate(-10px, 15px); }
}

.bg-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(107, 99, 212, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(107, 99, 212, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Hide Vamtam Elements */
.vamtam-header,
.vamtam-footer,
#vamtam-header,
#vamtam-footer,
#header-404,
.page-404 {
    display: none !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .custom-404-quick-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .custom-404-number {
        font-size: 100px;
    }
}

@media (max-width: 768px) {
    .custom-404-number {
        font-size: 80px;
    }
    
    .digit-0 svg {
        width: 60px;
        height: 60px;
    }
    
    .custom-404-title {
        font-size: 28px;
    }
    
    .custom-404-description {
        font-size: 15px;
    }
    
    .quick-link-card {
        padding: 20px 12px;
    }
    
    .popular-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 12px;
    }
}

@media (max-width: 480px) {
    .custom-404-quick-links {
        grid-template-columns: 1fr;
    }
    
    .custom-404-number {
        font-size: 64px;
    }
    
    .digit-0 svg {
        width: 50px;
        height: 50px;
    }
    
    
    
    
    .custom-404-container {
        padding: 0 16px;
    }
}