/* ==========================================================================
   Space Research Journal - Index Page Custom Styles
   Scoped strictly to body.pkp_page_index
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Inter:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

/* Scope strictly to the index page */
body.pkp_page_index {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    background-color: #f0f5fa !important;
    color: #1e293b;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

/* Hide default PKP header and footer ONLY on index page */
body.pkp_page_index>.pkp_structure_page>.pkp_structure_head,
body.pkp_page_index #headerNavigationContainer,
body.pkp_page_index .pkp_structure_head {
    display: none !important;
}

body.pkp_page_index>.pkp_structure_page>.pkp_structure_footer_wrapper,
body.pkp_page_index .pkp_structure_footer_wrapper {
    display: none !important;
}

body.pkp_page_index .pkp_structure_sidebar {
    display: none !important;
}

body.pkp_page_index .pkp_structure_content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

body.pkp_page_index .pkp_structure_main {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    float: none !important;
}

body.pkp_page_index .page_index_journal {
    margin: 0 !important;
    padding: 0 !important;
}

/* ==========================================================================
   Custom Home Components
   ========================================================================== */

.ijrs-home-root {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #f0f5fa;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.ijrs-home-root * {
    box-sizing: border-box;
}

.ijrs-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Top Utility Bar */
.ijrs-topbar {
    background: #030a17;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    color: #94a3b8;
    padding: 8px 0;
}

.ijrs-topbar .ijrs-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ijrs-topbar a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ijrs-topbar a:hover {
    color: #38bdf8;
}

.ijrs-topbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ijrs-topbar-left svg {
    color: #38bdf8;
    flex-shrink: 0;
}

.ijrs-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ijrs-topbar-divider {
    color: #475569;
}

/* Main Navigation Bar */
.ijrs-navbar {
    background: #ffffff;
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.ijrs-navbar .ijrs-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 20px;
}

.ijrs-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #0f172a;
    flex-shrink: 0;
}

.ijrs-logo-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.ijrs-logo-text {
    display: flex;
    flex-direction: column;
}

.ijrs-logo-title {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    color: #0c2340;
    letter-spacing: -0.2px;
}

.ijrs-logo-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: #0c2340;
}

.ijrs-logo-subtitle span {
    color: #0284c7;
    font-weight: 800;
}

.ijrs-nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 6px;
}

.ijrs-nav-item {
    position: relative;
}

.ijrs-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ijrs-nav-link:hover {
    color: #0284c7;
    background: #f1f5f9;
}

.ijrs-nav-link.active {
    background: #1e88e5;
    color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(30, 136, 229, 0.35);
}

/* Dropdown */
.ijrs-dropdown {
    position: relative;
}

.ijrs-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    padding: 8px 0;
    list-style: none;
    margin: 8px 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 1010;
    border: 1px solid #e2e8f0;
}

.ijrs-dropdown:hover .ijrs-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ijrs-dropdown-item a {
    display: block;
    padding: 10px 18px;
    color: #334155;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.ijrs-dropdown-item a:hover {
    background: #f0f7ff;
    color: #0284c7;
    padding-left: 22px;
}

/* Search bar */
.ijrs-search-form {
    display: flex;
    align-items: center;
    position: relative;
    flex-shrink: 0;
}

.ijrs-search-input {
    width: 260px;
    padding: 9px 44px 9px 18px;
    border: 1.5px solid #cbd5e1;
    border-radius: 25px;
    background: #f8fafc;
    font-size: 13px;
    color: #0f172a;
    outline: none;
    transition: all 0.25s ease;
}

.ijrs-search-input:focus {
    border-color: #0284c7;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
    width: 290px;
}

.ijrs-search-btn {
    position: absolute;
    right: 4px;
    width: 32px;
    height: 32px;
    background: #1e88e5;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ijrs-search-btn:hover {
    background: #1565c0;
    transform: scale(1.05);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.ijrs-hero {
    position: relative;
    background-color: #030a18;
    color: #ffffff;
    padding: 70px 0 110px;
    overflow: hidden;
}

.ijrs-hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
    opacity: 0.85;
}

.ijrs-hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 10, 24, 0.94) 0%, rgba(3, 15, 36, 0.82) 45%, rgba(3, 15, 36, 0.55) 75%, rgba(3, 15, 36, 0.35) 100%);
    z-index: 2;
    pointer-events: none;
}

.ijrs-hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 3;
}

.ijrs-hero-content {
    max-width: 680px;
}

.ijrs-hero-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: #38bdf8;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.ijrs-hero-title {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    margin: 0 0 18px;
    letter-spacing: -0.5px;
}

.ijrs-hero-title span {
    color: #38bdf8;
}

.ijrs-hero-desc {
    font-size: 15.5px;
    line-height: 1.65;
    color: #cbd5e1;
    margin: 0 0 36px;
    max-width: 600px;
}

/* 4 Feature Badges */
.ijrs-feature-pills {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ijrs-feature-pill {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ijrs-pill-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.ijrs-pill-icon.blue {
    background: #0284c7;
    color: #ffffff;
}

.ijrs-pill-icon.green {
    background: #059669;
    color: #ffffff;
}

.ijrs-pill-icon.purple {
    background: #7c3aed;
    color: #ffffff;
}

.ijrs-pill-icon.orange {
    background: #d97706;
    color: #ffffff;
}

.ijrs-pill-info {
    display: flex;
    flex-direction: column;
}

.ijrs-pill-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
}

.ijrs-pill-desc {
    font-size: 11.5px;
    color: #94a3b8;
    line-height: 1.3;
}

/* Hero Right: Elegant Script Slogan */
.ijrs-hero-slogan-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.ijrs-hero-slogan {
    font-family: 'Caveat', cursive;
    font-size: 46px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.9), 0 2px 8px rgba(2, 132, 199, 0.6);
    margin-bottom: 8px;
    transform: rotate(-3deg);
}

.ijrs-hero-sub-slogan {
    font-size: 13.5px;
    color: #e2e8f0;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    font-weight: 500;
    line-height: 1.4;
}

/* Curved Divider */
.ijrs-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 3;
}

.ijrs-hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

/* ==========================================================================
   Main Content Layout (2 Columns)
   ========================================================================== */

.ijrs-main-content {
    padding: 30px 0 70px;
    background-color: #f0f5fa;
}

.ijrs-main-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: start;
}

/* Common Card Styles */
.ijrs-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.7);
    padding: 32px;
    margin-bottom: 28px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ijrs-card:hover {
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.ijrs-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.ijrs-card-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ijrs-card-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #e0f2fe;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ijrs-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #0c2340;
    margin: 0;
}

/* About Section */
.ijrs-about-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 28px;
    align-items: start;
}

.ijrs-about-text p {
    font-size: 14.5px;
    line-height: 1.68;
    color: #334155;
    margin: 0 0 16px;
    text-align: justify;
}

.ijrs-about-text p:last-of-type {
    margin-bottom: 24px;
}

.ijrs-about-img-wrap {
    width: 100%;
}

.ijrs-about-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

/* Buttons */
.ijrs-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1e88e5;
    color: #ffffff !important;
    padding: 12px 26px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(30, 136, 229, 0.35);
    transition: all 0.25s ease;
}

.ijrs-btn-primary:hover {
    background: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.45);
}

.ijrs-btn-primary svg {
    transition: transform 0.2s ease;
}

.ijrs-btn-primary:hover svg {
    transform: translateX(4px);
}

/* Current Issue Card */
.ijrs-view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1e88e5;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ijrs-view-all-link:hover {
    color: #0d47a1;
    gap: 9px;
}

.ijrs-issue-flex {
    display: flex;
    gap: 28px;
    align-items: center;
}

.ijrs-issue-cover-wrap {
    flex-shrink: 0;
}

.ijrs-issue-cover {
    width: 170px;
    height: 225px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
    display: block;
}

.ijrs-issue-details {
    flex: 1;
}

.ijrs-issue-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0284c7;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.ijrs-issue-title {
    font-family: 'Outfit', sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    color: #0c2340;
    margin: 0 0 10px;
}

.ijrs-issue-date {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 14px;
}

.ijrs-issue-date svg {
    color: #94a3b8;
}

.ijrs-issue-desc {
    font-size: 14.5px;
    line-height: 1.6;
    color: #475569;
    margin: 0 0 22px;
}

/* ==========================================================================
   Sidebar Cards
   ========================================================================== */

/* Make a Submission Card */
.ijrs-submission-card {
    background: linear-gradient(135deg, #061938 0%, #0c2b5e 50%, #0a2552 100%);
    border-radius: 20px;
    padding: 30px 26px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 32px rgba(6, 25, 56, 0.35);
    border: 1px solid rgba(56, 189, 248, 0.35);
    margin-bottom: 24px;
}

.ijrs-submission-radar-bg {
    position: absolute;
    right: -15px;
    bottom: -15px;
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    opacity: 0.35;
    mix-blend-mode: screen;
    pointer-events: none;
}

.ijrs-submission-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.7) 0%, rgba(14, 165, 233, 0.4) 100%);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.ijrs-submission-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.2px;
}

.ijrs-submission-desc {
    font-size: 13.5px;
    line-height: 1.55;
    color: #cbd5e1;
    margin: 0 0 24px;
    position: relative;
    z-index: 1;
}

.ijrs-btn-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #0284c7 !important;
    padding: 11px 26px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    z-index: 1;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    transition: all 0.25s ease;
}

.ijrs-btn-white:hover {
    background: #f8fafc;
    color: #0369a1 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.ijrs-btn-white svg {
    color: #0284c7;
    transition: transform 0.2s ease;
}

.ijrs-btn-white:hover svg {
    transform: translateX(4px);
}

/* Sidebar List Cards */
.ijrs-sidebar-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.7);
    margin-bottom: 24px;
}

.ijrs-sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1.5px solid #f1f5f9;
}

.ijrs-sidebar-header-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ijrs-sidebar-title {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #0c2340;
    margin: 0;
}

.ijrs-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ijrs-sidebar-item {
    border-bottom: 1px solid #f1f5f9;
}

.ijrs-sidebar-item:last-child {
    border-bottom: none;
}

.ijrs-sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 6px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.ijrs-sidebar-link:hover {
    color: #0284c7;
    padding-left: 10px;
}

.ijrs-sidebar-link-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ijrs-sidebar-link-left svg {
    color: #0284c7;
    flex-shrink: 0;
}

.ijrs-sidebar-chevron {
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.ijrs-sidebar-link:hover .ijrs-sidebar-chevron {
    color: #0284c7;
    transform: translateX(3px);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.ijrs-footer-wrapper {
    background: #040e1f;
    color: #94a3b8;
    position: relative;
    padding: 0 0 35px;
}

.ijrs-footer-wave {
    position: relative;
    top: -1px;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.ijrs-footer-wave svg {
    display: block;
    width: 100%;
    height: 50px;
}

.ijrs-footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding-top: 20px;
}

.ijrs-footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.ijrs-footer-logo-title {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.ijrs-footer-logo-title span {
    color: #38bdf8;
}

.ijrs-footer-center {
    text-align: center;
    font-size: 12.5px;
    line-height: 1.6;
    color: #94a3b8;
}

.ijrs-footer-center a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
}

.ijrs-footer-center a:hover {
    text-decoration: underline;
}

.ijrs-footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.ijrs-footer-email {
    font-size: 12.5px;
    color: #cbd5e1;
}

.ijrs-footer-email a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.ijrs-footer-email a:hover {
    color: #38bdf8;
}

.ijrs-social-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ijrs-social-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ijrs-social-btn:hover {
    background: #0284c7;
    transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
    .ijrs-hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .ijrs-hero-slogan-wrap {
        display: none;
    }

    .ijrs-feature-pills {
        grid-template-columns: repeat(2, 1fr);
    }

    .ijrs-main-grid {
        grid-template-columns: 1fr;
    }

    .ijrs-about-grid {
        grid-template-columns: 1fr;
    }

    .ijrs-about-img {
        max-width: 320px;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 768px) {
    .ijrs-topbar .ijrs-container {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .ijrs-navbar .ijrs-container {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    /* Mobile drawer is controlled by space-theme.css */

    .ijrs-search-form {
        width: 100%;
    }

    .ijrs-search-input {
        width: 100% !important;
    }

    .ijrs-hero-title {
        font-size: 32px;
    }

    .ijrs-feature-pills {
        grid-template-columns: 1fr;
    }

    .ijrs-issue-flex {
        flex-direction: column;
        align-items: flex-start;
    }

    .ijrs-issue-cover {
        width: 140px;
        height: 190px;
    }

    .ijrs-footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ijrs-footer-right {
        align-items: center;
    }
}

.pkp_structure_main:before,
.pkp_structure_main:after {
    display: none;
}