/* ==============================================
   LOMINA - INSTITUTIONAL KNOWLEDGE PORTAL
   Color Palette: #2C3E50, #F39C12, #27AE60, #BDC3C7, #F8F8F8
   ============================================== */

/* Root Variables */
:root {
  --primary-color: #2C3E50;
  --accent-amber: #F39C12;
  --accent-green: #27AE60;
  --neutral-grey: #BDC3C7;
  --neutral-light: #F8F8F8;
  --text-dark: #2C3E50;
  --text-light: #7F8C8D;
  --border-color: #ECF0F1;
  --shadow-soft: 0 2px 8px rgba(44, 62, 80, 0.1);
  --shadow-medium: 0 4px 16px rgba(44, 62, 80, 0.15);
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background-color: #FFFFFF;
  line-height: 1.6;
  letter-spacing: 0.3px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -1px;
  margin-bottom: 2rem;
  text-align: center;
}

h2 {
  font-size: 2.5rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.8rem;
  margin-top: 2rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.8;
}

a {
  color: var(--accent-amber);
  text-decoration: none;
  transition: var(--transition-smooth);
  border-bottom: 2px solid transparent;
}

a:hover {
  color: var(--accent-green);
  border-bottom-color: var(--accent-green);
}

/* Container & Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Navigation */
header {
  background-color: var(--primary-color);
  color: white;
  padding: 1.5rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-soft);
}

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

.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-amber);
  letter-spacing: 2px;
}

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

nav a {
  color: white;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: var(--transition-smooth);
}

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

/* Main Content */
main {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, rgba(44, 62, 80, 0.9) 100%);
  color: white;
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: -100px;
  width: 400px;
  height: 400px;
  background: rgba(243, 156, 18, 0.05);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  color: white;
  margin-bottom: 1.5rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Sections */
section {
  padding: 5rem 2rem;
  border-top: 1px solid var(--border-color);
}

section:nth-child(even) {
  background-color: var(--neutral-light);
}

.section-content {
  max-width: 1200px;
  margin: 0 auto;
}

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

.two-column.reverse {
  direction: rtl;
}

.two-column.reverse > * {
  direction: ltr;
}

.column-text {
  line-height: 1.9;
}

.column-image {
  position: relative;
}

.column-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: var(--shadow-medium);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  text-align: center;
}

.card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-4px);
  border-color: var(--neutral-grey);
}

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

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--accent-amber);
}

/* Buttons */
button,
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background-color: var(--accent-amber);
  color: white;
  border: none;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  letter-spacing: 0.5px;
}

button:hover,
.btn:hover {
  background-color: var(--accent-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

button:active,
.btn:active {
  transform: translateY(0);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem 2rem;
  margin-top: 4rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

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

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  border-bottom-color: transparent;
}

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

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

/* List Styles */
ul, ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

ul li, ol li {
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

strong {
  color: var(--accent-amber);
  font-weight: 600;
}

/* Code & Blockquote */
blockquote {
  border-left: 4px solid var(--accent-amber);
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: var(--text-light);
  font-style: italic;
}

/* Form Elements */
input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  margin-bottom: 1rem;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-amber);
  box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
}

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

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

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  nav ul {
    gap: 1.5rem;
  }

  nav a {
    font-size: 0.85rem;
  }

  .two-column {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .two-column.reverse {
    direction: ltr;
  }

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

  section {
    padding: 3rem 1.5rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-balance {
  text-wrap: balance;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.pd-1 { padding: 0.5rem; }
.pd-2 { padding: 1rem; }
.pd-3 { padding: 1.5rem; }
.pd-4 { padding: 2rem; }

.color-accent { color: var(--accent-amber); }
.color-green { color: var(--accent-green); }
.color-grey { color: var(--text-light); }

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Print Styles */
@media print {
  header, footer {
    background-color: transparent;
    color: black;
  }
  
  a {
    color: black;
  }
}
