:root {
      --bg: #f5f5f5;
      --bg-alt: #ffffff;
      --primary: #0063b1;
      --accent: #008f3d;
      --text: #222222;
    }

    * {
      box-sizing: border-box;
    }

    body {
        font-family: sans-serif;
        margin: 0;
        padding: 0;
        line-height: 1.6;
        color: #333;
        background-color: #f5f5f5;
    }

    header {
        background-color: #00338d;
        color: white;
        padding: 1rem 0;
    }

    .header-container {
        max-width: 960px;
        margin: 0 auto;
        padding: 0 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .branding {
        display: flex;
        align-items: center;
        gap: 15px;
        text-decoration: none;
        color: white;
    }

    .branding img {
        height: 80px;
        width: auto;
    }

    .branding h1 {
        margin: 0;
        font-size: 1.5rem;
    }

    nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        gap: 20px;
    }

    nav a {
        color: white;
        text-decoration: none;
        font-weight: bold;
    }

    nav a:hover {
        text-decoration: underline;
    }

    main {
        max-width: 960px;
        margin: 2rem auto;
        padding: 0 20px;
        min-height: 60vh;
    }

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

    main a:hover {
      text-decoration: underline;
    }

    footer {
        background-color: #f4f4f4;
        text-align: center;
        padding: 1rem;
        margin-top: 2rem;
        border-top: 1px solid #ddd;
    }

    table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 1rem;
    }

    th, td {
        padding: 10px;
        text-align: left;
    }

    th {
        background-color: #f2f2f2;
    }

    .page {
      max-width: 960px;
      margin: 0 auto;
      padding: 1.5rem;
    }

    .hero {
      background: var(--bg-alt);
      border-radius: 12px;
      padding: 2rem 1.75rem;
      box-shadow: 0 4px 10px rgba(0,0,0,0.04);
      margin-bottom: 2rem;
      text-align: center;
    }

    .hero h1 {
      margin-top: 0;
      margin-bottom: 0.5rem;
      font-size: clamp(2rem, 4vw, 2.6rem);
    }

    .hero p.lead {
      font-size: 1.05rem;
      margin: 0.5rem 0 0;
    }

.quick-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 1rem 1.75rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  margin-bottom: 2rem;
}

.quick-links a {
  text-decoration: none;
  color: var(--primary);
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background-color 0.2s ease-in-out;
}

.quick-links a:hover {
  background-color: var(--primary);
  color: #fff;
}

@media (max-width: 600px) {
  .quick-links {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }

  .quick-links a {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
  }
}

    .badge {
      display: inline-block;
      background: var(--accent);
      color: #fff;
      padding: 0.25rem 0.75rem;
      border-radius: 999px;
      font-size: 0.85rem;
      margin-bottom: 0.75rem;
      font-weight: 600;
    }

    .badge a {
      color: #fff;
      text-decoration: none;
    }

    .grid {
      display: grid;
      grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
      gap: 1.5rem;
      margin-bottom: 2rem;
    }

    @media (max-width: 768px) {
      .grid {
        grid-template-columns: minmax(0, 1fr);
      }
    }

    .card {
      background: var(--bg-alt);
      border-radius: 12px;
      padding: 1.5rem 1.25rem;
      box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    }

    .card h2 {
      margin-top: 0;
      margin-bottom: 0.75rem;
      font-size: 1.3rem;
    }

    .card h3 {
      margin-top: 1.25rem;
      margin-bottom: 0.35rem;
      font-size: 1.05rem;
    }

    .price-row {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      padding: 0.3rem 0;
      border-bottom: 1px solid #e3e3e3;
      font-size: 0.98rem;
    }

    .price-row:last-child {
      border-bottom: none;
    }

    .price-label {
      font-weight: 500;
    }

    .price-value {
      font-weight: 600;
    }

    .location {
      font-size: 0.98rem;
    }

    .location strong {
      display: block;
    }

    .cta-box {
      background: #003b75;
      color: #ffffff;
      border-radius: 12px;
      padding: 1.75rem 1.5rem;
      margin-bottom: 2rem;
      text-align: center;
    }

    .cta-box h2 {
      margin-top: 0;
      margin-bottom: 0.75rem;
      font-size: 1.4rem;
    }

    .cta-buttons {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.75rem;
      margin-top: 1rem;
    }

    .btn {
      display: inline-block;
      padding: 0.6rem 1.3rem;
      border-radius: 999px;
      text-decoration: none;
      font-weight: 600;
      font-size: 0.95rem;
      border: 2px solid #ffffff;
    }

    .btn-primary {
      background: #ffffff;
      color: #003b75;
    }

    .btn-outline {
      background: transparent;
      color: #ffffff;
    }

    .why-list {
      list-style: none;
      padding-left: 0;
      margin: 0.5rem 0 0;
      font-size: 0.98rem;
    }

    .why-list li {
      margin-bottom: 0.35rem;
    }

    .why-list li::before {
      content: "•";
      color: var(--accent);
      display: inline-block;
      width: 1.1rem;
    }

    .small-print {
      font-size: 0.8rem;
      color: #555;
    }

    .note {
      font-size: 0.9rem;
      margin-top: 0.4rem;
    }
.home-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.sidebar .card {
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .home-grid {
        grid-template-columns: 1fr;
    }
}
/* Stylish Table */
.stylish-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    border-radius: 8px;
    overflow: hidden; /* Ensures rounded corners apply to children */
}

.stylish-table th,
.stylish-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.stylish-table th {
    background-color: var(--primary);
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stylish-table tbody tr:nth-child(even) {
    background-color: #f8f8f8;
}

.stylish-table tbody tr:hover {
    background-color: #f1f1f1;
    cursor: pointer;
}

.stylish-table tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 600px) {
    .stylish-table, .stylish-table tbody, .stylish-table tr, .stylish-table td, .stylish-table th {
        display: block;
    }

    .stylish-table thead {
        display: none;
    }

    .stylish-table tr {
        margin-bottom: 1rem;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    }

    .stylish-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    .stylish-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: calc(50% - 30px);
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: #555;
    }
}
.social-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.5rem;
    text-decoration: none;
    color: var(--text); /* Adjust color as needed */
}

.social-link i {
    margin-right: 8px; /* Space between icon and text */
    font-size: 1.2em;
    color: var(--primary); /* Icon color */
}

.contact-card {
    margin-bottom: 1.5rem; /* Add margin below the contact card */
}

.nav-accent{

    color: var(--accent) !important; /* Ensure text is white */
    text-decoration: none !important; /* Remove underline on hover */
    transition: background-color 0.3s ease;
}

.nav-accent:hover{
    color: #007a33; /* Darker green on hover */
    text-decoration: none !important;
}

.nav-button i {
    margin-right: 8px;
}
.tehtava-column {
    font-weight: bold;
    text-align: left !important; /* Ensure left alignment */
}

@media (max-width: 600px) {
    .stylish-table td.tehtava-column {
        text-align: left !important; /* Force left alignment on mobile */
        padding-left: 15px; /* Adjust padding for mobile to match left alignment */
    }

    .stylish-table td.tehtava-column::before {
        content: none; /* Remove the "data-label" content for the tehtava column on mobile */
    }
}

/* Modern Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 99, 177, 0.2);
}

.form-group select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M5%208l5%205%205-5z%22%20fill%3D%22%23555%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.2em;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #00529b;
}
