/* ===========================
   HYJENDA - Institutional Knowledge Portal
   Color System:
   Primary: #1A2E35
   Secondary/Accent: #F9A825
   Accent 3: #8BC34A
   Neutral: #E0E0E0, #F5F5F5
   White: #FFFFFF
   =========================== */

:root {
  --primary: #1A2E35;
  --secondary: #F9A825;
  --accent: #8BC34A;
  --neutral-light: #F5F5F5;
  --neutral-gray: #E0E0E0;
  --text-primary: #1A2E35;
  --text-light: #555555;
  --white: #FFFFFF;
  --shadow-soft: 0 2px 8px rgba(26, 46, 53, 0.08);
  --shadow-medium: 0 4px 16px rgba(26, 46, 53, 0.12);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  background-color: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

/* ===========================
   TYPOGRAPHY
   =========================== */

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.25rem;
  letter-spacing: -0.3px;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

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

a:hover {
  color: #E59315;
  text-decoration: underline;
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */

header {
  background-color: var(--white);
  border-bottom: 1px solid var(--neutral-gray);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-soft);
}

.header-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 2px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

nav a {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 0.25rem;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: width 0.3s ease;
}

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

nav a.active {
  color: var(--secondary);
}

/* ===========================
   FOOTER
   =========================== */

footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 4rem 2rem 2rem;
  margin-top: 6rem;
}

.footer-content {
  max-width: 1440px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.footer-section p,
.footer-section a {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #CCCCCC;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #999999;
}

/* ===========================
   MAIN CONTAINER & SECTIONS
   =========================== */

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
}

.section-hero {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, #2A3E47 100%);
  color: var(--white);
}

.section-hero h1 {
  color: var(--white);
  font-size: 3.8rem;
}

.section-hero p {
  color: #D0D0D0;
  font-size: 1.3rem;
  max-width: 800px;
}

.section-dark {
  background-color: var(--primary);
  color: var(--white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-light {
  background-color: var(--neutral-light);
}

.section-accent {
  background-color: rgba(249, 168, 37, 0.08);
}

/* ===========================
   GRID LAYOUTS
   =========================== */

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3rem;
}

.col-6 {
  grid-column: span 6;
}

.col-4 {
  grid-column: span 4;
}

.col-3 {
  grid-column: span 3;
}

.col-full {
  grid-column: span 12;
}

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Three-column card layout */
.three-col-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

/* ===========================
   CARDS & CONTENT BLOCKS
   =========================== */

.card {
  background-color: var(--neutral-light);
  border: 1px solid var(--neutral-gray);
  padding: 2.5rem;
  border-radius: 4px;
  transition: var(--shadow-soft);
}

.card:hover {
  box-shadow: var(--shadow-medium);
  background-color: var(--white);
}

.card h3 {
  color: var(--primary);
  margin-top: 1rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(249, 168, 37, 0.15);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* ===========================
   IMAGES
   =========================== */

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

.img-responsive {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.img-featured {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow-medium);
  margin-bottom: 1.5rem;
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border: 1px solid var(--primary);
  background-color: var(--primary);
  color: var(--white);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
}

.btn:hover {
  background-color: #2A3E47;
  box-shadow: var(--shadow-soft);
  color: var(--secondary);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

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

.btn-text {
  background-color: transparent;
  color: var(--secondary);
  border: none;
  padding: 0;
  font-weight: 600;
  font-size: 1rem;
}

.btn-text:hover {
  color: #E59315;
}

/* ===========================
   BREADCRUMBS
   =========================== */

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

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

.breadcrumb span {
  color: var(--neutral-gray);
  margin: 0 0.25rem;
}

/* ===========================
   FORMS
   =========================== */

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary);
}

input,
textarea {
  width: 100%;
  padding: 0.875rem;
  border: 1px solid var(--neutral-gray);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(249, 168, 37, 0.1);
}

/* ===========================
   DISCLAIMERS & BLOCKQUOTES
   =========================== */

.disclaimer {
  background-color: var(--neutral-light);
  border-left: 4px solid var(--secondary);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
  font-size: 0.95rem;
  color: var(--text-light);
}

blockquote {
  border-left: 4px solid var(--secondary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* ===========================
   LISTS
   =========================== */

ul, ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

li {
  margin-bottom: 0.75rem;
  color: var(--text-light);
}

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

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

  .col-6 {
    grid-column: span 6;
  }

  .col-4 {
    grid-column: span 3;
  }

  .col-3 {
    grid-column: span 2;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .three-col-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  nav ul {
    gap: 1.5rem;
  }

  nav a {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  section {
    padding: 3rem 0;
  }

  .grid-12 {
    grid-template-columns: 1fr;
  }

  .col-6,
  .col-4,
  .col-3 {
    grid-column: span 1;
  }

  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    text-align: center;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .section-hero {
    padding: 3rem 0;
  }

  .section-hero h1 {
    font-size: 2rem;
  }

  .three-col-cards {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .img-featured {
    height: 250px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  p {
    font-size: 1rem;
  }

  .section-hero h1 {
    font-size: 1.5rem;
  }

  .section-hero p {
    font-size: 1rem;
  }

  nav a {
    font-size: 0.85rem;
  }

  nav ul {
    gap: 0.75rem;
  }
}
