/* =========================================
   IdeaLab Research - ENHANCED
   Hybrid Academic + Innovation Platform
   OJS Homepage Styling with Modern Design
   ========================================= */


/* =========================================
   VARIABLES & ROOT STYLES
   ========================================= */

:root {
  --primary: #163f63;
  --primary-light: #245b7a;
  --accent: #b85521;
  --accent-light: #d97e36;
  --bg-light: #f6f8fb;
  --bg-lighter: #eef3f9;
  --text-primary: #0f1e2e;
  --text-secondary: #4a5a6a;
  --text-muted: #8494a3;
  --border: #e2e8f0;
  --border-strong: #cbd6e2;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 5px 15px rgba(0,0,0,0.12);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
}


/* =========================================
   HIDE DEFAULT HOMEPAGE TITLE & SIDEBAR
   ========================================= */

.page_home .page_title {
  display: none;
}

/* Remove and hide all sidebar elements */
.page_home .sidebar,
.page_home aside,
.pkp_structure_sidebar,
.sidebar,
aside.pkp_structure_sidebar {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}


/* =========================================
   HOMEPAGE MAIN WIDTH & LAYOUT - FULL WIDTH
   ========================================= */

.page_home .pkp_structure_main {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.page_home .main_entry {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

/* Ensure no sidebar space is allocated */
.page_home .pkp_structure_content {
  width: 100%;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.page_home > .pkp_structure_content {
  width: 100%;
}

/* Remove sidebar from grid layouts */
.page_home .pkp_structure_main > *:not(.page_content_main) {
  display: none !important;
}


/* =========================================
   MAIN NAVIGATION HEADER - ENHANCED
   ========================================= */

/* Primary Navigation Container */
.pkp_navigation_primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(22, 63, 99, 0.15);
  padding: 0;
  margin: 0;
}

/* Navigation Menu Items */
.pkp_navigation_primary > ul {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.pkp_navigation_primary li {
  margin: 0;
  padding: 0;
  position: relative;
}

/* Main menu links */
.pkp_navigation_primary a {
  display: block;
  padding: 16px 20px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  text-transform: none;
}

.pkp_navigation_primary a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-bottom-color: #fff;
  padding-bottom: 13px;
  font-weight: 600;
}

/* Active/Current menu item */
.pkp_navigation_primary a.current {
  background: rgba(255, 255, 255, 0.15);
  border-bottom-color: #fff;
  font-weight: 600;
}

/* Submenu dropdown styling */
.pkp_navigation_primary ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--primary-light);
  min-width: 200px;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border-radius: 0 0 8px 8px;
  z-index: 100;
}

.pkp_navigation_primary li:hover > ul {
  display: block;
}

.pkp_navigation_primary ul ul li {
  margin: 0;
  padding: 0;
}

.pkp_navigation_primary ul ul a {
  padding: 12px 20px;
  border-bottom: none;
  border-left: 3px solid transparent;
  font-size: 14px;
  font-weight: 400;
}

.pkp_navigation_primary ul ul a:hover {
  background: rgba(255, 255, 255, 0.15);
  border-left-color: #fff;
  border-bottom: none;
}

/* Header Logo Area - Responsive */
.pkp_structure_head {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 12px 20px;
}

.site_title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.site_title img {
  height: 50px;
  width: auto;
}


/* =========================================
   MOBILE NAVIGATION ENHANCEMENTS
   ========================================= */

@media (max-width: 860px) {
  .pkp_navigation_primary > ul {
    flex-wrap: wrap;
  }

  .pkp_navigation_primary a {
    padding: 14px 12px;
    font-size: 13px;
  }

  .pkp_navigation_primary ul ul {
    position: static;
    display: none;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    border-radius: 0;
    margin-left: 20px;
    margin-top: 0;
  }

  .pkp_navigation_primary li:hover > ul {
    display: block;
  }

  .pkp_navigation_primary ul ul a {
    padding: 10px 20px;
    border-left: 2px solid rgba(255, 255, 255, 0.3);
  }
}

@media (max-width: 640px) {
  .pkp_navigation_primary a {
    padding: 12px 8px;
    font-size: 12px;
  }

  .pkp_structure_head {
    padding: 10px 12px;
  }

  .site_title {
    font-size: 14px;
    gap: 8px;
  }

  .site_title img {
    height: 40px;
  }

  /* Stack menu on mobile */
  .pkp_navigation_primary > ul {
    flex-direction: column;
    gap: 0;
  }

  .pkp_navigation_primary a {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid transparent;
    padding-left: 12px;
  }

  .pkp_navigation_primary a:hover {
    border-left-color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }
}


/* =========================================
   BUTTONS - ENHANCED STYLES
   ========================================= */

.idealab-button,
.btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 8px;
  background: #fff;
  color: var(--primary) !important;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--border-strong);
  transition: all 0.2s ease;
  cursor: pointer;
  font-size: 14px;
}

.idealab-button:hover,
.btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent) !important;
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-light) !important;
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
}

.btn-accent {
  background: var(--accent) !important;
  color: #fff !important;
  border-color: var(--accent);
}

.btn-accent:hover {
  background: var(--accent-light) !important;
  border-color: var(--accent-light);
}


/* =========================================
   HERO SECTION - ENHANCED
   ========================================= */

.idealab-hero {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  padding: 70px 45px;
  border-radius: var(--radius-lg);
  text-align: center;
  color: white;
  margin-bottom: 50px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.idealab-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.idealab-hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.idealab-hero .eyebrow {
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
  font-weight: 600;
}

.idealab-hero .tagline {
  font-size: 22px;
  letter-spacing: 0.5px;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.idealab-hero h2 {
  font-size: 28px;
  color: white;
  margin-top: 25px;
  position: relative;
  z-index: 1;
}

.idealab-hero p {
  max-width: 850px;
  margin: 20px auto;
  font-size: 18px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}


/* =========================================
   VALUES SECTION - CARD GRID
   ========================================= */

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 60px;
}

.value-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.value-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.value-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
}

.value-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}


/* =========================================
   GENERAL SECTIONS
   ========================================= */

.idealab-section {
  margin: 60px 0;
}

.section-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.idealab-section h2,
.idealab-projects h2,
.idealab-jskar h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 12px;
  color: var(--primary);
  letter-spacing: -0.01em;
  font-weight: 600;
}

.section-intro {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}


/* =========================================
   INITIATIVE CARDS - WITH ICONS
   ========================================= */

.idealab-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 50px;
}

.idealab-card {
  flex: 1 1 280px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.idealab-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

/* Initiative Icon Styling - Auto-Generated via CSS */
.initiative-icon,
.idealab-card::before {
  content: '';
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e6f1fb 0%, #d4e8f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 18px;
  flex-shrink: 0;
  background-size: 26px 26px;
  background-repeat: no-repeat;
  background-position: center;
  background-color: linear-gradient(135deg, #e6f1fb 0%, #d4e8f7 100%);
}

.initiative-icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.8;
}

/* JSKAR - Book Icon */
.idealab-cards .idealab-card:nth-child(1)::before {
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="%23163f63" stroke-width="1.8" xmlns="http://www.w3.org/2000/svg"><path d="M4 5a2 2 0 0 1 2-2h8v16H6a2 2 0 0 0-2 2V5Z"/><path d="M20 3v18"/></svg>');
}

/* IdeaLab Media - Play Icon */
.idealab-cards .idealab-card:nth-child(2)::before {
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="%23163f63" stroke-width="1.8" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="9"/><path d="M10 8.5v7l6-3.5-6-3.5Z" fill="%23163f63" stroke="none"/></svg>');
}

/* Research Resources - Database Icon */
.idealab-cards .idealab-card:nth-child(3)::before {
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="%23163f63" stroke-width="1.8" xmlns="http://www.w3.org/2000/svg"><ellipse cx="12" cy="6" rx="8" ry="3"/><path d="M4 6v6c0 1.7 3.6 3 8 3s8-1.3 8-3V6"/><path d="M4 12v6c0 1.7 3.6 3 8 3s8-1.3 8-3v-6"/></svg>');
}

/* Communities - People Icon */
.idealab-cards .idealab-card:nth-child(4)::before {
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="%23163f63" stroke-width="1.8" xmlns="http://www.w3.org/2000/svg"><circle cx="9" cy="8" r="3"/><circle cx="17" cy="10" r="2.4"/><path d="M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6"/><path d="M15.5 14.5c2.5.3 4.5 2.4 4.5 5"/></svg>');
}

.idealab-card h3 {
  color: var(--primary);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.idealab-card .tag {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 12px;
}

.idealab-card h4 {
  color: var(--accent);
  font-size: 16px;
  margin: 0 0 12px;
  font-weight: 600;
}

.idealab-card p {
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
  font-size: 15px;
}


/* =========================================
   PROJECTS / INITIATIVES SECTION
   ========================================= */

.idealab-projects {
  background: var(--bg-light);
  padding: 45px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.idealab-projects h2 {
  text-align: left;
  margin-bottom: 20px;
}

.idealab-projects li {
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.idealab-projects ul {
  margin: 0;
  padding-left: 20px;
}


/* =========================================
   ABOUT / FEATURE SECTION
   ========================================= */

.about-section {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 60px;
}

.about-section h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.about-section p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
}


/* =========================================
   JSKAR JOURNAL FEATURE
   ========================================= */

.idealab-jskar {
  background: linear-gradient(135deg, #fff4eb 0%, #ffe6d5 100%);
  padding: 50px;
  border-radius: var(--radius-lg);
  text-align: left;
  margin: 60px 0;
  border: 1px solid rgba(184, 85, 33, 0.1);
  box-shadow: var(--shadow-sm);
}

.pill {
  display: inline-block;
  background: rgba(184, 85, 33, 0.1);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.idealab-jskar h2 {
  color: var(--accent);
  text-align: left;
  margin-bottom: 12px;
  font-size: 26px;
}

.idealab-jskar p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
  max-width: 680px;
}

.feature-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}


/* =========================================
   CTA BAND / QUOTE SECTION
   ========================================= */

.cta-band {
  background: var(--primary);
  color: #fff;
  padding: 60px 45px;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 60px 0;
  box-shadow: var(--shadow-md);
}

.cta-band .quote {
  font-size: 24px;
  font-style: italic;
  font-weight: 500;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.cta-band .sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 28px;
}

.cta-band .btn {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  margin: 8px;
}

.cta-band .btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--primary) !important;
  border-color: #fff;
}

.cta-band .btn-primary:hover {
  background: var(--bg-light);
  color: var(--primary) !important;
}


/* =========================================
   FOOTER - ENHANCED MULTI-COLUMN
   ========================================= */

.pkp_structure_footer {
  background: var(--primary);
  color: #fff;
  padding: 50px 0 30px;
  margin-top: 60px;
}

.page_home .pkp_structure_footer {
  margin-top: 60px;
}

footer {
  border-top: none;
}

.footer-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 45px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 16px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
  transition: color 0.2s ease;
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
}

.footer-brand {
  margin-bottom: 12px;
}

.footer-brand .brand {
  color: #fff;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  max-width: 280px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0;
}

.footer-links a:hover {
  color: #fff;
}


/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

@media (max-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .idealab-hero {
    padding: 50px 30px;
  }

  .idealab-hero h1 {
    font-size: 40px;
  }

  .idealab-jskar {
    padding: 40px;
  }

  .cta-band {
    padding: 50px 30px;
  }
}

@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .idealab-cards {
    gap: 18px;
  }

  .idealab-card {
    flex: 1 1 100%;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .idealab-hero {
    padding: 40px 20px;
  }

  .idealab-hero h1 {
    font-size: 32px;
  }

  .idealab-hero .tagline {
    font-size: 18px;
  }

  .idealab-section h2 {
    font-size: 26px;
  }

  .idealab-jskar {
    padding: 30px 20px;
  }

  .idealab-projects {
    padding: 30px 20px;
  }

  .cta-band {
    padding: 40px 20px;
  }

  .cta-band .quote {
    font-size: 20px;
  }

  .footer-wrap {
    padding: 0 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .values-grid {
    grid-template-columns: 1fr;
  }

  .idealab-hero {
    padding: 30px 15px;
    margin-bottom: 30px;
  }

  .idealab-hero h1 {
    font-size: 26px;
  }

  .idealab-section h2 {
    font-size: 22px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .idealab-button,
  .btn {
    width: 100%;
    text-align: center;
  }

  .idealab-card {
    padding: 24px;
  }

  .initiative-icon {
    width: 44px;
    height: 44px;
  }

  .initiative-icon svg {
    width: 22px;
    height: 22px;
  }

  .feature-links {
    flex-direction: column;
  }

  .feature-links .btn {
    width: 100%;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }
}


/* =========================================
   ANIMATIONS & TRANSITIONS
   ========================================= */

@media (prefers-reduced-motion: no-preference) {
  * {
    scroll-behavior: smooth;
  }

  a, button, .btn {
    transition: all 0.2s ease;
  }
}

/* Force the header navigation utility area to blue */
.pkp_structure_head,
.pkp_structure_head * {
  border-color: rgba(255, 255, 255, 0.12);
}

.pkp_structure_head .pkp_navigation_search,
.pkp_structure_head .pkp_navigation_search_wrapper,
.pkp_structure_head .pkp_navigation_user {
  background: var(--primary) !important;
}

/* =========================================
   PRINT STYLES
   ========================================= */

@media print {
  header,
  .cta-band,
  .menu-toggle {
    display: none;
  }

  .idealab-section,
  .idealab-card {
    page-break-inside: avoid;
  }
}
