﻿@media (max-width: 768px) {
  .main-header {
    padding: 6px 16px;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .header_left {
    flex: 0 0 auto;
    width: auto;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .header_left img {
    max-height: 34px;
  }

  .header_right {
    flex: 1 1 100%;
    width: 100%;
  }

  .header_right nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin-top: 10px;
    background: rgba(51, 51, 51, 0.98);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    overflow: hidden;
  }

  .main-header.nav-open .header_right nav {
    display: flex;
  }

  .header_right nav > a,
  .header_right nav > .dropdown {
    width: 100%;
    height: auto;
    display: block;
    justify-content: flex-start;
    text-align: left;
  }

  .main-header a,
  .main-header .dropdown-toggle {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
  }

  .header_left a {
    width: auto;
    padding: 0;
    border: 0;
    background: none;
  }

  .main-header a:hover,
  .main-header .dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.08);
  }

  .nav-toggle {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    flex: 0 0 auto;
  }

  .nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
  }

  .dropdown {
    position: static;
    width: 100%;
    height: auto;
    display: block;
  }

  .dropdown-toggle {
    width: 100%;
  }

  .dropdown-toggle::after {
    content: "▼";
    font-size: 0.7rem;
    margin-left: 8px;
    display: inline-block;
    transition: transform 0.2s ease;
  }

  .dropdown.open .dropdown-toggle::after {
    transform: rotate(180deg);
  }

  .dropdown-menu {
    display: none;
    position: static;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0;
    box-shadow: none;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    color: var(--white);
    padding: 11px 0px 11px 30px;
    border-radius: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.08);
  }

  .dropdown-menu a:last-child {
    border-bottom: 0;
  }


  /* Notification bell is not a mobile dropdown */
  .notification-widget,
  .notification-widget .dropdown {
      width: auto;
      display: flex;
      align-items: center;
  }

  .notification-widget .notification-bell {
      width: auto;
      display: inline-flex;
      justify-content: flex-start;
      align-items: center;
      position: relative;
	  margin-left: 10px;
  }

  .notification-widget .notification-bell a {
      width: auto;
      display: inline-flex;
      align-items: center;
      justify-content: flex-start;
      padding: 0;
  }

  /* Hide the notification preview dropdown on mobile */
  .notification-widget .dropdown-menu {
      display: none !important;
  }

.notification-widget .notification-badge {
    position: absolute;
    top: 5px;
    right: -20px;
}

    .notification-widget .notification-bell::after {
        display: none;
    }

}

@media (min-width: 769px) {
  .nav-toggle {
    display: none;
  }

  .header_right nav {
    display: flex;
  }
}

/* MOBILE / TABLET */
@media (max-width: 768px) {
    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    .container,
    .view-container,
    .application-form,
    .form-container,
    form {
        width: 100%;
        max-width: 100%;
    }

    .form-container {
        padding: 15px;
    }

    /* each field block takes full width */
    form > div,
    .full-width {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        grid-column: auto !important;
    }

    label,
    .checkbox-group-label {
        display: block;
        width: 100%;
        margin-bottom: 8px;
    }

    input[type="text"],
    input[type="email"],
    input[type="date"],
    input[type="file"],
    select,
    textarea {
        width: 100%;
        max-width: 100%;
    }

    .checkbox-group {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .checkbox-group .checkbox-item {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .checkbox-group .checkbox-item label {
        width: auto !important;
        margin: 0;
        display: inline-flex;
        flex: 0 1 auto;
    }

    .checkbox-group .checkbox-item input {
        width: auto;
        flex: 0 0 auto;
    }

    button {
        width: 100%;
    }
}






/* VERY SMALL SCREENS */
@media (max-width: 480px) {
    .container,
    .application-form,
    .form-container,
    form {
        width: 100%;
        max-width: 100%;
		box-sizing: border-box;
		padding: 0;
    }

    .form-container,
	.application-form .info-box {
    padding: 15px;
    margin: 20px 0;
    box-sizing: border-box;
    }

    form > div,
    .full-width,
    .form-group,
    .field-row,
    .input-group {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    label,
    .checkbox-group-label {
        display: block !important;
        width: 100% !important;
        margin: 0 0 8px 0 !important;
        float: none !important;
    }

    input[type="text"],
    input[type="email"],
    input[type="date"],
    input[type="file"],
    select,
    textarea {
        width: 100% !important;
        max-width: 100% !important;
    }

    .checkbox-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 0;
    }

    .checkbox-group .checkbox-item {
        display: flex !important;
        align-items: center;
        gap: 6px;
    }

    button {
        width: 100%;
    }
}