/*
Theme Name: ID Host Journals Theme
Theme URI: https://www.id-host.org/theme
Author: IndexAll Data LLC
Author URI: https://indexall.org
Description: Optimized, fast, and responsive WordPress theme for OJS hosting services, institutional sub-accounts, and INDEXA similarity checking platform integrations.
Version: 1.4.0
License: GNU General Public License v2 or later
Text Domain: idhost-theme
*/

/* =====================================================
 * 1. DESIGN TOKENS & SYSTEM VARIABLES
 * ===================================================== */
:root {
    /* Color Palette */
    --id-primary: #2563eb;
    --id-primary-hover: #1d4ed8;
    --id-secondary: #0f172a;
    --id-success: #10b981;
    --id-warning: #f59e0b;
    --id-danger: #ef4444;
    
    /* Neutrals */
    --id-bg-body: #f8fafc;
    --id-bg-card: #ffffff;
    --id-border: #e2e8f0;
    --id-text-main: #334155;
    --id-text-title: #0f172a;
    --id-text-muted: #64748b;
    
    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-xxl: 3.5rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Core Shadows & Transitions */
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.04), 0 4px 6px -2px rgba(15, 23, 42, 0.02);
    --shadow-premium: 0 15px 35px rgba(15, 23, 42, 0.03);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================================================
 * 2. BASE LAYOUT & RESET
 * ===================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--id-bg-body);
    color: var(--id-text-main);
    line-height: 1.6;
    font-size: 15px;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--id-text-title);
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: var(--id-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--id-primary-hover);
}

.idtheme-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    width: 100%;
}

/* =====================================================
 * 3. ALERT TICKER MARQUEE
 * ===================================================== */
.idtheme-ticker-wrap {
    background: var(--id-secondary);
    color: #f8fafc;
    overflow: hidden;
    height: 38px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #1e293b;
    position: relative;
    font-size: 0.82rem;
    font-weight: 600;
}

.idtheme-ticker-label {
    background: var(--id-primary);
    padding: 0 var(--space-lg);
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 10;
    box-shadow: 4px 0 8px rgba(0,0,0,0.2);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
    position: relative;
}

.idtheme-ticker-content {
    display: flex;
    white-space: nowrap;
    position: absolute;
    left: 100%;
    animation: ticker-scroll 28s linear infinite;
}

.idtheme-ticker-item {
    padding: 0 var(--space-xl);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.idtheme-ticker-item a {
    color: #93c5fd;
    font-weight: 700;
}

.idtheme-ticker-item a:hover {
    color: #ffffff;
}

@keyframes ticker-scroll {
    0% { transform: translate3d(0, 0, 0); left: 100%; }
    100% { transform: translate3d(-100%, 0, 0); left: -100%; }
}

/* =====================================================
 * 4. HEADER NAVIGATION & SUBMENUS
 * ===================================================== */
.idtheme-header {
    background: var(--id-bg-card);
    border-bottom: 1px solid var(--id-border);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: var(--space-md) 0;
}

.idtheme-header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.idtheme-logo-wrap a {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--id-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.idtheme-logo-wrap img {
    max-height: 40px;
    width: auto;
}

/* Desktop Horizontal Menu */
.idtheme-menu-wrap ul {
    list-style: none;
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.idtheme-menu-wrap ul li {
    position: relative;
}

.idtheme-menu-wrap ul li a {
    font-size: 0.92rem;
    font-weight: 700;
    color: #475569;
    padding: 6px 4px;
    border-bottom: 2px solid transparent;
}

.idtheme-menu-wrap ul li a:hover,
.idtheme-menu-wrap ul li.current-menu-item > a {
    color: var(--id-primary);
    border-bottom-color: var(--id-primary);
}

/* Desktop Dropdown Submenus */
.idtheme-menu-wrap ul li ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--id-bg-card);
    border: 1px solid var(--id-border);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 10px 0;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 99;
}

.idtheme-menu-wrap ul li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.idtheme-menu-wrap ul li ul.sub-menu li {
    width: 100%;
}

.idtheme-menu-wrap ul li ul.sub-menu li a {
    display: block;
    padding: 8px var(--space-md);
    border-bottom: none;
    font-size: 0.88rem;
    font-weight: 600;
}

.idtheme-menu-wrap ul li ul.sub-menu li a:hover {
    background: #f1f5f9;
    color: var(--id-primary-hover);
}

/* Social media shortcuts */
.idtheme-social-links {
    display: flex;
    gap: 12px;
}

.idtheme-social-icon {
    font-size: 1.1rem;
    color: var(--id-text-muted);
}

.idtheme-social-icon:hover {
    color: var(--id-primary);
    transform: translateY(-2px);
}

/* Hamburger mobile button toggles */
.idtheme-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
}

.idtheme-menu-toggle span {
    width: 100%;
    height: 2.5px;
    background-color: var(--id-secondary);
    border-radius: 2px;
    transition: var(--transition);
}

.idtheme-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--id-primary);
}

.idtheme-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.idtheme-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--id-primary);
}

/* =====================================================
 * 5. CORE COMPONENTS & LANDING PAGES
 * ===================================================== */

/* Hero Banner */
.idtheme-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: var(--space-xxl) 0;
    text-align: center;
    border-bottom: 1px solid #334155;
    position: relative;
    overflow: hidden;
}

.idtheme-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(37, 99, 235, 0.15), transparent 60%);
    pointer-events: none;
}

.idtheme-hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: var(--space-md);
    background: linear-gradient(to right, #ffffff, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.idtheme-hero p {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto var(--space-xl) auto;
    line-height: 1.6;
}

.idtheme-hero-ctas {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Premium Buttons */
.idtheme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.idtheme-btn-primary {
    background: var(--id-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.idtheme-btn-primary:hover {
    background: var(--id-primary-hover);
    color: #ffffff;
    transform: translateY(-1px);
}

.idtheme-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.idtheme-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateY(-1px);
}

.idtheme-btn-light-secondary {
    background: #ffffff;
    color: var(--id-primary);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.idtheme-btn-light-secondary:hover {
    background: #f8fafc;
    color: var(--id-primary-hover);
    border-color: var(--id-primary-hover);
    transform: translateY(-1px);
}

/* Features Grid layout */
.idtheme-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.idtheme-feature-card {
    background: var(--id-bg-card);
    border: 1px solid var(--id-border);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.idtheme-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.idtheme-feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.idtheme-feature-card h3 {
    margin-bottom: var(--space-xs);
    font-size: 1.3rem;
}

.idtheme-feature-card p {
    color: var(--id-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Section Title global formats */
.idtheme-section {
    padding: var(--space-xxl) 0;
}

.idtheme-section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: var(--space-xxl);
    position: relative;
}

.idtheme-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--id-primary);
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

/* =====================================================
 * 6. SPOTLIGHT SECTION (LATEST JOURNAL HOSTED)
 * ===================================================== */
.idtheme-spotlight-section {
    background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
    border-top: 1px solid var(--id-border);
    border-bottom: 1px solid var(--id-border);
}

.idtheme-spotlight-card {
    background: var(--id-bg-card);
    border: 1.5px solid var(--id-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-premium);
    max-width: 900px;
    margin: 0 auto;
}

.idtheme-spotlight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: var(--space-xl);
    border-bottom: 1px solid var(--id-border);
    padding-bottom: var(--space-md);
}

.idtheme-spotlight-tag {
    background: #fef3c7;
    color: #d97706;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.idtheme-spotlight-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2.5rem;
    align-items: center;
}

.idtheme-spotlight-info h3 {
    font-size: 1.7rem;
    color: var(--id-secondary);
    margin-bottom: 6px;
}

.idtheme-spotlight-pub {
    color: var(--id-text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--space-lg);
    font-weight: 600;
}

.idtheme-spotlight-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: var(--space-lg);
}

.idtheme-meta-item span.label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.idtheme-meta-item strong {
    font-size: 0.95rem;
    color: var(--id-secondary);
}

.idtheme-spotlight-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px dashed var(--id-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
}

.idtheme-badge-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: var(--space-md);
}

/* =====================================================
 * 7. RESEARCH INTEGRITY & STATS GRID
 * ===================================================== */
.idtheme-integrity-stats-section {
    background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.02), transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.02), transparent 40%);
    border-top: 1px solid var(--id-border);
}

.idtheme-integrity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: var(--space-xxl);
}

.idtheme-integrity-card {
    background: var(--id-bg-card);
    border: 1px solid var(--id-border);
    padding: 2.5rem var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.idtheme-integrity-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
}

.idtheme-integrity-card:nth-child(1)::before { background: var(--id-primary); }
.idtheme-integrity-card:nth-child(2)::before { background: var(--id-success); }
.idtheme-integrity-card:nth-child(3)::before { background: var(--id-warning); }

.idtheme-integrity-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.idtheme-card-icon {
    font-size: 2.2rem;
    margin-bottom: var(--space-xs);
}

.idtheme-card-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--id-secondary);
    line-height: 1.1;
    margin-bottom: 6px;
}

.idtheme-card-label {
    font-size: 0.82rem;
    color: var(--id-text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =====================================================
 * 8. SUBPAGE WRAPPERS & CERTIFICATE VERIFICATION
 * ===================================================== */
.idtheme-page-wrap {
    padding: var(--space-xxl) 0;
    min-height: 70vh;
}

.idtheme-verify-form-box {
    background: var(--id-bg-card);
    border: 1px solid var(--id-border);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.idtheme-verify-form-box h3 {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.idtheme-verify-form-box p {
    color: var(--id-text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--space-xl);
}

.idtheme-verify-form {
    display: flex;
    gap: 12px;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.idtheme-verify-form input[type="text"] {
    flex: 1;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--id-border);
    font-size: 0.95rem;
    font-weight: 600;
    background: #f8fafc;
    transition: var(--transition);
    color: var(--id-secondary);
}

.idtheme-verify-form input[type="text"]:focus {
    outline: none;
    border-color: var(--id-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* =====================================================
 * 9. SIDEBAR & CUSTOM WIDGETS
 * ===================================================== */

/* Stats widget container */
.idtheme-stats-widget-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.idtheme-stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.idtheme-stat-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.idtheme-stat-item .stat-icon {
    font-size: 1.4rem;
    color: var(--id-primary);
    width: 42px;
    height: 42px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.idtheme-stat-item .stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
}

.idtheme-stat-item .stat-label {
    font-size: 0.76rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-top: 2px;
}

/* Recent Journals list container */
.idtheme-recent-journals-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.idtheme-recent-journals-list li {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.idtheme-recent-journals-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.idtheme-recent-journals-list .journal-meta {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.idtheme-recent-journals-list .journal-icon {
    font-size: 1.1rem;
    color: var(--id-primary);
    margin-top: 2px;
    flex-shrink: 0;
}

.idtheme-recent-journals-list .journal-details {
    display: flex;
    flex-direction: column;
}

.idtheme-recent-journals-list .journal-title-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.4;
}

.idtheme-recent-journals-list .journal-title-link:hover {
    color: var(--id-primary);
}

.idtheme-recent-journals-list .journal-publisher {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 2px;
}

.idtheme-recent-journals-list .journal-badges {
    display: flex;
    gap: 6px;
    align-items: center;
    padding-left: 24px;
}

/* Miniature plan badges */
.gem-badge-mini {
    background: #059669;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.plan-badge-mini {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.plan-badge-mini.basic {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.plan-badge-mini.standard {
    background: rgba(37, 99, 235, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.plan-badge-mini.premium {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* =====================================================
 * 10. FOOTER STYLES
 * ===================================================== */
.idtheme-footer {
    background: var(--id-secondary);
    color: #94a3b8;
    border-top: 4px solid var(--id-primary);
    padding: 5rem 0 2rem 0;
}

.idtheme-footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: var(--space-xxl);
}

.idtheme-footer-widget h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: 8px;
}

.idtheme-footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 30px; height: 2px;
    background: var(--id-primary);
}

.idtheme-footer-widget ul {
    list-style: none;
}

.idtheme-footer-widget ul li {
    margin-bottom: 0.75rem;
}

.idtheme-footer-widget ul li a {
    color: #94a3b8;
    font-size: 0.9rem;
}

.idtheme-footer-widget ul li a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.idtheme-footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 1rem 0;
}

.idtheme-footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
}

.idtheme-footer-bottom-links a {
    color: #64748b;
    margin-left: 15px;
}

.idtheme-footer-bottom-links a:hover {
    color: #ffffff;
}

/* =====================================================
 * 11. UNIFIED RESPONSIVE OVERRIDES
 * ===================================================== */

/* Tablet scale triggers (< 991px) */
@media (max-width: 991px) {
    .idtheme-container {
        padding: 0 var(--space-lg);
    }
    
    .idtheme-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* Mobile scale triggers (< 768px) */
@media (max-width: 768px) {
    /* Padding & core overrides */
    .idtheme-section {
        padding: 3.5rem 0;
    }
    
    /* Hero Banner overrides */
    .idtheme-hero {
        padding: 4rem 0 3.5rem 0;
    }
    
    .idtheme-hero h1 {
        font-size: 2.15rem;
        line-height: 1.2;
    }
    
    .idtheme-hero p {
        font-size: 1.05rem;
        margin-bottom: var(--space-lg);
        padding: 0 10px;
    }
    
    .idtheme-hero-ctas {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .idtheme-hero-ctas .idtheme-btn {
        width: 100%;
    }

    /* ── Mobile Hamburger slide-out drawer ── */
    .idtheme-menu-toggle {
        display: flex !important;
    }

    .idtheme-menu-wrap {
        display: block !important;
        position: fixed;
        top: 0;
        right: -100%;
        width: 290px;
        height: 100vh;
        background: #ffffff;
        box-shadow: -10px 0 30px rgba(15, 23, 42, 0.05);
        padding: 80px var(--space-lg) 40px var(--space-lg);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* smooth iOS inertia scrolling */
    }

    .idtheme-menu-wrap.active {
        right: 0;
    }

    .idtheme-menu-wrap ul {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px !important;
    }

    .idtheme-menu-wrap ul li {
        width: 100%;
    }

    .idtheme-menu-wrap ul li a {
        display: block;
        padding: 8px 0;
        width: 100%;
        font-size: 1.15rem !important;
        border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    }
    
    /* Mobile Nested Submenus */
    .idtheme-menu-wrap ul li ul.sub-menu {
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        padding: 5px 0 5px 15px !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: block !important;
        background: transparent !important;
    }
    
    .idtheme-menu-wrap ul li ul.sub-menu li a {
        font-size: 0.95rem !important;
        border-bottom: none !important;
        padding: 6px 0 !important;
    }

    .idtheme-header-nav .idtheme-social-links {
        display: none !important;
    }

    /* Grids & Cards responsive adjustments */
    .idtheme-features-grid,
    .idtheme-integrity-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    .idtheme-feature-card,
    .idtheme-integrity-card {
        padding: 2rem 1.5rem;
    }
    
    .idtheme-card-value {
        font-size: 2.2rem;
    }

    /* Spotlight section overrides */
    .idtheme-spotlight-card {
        padding: 1.75rem;
        border-radius: var(--radius-lg);
    }
    
    .idtheme-spotlight-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: var(--space-md);
        padding-bottom: 10px;
    }
    
    .idtheme-spotlight-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .idtheme-spotlight-meta {
        grid-template-columns: 1fr !important;
        gap: 12px;
        margin-bottom: var(--space-md);
    }
    
    .idtheme-spotlight-badge {
        padding: var(--space-lg);
        border-radius: var(--radius-md);
        width: 100%;
    }

    /* Savings Calculator Panel overrides */
    .idtheme-calc-container {
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .idtheme-calc-container > div {
        min-width: 100% !important;
        padding: var(--space-lg) !important;
        border-radius: var(--radius-lg) !important;
    }
    
    #calc-results-box {
        padding: 25px 20px !important;
    }
    
    #val-calc-total {
        font-size: 1.8rem !important;
    }

    /* Verification Box responsive overrides */
    .idtheme-verify-form-box {
        padding: 2rem 1.25rem;
        border-radius: var(--radius-lg);
    }
    
    .idtheme-verify-form-box h3 {
        font-size: 1.35rem;
    }
    
    .idtheme-verify-form {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .idtheme-verify-form input[type="text"] {
        width: 100%;
        text-align: center;
    }
    
    .idtheme-verify-form button {
        width: 100%;
    }

    /* Public Similarity Call To Action overrides */
    .idtheme-public-similarity-cta {
        padding: 2rem 1.25rem !important;
        border-radius: var(--radius-lg);
    }
    
    .idtheme-homepage-auth-box {
        padding: 15px !important;
        margin-top: 1.5rem !important;
    }

    /* Footer structure overrides */
    .idtheme-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 2.5rem;
    }
    
    .idtheme-footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .idtheme-footer-bottom-links {
        margin: 5px 0 0 0;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .idtheme-footer-bottom-links a {
        margin: 0 !important;
    }

    /* Impact ribbon mobile overrides */
    .idtheme-impact-ribbon {
        padding: 15px 12px !important;
        margin-top: 25px !important;
    }

    /* Stack CTA buttons in homepage auth box on mobile */
    .idtheme-homepage-auth-box div {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
    }
    .idtheme-homepage-auth-box div a {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Responsive modal adjustments */
    .idhost-modal-content {
        width: 90% !important;
        max-width: 450px !important;
        padding: var(--space-lg) !important;
    }
}

/* Extra typography for small mobile viewports */
@media (max-width: 480px) {
    h1, .idtheme-hero h1 {
        font-size: 1.85rem !important;
    }
    
    .idtheme-section-title {
        font-size: 1.65rem;
        margin-bottom: 2rem;
    }
    
    .idtheme-spotlight-info h3 {
        font-size: 1.4rem !important;
    }
    
    .idtheme-logo-wrap a {
        font-size: 1.35rem;
    }
}

/* =====================================================
 * 12. PUBLISHER PORTAL ENHANCEMENTS STYLES
 * ===================================================== */

/* Modal Overlays & Transitions */
.idhost-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: idFadeIn 0.25s ease-out;
}

.idhost-modal-content {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12);
    transform: scale(0.95);
    animation: idScaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes idFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes idScaleUp {
    to { transform: scale(1); }
}

/* Drag and Drop Scan Container Hover & Focus states */
.portal-scan-upload-container:hover {
    border-color: var(--id-primary-hover) !important;
    background: #eff6ff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.08);
}

.portal-scan-upload-container {
    transition: var(--transition) !important;
}

/* Conversational Chat Bubbles for Helpdesk Thread */
#idhost-ticket-chat-messages {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

#idhost-ticket-chat-messages::-webkit-scrollbar {
    width: 6px;
}

#idhost-ticket-chat-messages::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 3px;
}

/* Ticket List Item Hover State */
.portal-ticket-row:hover {
    background-color: #f8fafc !important;
}

/* Progress bar styling */
.progress-bar-container {
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}
.progress-bar-fill {
    box-shadow: 0 2px 4px rgba(37,99,235,0.2);
}

/* =====================================================
 * 9. SCROLL EFFECTS & PREMIUM INTERACTIVE COMPONENTS
 * ===================================================== */

/* Sticky Header Shrink & Blur */
.idtheme-header.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border-bottom-color: rgba(226, 232, 240, 0.5);
}

/* Logo Ticker Marquee */
.idtheme-logo-marquee-section {
    background: #ffffff;
    border-bottom: 1px solid var(--id-border);
    padding: 2.5rem 0;
    overflow: hidden;
    position: relative;
}
.idtheme-logo-marquee-title {
    text-align: center;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--id-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
}
.idtheme-marquee-wrap {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 3rem;
}
.idtheme-marquee-content {
    display: flex;
    flex-shrink: 0;
    justify-content: space-around;
    min-width: 100%;
    gap: 3rem;
    animation: logo-scroll 30s linear infinite;
}
.idtheme-marquee-content span {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--id-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    filter: grayscale(100%);
    opacity: 0.45;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.idtheme-marquee-content span:hover {
    filter: grayscale(0%);
    opacity: 0.95;
    transform: scale(1.05);
    color: var(--id-primary);
}
@keyframes logo-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* Sponsorship Ecosystem Section */
.idtheme-ecosystem-section {
    padding: var(--space-xxl) 0;
    background: #ffffff;
    border-bottom: 1px solid var(--id-border);
}
.idtheme-ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}
.idtheme-ecosystem-card {
    background: var(--id-bg-body);
    border: 1px solid var(--id-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.idtheme-ecosystem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--id-primary);
    opacity: 0;
    transition: var(--transition);
}
.idtheme-ecosystem-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 237, 0.15);
    background: #ffffff;
}
.idtheme-ecosystem-card:hover::before {
    opacity: 1;
}
.idtheme-ecosystem-card.sponsor::before { background: var(--id-warning); }
.idtheme-ecosystem-card.publisher::before { background: var(--id-success); }
.idtheme-ecosystem-card.ambassador::before { background: var(--id-primary); }

.idtheme-eco-icon {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}
.idtheme-ecosystem-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}
.idtheme-ecosystem-card p {
    font-size: 0.92rem;
    color: var(--id-text-main);
    line-height: 1.6;
}
.idtheme-eco-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 99px;
    margin-bottom: var(--space-sm);
}
.idtheme-ecosystem-card.sponsor .idtheme-eco-badge { background: #fef3c7; color: #d97706; }
.idtheme-ecosystem-card.publisher .idtheme-eco-badge { background: #d1fae5; color: #059669; }
.idtheme-ecosystem-card.ambassador .idtheme-eco-badge { background: #dbeafe; color: #2563eb; }

/* Publishing Journey Timeline */
.idtheme-timeline-section {
    padding: var(--space-xxl) 0;
    background: var(--id-bg-body);
    border-bottom: 1px solid var(--id-border);
}
.idtheme-timeline {
    position: relative;
    max-width: 900px;
    margin: 3rem auto 0 auto;
    padding: 1rem 0;
}
.idtheme-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--id-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 99px;
}
.idtheme-timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}
.idtheme-timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: #ffffff;
    border: 4px solid var(--id-primary);
    top: 15px;
    border-radius: 50%;
    z-index: 2;
    transition: var(--transition);
}
.idtheme-timeline-item:hover::after {
    background-color: var(--id-primary);
    transform: scale(1.2);
}
.idtheme-timeline-item.left { left: 0; }
.idtheme-timeline-item.right { left: 50%; }
.idtheme-timeline-item.right::after { left: -10px; }
.idtheme-timeline-content {
    padding: 20px 25px;
    background-color: var(--id-bg-card);
    position: relative;
    border-radius: var(--radius-md);
    border: 1px solid var(--id-border);
    transition: var(--transition);
}
.idtheme-timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--id-primary);
}
.idtheme-timeline-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: center;
    gap: 8px;
}
.idtheme-timeline-content p {
    font-size: 0.88rem;
    color: var(--id-text-muted);
    line-height: 1.5;
    margin: 0;
}
.idtheme-timeline-step {
    color: var(--id-primary);
    font-weight: 800;
    font-size: 0.9rem;
}

/* Interactive Calculator Enhancements */
.idtheme-calc-sponsor-funded {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f1f5f9;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--id-border);
    margin-bottom: 20px;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}
.idtheme-calc-sponsor-funded:hover {
    background: #e2e8f0;
}
.idtheme-calc-sponsor-funded input {
    width: 17px;
    height: 17px;
    cursor: pointer;
}
.calc-savings-highlight {
    animation: pulse-border 2s infinite;
}
@keyframes pulse-border {
    0% { border-color: rgba(16, 185, 129, 0.3); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.2); }
    70% { border-color: rgba(16, 185, 129, 0.6); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { border-color: rgba(16, 185, 129, 0.3); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Mini FAQ Accordion */
.idtheme-mini-faq-section {
    padding: var(--space-xxl) 0;
    background: #ffffff;
    border-bottom: 1px solid var(--id-border);
}
.idtheme-mini-faq-section .idhost-faq-wrap {
    max-width: 800px;
    margin: 2rem auto 0 auto;
    padding: 0;
}
.idtheme-mini-faq-section .ifaq-item {
    border: 1px solid var(--id-border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    background: #ffffff;
    overflow: hidden;
    transition: var(--transition);
}
.idtheme-mini-faq-section .ifaq-item-open {
    border-color: var(--id-primary);
    box-shadow: var(--shadow-lg);
}
.idtheme-mini-faq-section .ifaq-q-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1.1rem 1.4rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--id-text-title);
    transition: var(--transition);
}
.idtheme-mini-faq-section .ifaq-q-btn:hover {
    background: #f8fafc;
}
.idtheme-mini-faq-section .ifaq-item-open .ifaq-q-btn {
    background: #eff6ff;
}
.idtheme-mini-faq-section .ifaq-q-icon {
    width: 24px;
    height: 24px;
    background: #dbeafe;
    color: var(--id-primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.72rem;
    flex-shrink: 0;
}
.idtheme-mini-faq-section .ifaq-item-open .ifaq-q-icon {
    background: var(--id-primary);
    color: #ffffff;
}
.idtheme-mini-faq-section .ifaq-q-text {
    flex: 1;
    font-size: 0.95rem;
}
.idtheme-mini-faq-section .ifaq-q-arrow {
    color: var(--id-text-muted);
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.idtheme-mini-faq-section .ifaq-item-open .ifaq-q-arrow {
    transform: rotate(180deg);
    color: var(--id-primary);
}
.idtheme-mini-faq-section .ifaq-a-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}
.idtheme-mini-faq-section .ifaq-a-inner {
    padding: 0 1.4rem 1.4rem 3.4rem;
    font-size: 0.9rem;
    color: var(--id-text-main);
    line-height: 1.7;
}

@media screen and (max-width: 768px) {
    .idtheme-timeline::after {
        left: 20px !important;
        margin-left: 0 !important;
    }
    
    .idtheme-timeline-item {
        width: 100% !important;
        padding: 10px 10px 10px 45px !important;
        left: 0 !important;
    }
    
    .idtheme-timeline-item.right {
        left: 0 !important;
    }
    
    .idtheme-timeline-item::after {
        left: 12px !important;
        right: auto !important;
    }
    
    .idtheme-timeline-item.right::after {
        left: 12px !important;
    }
}

/* =====================================================
 * 10. CUSTOM WIDGET STYLES
 * ===================================================== */

/* GEM Country Checker Widget */
.idtheme-widget-gem-checker .widget-desc,
.idtheme-widget-cert-verifier .widget-desc {
    font-size: 0.85rem;
    color: var(--id-text-muted);
    margin-bottom: 12px;
    line-height: 1.5;
}
.idtheme-widget-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--id-border);
    background-color: #f9fafb;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}
.idtheme-widget-select:focus {
    border-color: var(--id-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* Certificate Verifier Widget */
.idtheme-widget-verify-form {
    display: flex;
    gap: 8px;
}
.idtheme-widget-input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--id-border);
    font-size: 0.9rem;
    transition: var(--transition);
}
.idtheme-widget-input:focus {
    border-color: var(--id-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.idtheme-widget-submit-btn {
    padding: 10px 16px;
    background-color: var(--id-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}
.idtheme-widget-submit-btn:hover {
    background-color: var(--id-primary-hover);
}

/* Sponsors Spotlight Widget */
.idtheme-widget-sponsors-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.idtheme-widget-sponsors-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid var(--id-border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.idtheme-widget-sponsors-list li:hover {
    border-color: var(--id-primary);
    box-shadow: var(--shadow-sm);
}

/* Ambassador Recruiter Widget */
.idtheme-widget-ambassador-callout {
    padding: 20px;
    background: linear-gradient(135deg, rgba(37,99,235,0.03) 0%, rgba(59,130,246,0.03) 100%);
    border: 1.5px dashed rgba(37,99,235,0.25);
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
}
.idtheme-widget-ambassador-callout:hover {
    border-color: var(--id-primary);
    background: linear-gradient(135deg, rgba(37,99,235,0.06) 0%, rgba(59,130,246,0.06) 100%);
}
.idtheme-widget-ambassador-callout .idtheme-widget-btn {
    display: inline-block;
    background-color: var(--id-primary);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(37,99,235,0.15);
    transition: var(--transition);
}
.idtheme-widget-ambassador-callout .idtheme-widget-btn:hover {
    background-color: var(--id-primary-hover);
    transform: translateY(-1px);
}



