/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: var(--glass-border);
  box-shadow: var(--shadow-sm);
  padding: 16px 0;
  transition: var(--transition);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-teal);
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--primary-red);
}

.logo-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-red);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-red);
}

/* Mobile Nav */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--primary-teal);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 16px;
}

.btn-primary {
  background-color: var(--primary-red);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(204, 0, 0, 0.39);
}

.btn-primary:hover {
  background-color: #a80000;
  transform: translateY(-2px);
  color: white;
}

.btn-secondary {
  background-color: var(--primary-teal);
  color: white;
}

.btn-secondary:hover {
  background-color: #0b455c;
  transform: translateY(-2px);
  color: white;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-teal);
  color: var(--primary-teal);
}

.btn-outline:hover {
  background-color: var(--primary-teal);
  color: white;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 120px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 91, 122, 0.05) 0%, rgba(255,255,255,0) 70%);
}

.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 10;
}

.hero h1 {
  font-size: 56px;
  margin-bottom: 24px;
}

.hero h1 span {
  color: var(--primary-red);
}

.hero p {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* Cards */
.card {
  background: var(--surface-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

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

.card-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(14, 91, 122, 0.1);
  color: var(--primary-teal);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
}

.card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Journal Entry Style */
.journal-card {
  display: flex;
  background: var(--surface-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
}

.journal-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.journal-cover {
  width: 200px;
  background-color: var(--primary-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-heading);
  font-size: 24px;
  text-align: center;
  padding: 20px;
  position: relative;
}

.journal-cover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.2) 100%);
}

.journal-info {
  padding: 32px;
  flex: 1;
}

.journal-meta {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.journal-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.journal-info h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--primary-teal);
}

.journal-info p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
}

/* Footer */
.footer {
  background-color: #0b1114;
  color: white;
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

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

.footer-brand .logo-text {
  color: white;
}

.footer p {
  color: #94a3b8;
  margin-bottom: 24px;
}

.footer h4 {
  color: white;
  font-size: 18px;
  margin-bottom: 24px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: var(--accent-orange);
  padding-left: 5px;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #94a3b8;
  font-size: 14px;
}

/* Responsive Components */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-color);
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow-md);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .hero {
    padding: 80px 0;
  }
  
  .hero h1 {
    font-size: 40px;
  }
  
  .journal-card {
    flex-direction: column;
  }
  
  .journal-cover {
    width: 100%;
    height: 200px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Home Page Slider */
.slider-container {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
}

.slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
}

.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 17, 20, 0.8) 0%, rgba(11, 17, 20, 0.3) 100%);
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  z-index: 10;
  color: white;
  max-width: 600px;
}

.slide-content h1 {
  font-size: 56px;
  color: white;
  margin-bottom: 24px;
}

.slide-content p {
  font-size: 20px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 40px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 20;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.slider-btn:hover {
  background: var(--primary-red);
}

.slider-btn.prev { left: 24px; }
.slider-btn.next { right: 24px; }

.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 20;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: transparent;
  border-color: white;
}

/* Portal Layout */
.portal-layout {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 24px;
  align-items: start;
}

/* Sidebar Widgets */
.portal-sidebar .widget {
  background: white;
  border: 1px solid var(--border-light);
  margin-bottom: 24px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.portal-sidebar .widget-title {
  font-size: 16px;
  font-weight: 600;
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

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

.portal-sidebar .widget-list li {
  border-bottom: 1px solid var(--border-light);
}

.portal-sidebar .widget-list li:last-child {
  border-bottom: none;
}

.portal-sidebar .widget-list a {
  display: block;
  padding: 12px 16px;
  color: var(--primary-teal);
  font-size: 14px;
  transition: background 0.2s;
}

.portal-sidebar .widget-list a:hover {
  background: #f1f5f9;
  text-decoration: underline;
}

.article-list .meta {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 4px;
}

/* Portal Main Content */
.portal-main {
  background: white;
  padding: 0;
  font-size: 15px;
  line-height: 1.6;
}

.portal-main > p {
  margin-bottom: 16px;
}

.portal-main-flex {
  display: flex;
  gap: 24px;
  margin-top: 24px;
}

.portal-main-flex .text-content {
  flex: 1;
}

.portal-main-flex .text-content h3 {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-main);
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.portal-main-flex .text-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.portal-main-flex .text-content li {
  margin-bottom: 8px;
}

.portal-main-flex .map-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-main-flex .map-image img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 992px) {
  .portal-layout {
    grid-template-columns: 1fr;
  }
  .portal-main-flex {
    flex-direction: column;
  }
}

/* Journal List View (for journals.html portal) */
.journal-list-item {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--border-light);
}

.journal-list-item:last-child {
  border-bottom: 1px solid var(--border-light);
}

.journal-list-cover {
  width: 120px;
  height: 160px;
  flex-shrink: 0;
  background-color: var(--primary-teal);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.journal-list-info {
  flex: 1;
}

.journal-list-info h3 {
  font-size: 20px;
  color: #1e73be;
  margin-bottom: 12px;
  font-weight: 400;
}

.journal-list-info p {
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 16px;
  line-height: 1.6;
}

.journal-list-actions {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.journal-list-actions a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.journal-list-actions a:hover {
  color: var(--primary-teal);
}
