:root {
  --primary-color: #007bff; /* UPDATED from #f4a261 to blue */
  --secondary-color: #2a9d8f;
  --dark-color: #264653;
  --light-color: #f8f9fa;
  --gray-color: #e9ecef;
  --cream-color: #f5ebe0;
  --black-color: #212529;
  --text-color: #495057;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--light-color);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--black-color);
}

a {
  text-decoration: none;
  color: inherit;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
}

.btn-primary:hover {
  background-color: #0056b3; /* UPDATED from #e76f51 to a darker blue */
  transform: translateY(-2px);
}

.gold-text { /* This class will now apply the --primary-color, which is blue */
  color: var(--primary-color);
}

.main-header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  z-index: 1000;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
}

.logo-image {
  height: 40px;
  margin-right: 10px;
}

.main-nav {
  display: flex;
  gap: 25px;
}

.main-nav a {
  font-weight: 500;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: var(--primary-color);
}

.mobile-menu-btn {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

.hero-section {
  padding: 150px 0 80px;
  background: linear-gradient(135deg, var(--cream-color) 0%, var(--light-color) 100%);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 50px;
}

.hero-content {
  flex: 1;
}

.hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--text-color);
}

.hero-image {
  flex: 1;
}

.hero-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.section {
  padding: 80px 0;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 36px;
  margin-bottom: 20px;
  text-align: center;
}

.section-description {
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: center;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.solution-card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.solution-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-icon {
  font-size: 40px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.robotics-section, .marketing-section {
  background-color: white;
}

/* Combined rule for sections that use flex layout for content and image */
.robotics-section .section-container, 
.marketing-section .section-container,
.about-section .section-container /* Added about-section for consistency if needed */ {
  display: flex;
  align-items: center;
  gap: 50px;
}

.section-content, .section-image {
  flex: 1;
}

.section-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.feature-item i {
  color: var(--primary-color);
}

/* CRM Section specific styling if its .section-container doesn't use flex */
.crm-section .section-container {
    display: block; /* Overriding the flex if it was applied globally or by mistake */
}

.crm-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.crm-feature {
  background: var(--gray-color);
  padding: 30px;
  border-radius: 8px;
}

.feature-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.marketing-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.service-card {
  background: var(--gray-color);
  padding: 20px;
  border-radius: 8px;
}

.about-content { /* This already uses flex as per original */
  display: flex;
  gap: 50px;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
}

/* Contact Section specific styling if its .section-container doesn't use flex */
.contact-section .section-container,
.login-section .section-container,
.solutions-section .section-container {
    display: block; /* Ensuring these sections don't try to flex their whole container */
}


.contact-content { /* This uses flex as per original */
  display: flex;
  gap: 50px;
  margin-top: 40px;
}

.contact-info, .contact-form {
  flex: 1;
}

.contact-info h3 {
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.social-links a {
  font-size: 20px;
  color: var(--text-color);
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--primary-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
}

.login-options {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.management-btn, .teacher-btn {
  padding: 15px 30px;
  border-radius: 4px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.management-btn {
  background-color: var(--dark-color);
  color: white;
}
.management-btn:hover {
    background-color: #1a2e35; /* Slightly lighter version of dark-color for hover */
}

.teacher-btn {
  background-color: var(--secondary-color);
  color: white;
}
.teacher-btn:hover {
    background-color: #207c71; /* Slightly darker version of secondary-color for hover */
}


.main-footer {
  background-color: var(--dark-color);
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column; /* Changed from column to row for better layout */
  /* justify-content: space-between; /* Added for spacing */
  gap: 40px; /* Reduced gap, adjust as needed */
}

.footer-logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
  /* margin-bottom: 20px; /* Removed or adjust if footer-content is row */
}

.footer-links {
  display: flex;
  /* flex: 1; /* Allow links to take available space */
  justify-content: space-between; /* Distribute link groups */
  flex-wrap: wrap;
  gap: 30px; /* Gap between link groups */
}

.link-group {
  min-width: 150px;
  /* margin-bottom: 20px; /* Add space if they stack vertically */
}

.link-group h4 {
  margin-bottom: 20px; /* Increased from 15px for better spacing */
  font-size: 18px;
  color: white; /* Ensuring footer headings are white */
}

.link-group a {
  display: block;
  margin-bottom: 10px;
  opacity: 0.8;
  transition: opacity 0.3s, color 0.3s; /* Added color transition */
  color: white; /* Ensuring footer links are white */
}

.link-group a:hover {
  opacity: 1;
  color: var(--primary-color); /* Highlight with new primary color on hover */
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
  .main-nav {
    display: none; /* Will be overridden by JS to 'flex' when menu is clicked */
    /* Additional styles for mobile menu if it becomes a dropdown */
    position: absolute;
    top: 100%; /* Position below the header */
    left: 0;
    right: 0;
    background-color: white;
    flex-direction: column;
    align-items: center; /* Center items in dropdown */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 10px 0; /* Add some padding */
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-container, 
  .robotics-section .section-container, 
  .marketing-section .section-container, 
  .about-content, /* .about-content is the direct flex container */
  .contact-content { /* .contact-content is the direct flex container */
    flex-direction: column;
  }

  /* Ensure specific section-containers that should NOT be flex also respect this on mobile */
  .solutions-section .section-container,
  .crm-section .section-container,
  .contact-section .section-container, /* This targets the overall container for the section title and .contact-content */
  .login-section .section-container {
    flex-direction: column; /* Though they were block, ensure consistency if any global rule tried to make them flex */
  }
  
  .hero-section {
    padding: 120px 0 60px;
  }
  
  .hero-title {
    font-size: 36px;
    text-align: center; /* Center title on mobile */
  }
  .hero-subtitle {
    text-align: center; /* Center subtitle on mobile */
  }
  .hero-content .btn-primary {
    display: block; /* Make button full width or centered */
    margin: 0 auto; /* Center button */
    width: fit-content;
  }
  
  .section-title {
    font-size: 30px;
  }

  .section-content {
    order: 2; /* Example: if you want image first, then text for some sections */
  }
  .section-image {
    order: 1;
    margin-bottom: 30px; /* Add space between image and text when stacked */
  }
  /* Reverse order for marketing section on mobile if image was on left */
  .marketing-section .section-content {
    order: 1;
  }
  .marketing-section .section-image {
    order: 2;
  }

  .features-list {
    grid-template-columns: 1fr; /* Stack features list on mobile */
  }
  
  .login-options {
    flex-direction: column;
    align-items: stretch; /* Make login buttons take full width available in their container */
  }
  .login-options .btn {
    width: 80%; /* Or a specific width */
    margin: 10px auto; /* Center the buttons */
  }

  .footer-content {
    flex-direction: column;
    align-items: center; /* Center footer content on mobile */
    text-align: center;
  }
  .footer-links {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .link-group {
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
  }
  .link-group h4 {
    margin-bottom: 10px;
  }

}