/* CSS Variables */
:root {
  --primary-color: #22a05e;
  --secondary-color: #1a3d3a;
  --text-light: rgba(255, 255, 255, 0.7);
  --text-dark: #333;
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* Navigation */
.navbar {
  border-bottom: 1px solid #e9ecef;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700 !important;
}

.navbar-brand span {
  color: var(--primary-color) !important;
}

.navbar-brand img {
  max-height: 50px;
  width: auto;
  object-fit: contain;
}

/* Hero Section */
.hero-section {
  background-image: url("/public/assets/images/hero-bg.png");
  background-size: cover;
  background-position: center;
  min-height: 600px;
  display: flex;
  align-items: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-section .container-lg {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.text-white-70 {
  color: var(--text-light) !important;
}

.news-box {
  animation: slideUp 0.6s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.news-box-modern {
  background: white;
}

.news-box-header {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
}

.news-box-content {
  border-radius: 0 0 1rem 1rem;
}

.news-box-image img {
  display: block;
  width: 100%;
}

.news-tag {
  display: inline-block;
}

/* Button Styles */
.btn-success {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-success:hover {
  background-color: #115c43;
  border-color: #115c43;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(26, 125, 89, 0.2);
}

.btn-outline-success {
  color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 600;
}

.btn-outline-success:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-light {
  color: white;
  border-color: white;
  font-weight: 600;
}

.btn-outline-light:hover {
  background-color: white;
  color: var(--primary-color);
}

.btn-outline-dark {
  color: var(--text-dark);
  border-color: #d1d5dc;
  font-weight: 600;
}

.btn-outline-dark:hover {
  background-color: transparent;
  color: var(--text-dark);
  transform: translateY(-2px);
}

/* How It Works Section */
.how-it-works-gradient {
  background-image: url("/public/assets/images/bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.how-it-works-card-new {
  position: relative;
  padding: 1.5rem;
  background: transparent;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.step-badge {
  position: relative;
  top: 10px;
  right: 10px;
  background: #1e293b;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 2;
}

.step-connector {
  width: 70%;
  position: absolute;
  top: 90px;
  left: 15%;
  right: 20%;
  height: 2px;
  z-index: 0;
  background-image: url("/public/assets/images/connector.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.how-it-works-card-new h5 {
  color: var(--text-dark);
  font-size: 1.1rem;
}

/* Why Choose Milano Section */
.why-card-new {
  padding: 0;
  background: transparent;
  border-radius: var(--border-radius);
  transition: var(--transition);
  height: 100%;
}

.icon-circle-new {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(34, 160, 94, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.why-card-new h6 {
  color: var(--text-dark);
  font-size: 1rem;
}

/* Old How It Works - Keep for backward compatibility */
.how-it-works-card {
  padding: 2rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

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

.how-it-works-card h5 {
  color: var(--text-dark);
  font-size: 1.1rem;
}

/* Why Choose Milano Section */
.why-card {
  padding: 1.5rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  height: 100%;
}

.why-card:hover {
  box-shadow: 0 8px 20px rgba(26, 125, 89, 0.15);
  border-top: 3px solid var(--primary-color);
}

.icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #f0f8f4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 1.5rem;
}

/* service Section */
.service-list {
  background-image: url("/public/assets/images/hero-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 100px 0;
}

/* Enterprise Section */
.logo-box {
  padding: 1.5rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}

.logo-box:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transform: scale(1.05);
}

/* Modules Section */
#modules {
  background-image: url("/public/assets/images/bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 100px 0;
}

.search-box input {
  border: 2px solid #abbad2;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  background: transparent;
}

.search-box input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(26, 125, 89, 0.25);
}

.modules-table table {
  margin-bottom: 0;
}

.modules-table tbody tr {
  border: 1.5px solid #abbad2;
  transition: var(--transition);
}

.modules-table tbody tr:hover {
  transform: scale(1.02);
}

.modules-table td {
  padding: 1rem;
  vertical-align: middle;
  background: transparent;
}

#modules .card {
  border-radius: 20px;
  background-color: transparent;
  background-image: url("public/assets/images/module-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  box-shadow: 0 0 10px 2px rgba(26, 125, 89, 0.25);
}

/* Newsletter Section */
.newsletter-box {
  border-radius: 20px;
  background-image: url("/public/assets/images/module-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  box-shadow: 0 0 10px 2px rgba(26, 125, 89, 0.25);
  animation: slideUp 0.6s ease;
}

.newsletter-box input {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 0.75rem 1rem;
}

.newsletter-box input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(26, 125, 89, 0.25);
}

/* News Section */
.news-card {
  border-radius: var(--border-radius);
  transition: var(--transition);
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.news-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.4);
}

.news-image {
  overflow: hidden;
  border-radius: 8px;
}

.news-image img {
  width: 100%;
  transition: var(--transition);
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

/* Contact Icons */
.contact-icon {
  background: #e9f7ef;
  color: #22c55e;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1.2rem;
}

/* Footer Styling */
.footer-dark {
  background-color: #069455;
}

.social-links a {
  color: white;
  margin-right: 15px;
  font-size: 1.2rem;
  opacity: 0.8;
}

.social-links a:hover {
  opacity: 1;
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ripple {
  from {
    transform: scale(0);
    opacity: 1;
  }
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    min-height: 400px;
    padding: 2rem 0;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section p {
    font-size: 0.95rem;
  }

  .btn-group {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 100% !important;
  }

  .pricing-card {
    padding: 1.5rem;
  }

  .price {
    font-size: 1.5rem;
  }

  .modules-table {
    font-size: 0.9rem;
  }

  .modules-table td {
    padding: 0.75rem 0.5rem;
  }

  .news-card {
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .container-lg {
    padding: 0 1rem;
  }

  .hero-section h1 {
    font-size: 1.5rem;
  }

  .step-circle {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .why-card {
    padding: 1rem;
    text-align: center;
  }

  .icon-circle {
    margin: 0 auto 1rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .pricing-card {
    padding: 1rem;
  }

  .price {
    font-size: 1.2rem;
  }

  .btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.9rem;
  }
}

/* Scroll to Top Button */
#scrollToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  box-shadow: 0 4px 12px rgba(26, 125, 89, 0.3);
  transition: var(--transition);
}

#scrollToTopBtn:hover {
  background-color: #115c43;
  box-shadow: 0 6px 16px rgba(26, 125, 89, 0.4);
  transform: translateY(-3px);
}

#scrollToTopBtn.show {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slideUp 0.3s ease;
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--primary-color);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  animation: slideUp 0.3s ease;
}

.toast-notification.error {
  background: #dc3545;
}

.toast-notification.success {
  background: var(--primary-color);
}

/* Hero Gradient */
.other-hero-section {
  height: 350px;
  background: linear-gradient(135deg, #10344b 0%, #22c55e 100%);
}

@media (max-width: 768px) {
  .other-hero-section {
    height: 250px;
  }
  .other-hero-section h1 {
    font-size: 25px;
  }
  .other-hero-section p {
    font-size: 15px;
  }
}

/* Filter Buttons */
.filter-box {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  cursor: pointer;
  transition: 0.3s;
  border: 1px solid transparent;
}

.filter-box.active {
  background-color: #22c55e;
  color: white;
}

.filter-box:hover {
  border-color: #22c55e;
}

/* Mission Image Styling */
.mission-img {
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Team Card Styling */
.team-card {
  background: #fff;
  border-radius: 15px;
  padding: 40px 25px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}
.team-card:hover {
  transform: translateY(-5px);
}

/* Icon Circles */
.icon-box {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
}

/* Blog Cards */
.blog-card {
  transition: transform 0.3s ease;
  border: 1px solid #f1f3f5 !important;
}
.blog-card:hover {
  transform: translateY(-3px);
}

/* Sidebar Categories */
.category-list li {
  padding: 10px 0;
  border-bottom: 1px solid #dee2e6;
}
.category-list li:last-child {
  border-bottom: none;
}
.category-list a {
  color: #4a5568;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.category-list a:hover {
  color: #22c55e;
}

/* Pagination Styling */
.pagination {
  gap: 0.5rem;
}

.pagination .page-link {
  color: var(--primary-color);
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: var(--transition);
  margin: 0 0.25rem;
}

.pagination .page-link:hover {
  background-color: #e9f7ef;
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 8px rgba(34, 160, 94, 0.3);
}

.pagination .page-item.disabled .page-link {
  background-color: #f8f9fa;
  border-color: #dee2e6;
  color: #6c757d;
  cursor: not-allowed;
}

.pagination .page-link i {
  font-size: 0.85rem;
}

/* Contact Page Specifics */
.contact-icon-box {
  width: 48px;
  height: 48px;
  background-color: #f0fdf4;
  color: #22c55e;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.map-container {
  border-radius: 20px;
  overflow: hidden;
  height: 400px;
  border: 1px solid #edf2f7;
}

.form-control:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 0.25rem rgba(34, 197, 94, 0.1);
}

.btn-send {
  background-color: #22c55e;
  color: white;
  padding: 12px 0;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  transition: background 0.3s;
}

.btn-send:hover {
  background-color: #1a9d4b;
  color: white;
}

/* Login Page Custom Styles */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.login-card {
  background-image: url("/public/assets/images/bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 480px;
  padding: 40px;
}

.login-icon-circle {
  width: 64px;
  height: 64px;
  background-color: #22c55e;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.5rem;
}

.login-card .form-control {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 12px 15px;
}

.login-card .input-group-text {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #94a3b8;
}

.btn-google {
  background-color: white;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-google:hover {
  background-color: #f8fafc;
}

/* Registration Page Custom Styles */
.reg-container {
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
  min-height: 100vh;
  padding: 60px 0;
}

.reg-card {
background-image: url("/public/assets/images/bg.png");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
background-attachment: fixed;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  max-width: 650px;
  margin: 0 auto;
  padding: 40px;
}

.reg-icon-circle {
  width: 64px;
  height: 64px;
  background-color: #22c55e;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.5rem;
}

.input-group-text {
  background-color: transparent;
  border-right: none;
  color: #94a3b8;
}

.reg-card .form-control {
  border-left: none;
  background-color: #f8fafc;
}

.password-requirements {
  background-color: #f8fafc;
  border-radius: 12px;
  padding: 15px;
  font-size: 0.85rem;
}

.password-requirements ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.requirement-met {
  color: #22c55e;
}
