@import url('/ngsr/css/ngsr-joomla.css');

/* Премахва подчертаващата заглавието линия в хедъра (Cassiopеia) */
header.container-header .navbar-brand a {
  text-decoration: none !important;  /* премахва подчертаването */
}

/* Размер на текстовото заглавие в хедъра (Cassiopеia) */
header.container-header .navbar-brand,
header.container-header .navbar-brand a,
header.container-header .navbar-brand .brand,
header.container-header .navbar-brand .site-title {
  font-size: 1.7rem !important;   /* промени по вкус */
  line-height: 1.1 !important;
  font-weight: 500 !important;
}

.site-description {
  margin-left: 0.0rem;   /* малко надясно */
  margin-top: 0.15rem;   /* малко надолу */
  white-space: nowrap;  /* не позволява пренос */
}

/* Ако ползваш лого-изображение, контролирай височината му: */
header.container-header .navbar-brand img {
  max-height: 56px;                /* промени по вкус */
  height: auto;
}

.ng-button {
  display:inline-block;
  width:230px;
  text-align:center;
  padding:12px 24px;
  color:#fff;
  text-decoration:none;
  font-size:18px;
  font-weight:bold;
  border-radius:8px;
  transition: all 0.25s ease;
  margin: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ng-button:hover {
  transform: translateY(-3px);
  filter: brightness(1.12);
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
  color:#fff;
}

.ng-button:active {
  transform: translateY(0);
  filter: brightness(0.95);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  color:#fff;
}

.ng-button span {
  display:inline-block;
  transition: transform 0.25s ease;
}

.ng-button:hover span {
  transform: translateX(4px);
}

/* Индивидуални цветове */
.academy { background-color:#0069d9; }
.forum   { background-color:#28a745; }
.donate  { background-color:#6f42c1; }

/* Линк на неактивна страница */
.is-disabled,
.is-disabled > a,
.is-disabled > span {
  pointer-events: none;
  cursor: default;
  opacity: .75;
  text-decoration: none !important;
  color: #000 !important;  /* ← задава цвета на линка */
}

/* NetGalaxy Project - син стил на горната лента */
header.container-header {
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  background: linear-gradient(90deg, #0b2f6b 0%, #1565c0 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

header.container-header a,
header.container-header .navbar-brand,
header.container-header .navbar-brand a,
header.container-header .site-description {
  color: #ffffff !important;
}

header.container-header .navbar-brand a:hover {
  color: #eaf4ff !important;
  text-decoration: none !important;
}

/* NetGalaxy Project - footer стил */
footer.container-footer.footer.full-width {
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background: linear-gradient(90deg, #0b2f6b 0%, #1565c0 100%) !important;
  color: #fff !important;
}

footer.container-footer.footer.full-width > .grid-child {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

footer.container-footer.footer.full-width * {
  color: #fff !important;
}

footer.container-footer.footer.full-width p {
  margin: 0 !important;
  text-align: center;
}

/* Site Administrator module */

.ngsr-site-admin {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 16px;
    line-height: 1.55;
    color: #252525;
}

.ngsr-site-admin__identity {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ngsr-site-admin__name {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.ngsr-site-admin__address {
    margin: 0;
    font-style: normal;
    color: #4b5563;
}

.ngsr-site-admin__notice {
    margin: 0;
    padding: 10px 12px;
    border-left: 4px solid #6b7280;
    background: #f5f6f7;
    font-weight: 600;
    color: #30343a;
}

.ngsr-site-admin__links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ngsr-site-admin__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border: 1px solid #d8dce1;
    border-radius: 4px;
    background: #ffffff;
    color: #343a8f;
    font-weight: 600;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.ngsr-site-admin__link::after {
    content: "›";
    flex: 0 0 auto;
    font-size: 20px;
    line-height: 1;
}

.ngsr-site-admin__link:hover,
.ngsr-site-admin__link:focus {
    border-color: #343a8f;
    background: #f4f4fb;
    color: #24246f;
    text-decoration: none;
}

.ngsr-site-admin__link:focus-visible {
    outline: 2px solid #343a8f;
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .ngsr-site-admin {
        font-size: 15px;
    }

    .ngsr-site-admin__name {
        font-size: 17px;
    }
}

/* =========================================================
   NetGalaxy® – Заявление за заинтересованост
   ========================================================= */

.ngsr-interest-form {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 1.5rem 0;
    color: inherit;
}

.ngsr-interest-form *,
.ngsr-interest-form *::before,
.ngsr-interest-form *::after {
    box-sizing: border-box;
}


/* ---------------------------------------------------------
   Увод
   --------------------------------------------------------- */

.ngsr-interest-form__intro {
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.ngsr-interest-form__intro p {
    margin: 0 0 1rem;
}


/* ---------------------------------------------------------
   Раздели на формуляра
   --------------------------------------------------------- */

.ngsr-interest-form__section {
    min-width: 0;
    margin: 0 0 1.75rem;
    padding: 1.5rem;
    border: 1px solid rgba(127, 127, 127, 0.35);
    border-radius: 0.65rem;
    background: rgba(127, 127, 127, 0.045);
}

.ngsr-interest-form__section legend {
    width: auto;
    margin: 0;
    padding: 0 0.65rem;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}


/* ---------------------------------------------------------
   Полета
   --------------------------------------------------------- */

.ngsr-interest-form__field {
    margin-bottom: 1.25rem;
}

.ngsr-interest-form__field:last-child {
    margin-bottom: 0;
}

.ngsr-interest-form__field > label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 600;
    line-height: 1.45;
}

.ngsr-interest-form__field label span[aria-hidden="true"] {
    color: #b00020;
}

.ngsr-interest-form input[type="text"],
.ngsr-interest-form input[type="email"],
.ngsr-interest-form input[type="tel"],
.ngsr-interest-form select,
.ngsr-interest-form textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(127, 127, 127, 0.55);
    border-radius: 0.4rem;
    background: #ffffff;
    color: #222222;
    font: inherit;
    line-height: 1.4;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
}

.ngsr-interest-form textarea {
    min-height: 8rem;
    resize: vertical;
}

.ngsr-interest-form select {
    min-height: 3rem;
}

.ngsr-interest-form input[type="text"]:focus,
.ngsr-interest-form input[type="email"]:focus,
.ngsr-interest-form input[type="tel"]:focus,
.ngsr-interest-form select:focus,
.ngsr-interest-form textarea:focus {
    outline: none;
    border-color: #7b1734;
    box-shadow: 0 0 0 3px rgba(123, 23, 52, 0.16);
}


/* ---------------------------------------------------------
   Пояснителни текстове
   --------------------------------------------------------- */

.ngsr-interest-form__help {
    margin: 0 0 1rem;
    font-size: 0.94rem;
    opacity: 0.8;
}

.ngsr-interest-form__required {
    margin: 0 0 1.25rem;
    font-size: 0.94rem;
    font-style: italic;
    opacity: 0.85;
}


/* ---------------------------------------------------------
   Отметки и радио бутони
   --------------------------------------------------------- */

.ngsr-interest-form__choices {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.ngsr-interest-form__choices--columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
}

.ngsr-interest-form__choices label {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0;
    padding: 0.15rem 0;
    line-height: 1.45;
    cursor: pointer;
}

.ngsr-interest-form input[type="checkbox"],
.ngsr-interest-form input[type="radio"] {
    flex: 0 0 auto;
    width: 1.1rem;
    height: 1.1rem;
    margin: 0.18rem 0 0;
    accent-color: #7b1734;
    cursor: pointer;
}


/* ---------------------------------------------------------
   Поверителност
   --------------------------------------------------------- */

.ngsr-interest-form__privacy {
    margin: 0 0 1.75rem;
    padding: 1.5rem;
    border-left: 4px solid #7b1734;
    border-radius: 0.35rem;
    background: rgba(123, 23, 52, 0.07);
}

.ngsr-interest-form__privacy h3 {
    margin: 0 0 1rem;
    font-size: 1.2rem;
}

.ngsr-interest-form__privacy p {
    margin: 0 0 0.85rem;
    line-height: 1.65;
}

.ngsr-interest-form__privacy p:last-child {
    margin-bottom: 0;
}


/* ---------------------------------------------------------
   Бутон
   --------------------------------------------------------- */

.ngsr-interest-form__actions {
    text-align: center;
}

.ngsr-interest-form__actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 15rem;
    min-height: 3rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid #7b1734;
    border-radius: 0.45rem;
    background: #7b1734;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}

.ngsr-interest-form__actions button:not(:disabled):hover {
    background: #621128;
    border-color: #621128;
}

.ngsr-interest-form__actions button:not(:disabled):active {
    transform: translateY(1px);
}

.ngsr-interest-form__actions button:disabled {
    border-color: rgba(127, 127, 127, 0.6);
    background: rgba(127, 127, 127, 0.35);
    color: rgba(40, 40, 40, 0.65);
    cursor: not-allowed;
}

.ngsr-interest-form__actions p {
    max-width: 42rem;
    margin: 0.85rem auto 0;
    font-size: 0.92rem;
    line-height: 1.5;
    opacity: 0.8;
}


/* ---------------------------------------------------------
   Тъмна тема
   --------------------------------------------------------- */

@media (prefers-color-scheme: dark) {

    .ngsr-interest-form input[type="text"],
    .ngsr-interest-form input[type="email"],
    .ngsr-interest-form input[type="tel"],
    .ngsr-interest-form select,
    .ngsr-interest-form textarea {
        background: rgba(255, 255, 255, 0.08);
        color: inherit;
    }

    .ngsr-interest-form select option {
        background: #222222;
        color: #ffffff;
    }

    .ngsr-interest-form__actions button:disabled {
        color: rgba(255, 255, 255, 0.6);
    }
}


/* ---------------------------------------------------------
   Мобилна версия
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .ngsr-interest-form {
        padding: 1rem 0;
    }

    .ngsr-interest-form__section,
    .ngsr-interest-form__privacy {
        padding: 1.15rem;
    }

    .ngsr-interest-form__section legend {
        font-size: 1.1rem;
    }

    .ngsr-interest-form__choices--columns {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .ngsr-interest-form__actions button {
        width: 100%;
        min-width: 0;
    }
}