/* styles.css */
:root {
  --primary: #003366;
  --primary-dark: #00264d;
  --primary-light: #004080;
  --secondary: #0077b6;
  --accent: #00a8e8;
  --text: #333333;
  --text-light: #666666;
  --background: #f8f9fa;
  --card-bg: #ffffff;
  --border: #dee2e6;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #17a2b8;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--background);
}

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

/* Header Styles */
.site-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.brand img {
  height: 40px;
}

.nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  padding: 5px 10px;
  border-radius: 4px;
}

.nav a:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
}

.nav .btn {
  background-color: var(--secondary);
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
}

.nav .btn:hover {
  background-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.8)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="%230077b6" width="50" height="50"/><rect fill="%230077b6" x="50" y="50" width="50" height="50"/></svg>');
  background-size: cover;
  color: white;
  padding: 80px 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

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

.btn-primary:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

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

/* Features Section */
.features {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary);
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.card {
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 25px;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  border-top: 4px solid var(--secondary);
}

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

.card h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.card p {
  color: var(--text-light);
}

/* Page Head */
.page-head {
  padding: 60px 0 30px;
  text-align: center;
}

.page-head h1 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.page-head h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
}

.page-head p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto;
}

/* Blog Preview */
.blog-preview {
  padding: 60px 0;
  background-color: #f1f7fd;
}

.post {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.post h3 {
  color: var(--primary);
  margin-bottom: 10px;
  transition: color 0.3s;
}

.post:hover h3 {
  color: var(--secondary);
}

.post p {
  color: var(--text-light);
  margin-bottom: 15px;
}

.more {
  color: var(--secondary);
  font-weight: 600;
}

/* Form Styles */
.form-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 25px;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  border-top: 4px solid var(--secondary);
}

.form-card label {
  display: block;
  margin-bottom: 15px;
  font-weight: 500;
}

.form-card input,
.form-card textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  margin-top: 5px;
  transition: border-color 0.3s;
}

.form-card input:focus,
.form-card textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

/* Post Body (Blog Articles) */
.post-body {
  padding: 60px 0;
}

.post-body h1 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.post-body h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
}

ol, ul {
  margin: 20px 0;
  padding-left: 20px;
}

ol li, ul li {
  margin-bottom: 15px;
  line-height: 1.6;
}

ol strong, ul strong {
  color: var(--primary);
}

p {
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Headings */
h2 {
  color: var(--primary);
  margin: 25px 0 15px;
  position: relative;
  padding-bottom: 10px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: var(--secondary);
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 50px 0 20px;
  margin-top: 60px;
}

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

.brand-footer {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.site-footer h4 {
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.site-footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary);
}

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

.site-footer ul li {
  margin-bottom: 10px;
}

.site-footer ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.site-footer ul li a:hover {
  color: white;
}

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

/* Highlight Section */
.highlight {
  padding: 60px 0;
}

.highlight .img-slab {
  min-height: 220px;
  border-radius: 16px;
  border: 1px dashed var(--border);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(16, 185, 129, 0.1));
}

/* Responsive Design */
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary-dark);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }
  
  .nav.open {
    display: flex;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .cta {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
  
  .page-head h1 {
    font-size: 2rem;
  }
  
  .post-body h1 {
    font-size: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .page-head h1 {
    font-size: 1.8rem;
  }
  
  .post-body h1 {
    font-size: 1.8rem;
  }
  
  .brand {
    font-size: 1.2rem;
  }
  
  .brand img {
    height: 32px;
  }
}