:root {
  --primary: #2E8B57;
  --primary-dark: #1E6F4E;
  --secondary: #4682B4;
  --dark: #2F4F4F;
  --light: #F8F9FA;
  --gray: #6C757D;
  --light-gray: #E9ECEF;
  --spacing: 1.5rem;
  --border-radius: 8px;
  --box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  --transition: all 0.3s ease;
}

/* Base Styles */
body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  margin: 0;
  padding: 0;
  background-color: var(--light);
}

h1, h2, h3, h4, .logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

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

.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary);
}

/* Header Icons */
.header-icons i {
  margin: 0 0.3rem;
  opacity: 0.9;
}

/* Card Styles */
.card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 1.5rem;
}

/* Tag Styles */
.tag {
  display: inline-block;
  background: var(--light-gray);
  color: var(--dark);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

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

.tag-sec {
  background: #FF007F;
  color: white;
}


    /* Navigation */
    nav {
      background: white;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
      position: sticky;
      top: 0;
      z-index: 100;
    }
    
    .nav-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem 0;
    }
    
    .logo {
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--primary);
    }
    
    .nav-links {
      display: flex;
      gap: 2rem;
    }
    
    .nav-links a {
      color: var(--dark);
      font-weight: 600;
      padding: 0.5rem 0;
      position: relative;
    }
    
    .nav-links a:after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 0;
      height: 2px;
      background: var(--primary);
      transition: var(--transition);
    }
    
    .nav-links a:hover:after {
      width: 100%;
    }
    
    .menu-toggle {
      display: none;
      cursor: pointer;
      font-size: 1.5rem;
    }




/* Header */
header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 4rem 1rem;
  text-align: center;
}

.header-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.2);
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

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

.header-content {
  max-width: 600px;
  text-align: left;
}

header h1 {
  font-size: 2.2rem;
  margin: 0 0 1rem 0;
  letter-spacing: -0.5px;
}

header p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0 0 1.5rem 0;
  line-height: 1.6;
  font-weight: 300;
}

.header-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.header-icons a {
  color: white;
  font-size: 1.5rem;
  transition: transform 0.2s, opacity 0.2s;
  opacity: 0.8;
}

.header-icons a:hover {
  transform: translateY(-3px);
  opacity: 1;
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
  }
  
  .header-content {
    text-align: center;
  }
  
  header h1 {
    font-size: 2rem;
  }
  
  header p {
    font-size: 1rem;
  }
  
  .header-icons {
    justify-content: center;
  }
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Modern browsers solution (Chrome, Edge, Firefox, Safari) */
.grid:has(> .card:only-child),
.grid:has(> .card:last-child:nth-child(odd)) {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

/* Responsive odd card layout only for large screens */
@media (min-width: 1200px) {
  .grid:has(> .card:only-child) .card,
  .grid:has(> .card:last-child:nth-child(odd)) .card,
  .grid.odd-items .card,
  .grid.odd-items .card:only-child {
    width: 50%;
    max-width: 600px;
    margin-left: 0;
    margin-right: auto;
  }
}



/* Contact Section */
.contact-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: transparent;
  color: var(--primary);
  font-size: 1.5rem;
  border: 2px solid var(--primary);
  transition: var(--transition);
}

.contact-icons a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 4rem 1rem;
  text-align: center;
}

.footer-content p {
  margin: 0.5rem 0;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .menu-toggle {
    display: block;
  }
  
  header {
    padding: 3rem 1rem;
  }
  
  header h1 {
    font-size: 2.2rem;
  }
  
  .section {
    padding: 3rem 0;
  }

  
}


/* Job list */
.job-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.job-list li {
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
}

.dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 1rem;
  box-shadow: 0 0 0 2px #eee;
}

.job-info h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #111;
}

.job-info p {
  margin: 2px 0 0;
  color: #666;
  font-size: 0.9rem;
}

.job-info {
  flex-grow: 1;
}

.job-dates {
  font-size: 0.9rem;
  color: #999;
}
