/* =============================================================================
   EVLURE - Institutional Knowledge Portal
   CSS Stylesheet
   ============================================================================= */

:root {
  --color-slate: #778899;
  --color-steel: #4682B4;
  --color-teal: #5F9EA0;
  --color-khaki: #EEE8AA;
  --color-white: #FFFFFF;
  --color-dark: #2C3E50;
  --color-light-gray: #F8F9FA;
  --color-border: #E0E0E0;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--color-dark);
  background-color: var(--color-white);
  line-height: 1.6;
  letter-spacing: 0.3px;
}

/* Typography */

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

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

h3 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-teal);
  letter-spacing: -0.2px;
}

h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-slate);
}

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

a {
  color: var(--color-steel);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-teal);
  text-decoration: underline;
}

/* Container & Layout */

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

.section {
  padding: 4rem 0;
  position: relative;
}

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

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

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.15rem;
  color: var(--color-slate);
  max-width: 600px;
  margin: 0 auto;
}

/* Header & Navigation */

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

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

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-steel);
  letter-spacing: 1px;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  color: var(--color-dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--color-teal);
  text-decoration: none;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-steel);
}

/* Hero Section */

.hero {
  padding: 6rem 0;
  background-color: var(--color-white);
  position: relative;
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  color: var(--color-dark);
  margin-bottom: 2rem;
}

.hero p {
  font-size: 1.2rem;
  color: var(--color-slate);
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  background-color: var(--color-steel);
  color: var(--color-white);
  padding: 1rem 2.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.cta-button:hover {
  background-color: var(--color-teal);
  text-decoration: none;
}

/* Cards Grid */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 2rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

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

.card h3 {
  margin-bottom: 1rem;
}

.card p {
  margin-bottom: 1rem;
}

/* Blog Grid */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.blog-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: 0 8px 20px rgba(70, 130, 180, 0.2);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  background-color: var(--color-khaki);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-slate);
  font-size: 3rem;
  object-fit: cover;
}

.blog-card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  font-size: 0.9rem;
  color: var(--color-slate);
  margin-bottom: 0.75rem;
}

.blog-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--color-steel);
}

.blog-card p {
  font-size: 1rem;
  color: var(--color-dark);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.blog-card a {
  color: var(--color-teal);
  font-weight: 600;
  margin-top: auto;
}

/* Footer */

footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--color-khaki);
  margin-bottom: 1rem;
}

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

.footer-section a:hover {
  color: var(--color-khaki);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(238, 232, 170, 0.2);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #999;
}

/* Forms */

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

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

input,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-dark);
  transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-steel);
}

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

/* Responsive */

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

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  p {
    font-size: 1rem;
  }

  nav ul {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .mobile-menu-toggle {
    display: block;
  }

  nav {
    display: none;
  }

  nav.active {
    display: flex;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
  }

  nav.active ul {
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
  }

  .hero {
    padding: 3rem 0;
  }

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

  .section {
    padding: 2.5rem 0;
  }

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

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

  .footer-content {
    grid-template-columns: 1fr;
  }
}

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

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  nav ul {
    gap: 0.75rem;
  }

  .cta-button {
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
  }

  .section-title {
    margin-bottom: 2rem;
  }
}
