/*
Theme Name: ILE Master Organization & Research Repository Theme
Theme URI: https://iledu.in
Author: Institute of Legal Education (ILE)
Author URI: https://iledu.in
Description: Prestigious institutional WordPress theme for Institute of Legal Education (iledu.in) — the central organization and academic research repository powering peer-reviewed law journals. Features global repository search, academic journals directory, live aggregated research feed, double-blind peer review governance, Schema.org rich snippets, Google Scholar citation indexing, and full responsive design.
Version: 3.4.4
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ile-main-theme
License: GPL v2 or later
*/

/* -------------------------------------------------------------
   1. COLOR PALETTE & DESIGN TOKENS (Institutional Scholarly)
   ------------------------------------------------------------- */
:root {
    --imt-bg-page: #f8fafc;
    --imt-bg-surface: #ffffff;
    --imt-bg-navy: #0a1128;
    --imt-bg-dark: #020617;
    --imt-bg-card: #ffffff;
    
    --imt-navy-900: #0f172a;
    --imt-navy-800: #1e293b;
    --imt-navy-700: #334155;
    
    --imt-text-main: #1e293b;
    --imt-text-head: #0f172a;
    --imt-text-muted: #64748b;
    --imt-text-light: #f8fafc;
    
    --imt-gold: #b45309;
    --imt-gold-light: #fef3c7;
    --imt-gold-bright: #d97706;
    --imt-blue: #1d4ed8;
    --imt-blue-light: #eff6ff;
    --imt-green: #166534;
    --imt-green-light: #f0fdf4;
    
    --imt-border: #e2e8f0;
    --imt-border-dark: #334155;
    
    --imt-font-display: "Playfair Display", Georgia, serif;
    --imt-font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --imt-font-serif: "Merriweather", Georgia, "Times New Roman", serif;
    --imt-font-mono: "SFMono-Regular", Consolas, Menlo, monospace;
    
    --imt-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --imt-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.04);
    --imt-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.05);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--imt-bg-page);
    color: var(--imt-text-main);
    font-family: var(--imt-font-sans);
    font-size: 15.5px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--imt-blue);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover {
    color: var(--imt-gold-bright);
}

.imt-container {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 24px;
}

/* -------------------------------------------------------------
   2. TOP INSTITUTIONAL BAR
   ------------------------------------------------------------- */
.imt-topbar {
    background: #020617;
    color: #94a3b8;
    font-size: 12px;
    padding: 7px 0;
    border-bottom: 1px solid #1e293b;
}
.imt-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.imt-topbar-badge {
    background: var(--imt-gold);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    margin-right: 8px;
}
.imt-topbar-links a {
    color: #94a3b8;
    margin-left: 18px;
    font-size: 12px;
}
.imt-topbar-links a:hover {
    color: #f8fafc;
}

/* -------------------------------------------------------------
   3. HEADER & BRAND MASTHEAD
   ------------------------------------------------------------- */
.imt-masthead {
    background: #ffffff;
    border-bottom: 3px double var(--imt-border);
    padding: 24px 0;
}
.imt-masthead-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}
.imt-brand-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}
.imt-seal-wrap {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
}
.imt-org-title {
    font-family: var(--imt-font-display);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 4px;
}
.imt-org-title a {
    color: var(--imt-navy-900);
}
.imt-org-subtitle {
    color: var(--imt-text-muted);
    font-size: 13px;
    font-weight: 500;
}
.imt-masthead-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Primary Action Buttons */
.imt-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0f172a;
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 6px;
    box-shadow: var(--imt-shadow-sm);
    transition: all 0.15s ease;
    border: none;
    cursor: pointer;
}
.imt-btn-primary:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: var(--imt-shadow-md);
}

.imt-btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--imt-gold);
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 6px;
    transition: all 0.15s ease;
    border: none;
    cursor: pointer;
}
.imt-btn-gold:hover {
    background: #92400e;
    transform: translateY(-1px);
}

.imt-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    color: #334155 !important;
    font-size: 13.5px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    transition: all 0.15s ease;
    cursor: pointer;
}
.imt-btn-secondary:hover {
    background: #e2e8f0;
    color: #0f172a !important;
}

/* -------------------------------------------------------------
   4. NAVIGATION BAR
   ------------------------------------------------------------- */
.imt-navbar {
    background: #0f172a;
    border-bottom: 2px solid var(--imt-gold);
}
.imt-navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.imt-nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}
.imt-nav-menu > li {
    position: relative;
}
.imt-nav-menu > li > a {
    display: block;
    padding: 14px 18px;
    color: #f1f5f9;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all 0.15s ease;
}
.imt-nav-menu > li > a:hover,
.imt-nav-menu > li.current-menu-item > a {
    color: #fef3c7;
    background: rgba(255, 255, 255, 0.08);
}

/* Submenu */
.imt-nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #0f172a;
    border: 1px solid #334155;
    border-top: 2px solid var(--imt-gold);
    list-style: none;
    padding: 8px 0;
    box-shadow: var(--imt-shadow-lg);
    z-index: 1000;
}
.imt-nav-menu > li:hover > .sub-menu {
    display: block;
}
.imt-nav-menu .sub-menu li a {
    display: block;
    padding: 9px 20px;
    color: #cbd5e1;
    font-size: 13px;
    transition: all 0.15s ease;
}
.imt-nav-menu .sub-menu li a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

/* -------------------------------------------------------------
   5. HERO & GLOBAL REPOSITORY SEARCH
   ------------------------------------------------------------- */
.imt-hero {
    background: linear-gradient(135deg, #0a1128 0%, #1e293b 100%);
    color: #ffffff;
    padding: 60px 0 50px;
    position: relative;
}
.imt-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(180, 83, 9, 0.2);
    border: 1px solid rgba(217, 119, 6, 0.4);
    color: #fde68a;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 18px;
}
.imt-discovery-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fef9c3;
    border: 1px solid #fde047;
    color: #92400e;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 6px 18px;
    border-radius: 9999px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    margin-bottom: 18px;
    text-transform: uppercase;
}
.imt-hero-title {
    font-family: var(--imt-font-display);
    font-size: 40px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
    max-width: 900px;
}
.imt-hero-lead {
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.7;
    max-width: 820px;
    margin-bottom: 32px;
}

/* Search Box Container */
.imt-search-container {
    background: #ffffff;
    border-radius: 10px;
    padding: 8px;
    display: flex;
    gap: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    max-width: 850px;
}
.imt-search-input {
    flex: 1;
    border: none;
    padding: 14px 20px;
    font-size: 15px;
    outline: none;
    color: #0f172a;
    font-family: var(--imt-font-sans);
}
.imt-search-btn {
    background: var(--imt-gold);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0 28px;
    font-weight: 700;
    font-size: 14.5px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.imt-search-btn:hover {
    background: #92400e;
}

/* Quick Topic Pills */
.imt-topic-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    align-items: center;
}
.imt-topic-pills span {
    font-size: 12.5px;
    color: #94a3b8;
}
.imt-pill {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.15s ease;
}
.imt-pill:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* -------------------------------------------------------------
   6. METRICS COUNTER STRIP
   ------------------------------------------------------------- */
.imt-metrics-strip {
    background: #ffffff;
    border-bottom: 1px solid var(--imt-border);
    padding: 32px 0;
    box-shadow: var(--imt-shadow-sm);
}
.imt-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    text-align: center;
}
.imt-metric-card {
    padding: 16px;
    border-right: 1px solid #f1f5f9;
}
.imt-metric-card:last-child {
    border-right: none;
}
.imt-metric-val {
    font-family: var(--imt-font-display);
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 6px;
}
.imt-metric-val.green {
    color: #16a34a;
}
.imt-metric-val.gold {
    color: #b45309;
}
.imt-metric-label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* -------------------------------------------------------------
   7. JOURNALS DIRECTORY SECTION
   ------------------------------------------------------------- */
.imt-section {
    padding: 60px 0;
}
.imt-section-header {
    margin-bottom: 36px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
}
.imt-section-kicker {
    font-size: 12px;
    font-weight: 800;
    color: var(--imt-gold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}
.imt-section-title {
    font-family: var(--imt-font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--imt-navy-900);
}
.imt-section-desc {
    color: var(--imt-text-muted);
    font-size: 14.5px;
    max-width: 650px;
    margin-top: 6px;
}

.imt-journals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}
.imt-journal-card {
    background: #ffffff;
    border: 1px solid var(--imt-border);
    border-radius: 10px;
    padding: 24px;
    box-shadow: var(--imt-shadow-sm);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.imt-journal-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--imt-shadow-md);
    border-color: #cbd5e1;
}
.imt-journal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}
.imt-journal-code-badge {
    background: #0f172a;
    color: #ffffff;
    font-family: var(--imt-font-mono);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}
.imt-journal-name {
    font-family: var(--imt-font-display);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
}
.imt-journal-name a {
    color: #0f172a;
}
.imt-journal-meta-row {
    font-size: 12.5px;
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.5;
}
.imt-journal-meta-row strong {
    color: #334155;
}
.imt-journal-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

/* -------------------------------------------------------------
   8. REPOSITORY PAPERS FEED & LISTING
   ------------------------------------------------------------- */
.imt-paper-row {
    background: #ffffff;
    border: 1px solid var(--imt-border);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--imt-shadow-sm);
    transition: all 0.15s ease;
}
.imt-paper-row:hover {
    box-shadow: var(--imt-shadow-md);
    border-color: #cbd5e1;
}
.imt-paper-title {
    font-family: var(--imt-font-display);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin: 8px 0 10px;
}
.imt-paper-title a {
    color: var(--imt-navy-900);
}
.imt-paper-authors {
    color: #475569;
    font-size: 13.5px;
    margin-bottom: 12px;
}
.imt-paper-abstract {
    color: #475569;
    font-size: 13.5px;
    line-height: 1.65;
    margin-bottom: 16px;
}

/* -------------------------------------------------------------
   9. FOOTER
   ------------------------------------------------------------- */
.imt-footer {
    background: #020617;
    color: #94a3b8;
    border-top: 3px double #1e293b;
    padding: 60px 0 24px;
    font-size: 14px;
}
.imt-footer a {
    color: #cbd5e1;
}
.imt-footer a:hover {
    color: var(--imt-gold-light);
}
.imt-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}
.imt-footer-col-title {
    font-family: var(--imt-font-display);
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 8px;
}
.imt-footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.imt-footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
}

/* -------------------------------------------------------------
   10. RESPONSIVE DESIGN
   ------------------------------------------------------------- */
@media (max-width: 992px) {
    .imt-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .imt-journals-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .imt-masthead-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .imt-hero-title {
        font-size: 28px;
    }
    .imt-search-container {
        flex-direction: column;
    }
    .imt-footer-grid {
        grid-template-columns: 1fr;
    }
}

/* -------------------------------------------------------------
   11. MULTI-FILTER SEARCH SUITE & PILLS
   ------------------------------------------------------------- */
.imt-search-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.imt-search-pill:hover {
    background: #0f172a;
    color: #fde047;
    border-color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
}
.imt-search-pill.active {
    background: #0f172a;
    color: #fde047;
    border-color: #0f172a;
    font-weight: 600;
}
.imt-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    font-size: 12px;
    color: #1e293b;
    font-weight: 500;
}
.imt-filter-tag-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #cbd5e1;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1;
    transition: all 0.15s ease;
}
.imt-filter-tag-remove:hover {
    background: #dc2626;
    color: #ffffff;
}

/* -------------------------------------------------------------
   12. ATTRACTIVE & UNIQUE PAGINATION + JUMP TO PAGE CONTROLLER
   ------------------------------------------------------------- */
.imt-unique-pagination-box {
    margin-top: 40px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    transition: all 0.25s ease;
}
.imt-unique-pagination-box:hover {
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.09);
    border-color: #cbd5e1;
}
.imt-page-summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0f172a;
    color: #f8fafc;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}
.imt-page-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
    display: inline-block;
    animation: imtPulse 2s infinite ease-in-out;
}
@keyframes imtPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}
.imt-page-nav-controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
}
.imt-page-btn {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    color: #0f172a;
    background: transparent;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.imt-page-btn:hover:not(.imt-page-disabled) {
    background: #f1f5f9;
    color: #0284c7;
    transform: translateY(-1px);
}
.imt-page-disabled {
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.6;
}
.imt-page-numbers-strip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.imt-page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.imt-page-num:hover:not(.active) {
    background: #e2e8f0;
    color: #0f172a;
    transform: translateY(-1px);
}
.imt-page-num.active {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fde047;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
    font-weight: 700;
    cursor: default;
}
.imt-page-ellipsis {
    padding: 0 6px;
    color: #94a3b8;
    font-weight: 700;
}
.imt-page-jump-wrapper {
    display: inline-flex;
    align-items: center;
}
.imt-jump-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 4px 6px 4px 12px;
    border-radius: 30px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
.imt-jump-prompt {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0;
}
.imt-jump-input-group {
    display: inline-flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2px 8px;
}
.imt-jump-input {
    width: 44px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    padding: 4px 0;
    outline: none;
}
.imt-jump-input::-webkit-inner-spin-button, 
.imt-jump-input::-webkit-outer-spin-button { 
    opacity: 1;
}
.imt-jump-max-tag {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 600;
    padding-left: 2px;
}
.imt-jump-submit-btn {
    border: none;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.imt-jump-submit-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.4);
}
@media (max-width: 900px) {
    .imt-unique-pagination-box {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        text-align: center;
    }
}

