/* 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: #004c6d;
  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;
}

/* Dropdown Menu */
nav ul li.dropdown {
  position: relative;
}

nav ul li.dropdown > a::after {
  content: ' ▾';
  font-size: 0.7em;
}

nav ul li.dropdown ul.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #004c6d;
  list-style: none;
  min-width: 200px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 1001;
  flex-direction: column;
}

nav ul li.dropdown:hover ul.dropdown-menu {
  display: flex;
}

nav ul li.dropdown ul.dropdown-menu li a {
  padding: 0.75rem 1.5rem;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

nav ul li.dropdown ul.dropdown-menu li:last-child a {
  border-bottom: none;
}

/* 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: #cfe0e8;
  padding: 2rem;
  text-align: center;
}

header img {
  border-radius: 50%;
  max-width: 150px;
}

header h1 {
  color: #004c6d;
  margin: 1rem 0 0.5rem;
}

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

/* 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;
}

/* Photo Gallery */
.photo-gallery {
  display: block;
  margin-top: 2rem;
}

.photo-gallery img {
  display: block;
  margin: 1rem auto;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Featured Blog Post */
.featured-blog-post {
  margin-bottom: 3rem;
}

.featured-blog-post h2 {
  text-align: center;
  color: #004c6d;
  margin-bottom: 1.5rem;
}

.featured-article-card {
  background: linear-gradient(135deg, #f0f7fa 0%, #ffffff 100%);
  border: 2px solid #004c6d;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.featured-article-card h3 {
  color: #003c5a;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

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

.featured-excerpt {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 1.5rem;
}

.featured-tags {
  margin-bottom: 1rem;
}

/* Blog Styles */
.blog-container {
  max-width: 900px;
  margin: 0 auto;
}

.blog-search {
  margin-bottom: 2rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.blog-search input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.blog-filters {
  margin: 1rem 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.blog-filters select {
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
}

.blog-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

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

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

.blog-post h3 {
  color: #004c6d;
  margin-bottom: 0.5rem;
}

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

.blog-excerpt {
  color: #555;
  margin-bottom: 1rem;
}

.blog-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.blog-tag {
  background: #e1ecf4;
  color: #004c6d;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.read-more {
  color: #004c6d;
  text-decoration: none;
  font-weight: 600;
}

.read-more:hover {
  text-decoration: underline;
}

/* Blog Post Full View */
.blog-post-full {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  max-width: 700px;
  margin: 0 auto;
}

.blog-post-full h1 {
  margin-bottom: 1rem;
}

.blog-content {
  line-height: 1.8;
  color: #333;
}

.blog-content h3 {
  color: #004c6d;
  margin: 2rem 0 1rem;
}

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

.blog-content li {
  margin-bottom: 0.5rem;
}

.back-to-blog {
  display: inline-block;
  margin-bottom: 2rem;
  color: #004c6d;
  text-decoration: none;
}

.back-to-blog:hover {
  text-decoration: underline;
}

/* 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 {
  border-radius: 50%;
  max-width: 150px;
  margin-top: 1rem;
}

/* 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;
}

/* Approach Section */
.approach-section {
  margin: 3rem 0;
}

.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;
}

/* Who I Work With Section */
.who-i-work-with h2 {
  text-align: center;
  margin-bottom: 2rem;
}

/* 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;
}

/* Cards for homepage */
.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;
}

/* 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;
  }
}

/* Comments Section */
.comments-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #e1ecf4;
}

.comments-section h3 {
  color: #004c6d;
  margin-bottom: 1.5rem;
}

.comment-form {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.comment-form h4 {
  color: #004c6d;
  margin-bottom: 1rem;
}

.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: 100px;
  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);
}

.comment-submit-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;
}

.comment-submit-btn:hover:not(:disabled) {
  background-color: #003c5a;
}

.comment-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-message {
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.comments-list {
  margin-top: 2rem;
}

.comment {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e1ecf4;
}

.comment-author {
  font-weight: 600;
  color: #004c6d;
}

.comment-date {
  color: #666;
  font-size: 0.9rem;
}

.comment-body {
  color: #333;
  line-height: 1.6;
}

.no-comments {
  text-align: center;
  padding: 2rem;
  color: #666;
  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);
  }

  nav ul li.dropdown ul.dropdown-menu {
    position: static;
    box-shadow: none;
    min-width: 0;
    display: none;
  }

  nav ul li.dropdown.open ul.dropdown-menu {
    display: flex;
  }

  nav ul li.dropdown ul.dropdown-menu li a {
    padding-left: 2.5rem;
    font-size: 0.95rem;
  }

  .cards-container {
    grid-template-columns: 1fr;
  }
  
  .two-column {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  main {
    padding: 0 1rem;
  }
  
  .blog-filters {
    flex-direction: column;
  }
  
  .blog-filters select {
    width: 100%;
  }
}