@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Dancing+Script:wght@400..700&family=Raleway:ital,wght@0,100..900;1,100..900&family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap');

@font-face {
  font-family: 'Bree Serif';
  src: url('../fonts/BreeSerif-Regular.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

:root {
  --accent: #1677ff;
  --accent-2: #d97706;
  --red-accent: #ca2015;
  --yellow-accent: #ffb74d;
  --dark: #001635;
  --ink: #050516;
  --muted: #687083;
  --surface: #f8fafc;
  --white: #ffffff;
  --border: #e6e9f0;
  --border-2: rgba(22,119,255,0.35);

  --shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 40px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.16);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@-ms-viewport {
  width: device-width;
}

/* ========================================
   KEEP FOOTER AT BOTTOM OF PAGE
======================================== */

html,
body {
    min-height: 100%;
}

/* Main page content grows and pushes footer down */
.main-container {
    flex: 1 0 auto;
}

/* Footer stays after content, or at bottom on short pages */
.footer-sunset-fixed {
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
}

body {
  font-family: 'Noto Sans', sans-serif;
  background: var(--surface);
  color: var(--ink);
  padding-top: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body {
  color: var(--ink);
  margin: 0;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0) 0%, var(--white) 78%),
    radial-gradient(var(--border) 1.1px, transparent 1.1px);
  background-size: 100% 100%, 11px 11px;
  background-position: top left, top left;
  background-attachment: fixed;
}

header {
  position: relative;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding-left: 10px;
  padding-right: 10px;
}

h3 {
  margin: 0;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 18px 20px 0;
  pointer-events: none;
}

.app-header {
  width: min(1240px, 100%);
  min-width: 0;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(246, 246, 246, 0.95);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  padding: 12px 16px 12px 24px;
  display: flex;
  align-items: center;
  gap: 26px;
  pointer-events: auto;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 22px;
    display: block;
}

.nav-editor {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  margin-left: 80px;
}

.nav-editor ul {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-editor ul li {
  position: relative;
}

.nav-editor ul li > a {
  color: #334155;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 0;
}

.nav-editor ul li > a:hover {
  color: var(--accent);
}

.nav-editor ul li > a i {
  font-size: 0.68rem;
  transition: 0.25s ease;
}

.nav-dropdown.open > a i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 135%;
  left: 0;
  min-width: 250px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 0.22s ease;
  z-index: 5000;
}

.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--dark);
  font-size: 0.84rem;
  font-weight: 550;
  text-decoration: none;
  transition: 0.2s ease;
}

.dropdown-menu a:hover {
  background: rgba(22,119,255,0.08);
  color: var(--accent);
}

.header-actions,
.account-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-btn,
.header-btn-2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 999px;
  padding: 0 20px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: 0.25s ease;
}

.header-btn {
  background: var(--white);
  color: var(--dark);
  border: 1px solid rgba(8, 17, 47, 0.18);
}

.header-btn-2 {
  background: var(--accent);
  color: var(--white);
  border: 1px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

.header-btn:hover,
.header-btn-2:hover {
  transform: translateY(-1px);
}

.account-menu {
  position: absolute;
  right: 0;
  top: 130%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 0.22s ease;
  z-index: 5000;
  overflow: hidden;
}

.account-menu.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.account-dropdown {
  position: relative;
}

.account-btn {
  height: 40px;
  border-radius: 999px;
  padding: 0 16px;
  background: var(--accent);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.account-menu {
  min-width: 260px;
}

.account-user {
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(22,119,255,0.08), var(--white));
  border-bottom: 1px solid var(--border);
}

.account-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--dark);
}

.account-email {
  margin-top: 3px;
  font-size: 0.75rem;
  color: var(--muted);
}

.account-menu a {
  display: block;
  padding: 12px 18px;
  color: var(--dark);
  font-size: 0.84rem;
  font-weight: 550;
  text-decoration: none;
}

.account-menu a:hover {
  background: rgba(22,119,255,0.08);
  color: var(--accent);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 86px;
  left: 18px;
  right: 18px;
  z-index: 999;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
}

.mobile-nav.show {
  display: block;
}

.mobile-nav a,
.mobile-group {
  display: block;
  padding: 13px 14px;
  border-radius: 13px;
}

.mobile-nav a {
  color: var(--dark);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.mobile-nav a:hover {
  background: rgba(22,119,255,0.08);
}

.mobile-group {
  margin-top: 8px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 7px;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  padding: 8px;
  display: none;
  z-index: 9999;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  color: #334155;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.nav-dropdown-menu a:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.nav-dropdown-menu i {
  width: 18px;
  text-align: center;
}

/* ========================================
   NOTIFICATIONS
======================================== */

.notification-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.notification-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    font-size: 19px;
    transition: background 0.2s ease;
}

.notification-btn:hover {
    background: #f1f5f9;
}

.notification-count {
    position: absolute;
    top: 2px;
    right: 1px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #dc2626;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 390px;
    max-height: 520px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow:
        0 20px 45px rgba(15, 23, 42, 0.14),
        0 4px 12px rgba(15, 23, 42, 0.06);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;

    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0.18s ease;

    overflow: hidden;
    z-index: 10000;
}

.notification-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.notification-panel-header {
    padding: 18px 18px 14px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-panel-header strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
}

.notification-panel-header span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
}

.notification-mark-all {
    border: 0;
    background: transparent;
    padding: 4px;
    color: #2563eb;
    font-size: 12px;
    cursor: pointer;
}

.notification-list {
    max-height: 390px;
    overflow-y: auto;
}

.notification-item {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 15px 18px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

.notification-item:hover {
    background: #f8fafc;
}

.notification-item.unread {
    background: #f8fbff;
}

.notification-item.unread:hover {
    background: #f1f7ff;
}

.notification-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #64748b;
}

.notification-icon.priority-action_required {
    background: #fff7ed;
    color: #ea580c;
}

.notification-icon.priority-important {
    background: #eff6ff;
    color: #2563eb;
}

.notification-content {
    min-width: 0;
    flex: 1;
}

.notification-title-row {
    display: flex;
    align-items: center;
    gap: 7px;
}

.notification-title-row strong {
    color: #0f172a;
    font-size: 13px;
    line-height: 1.4;
}

.notification-unread-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    background: #2563eb;
    border-radius: 50%;
}

.notification-content p {
    margin: 4px 0 7px;
    color: #475569;
    font-size: 12px;
    line-height: 1.5;
}

.notification-time {
    color: #94a3b8;
    font-size: 11px;
}

.notification-empty {
    padding: 38px 20px;
    text-align: center;
    color: #64748b;
}

.notification-empty i {
    display: block;
    margin-bottom: 10px;
    font-size: 24px;
    color: #94a3b8;
}

.notification-empty strong {
    display: block;
    color: #334155;
    font-size: 13px;
}

.notification-empty span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
}

.notification-panel-footer {
    border-top: 1px solid #e2e8f0;
    padding: 12px 18px;
    text-align: center;
}

.notification-panel-footer a {
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 768px) {
    .notification-panel {
        position: fixed;
        top: 70px;
        left: 12px;
        right: 12px;
        width: auto;
    }
}

.footer-sunset-fixed {
  background-color: var(--dark);
  color: var(--white);
  padding-top: 50px;
  padding-bottom: 10px;
  position: relative;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 100px;
  width: 100%;
  padding-bottom: 40px;
  text-align: left;
}

.brand {
  font-size: 32px;
  font-family: 'Bree Serif', sans-serif;
}

.footer-grid p {
  font-size: 0.85rem;
  color: #ddd;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
}

.footer-grid ul li {
  margin: 6px 0;
}

.footer-grid ul li a {
  color: #eee;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-grid ul li a:hover {
  color: var(--white);
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.socials img {
  color: var(--white);
  width: 24px;
  filter: brightness(0.8);
  transition: 0.3s ease;
}

.socials img:hover {
  filter: brightness(1.3);
  transform: scale(1.1);
}

.follow-tagline {
  font-size: 0.85rem;
  color: #bbb;
  margin-top: 6px;
}

.footer-bottom-strip {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 0.8rem;
  color: #aaa;
}

.footer-links {
  margin: 10px 0;
}

.footer-links a {
  color: #aaa;
  margin: 0 5px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
}

.powered-by {
  font-size: 0.75rem;
  color: #777;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons .social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  border-radius: 50%;
  color: var(--ink);
  width: 35px;
  height: 35px;
  background-color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (max-width: 1060px) {
  .nav-editor,
  .account-area,
  .header-actions {
    display: none;
  }

  .app-header {
    padding: 12px 14px 12px 22px;
  }

  .mobile-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }
}

@media (max-width: 1024px) {
  .collections1 {
    flex-direction: column;
    text-align: center;
  }

  .collections1 img {
    width: 100%;
    height: auto;
    border-radius: 5px 5px 0 0;
  }

  .journal-txt {
    width: 100%;
    height: auto;
    border-radius: 0 0 5px 5px;
  }

  .journal-metrics-strip {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .vertical-divider {
    display: none;
  }
}

@media (max-width: 768px) {
  .journal-txt h2,
  .journal-txt .p1,
  .journal-txt .p2 {
    margin-left: 20px;
    margin-right: 20px;
  }

  .wrapper .left .logo a {
    font-size: 1.2rem;
  }
}

@media (max-width: 520px) {
  .wrapper {
    padding: 12px 12px 0;
  }

  .app-header {
    border-radius: 24px;
  }

  .logo a {
    font-size: 23px;
  }

  .mobile-nav {
    top: 76px;
    left: 12px;
    right: 12px;
  }
}

@media (max-width: 480px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .footer-grid ul {
    margin: 0;
  }

  .footer-grid {
    flex-direction: column;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    text-align: center;
  }

  .mobile-menu {
    display: none !important;
  }

  .mobile-menu.active {
    display: block;
  }

  .mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
  }

  .mobile-menu ul li {
    padding: 10px 16px;
    border-top: 1px solid rgba(255, 249, 249, 0.3);
  }

  .mobile-menu ul li a {
    color: var(--white);
    text-decoration: none;
    display: block;
    width: 100%;
    font-size: 0.9rem;
  }

  .hamburger {
    display: block;
    font-size: 1.4rem;
    color: var(--white);
    cursor: pointer;
    margin: 0;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-top-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 16px;
  }

  .footer-top-left,
  .footer-top-right {
    width: 100%;
    margin-bottom: 10px;
  }

  .footer-top-left h4,
  .footer-top-left p,
  .footer-top-right p {
    text-align: center !important;
    margin: 0 auto;
  }

  .footer-top-right a {
    display: inline-block;
    word-break: break-word;
  }

  .copyright p {
    text-align: center;
  }

  .social-icons {
    justify-content: center;
    margin-top: 15px;
  }

  .tooltip {
    position: relative;
    display: inline-block;
    overflow: visible;
  }

  .tooltip .tooltiptext {
    visibility: hidden;
    opacity: 0;
    width: 260px;
    background-color: var(--white);
    color: var(--ink);
    text-align: left;
    padding: 10px 14px;
    border: 3px solid #ccc;
    border-top: 5px solid var(--accent);
    position: absolute;
    z-index: 9999;
    top: 50%;
    left: auto;
    right: 100%;
    transform: translateY(-50%);
    white-space: normal;
    transition: opacity 0.3s ease;
    border-radius: 0;
    margin-right: 10px;
  }

  .tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
  }

  .tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent #ccc;
  }
}

/* subtle orange text selection */
::selection {
  background: rgba(217, 119, 6, 0.16);
  color: var(--ink);
}

/* notification hover feel */
.notification-wrap:hover {
  border-color: rgba(217, 119, 6, 0.35);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.10);
}

/* footer links */
.footer-grid ul li a:hover,
.footer-links a:hover {
  color: var(--accent-2);
}

/* social icons */
.social-icons .social-icon:hover {
  color: var(--accent-2);
  transform: translateY(-2px);
}

/* tooltip accent */
.tooltip .tooltiptext {
  border-top: 5px solid var(--accent-2);
}