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

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  background: #f9f9f9;
  color: #333;
}

/* Navigation */
nav {
  background: #003c5a;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

nav ul li {
  margin: 0;
}

nav ul li a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 1rem 1.2rem;
  transition: background-color 0.3s ease;
  font-size: 0.95rem;
}

nav ul li a:hover,
nav ul li a.active {
  background-color: #003c5a;
}

/* Mobile Navigation */
.mobile-nav-toggle {
  display: none;
  background: #004c6d;
  color: white;
  border: none;
  padding: 1rem;
  font-size: 1.2rem;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

/* Header */
header {
  background: #004c6d;
  padding: 2rem;
  text-align: center;
}

header h1,
header .tagline,
header p {
  color: white;
}

header img {
  max-width: 150px;
}

header h1 {
  margin: 1rem 0 0.5rem;
}

header .tagline {
  font-size: 1.3rem;
  font-weight: bold;
  margin: 0.5rem 0;
}

header p {
  margin-bottom: 0.5rem;
}

/* Main Content */
main {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  min-height: 60vh;
}

section {
  margin-bottom: 2rem;
}

h1, h2 {
  color: #004c6d;
  margin-bottom: 1rem;
}

h2 {
  margin-top: 2rem;
}

p {
  margin-bottom: 1.5rem;
}

/* Buttons */
button, .btn {
  background-color: #004c6d;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

button:hover, .btn:hover {
  background-color: #003c5a;
}

.btn-outline {
  background: transparent;
  border: 2px solid #004c6d;
  color: #004c6d;
}

.btn-outline:hover {
  background: #004c6d;
  color: white;
}

/* Hero Section */
.hero-section {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-section h2 {
  color: #003c5a;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.hero-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.hero-section strong {
  color: #003c5a;
}

.highlight-box {
  background: #f0f7fa;
  border-left: 4px solid #004c6d;
  padding: 1.2rem;
  margin: 1.5rem 0;
  font-size: 1.15rem;
  color: #003c5a;
  font-weight: 500;
}

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

.card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

.card h3 {
  color: #004c6d;
  margin-bottom: 1rem;
}

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

/* Two Column Layout */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.two-column .column {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.two-column h3 {
  color: #004c6d;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.two-column ul {
  list-style: none;
  padding: 0;
}

.two-column ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.two-column ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #004c6d;
}

/* Featured Content */
.featured-content {
  margin: 3rem 0;
}

.featured-article {
  background: #f0f7fa;
  padding: 2rem;
  border-radius: 8px;
  border: 2px solid #004c6d;
}

.featured-article h3 {
  color: #003c5a;
  margin-bottom: 1rem;
}

.featured-article p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Portfolio/Project Cards */
.project-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

.project-card h3 {
  color: #004c6d;
  margin-bottom: 0.5rem;
}

.project-card .project-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.project-card ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.project-card li {
  margin-bottom: 0.3rem;
}

/* Certification badges */
.cert-badges {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.cert-badges img {
  max-width: 120px;
  height: auto;
}

/* Tags */
.tag {
  background: #e1ecf4;
  color: #004c6d;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  display: inline-block;
  margin: 2px;
}

/* Contact Form */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #004c6d;
  box-shadow: 0 0 0 2px rgba(0, 76, 109, 0.1);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
  animation: fadeIn 0.3s;
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 0;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: slideIn 0.3s;
}

.modal-header {
  padding: 2rem;
  background: #cfe0e8;
  border-radius: 8px 8px 0 0;
  position: relative;
}

.modal-header h2 {
  margin: 0;
  color: #004c6d;
}

.modal-body {
  padding: 2rem;
  line-height: 1.8;
}

.modal-body h3 {
  color: #004c6d;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.modal-body p {
  margin-bottom: 1rem;
}

.modal-body ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.modal-body li {
  margin-bottom: 0.5rem;
}

.close {
  color: #004c6d;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 20px;
}

.close:hover,
.close:focus {
  color: #003c5a;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  background: #e1ecf4;
  margin-top: 2rem;
}

footer a {
  color: #004c6d;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer img {
  max-width: 150px;
  margin-top: 1rem;
}

/* Calculator */
.calc-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 2rem;
}

.calc-progress {
  height: 6px;
  background: #e1ecf4;
  border-radius: 3px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.calc-progress-fill {
  height: 100%;
  background: #004c6d;
  border-radius: 3px;
  transition: width 0.4s ease;
  width: 20%;
}

.calc-step-indicator {
  text-align: right;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.calc-step {
  display: none;
}

.calc-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.calc-step h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.calc-step > p {
  color: #666;
  margin-bottom: 1.5rem;
}

.calc-back-link {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
  margin-bottom: 1rem;
  display: inline-block;
  font-family: 'Open Sans', sans-serif;
}

.calc-back-link:hover {
  color: #004c6d;
}

.calc-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.calc-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  background: #f9f9f9;
  border: 2px solid #e1ecf4;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  color: #333;
}

.calc-option:hover {
  border-color: #004c6d;
  background: #f0f7fa;
}

.calc-option.selected {
  border-color: #004c6d;
  background: #f0f7fa;
  box-shadow: inset 3px 0 0 #004c6d;
}

.calc-option strong {
  display: block;
  color: #004c6d;
  margin-bottom: 0.15rem;
}

.calc-option span {
  font-size: 0.85rem;
  color: #666;
}

.calc-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  gap: 1rem;
}

.calc-back {
  font-size: 0.9rem;
}

.calc-next {
  font-size: 0.9rem;
}

.calc-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.calc-results {
  display: none;
}

.calc-results.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.calc-results-header {
  text-align: center;
  margin-bottom: 2rem;
}

.calc-results-header h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.calc-industry {
  color: #666;
  font-size: 0.95rem;
}

.calc-hero-stat {
  text-align: center;
  padding: 2rem;
  background: #f0f7fa;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.calc-hero-number {
  font-size: 3rem;
  font-weight: 700;
  color: #004c6d;
  line-height: 1.2;
}

.calc-hero-label {
  font-size: 1rem;
  color: #666;
  margin-top: 0.5rem;
}

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

.calc-stat {
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: #f9f9f9;
  border-radius: 8px;
}

.calc-stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #004c6d;
}

.calc-stat-label {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.3rem;
}

.calc-breakdown {
  margin-bottom: 2rem;
}

.calc-breakdown h3 {
  color: #004c6d;
  margin-bottom: 1rem;
}

.calc-recommendation {
  padding: 1rem 1.25rem;
  background: #f9f9f9;
  border-left: 3px solid #004c6d;
  margin-bottom: 0.75rem;
  border-radius: 0 4px 4px 0;
}

.calc-recommendation strong {
  color: #004c6d;
  display: block;
  margin-bottom: 0.3rem;
}

.calc-recommendation p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
}

.calc-cta {
  text-align: center;
  padding: 2rem;
  background: #f0f7fa;
  border: 2px solid #004c6d;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.calc-cta h3 {
  color: #003c5a;
  margin-bottom: 0.75rem;
}

.calc-cta p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.calc-cta-btn {
  font-size: 1.1rem;
  padding: 14px 28px;
}

.calc-restart {
  margin-top: 1rem;
  font-size: 0.9rem;
  padding: 8px 20px;
}

.calc-disclaimer {
  font-size: 0.8rem;
  color: #999;
  text-align: center;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  nav ul.show {
    display: flex;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

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

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

  main {
    padding: 0 1rem;
  }

  .cert-badges img {
    max-width: 80px;
  }

  .calc-stats {
    grid-template-columns: 1fr;
  }

  .calc-hero-number {
    font-size: 2.2rem;
  }

  .calc-container {
    padding: 1.25rem;
  }
}
