/* ==========================================================================
   OASK Publishers - Core Design System & Global Styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Montserrat:wght@500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Primary Colors */
  --primary-blue: #2866B1;
  --dark-navy-blue: #253E8B;
  --accent-orange: #F68213;

  /* Neutral & Background Colors */
  --white: #FFFFFF;
  --warm-cream: #F8F3EA;
  --light-ivory: #FAF7F2;
  --navy-background: #102A52;
  --navy-darker: #0B1D3A;
  --charcoal: #1F2430;

  /* UI Functional Colors */
  --text-dark: #1F2430;
  --text-heading: #1B2A4A;
  --text-muted: #5A6A80;
  --text-light: #7E8B9B;
  --border-color: #E2E8F0;
  --border-light: #EDF2F7;
  --bg-page: #F8FAFC;
  --bg-light-blue: #F0F6FC;
  --bg-pill: #F1F5F9;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --card-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.08);

  /* Typography */
  --font-display: 'Cinzel', serif;
  --font-heading: 'Montserrat', sans-serif;
  --font-subheading: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 0.9375rem; /* 15px */
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.global-page-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(2px);
  z-index: 99999;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.global-page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.global-page-loader__ring {
  position: absolute;
  width: 140px;
  height: 140px;
  border: 4px solid rgba(40, 102, 177, 0.15);
  border-top-color: var(--primary-blue);
  border-right-color: var(--accent-orange);
  border-radius: 50%;
  animation: globalPageLoaderSpin 0.9s linear infinite;
}

.global-page-loader__brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  padding: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(37, 62, 139, 0.12);
  border: 1px solid rgba(37, 62, 139, 0.12);
}

.global-page-loader__brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@keyframes globalPageLoaderSpin {
  to {
    transform: rotate(360deg);
  }
}

.scroll-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1100;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-navy-blue));
  color: var(--white);
  box-shadow: 0 10px 25px rgba(37, 62, 139, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: linear-gradient(135deg, var(--accent-orange), #df6b00);
}

.cookie-consent {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
  display: none;
  background: rgba(16, 42, 82, 0.96);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(9, 22, 48, 0.22);
  backdrop-filter: blur(8px);
}

.cookie-consent.show {
  display: block;
}

.cookie-consent__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
}

.cookie-consent__text h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.cookie-consent__text p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 760px;
}

.cookie-consent__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  border-radius: 8px;
  padding: 10px 18px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cookie-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.cookie-btn--primary {
  background: var(--accent-orange);
  color: var(--white);
}

.cookie-btn--secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
}

@media (max-width: 768px) {
  .scroll-to-top {
    width: 42px;
    height: 42px;
    right: 18px;
    bottom: 18px;
  }

  .cookie-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .cookie-consent__content {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 18px;
  }

  .cookie-consent__actions {
    width: 100%;
    justify-content: flex-end;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* Container System */
.container {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 1440px) {
  .container {
    max-width: 1380px;
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Typography Classes */
.font-display {
  font-family: var(--font-display);
  font-weight: 700;
}

.font-heading {
  font-family: var(--font-heading);
  font-weight: 700;
}

.font-body {
  font-family: var(--font-body);
}

.text-orange {
  color: var(--accent-orange);
}

.text-primary-blue {
  color: var(--primary-blue);
}

.text-navy {
  color: var(--dark-navy-blue);
}

/* Section Title Tag */
.section-tag {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-bottom: 6px;
  display: inline-block;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--dark-navy-blue);
  line-height: 1.25;
}

.view-all-link {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--dark-navy-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.view-all-link:hover {
  color: var(--accent-orange);
  transform: translateX(3px);
}

/* Common Buttons */
.btn-primary-orange {
  background-color: var(--accent-orange);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 10px 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 2px 8px rgba(246, 130, 19, 0.25);
}

.btn-primary-orange:hover {
  background-color: #e0720a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(246, 130, 19, 0.35);
}

.btn-outline {
  border: 1.5px solid var(--dark-navy-blue);
  color: var(--dark-navy-blue);
  background-color: transparent;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 9px 20px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-outline:hover {
  background-color: var(--dark-navy-blue);
  color: var(--white);
}

.btn-view-journal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 7px 12px;
  border: 1px solid #D0DCE8;
  border-radius: 5px;
  background-color: var(--white);
  color: var(--dark-navy-blue);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.btn-view-journal:hover {
  border-color: var(--primary-blue);
  background-color: var(--bg-light-blue);
  color: var(--primary-blue);
}

/* Badge Styles */
.badge-research {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  background-color: #EBF3FC;
  color: var(--primary-blue);
  border: 1px solid #D3E5F9;
}

.badge-review {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  background-color: #EDF7EE;
  color: #2E7D32;
  border: 1px solid #C8E6C9;
}
