/* ===== Root Variables ===== */
:root {
  --brand: #3b82f6;
  --brand-dark: #1e40af;
  --brand-light: #faf3f3;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --bg-light: #f9fafb;
  --bg-lighter: #fbfbfc;
  --border-color: #e5e7eb;
  --white: #ffffff;
}

/* ===== Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
/* The new, optimized font stack */
  font-family: 
    /* 1. Apple System Fonts */
    -apple-system, 
    BlinkMacSystemFont, 
    /* 2. Windows System Font */
    "Segoe UI", 
    /* 3. Android System Font */
    Roboto, 
    /* 4. **THE GUARANTEED WEB FONT** */
    "Open Sans", 
    /* 5. Generic Fallbacks */
    "Helvetica Neue", 
    Arial, 
    sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background: var(--white);
}

/* ===== Contact Mini Header ===== */
.contact-mini-header {
  background: var(--brand-light);
  padding: 0.75rem 2rem;
  border-bottom: 1.5px solid var(--border-color);
}

.contact-mini-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.contact-icons {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.contact-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  text-decoration: none;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.contact-icon:hover {
  opacity: 1;
  color: var(--white);
  transform: translateY(-3px);
}

.contact-icon svg {
  width: 100%;
  height: 100%;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 2rem;
}

.header-container {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.logo-campname-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.logo-image {
  width: 90px;
  height: 100%;
  object-fit: contain;
  flex-shrink: 0;
}

.company-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 1.5rem;
}

.company-name {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.3px;
  line-height: 1.2;
  margin: 0;
}

.company-extension {
  font-size: 1rem;
  color: var(--text-secondary);
  padding: 0.4rem 0.1rem;
  margin: 0;
  align-self: flex-end;
  line-height: 1.2;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 400;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--brand);
}

/* Added hamburger menu styles for mobile navigation */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 4px;
  padding: 0;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
  background-color: var(--brand);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  height: 500px;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url("../images/heroalt4.png")
    center / cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Button ===== */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--brand);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* ===== Consultancy Services Section ===== */
.consultancy-section {
  width: 100%;
  padding: 4rem 2rem;
  background: var(--white);
}

.consultancy-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

/* Fixed negative margin that was hiding the subtitle */
.consultancy-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-size: 1rem;
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-6px);
  border-color: var(--brand);
}

/* added service-card-header for top-left icon positioning */
.service-card-header {
  margin-bottom: 1.5rem;
  height: 70px;
  display: flex;
  align-items: flex-start;
}

/* Updated icon styling with proper sizing and positioning */
.service-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s ease;
  flex-shrink: 0;
  background: rgba(59, 130, 246, 0.15);
  color: var(--brand);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

/* Removed individual colored icon classes (service-icon-blue, yellow, cyan, pink) */
/* All icons now use consistent brand color styling */

.service-card:hover .service-icon {
  transform: scale(1.15);
}

.service-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.service-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
}

/* ===== Training Services Section ===== */
.training-section {
  width: 100%;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f0f4ff 0%, #e0e9ff 50%, #f0f4ff 100%);
  position: relative;
}

.training-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.training-content {
  text-align: center;
}

.training-content .section-title {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.training-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* Changed to 2-column responsive grid layout with cleaner card styling */
.training-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.training-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.training-card:hover {
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.12);
  transform: translateY(-3px);
  border-color: var(--brand);
}

.training-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.training-card-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ===== Blog Section ===== */
.blog-section {
  width: 100%;
  padding: 4rem 2rem;
  background: var(--white);
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-title {
  color: var(--brand);
}

.blog-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.blog-card {
  padding: 2rem;
  background: var(--bg-light);
  border-radius: 8px;
  transition: all 0.3s ease;
  text-align: center;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.blog-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.blog-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.blog-meta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.blog-date {
  color: var(--text-secondary);
}

.blog-category {
  color: var(--brand);
  font-weight: 700;
}

.blog-footer {
  text-align: center;
  margin-top: 2rem;

}

.blog-article-queue {
  display: flex;
  flex-direction: column;
  background: var(--white);
  padding: 0.1rem;
  border: 0.5px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s ease;
  height: 100%;
}

/* Image takes up most of the space in the queue article template */
.blog-article-header-queue {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 280px;
}

.blog-article-queue-image {
  width: 99%;
  height: 99%;
  object-fit: contain;
  display: block;
  border-radius: 14px;
  margin-left: 25px;
}

/* Small footer section with "Article in the Queue" label */
.blog-article-queue-footer {
  padding: 1rem;
  background: var(--white);
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.blog-article-queue-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Maintain hover effect for consistency */
.blog-article-queue:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(-6px);
  border-color: var(--brand);
}

.view-all-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.view-all-link:hover {
  color: var(--brand-dark);
}

/* ===== Why Choose Section ===== */
.why-choose-section {
  width: 100%;
  padding: 4rem 2rem;
  background: var(--white);
}

.why-choose-container {
  max-width: 1200px;
  margin: 0 auto;
}

.why-choose-section .section-title {
  margin-bottom: 3rem;
}

.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.why-choose-card {
  padding: 2.5rem 2rem;
  background: var(--bg-light);
  border-radius: 8px;
  transition: all 0.3s ease;
  text-align: center;
  border: 1px solid var(--border-color);
}

.why-choose-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-color: var(--brand);
}

.why-choose-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-choose-icon svg {
  width: 100%;
  height: 100%;
}

.why-choose-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.why-choose-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Contact Section ===== */
.contact-section {
  width: 100%;
  padding: 4rem 2rem;
  background: var(--bg-light);
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-title {
  text-align: left;
  margin-bottom: 1rem;
}

.contact-subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-item strong {
  color: var(--text-primary);
  font-weight: 700;
}

.contact-item a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--brand-dark);
}

.contact-item span {
  color: var(--text-secondary);
}

/* ===== Contact Form ===== */
.contact-form-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.form-input,
.form-textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  color: var(--text-primary);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== Footer ===== */
.footer {
  width: 100%;
  padding: 2rem;
  background: var(--border-color);
  color: var(--brand-dark);
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-card img{width:100%;height:100%;object-fit:cover}


img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none; /* optional */
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .contact-icon {
  width: 18px;
  height: 18px;
 }

 /* ===== Contact Mini Header ===== */
.contact-mini-header {
  padding: 0.5rem 1.5rem;
}


.header {
  padding: 0.75rem 1rem;
}
  .nav {
     position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    border-bottom: 0px solid var(--border-color);
    padding: 0;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .nav-link {
    font-size: 1rem;
    padding: 0.5rem 0;
  }

  .header-container {
    position: relative;
  }

.nav.active {
    max-height: 400px;
  }

  /* Styled individual nav links for mobile menu */
  .nav-link {
    font-size: 1rem;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
    display: block;
    font-weight: 400;
    letter-spacing: 0.3px;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  /* Added active state styling for current page highlight */
  .nav-link.active {
    background: rgba(59, 130, 246, 0.08);
    color: var(--brand);
    font-weight: 700;
    border-left: 4px solid var(--brand);
    padding-left: calc(2rem - 4px);
  }

  .nav-link:hover:not(.active) {
    background: var(--bg-light);
    color: var(--brand);
  }

  .logo-section {
    gap: 0.2rem;
  }

  .logo-image {
  width: 85px;
  height: 100%;
}

  .company-name {
    font-size: 1.2rem;
  }

  .hero {
    height: 350px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    gap: 0.75rem;
  }

  .consultancy-section {
    padding: 3rem 1.5rem;
  }

  .section-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

  .consultancy-subtitle {
    margin-top: 0;
    margin-bottom: 2rem;
    font-size: 0.95rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* updated responsive service card styling */
  .service-card-header {
    height: auto;
    margin-bottom: 1rem;
  }

  .service-icon {
    width: 45px;
    height: 45px;
  }

  .training-section {
    padding: 3rem 1.5rem;
  }

  /* Updated training grid for tablet to full width 1 column layout */
  .training-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .training-card {
    padding: 1.5rem;
  }

  .training-card-title {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }

  .training-card-subtitle {
    font-size: 0.85rem;
  }

  .training-lead {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .blog-section {
    padding: 3rem 1.5rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-section {
    padding: 3rem 1.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-title {
    text-align: center;
  }

  .contact-subtitle {
    text-align: center;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  .why-choose-section {
    padding: 3rem 1.5rem;
  }

  .why-choose-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .why-choose-card {
    padding: 2rem 1.5rem;
  }

  .why-choose-icon {
    width: 60px;
    height: 60px;
  }

  .why-choose-title {
    font-size: 1.1rem;
  }

  .why-choose-description {
    font-size: 0.95rem;
  }

  #nav-menu {
    margin-left: -16px;
    margin-right: -16px;

  }
}

@media (max-width: 480px) {
  .header {
    padding: 0.5rem 1rem;
  }

  .logo-section {
    gap: 0.5rem;
  }

  .contact-icon {
  width: 18px;
  height: 18px;
}

.logo-image {
  width: 50px;
  height: 100%;
  object-fit: contain;
  flex-shrink: 0;
}
  .company-name {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.2;
    margin: 0;
  }

.company-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 0.65rem;
}


.company-extension {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.25rem 0.0rem;
  margin: 0;
  align-self: flex-end;
  line-height: 1.2;
}

  .nav {
    padding: 0.2rem 1rem;
  }

  .nav.active {
    max-height: auto;
    width: auto;
  }

 
  .hero-title {
    font-size: 1.5rem;
    margin-bottom: 0.3rem
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 1rem;
  }

  .hero-content {
    padding: 1rem 1.5rem;
  }

  .consultancy-section {
    padding: 2rem 1rem;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .consultancy-subtitle {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .service-card-header {
    margin-bottom: 1rem;
  }

  .service-icon {
    width: 40px;
    height: 40px;
  }

  .service-title {
    font-size: 0.95rem;
  }

  .service-description {
    font-size: 0.85rem;
  }

  .training-section {
    padding: 2rem 1rem;
  }

  /* Training cards optimized for small mobile screens */
  .training-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .training-card {
    padding: 1.25rem;
  }

  .training-card-title {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
  }

  .training-card-subtitle {
    font-size: 0.8rem;
  }

  .training-lead {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .blog-section {
    padding: 2rem 1rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .blog-card {
    padding: 1.5rem;
  }

  .blog-icon {
    font-size: 2rem;
  }

  .blog-card-title {
    font-size: 1rem;
  }

  .blog-meta {
    font-size: 0.85rem;
  }

  .contact-section {
    padding: 2rem 1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-title {
    font-size: 1.5rem;
    text-align: center;
  }

  .contact-subtitle {
    font-size: 0.95rem;
    text-align: left;
  }

  .contact-details {
    gap: 1rem;
  }

  .contact-item {
    text-align: left;
  }

  .btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .form-input,
  .form-textarea {
    font-size: 16px;
  }

  .why-choose-section {
    padding: 2rem 1rem;
  }

  .why-choose-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .why-choose-card {
    padding: 1.5rem 1rem;
  }

  .why-choose-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
  }

  .why-choose-title {
    font-size: 1rem;
  }

  .why-choose-description {
    font-size: 0.9rem;
  }
}