﻿.hero {
  background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
  color: white;
  padding: 80px 20px;
  text-align: center;
  margin-top:-5px;
}

.hero-content h1 {
  font-size: 3em;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 100%;       /* prevents overflow */
  box-sizing: border-box; /* padding stays inside width */
  overflow-x: hidden;     /* hides accidental overflow */
}

.hero-buttons .btn {
  flex: 0 0 auto;
  max-width: 250px;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  box-sizing: border-box;
  /* remove margin: 0 10px; */
}


.btn.primary { background-color: #00bcd4; color: white; }
.btn.secondary { background-color: #4caf50; color: white; }
.btn.outline {
  border: 2px solid white;
  color: white;
}


.background {
    position: relative;
    background: url('/ss-img/home/img2.jpg') no-repeat center center/cover;
    height: 50vh;
    transition: background-image 1s ease-in-out; /* Smooth transition */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.content-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.content-block {
    flex: 1 1 300px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: rgba(245, 245, 245, 0.9);
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.content-block img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.sub-content-block {
    background-color: rgba(227, 50, 49, 0.9); /* Differentiating color */
    color: white;
}

@media (min-width: 900px) {
  .hero-buttons button {
    flex: 0 0 auto;
    width: auto;          /* natural width */
    padding: 0.75rem 1.5rem;
  }
}


@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        gap: 0;
    }
    nav ul.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}

@media (max-width: 600px) {
  .hero-buttons {
    flex-direction: column;
  }
}












