/* Global Anek Malayalam Font Application */
body, button, input, select, textarea, h1, h2, h3, h4, h5, h6,
.aikairali-container, .aikairali-site-header, p, a, span, article, div {
    font-family: 'Anek Malayalam', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-optical-sizing: auto;
}

/* AIKairali Header Styling */
.aikairali-site-header {
    background-color: #ffffff;
    width: 100%;
    position: relative;
    z-index: 1000;
    font-family: 'Anek Malayalam', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

/* Standardized Container Width & Alignment for Header & All Content Sections */
.aikairali-container,
.mnf-wrap,
.aik-portal-home-grid,
.aik-videos-carousel-wrap,
.tc-carousel-container {
    max-width: 1240px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box !important;
}

.site-main,
.wp-block-post-content,
.entry-content {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Top Bar */
.aikairali-header-top-bar {
    padding: 18px 0 14px 0;
    position: relative;
}

.aikairali-top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Social Icons */
.aikairali-social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.aik-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f1f5f9;
    color: #1e293b;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.aik-social-btn:hover {
    background-color: #0284c7;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

/* Logo */
.aikairali-brand-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    text-align: center;
}

.aik-logo-img {
    height: 48px;
    width: auto;
    max-width: 240px;
    display: block;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.aik-logo-img:hover {
    transform: scale(1.02);
}

/* Right Actions & Search */
.aikairali-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 1;
}

.aik-search-btn,
.aik-mobile-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #1e293b;
    padding: 8px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.aik-search-btn:hover,
.aik-mobile-toggle:hover {
    background-color: #f1f5f9;
    color: #0284c7;
}

.aik-mobile-toggle {
    display: none;
}

/* Search Dropdown Overlay */
.aikairali-search-overlay {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    z-index: 1010;
}

.aikairali-search-overlay.active {
    display: block;
    animation: aikSlideDown 0.25s ease-out;
}

@keyframes aikSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.aik-search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 680px;
    margin: 0 auto;
}

.aik-search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 30px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.aik-search-input:focus {
    border-color: #0284c7;
}

.aik-search-submit {
    padding: 12px 24px;
    background-color: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.aik-search-submit:hover {
    background-color: #0369a1;
}

.aik-search-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    padding: 0 8px;
}

.aik-search-close:hover {
    color: #0f172a;
}

/* Navigation Bar */
.aikairali-nav-bar {
    padding: 12px 0 18px 0;
}

.aikairali-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.aikairali-menu li {
    margin: 0;
    padding: 0;
}

.aikairali-menu li a {
    color: #1e293b;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.1px;
    position: relative;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.aikairali-menu li a:hover,
.aikairali-menu li.current-menu-item a {
    color: #0284c7;
}

.aikairali-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0284c7;
    transition: width 0.25s ease;
}

.aikairali-menu li a:hover::after,
.aikairali-menu li.current-menu-item a::after {
    width: 100%;
}

/* Responsive Rules */
@media (max-width: 868px) {
    .aik-mobile-toggle {
        display: inline-flex;
    }

    .aikairali-header-top-bar {
        padding: 12px 0 14px 0;
    }

    .aikairali-top-bar-inner {
        flex-wrap: wrap;
        gap: 10px 0;
    }

    /* Mobile Header Layout: Logo Left, Search & Menu Right, Social Icons Centered Below */
    .aikairali-brand-logo {
        order: 1;
        flex: 0 0 auto;
        text-align: left;
        justify-content: flex-start;
    }

    .aik-logo-img {
        height: 38px;
    }

    .aikairali-header-actions {
        order: 2;
        flex: 0 0 auto;
        justify-content: flex-end;
        gap: 8px;
    }

    .aikairali-social-icons {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
        padding-top: 10px;
        gap: 14px;
    }
    
    .aik-social-btn {
        width: 38px;
        height: 38px;
        background-color: #f8fafc;
        color: #1e293b;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    }

    .aikairali-nav-bar,
    .aikairali-nav-bar.active {
        display: none !important;
        padding: 0;
    }
}

/* Mobile Off-Canvas Sliding Drawer */
.aik-mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.aik-mobile-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.aik-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 82%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    z-index: 99999;
    box-shadow: 6px 0 25px rgba(0, 0, 0, 0.12);
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.aik-mobile-drawer.active {
    transform: translateX(0);
}

body.aik-drawer-open {
    overflow: hidden !important;
}

/* Drawer Header */
.aik-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
}

.aik-drawer-logo {
    height: 34px;
    width: auto;
    display: block;
}

.aik-drawer-close {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.aik-drawer-close:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.aik-drawer-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 0 20px;
}

/* Drawer Menu Links */
.aik-drawer-body {
    padding: 16px 20px 32px;
    flex-grow: 1;
}

/* Drawer Search Input Bar */
.aik-drawer-search-form {
    margin-bottom: 16px;
}

.aik-drawer-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.aik-drawer-search-icon {
    position: absolute;
    left: 12px;
    pointer-events: none;
}

.aik-drawer-search-input {
    width: 100%;
    height: 40px;
    padding: 8px 12px 8px 38px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: #0f172a;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.aik-drawer-search-input:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.aik-drawer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.aik-drawer-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 12px;
    font-family: 'Anek Malayalam', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #1e293b;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.aik-drawer-menu li a:hover,
.aik-drawer-menu li.current-menu-item a {
    color: #2563eb;
    background-color: #f8fafc;
}

/* Page & List Page Typography Rules */
.archive-header h1,
.page-header h1,
h1.archive-title,
h1.page-title,
h1.category-title,
.archive h1,
.category h1,
.post-type-archive h1,
.tax-tool-category h1,
.tax-tool-model h1,
.tax-tool-pricing h1 {
    font-size: 26px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    line-height: 1.2 !important;
}

/* Post List & Grid Card H3 Titles across all Modules */
.archive h3, .blog h3, .category h3, .search h3, .post-type-archive h3,
.ai-news-categories-wrapper h3,
.ai-news-list-stream h3,
.ai-cat-feature-card h3,
.ai-news-card-item h3,
.ai-tutorial-archive-card h3, .ai-tutorial-archive-card h2,
.ai-tool-archive-card h3, .ai-tool-archive-card h2,
.ai-book-archive-card h3, .ai-book-archive-card h2,
.ai-course-archive-card h3, .ai-course-archive-card h2,
.ai-event-archive-card h3, .ai-event-archive-card h2,
.ai-model-archive-card h3, .ai-model-archive-card h2,
.ai-prompt-archive-card h3, .ai-prompt-archive-card h2,
.ai-video-archive-card h3, .ai-video-archive-card h2,
.ai-job-archive-card h3, .ai-job-archive-card h2,
.mnf-article h3,
.mnf-headline,
.aik-post-card h3,
.entry-title h3,
h3.entry-title,
h3.post-title {
    font-size: 1.1rem !important;
    font-weight: 500 !important;
}

/* Single Detail Page Typography across all Modules */
.single article h1,
.single .entry-title,
.aikairali-detail-container h1,
.single-ai-news h1,
.single-ai-tools h1,
.single-ai-books h1,
.single-ai-courses h1,
.single-ai-events h1,
.single-ai-models h1,
.single-ai-prompts h1,
.single-ai-tutorials h1,
.single-ai-videos h1,
.single-ai-glossary h1,
.single-jobs h1 {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    line-height: 1.3 !important;
}

.single .entry-content p,
.aikairali-detail-container .entry-content p {
    font-size: 1rem !important;
    line-height: 1.75 !important;
    color: #334155 !important;
    font-weight: 400 !important;
}

.single a.back-to-link,
.single .aik-back-link,
.single-back-btn a,
.aikairali-detail-container a[href*="back"] {
    font-weight: 400 !important;
    color: #2563eb !important;
    font-size: 14px !important;
}

.single aside h4,
.single .related-posts h4,
.single .ai-recent-item h4,
.single .ai-news-recent-widget h4 {
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* Footer Custom Styles */
.aik-foot-link:hover {
    color: #38bdf8 !important;
    text-decoration: underline !important;
}

.aik-social-icon:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .aik-foot-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 30px !important;
    }
}

@media (max-width: 600px) {
    .aik-foot-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }
}

/* Global Title Hover Color Rule */
h1 a:hover,
h2 a:hover,
h3 a:hover,
h4 a:hover,
h5 a:hover,
h6 a:hover,
a.ai-news-title-link:hover,
.ai-news-title-link:hover,
a.mnf-headline:hover,
.mnf-headline:hover,
.entry-title a:hover,
.post-title a:hover,
.article-title a:hover,
.aik-section-title a:hover,
.aik-card-title a:hover,
.aik-grid-title a:hover,
.detail-author-link:hover {
    color: #224d9b !important;
}

/* Remove click outline/border from all title links and anchors */
a:focus,
a:active,
a:focus-visible,
h1 a:focus, h1 a:active, h1 a:focus-visible,
h2 a:focus, h2 a:active, h2 a:focus-visible,
h3 a:focus, h3 a:active, h3 a:focus-visible,
h4 a:focus, h4 a:active, h4 a:focus-visible,
.ai-news-title-link:focus, .ai-news-title-link:active, .ai-news-title-link:focus-visible,
.mnf-headline:focus, .mnf-headline:active, .mnf-headline:focus-visible,
.entry-title a:focus, .entry-title a:active, .entry-title a:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Remove left blue line/border from all titles across all pages */
h1, h2, h3, h4, h5, h6,
.entry-title, .page-title, .archive-title, .section-title, .post-title,
.entry-content h1, .entry-content h2, .entry-content h3, 
.entry-content h4, .entry-content h5, .entry-content h6,
.wp-block-heading, .wp-block-post-title {
    border-left: none !important;
    border-inline-start: none !important;
    padding-left: 0 !important;
}

h1::before, h2::before, h3::before, h4::before, h5::before, h6::before,
.entry-title::before, .page-title::before, .archive-title::before,
.entry-content h1::before, .entry-content h2::before, .entry-content h3::before,
.wp-block-heading::before {
    display: none !important;
    content: none !important;
}



