/* Tregon - Institutional Knowledge Portal */
/* ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Primary Colors */
  --primary-dark: #2c3e50;
  --primary-light: #f9f9f9;
  
  /* Accent Colors */
  --accent-terra: #e74c3c;
  --accent-blue: #3498db;
  --accent-amber: #f39c12;
  
  /* Neutral Colors */
  --text-dark: #4a4a4a;
  --border-light: #cccccc;
  --bg-white: #ffffff;
  
  /* Typography */
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Merriweather Sans', Georgia, serif;
  
  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 48px;
  --spacing-xl: 80px;
  
  /* Container */
  --max-width: 1440px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--primary-light);
  line-height: 1.6;
  font-size: 16px;
}

/* Typography */
h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1.2;
  color: var(--primary-dark);
  margin-bottom: var(--spacing-lg);
  font-weight: 700;
  letter-spacing: -1px;
}

h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  line-height: 1.3;
  color: var(--primary-dark);
  margin: var(--spacing-lg) 0 var(--spacing-md) 0;
  font-weight: 700;
}

h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--primary-dark);
  margin: var(--spacing-md) 0 var(--spacing-sm) 0;
  font-weight: 600;
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-dark);
  line-height: 1.7;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
}

a:hover {
  color: var(--accent-terra);
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Header */
header {
  background-color: var(--primary-dark);
  color: var(--primary-light);
  padding: var(--spacing-md) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 2px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: var(--spacing-lg);
}

nav a {
  color: var(--primary-light);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

nav a:hover,
nav a.active {
  color: var(--accent-amber);
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-amber);
}

/* Footer */
footer {
  background-color: var(--primary-dark);
  color: var(--primary-light);
  padding: var(--spacing-xl) 0 var(--spacing-lg) 0;
  margin-top: var(--spacing-xl);
}

footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
  color: var(--primary-light);
  margin-bottom: var(--spacing-md);
  font-size: 1.1rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-sm);
  line-height: 1.8;
}

.footer-section a {
  color: var(--accent-blue);
}

.footer-section a:hover {
  color: var(--accent-amber);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-lg);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* Sections */
section {
  padding: var(--spacing-xl) 0;
  border-bottom: 1px solid var(--border-light);
}

section:last-of-type {
  border-bottom: none;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, rgba(44, 62, 80, 0.9) 100%);
  color: var(--primary-light);
  padding: var(--spacing-xl) 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: -10%;
  width: 600px;
  height: 600px;
  background: rgba(52, 152, 219, 0.1);
  border-radius: 50%;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.hero-text h1 {
  color: var(--primary-light);
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.hero-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: var(--spacing-lg);
}

.hero-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  height: 400px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section with Image and Text */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
  margin-bottom: var(--spacing-xl);
}

.content-grid.reverse {
  direction: rtl;
}

.content-grid.reverse > * {
  direction: ltr;
}

.content-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
  height: 400px;
}

.content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.content-image:hover img {
  transform: scale(1.03);
}

.content-text h2 {
  margin-top: 0;
}

.content-text p {
  margin-bottom: var(--spacing-md);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: var(--spacing-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--accent-blue);
  border-radius: 8px 0 0 8px;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.card h3 {
  margin-top: 0;
  color: var(--primary-dark);
}

.card p {
  margin-bottom: 0;
}

/* Accent Section */
.accent-section {
  background: linear-gradient(135deg, var(--accent-blue) 0%, rgba(52, 152, 219, 0.9) 100%);
  color: var(--primary-light);
  padding: var(--spacing-xl) 0;
  margin: var(--spacing-xl) 0;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 15px 50px rgba(52, 152, 219, 0.25);
}

.accent-section h2 {
  color: var(--primary-light);
  margin-bottom: var(--spacing-lg);
}

.accent-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Warning/Disclaimer Block */
.disclaimer-block {
  background: rgba(244, 208, 63, 0.1);
  border: 2px solid var(--accent-amber);
  border-radius: 8px;
  padding: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

.disclaimer-block h3 {
  color: var(--primary-dark);
  margin-top: 0;
}

.disclaimer-block p {
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
}

/* List Styles */
ul, ol {
  margin: var(--spacing-md) 0;
  padding-left: var(--spacing-lg);
}

ul li, ol li {
  margin-bottom: var(--spacing-sm);
  line-height: 1.7;
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--spacing-lg) 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

table th {
  background-color: var(--primary-dark);
  color: var(--primary-light);
  padding: var(--spacing-md);
  text-align: left;
  font-weight: 600;
}

table td {
  border-bottom: 1px solid var(--border-light);
  padding: var(--spacing-md);
}

table tr:hover {
  background-color: rgba(52, 152, 219, 0.05);
}

/* Blockquote */
blockquote {
  border-left: 4px solid var(--accent-terra);
  padding-left: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
  color: var(--text-dark);
  font-size: 1.1rem;
  font-style: italic;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--accent-blue);
  color: var(--primary-light);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: 2px solid var(--accent-blue);
  cursor: pointer;
  font-size: 0.95rem;
}

.btn:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-blue);
  border: 2px solid var(--accent-blue);
}

.btn-secondary:hover {
  background-color: var(--accent-blue);
  color: var(--primary-light);
}

/* Forms */
.form-group {
  margin-bottom: var(--spacing-lg);
}

label {
  display: block;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-dark);
  font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: var(--spacing-sm);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

/* Blog Cards */
.blog-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.blog-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

.blog-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: var(--primary-light);
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: var(--spacing-lg);
}

.blog-date {
  color: var(--accent-blue);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.blog-card h3 {
  margin-top: 0;
  margin-bottom: var(--spacing-sm);
}

.blog-excerpt {
  color: var(--text-dark);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

.read-more {
  color: var(--accent-blue);
  font-weight: 600;
  transition: color 0.3s ease;
}

.blog-card:hover .read-more {
  color: var(--accent-terra);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  color: var(--text-dark);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--accent-blue);
}

/* Page Title */
.page-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.page-title h1 {
  margin-bottom: var(--spacing-md);
}

.page-title p {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }

  nav ul {
    gap: var(--spacing-md);
  }

  nav a {
    font-size: 0.85rem;
  }

  .hero-content,
  .content-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .hero-image,
  .content-image {
    height: 300px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  section {
    padding: var(--spacing-lg) 0;
  }

  table {
    font-size: 0.9rem;
  }

  table th,
  table td {
    padding: var(--spacing-sm);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  nav ul {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .hero-text h1 {
    font-size: 1.75rem;
  }

  section {
    padding: var(--spacing-lg) 0;
  }
}
