/* ===========================
   GLOBAL STYLES & TYPOGRAPHY
   =========================== */

:root {
  --primary-bg: #F8F8F8;
  --secondary-bg: #E0E0E0;
  --dark-text: #333333;
  --gray-text: #666666;
  --accent-blue: #2196F3;
  --accent-green: #4CAF50;
  --accent-yellow: #FFC107;
  --white: #FFFFFF;
  --base-unit: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Merriweather', serif;
  background-color: var(--primary-bg);
  color: var(--dark-text);
  line-height: 1.6;
  font-size: 16px;
}

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

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Merriweather:wght@400;700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--dark-text);
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--accent-blue);
  letter-spacing: -0.5px;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--accent-blue);
}

h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark-text);
}

h4 {
  font-size: 1.4rem;
  font-weight: 600;
}

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

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

a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ===========================
   LAYOUT & CONTAINER
   =========================== */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 3rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
}

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

header {
  background-color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-blue);
  letter-spacing: 1px;
  text-transform: uppercase;
}

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

nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-text);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

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

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

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  nav ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  nav a {
    font-size: 0.85rem;
  }
}

/* ===========================
   PANELS & SECTIONS
   =========================== */

section {
  padding: 6rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

section:last-child {
  border-bottom: none;
}

.panel {
  background-color: var(--white);
  padding: 3.5rem;
  margin-bottom: 3rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.panel:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.panel-bg {
  background-color: var(--secondary-bg);
}

.panel-accent {
  border-left: 4px solid var(--accent-blue);
  padding-left: 2.5rem;
}

/* ===========================
   GRID & TWO-COLUMN LAYOUT
   =========================== */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

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

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

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

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.img-container {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

/* ===========================
   BUTTONS & CTA
   =========================== */

.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background-color: var(--accent-blue);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--accent-blue);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn:hover {
  background-color: transparent;
  color: var(--accent-blue);
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--accent-green);
  border-color: var(--accent-green);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: transparent;
  color: var(--accent-green);
}

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

.btn-outline:hover {
  background-color: var(--accent-blue);
  color: var(--white);
}

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

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

li {
  margin-bottom: 0.8rem;
  line-height: 1.8;
}

.list-unstyled {
  list-style: none;
  margin-left: 0;
}

.list-unstyled li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 1rem;
}

.list-unstyled li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-size: 0.8rem;
}

/* ===========================
   CARDS
   =========================== */

.card {
  background-color: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s ease;
}

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

.card h3 {
  margin-top: 0;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  height: 3rem;
}

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

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

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

footer a:hover {
  opacity: 0.8;
}

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

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

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

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

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

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.05) 0%, rgba(76, 175, 80, 0.05) 100%);
  padding: 6rem 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

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

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--gray-text);
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: fit-content;
  }
}

/* ===========================
   HIGHLIGHTS & ACCENTS
   =========================== */

.highlight {
  background-color: rgba(33, 150, 243, 0.1);
  padding: 2rem;
  border-left: 4px solid var(--accent-blue);
  margin: 2rem 0;
  border-radius: 4px;
}

.highlight-green {
  background-color: rgba(76, 175, 80, 0.1);
  border-left-color: var(--accent-green);
}

.highlight-yellow {
  background-color: rgba(255, 193, 7, 0.1);
  border-left-color: var(--accent-yellow);
}

/* ===========================
   TABLES
   =========================== */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background-color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

th {
  background-color: var(--accent-blue);
  color: var(--white);
  padding: 1rem;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

td {
  padding: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

tr:hover {
  background-color: rgba(33, 150, 243, 0.05);
}

/* ===========================
   BREADCRUMB
   =========================== */

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

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

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

.breadcrumb-separator {
  color: var(--gray-text);
}

/* ===========================
   UTILITIES
   =========================== */

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

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

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

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

.text-muted {
  color: var(--gray-text);
}

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

/* ===========================
   RESPONSIVE ADJUSTMENTS
   =========================== */

@media (max-width: 768px) {
  .panel {
    padding: 2rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
}
