/* Astronomy Theme - ONAA2026 - Cassiopeia user.css */

/* Google Fonts: Orbitron (headings) + Exo 2 (body) */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Exo+2:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

/* ===================================================
   COLOR PALETTE
   Deep space:  #050810
   Midnight:    #080c18
   Card bg:     #0d1520
   Stellar blue:#4fc3f7
   Gold star:   #f5c518
   Violet nebula:#9c6bde
   Light text:  #c9d2e0
   Footer bg:   #04060c
   =================================================== */

/* ===================================================
   CSS VARIABLE OVERRIDES
   =================================================== */
html {
  background-color: #050d20;
}

:root,
[data-bs-theme="light"] {

  /* Bootstrap 5 core */
  --body-bg:                  transparent;
  --body-bg-rgb:              5, 8, 16;
  --body-color:               #c9d2e0;
  --body-color-rgb:           201, 210, 224;

  /* Links */
  --link-color:               #4fc3f7;
  --link-color-rgb:           79, 195, 247;
  --link-hover-color:         #f5c518;
  --link-hover-color-rgb:     245, 197, 24;

  /* Headings */
  --heading-color:            #e8c84a;

  /* Contextual backgrounds */
  --secondary-bg:             #0d1520;
  --secondary-bg-rgb:         13, 21, 32;
  --tertiary-bg:              #0a1020;
  --tertiary-bg-rgb:          10, 16, 32;

  /* Text hierarchy */
  --emphasis-color:           #f0f4ff;
  --emphasis-color-rgb:       240, 244, 255;
  --secondary-color:          rgba(201, 210, 224, 0.7);
  --tertiary-color:           rgba(201, 210, 224, 0.5);

  /* Borders */
  --border-color:             rgba(79, 195, 247, 0.2);
  --border-color-translucent: rgba(79, 195, 247, 0.12);

  /* Cassiopeia custom */
  --cassiopeia-color-primary:          #4fc3f7;
  --cassiopeia-color-hover:            #0a2a4a;
  --cassiopeia-color-brand:            #f5c518;
  --cassiopeia-font-family-body:       'Exo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --cassiopeia-font-family-headings:   'Orbitron', 'Exo 2', sans-serif;
  --cassiopeia-font-weight-normal:     400;
  --cassiopeia-font-weight-headings:   700;

  /* Template variables */
  --template-sidebar-bg:               #080c18;
  --template-sidebar-font-color:       #c9d2e0;
  --template-sidebar-link-color:       #4fc3f7;
  --template-bg-light:                 #0d1520;
  --template-text-light:               #c9d2e0;
  --template-special-color:            #4fc3f7;
  --template-link-color:               #4fc3f7;
  --template-link-hover-color:         #f5c518;
  --template-contrast:                 #4fc3f7;

  /* Highlight */
  --highlight-color:          #050810;
  --highlight-bg:             #f5c518;

  /* Code */
  --code-color:               #9c6bde;
}

/* ===================================================
   BODY & GLOBAL — Galaxy background directly on body
   background-attachment:fixed keeps it during scroll
   =================================================== */
body {
  color: #c9d2e0;
  font-family: 'Exo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;

  /* ── CSS stars (top) + real galaxy photo (bottom) ── */
  background-image:
    /* bright white/blue stars */
    radial-gradient(2px 2px at  5%  5%, rgba(255,255,255,.95) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 12%  8%, rgba(200,222,255,.90) 0%, transparent 100%),
    radial-gradient(2.5px 2.5px at 35%  6%, rgba(255,240,200,.85) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 48%  2%, rgba(220,242,255,.88) 0%, transparent 100%),
    radial-gradient(2px 2px at 75%  4%, rgba(255,225,200,.88) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 95%  3%, rgba(200,220,255,.85) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 18% 32%, rgba(255,255,255,.88) 0%, transparent 100%),
    radial-gradient(1px 1px at 28% 18%, rgba(222,200,255,.82) 0%, transparent 100%),
    radial-gradient(2px 2px at 42% 40%, rgba(255,255,255,.72) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 68% 35%, rgba(200,232,255,.88) 0%, transparent 100%),
    radial-gradient(2px 2px at 90% 42%, rgba(255,255,255,.95) 0%, transparent 100%),
    radial-gradient(1px 1px at 97% 30%, rgba(255,222,180,.82) 0%, transparent 100%),
    radial-gradient(2px 2px at 38% 48%, rgba(202,222,255,.85) 0%, transparent 100%),
    radial-gradient(1px 1px at 52% 58%, rgba(255,255,255,.88) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 82% 67%, rgba(222,202,255,.85) 0%, transparent 100%),
    radial-gradient(1px 1px at  7% 75%, rgba(255,255,255,.88) 0%, transparent 100%),
    radial-gradient(2px 2px at 20% 88%, rgba(202,222,255,.92) 0%, transparent 100%),
    radial-gradient(2px 2px at 72% 78%, rgba(255,255,255,.95) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 96% 85%, rgba(255,255,255,.90) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 72% 52%, rgba(255,255,255,.78) 0%, transparent 100%),
    radial-gradient(2px 2px at 58% 68%, rgba(255,255,255,.88) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 14% 97%, rgba(255,255,255,.78) 0%, transparent 100%),
    radial-gradient(2px 2px at 77% 87%, rgba(255,255,255,.92) 0%, transparent 100%),
    radial-gradient(1px 1px at 16% 60%, rgba(255,255,255,.68) 0%, transparent 100%),
    radial-gradient(1px 1px at 56% 38%, rgba(255,255,255,.78) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 91% 17%, rgba(255,222,202,.88) 0%, transparent 100%),
    radial-gradient(1px 1px at  3% 50%, rgba(255,255,255,.75) 0%, transparent 100%),
    radial-gradient(1px 1px at 44% 15%, rgba(202,222,255,.85) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 90%, rgba(255,255,255,.80) 0%, transparent 100%),
    radial-gradient(1px 1px at 63% 80%, rgba(255,255,255,.75) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 15%, rgba(202,222,255,.85) 0%, transparent 100%),
    radial-gradient(1px 1px at 83% 12%, rgba(180,210,255,.80) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 60% 22%, rgba(255,255,255,.85) 0%, transparent 100%),
    radial-gradient(1px 1px at  9% 44%, rgba(255,255,255,.70) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 72%, rgba(255,255,255,.75) 0%, transparent 100%),
    /* real galaxy photo — BOTTOM layer */
    url('/onaa2026/images/galaxy-bg.jpg');

  background-attachment: fixed, fixed, fixed, fixed, fixed, fixed, fixed, fixed,
                         fixed, fixed, fixed, fixed, fixed, fixed, fixed, fixed,
                         fixed, fixed, fixed, fixed, fixed, fixed, fixed, fixed,
                         fixed, fixed, fixed, fixed, fixed, fixed, fixed, fixed,
                         fixed, fixed, fixed, fixed;
  background-size:       auto, auto, auto, auto, auto, auto, auto, auto,
                         auto, auto, auto, auto, auto, auto, auto, auto,
                         auto, auto, auto, auto, auto, auto, auto, auto,
                         auto, auto, auto, auto, auto, auto, auto, auto,
                         auto, auto, auto, cover;
  background-position:   0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0,
                         0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0,
                         0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0,
                         0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0,
                         0 0, 0 0, 0 0, center center;
  background-color: #050d20;
}


/* ── Twinkling keyframe ── */
@keyframes twinkle {
  0%, 100% { opacity: 1; }
  40%       { opacity: 0.45; }
  70%       { opacity: 0.8; }
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Orbitron', 'Exo 2', sans-serif;
  color: #e8c84a;
  letter-spacing: 0.04em;
}

a {
  color: #4fc3f7;
  text-decoration: none;
}

a:hover {
  color: #f5c518;
}

/* ===================================================
   HEADER
   =================================================== */
.header.container-header {
  background-color: rgba(4, 8, 18, 0.88) !important;
  border-bottom: 1px solid rgba(79, 195, 247, 0.25);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Site brand / logo */
.navbar-brand {
  color: #f5c518 !important;
}

.navbar-brand a,
.brand-logo {
  color: #f5c518;
}

.site-description {
  color: rgba(201, 210, 224, 0.7);
  font-size: 0.85em;
  font-family: 'Exo 2', sans-serif;
}

/* Topbar */
.container-topbar {
  background-color: rgba(2, 4, 10, 0.82);
  border-bottom: 1px solid rgba(79, 195, 247, 0.1);
}

/* ===================================================
   NAVIGATION
   =================================================== */
.mod-menu,
.container-nav {
  background: transparent;
}

.mod-menu .nav-item > a,
.navbar-nav .nav-link,
.mod-menu__item a {
  color: #c9d2e0 !important;
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.mod-menu .nav-item > a:hover,
.mod-menu .nav-item > a:focus,
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
  color: #4fc3f7 !important;
  text-shadow: 0 0 12px rgba(79, 195, 247, 0.5);
}

/* Dropdown menus */
.dropdown-menu {
  background-color: #0d1520;
  border: 1px solid rgba(79, 195, 247, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.dropdown-item {
  color: #c9d2e0;
  font-family: 'Exo 2', sans-serif;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: rgba(79, 195, 247, 0.12);
  color: #4fc3f7;
}

.dropdown-item.active,
.dropdown-item:active {
  background-color: rgba(79, 195, 247, 0.2);
  color: #4fc3f7;
}

.dropdown-divider {
  border-color: rgba(79, 195, 247, 0.15);
}

/* Navbar toggler */
.navbar-toggler {
  border-color: rgba(79, 195, 247, 0.3);
  color: #4fc3f7;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2879, 195, 247, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Metismenu/mobile nav */
.metismenu.mod-menu ul,
.metismenu.mod-menu .parent > ul {
  background-color: #080c18;
  border: 1px solid rgba(79, 195, 247, 0.15);
}

/* ===================================================
   MAIN CONTENT GRID — transparent so galaxy shows
   =================================================== */
.site-grid,
.site-grid > * {
  background: transparent;
}

.wrapper-static,
.wrapper-fluid {
  background: transparent;
}

.container-component {
  background: transparent;
}

/* ===================================================
   CARDS & MODULES — glass effect over galaxy
   =================================================== */
.card {
  background-color: rgba(8, 14, 30, 0.78);
  border-color: rgba(79, 195, 247, 0.22);
  color: #c9d2e0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5),
              inset 0 1px 0 rgba(79, 195, 247, 0.05);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.card-header {
  background-color: rgba(79, 195, 247, 0.07);
  border-bottom-color: rgba(79, 195, 247, 0.18);
  color: #e8c84a;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.05em;
}

.card-footer {
  background-color: rgba(10, 16, 32, 0.8);
  border-top-color: rgba(79, 195, 247, 0.18);
}

/* Module titles */
.card-header .module-title,
.card-header h2,
.card-header h3 {
  color: #e8c84a;
  font-family: 'Orbitron', sans-serif;
}

/* ===================================================
   SIDEBARS
   =================================================== */
.container-sidebar-left,
.container-sidebar-right {
  background-color: transparent;
}

.sidebar-left .card,
.sidebar-right .card {
  background-color: rgba(6, 10, 22, 0.80);
  border-color: rgba(79, 195, 247, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ===================================================
   FOOTER
   =================================================== */
footer.container-footer,
.container-footer.footer {
  background-color: rgba(2, 4, 10, 0.88) !important;
  border-top: 1px solid rgba(79, 195, 247, 0.2);
  color: rgba(201, 210, 224, 0.7);
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

footer a,
.container-footer a {
  color: rgba(79, 195, 247, 0.8);
}

footer a:hover,
.container-footer a:hover {
  color: #f5c518;
}

/* ===================================================
   BUTTONS
   =================================================== */
.btn-primary {
  --btn-color: #050810;
  --btn-bg: #4fc3f7;
  --btn-border-color: #4fc3f7;
  --btn-hover-color: #050810;
  --btn-hover-bg: #f5c518;
  --btn-hover-border-color: #f5c518;
  --btn-focus-shadow-rgb: 79, 195, 247;
  --btn-active-color: #050810;
  --btn-active-bg: #e0b015;
  --btn-active-border-color: #e0b015;
  --btn-disabled-bg: #4fc3f7;
  --btn-disabled-border-color: #4fc3f7;
}

.btn-secondary {
  --btn-color: #c9d2e0;
  --btn-bg: #1e3a5f;
  --btn-border-color: rgba(79, 195, 247, 0.3);
  --btn-hover-color: #f0f4ff;
  --btn-hover-bg: #0a2a4a;
  --btn-hover-border-color: #4fc3f7;
}

.btn-outline-primary {
  --btn-color: #4fc3f7;
  --btn-border-color: #4fc3f7;
  --btn-hover-color: #050810;
  --btn-hover-bg: #4fc3f7;
  --btn-hover-border-color: #4fc3f7;
}

/* ===================================================
   FORM ELEMENTS
   =================================================== */
.form-control,
.form-select,
.custom-select {
  background-color: #0d1520;
  border-color: rgba(79, 195, 247, 0.25);
  color: #c9d2e0;
}

.form-control:focus,
.form-select:focus,
.custom-select:focus {
  background-color: #0d1520;
  border-color: #4fc3f7;
  color: #c9d2e0;
  box-shadow: 0 0 0 0.25rem rgba(79, 195, 247, 0.2);
}

.form-control::placeholder {
  color: rgba(201, 210, 224, 0.4);
}

.form-control:disabled,
.form-select:disabled {
  background-color: #0a1020;
  color: rgba(201, 210, 224, 0.4);
}

.input-group-text {
  background-color: #0a1020;
  border-color: rgba(79, 195, 247, 0.25);
  color: #c9d2e0;
}

.form-label,
label {
  color: #a0b4c8;
}

/* Form check inputs */
.form-check-input {
  background-color: #0d1520;
  border-color: rgba(79, 195, 247, 0.3);
}

.form-check-input:checked {
  background-color: #4fc3f7;
  border-color: #4fc3f7;
}

/* Search module */
.search-query {
  background-color: #0d1520;
  border-color: rgba(79, 195, 247, 0.3);
  color: #c9d2e0;
}

/* ===================================================
   TABLES
   =================================================== */
.table {
  --table-color: #c9d2e0;
  --table-bg: transparent;
  --table-border-color: rgba(79, 195, 247, 0.15);
  --table-striped-color: #c9d2e0;
  --table-striped-bg: rgba(79, 195, 247, 0.04);
  --table-hover-color: #f0f4ff;
  --table-hover-bg: rgba(79, 195, 247, 0.08);
}

.table thead th,
.table > thead > tr > th {
  color: #4fc3f7;
  border-bottom-color: rgba(79, 195, 247, 0.3);
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.05em;
  font-size: 0.85em;
}

/* ===================================================
   BREADCRUMBS
   =================================================== */
.breadcrumb {
  background: transparent;
}

.breadcrumb-item a {
  color: #4fc3f7;
}

.breadcrumb-item.active {
  color: rgba(201, 210, 224, 0.6);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(79, 195, 247, 0.4);
}

/* ===================================================
   PAGINATION
   =================================================== */
.page-link {
  background-color: #0d1520;
  border-color: rgba(79, 195, 247, 0.2);
  color: #4fc3f7;
}

.page-link:hover {
  background-color: rgba(79, 195, 247, 0.12);
  border-color: #4fc3f7;
  color: #4fc3f7;
}

.page-item.active .page-link,
.page-link.active {
  background-color: #4fc3f7;
  border-color: #4fc3f7;
  color: #050810;
}

.page-item.disabled .page-link {
  background-color: #0a1020;
  border-color: rgba(79, 195, 247, 0.1);
  color: rgba(79, 195, 247, 0.3);
}

/* ===================================================
   ALERTS
   =================================================== */
.alert {
  border-color: rgba(79, 195, 247, 0.2);
}

.alert-info {
  background-color: rgba(79, 195, 247, 0.1);
  border-color: rgba(79, 195, 247, 0.3);
  color: #a8d8f0;
}

.alert-warning {
  background-color: rgba(245, 197, 24, 0.1);
  border-color: rgba(245, 197, 24, 0.3);
  color: #f5c518;
}

.alert-danger {
  background-color: rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.3);
  color: #f08090;
}

.alert-success {
  background-color: rgba(68, 131, 68, 0.1);
  border-color: rgba(68, 131, 68, 0.3);
  color: #7ecb7e;
}

/* ===================================================
   BADGES
   =================================================== */
.badge.bg-primary,
.badge-primary {
  background-color: #1e3a5f !important;
  color: #4fc3f7;
  border: 1px solid rgba(79, 195, 247, 0.3);
}

/* ===================================================
   ACCORDION
   =================================================== */
.accordion-item {
  background-color: #0d1520;
  border-color: rgba(79, 195, 247, 0.15);
  color: #c9d2e0;
}

.accordion-button {
  background-color: #0d1520;
  color: #c9d2e0;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(79, 195, 247, 0.08);
  color: #4fc3f7;
  box-shadow: inset 0 -1px 0 rgba(79, 195, 247, 0.2);
}

.accordion-button::after {
  filter: invert(1) sepia(1) saturate(2) hue-rotate(180deg);
}

/* ===================================================
   LIST GROUP
   =================================================== */
.list-group-item {
  background-color: #0d1520;
  border-color: rgba(79, 195, 247, 0.15);
  color: #c9d2e0;
}

.list-group-item:hover,
.list-group-item-action:hover {
  background-color: rgba(79, 195, 247, 0.08);
  color: #4fc3f7;
}

.list-group-item.active {
  background-color: #1e3a5f;
  border-color: #4fc3f7;
  color: #4fc3f7;
}

/* ===================================================
   NAV TABS / PILLS
   =================================================== */
.nav-tabs {
  border-bottom-color: rgba(79, 195, 247, 0.2);
}

.nav-tabs .nav-link {
  color: rgba(201, 210, 224, 0.7);
  border-color: transparent;
}

.nav-tabs .nav-link:hover {
  color: #4fc3f7;
  border-color: rgba(79, 195, 247, 0.3) rgba(79, 195, 247, 0.3) rgba(79, 195, 247, 0.2);
}

.nav-tabs .nav-link.active {
  background-color: #0d1520;
  border-color: rgba(79, 195, 247, 0.3) rgba(79, 195, 247, 0.3) #0d1520;
  color: #4fc3f7;
}

.nav-pills .nav-link {
  color: rgba(201, 210, 224, 0.7);
}

.nav-pills .nav-link.active {
  background-color: #1e3a5f;
  color: #4fc3f7;
}

/* ===================================================
   JOOMLA COMPONENT SPECIFIC
   =================================================== */

/* Article/content */
.com-content-article__body,
.article-info,
.item-page {
  color: #c9d2e0;
}

.com-content-article__header h1,
.page-header h1,
.item-title a {
  color: #e8c84a;
  font-family: 'Orbitron', sans-serif;
}

/* Category lists */
.com-content-category__items .card {
  background-color: #0d1520;
  border-color: rgba(79, 195, 247, 0.15);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.com-content-category__items .card:hover {
  border-color: rgba(79, 195, 247, 0.4);
  box-shadow: 0 4px 20px rgba(79, 195, 247, 0.15);
}

/* Contact form */
.contact .contact-form label {
  color: #a0b4c8;
}

/* Login form */
.com-users-login__container,
#form-login {
  background-color: rgba(8, 14, 30, 0.82);
  border: 1px solid rgba(79, 195, 247, 0.2);
  border-radius: 0.5rem;
  padding: 2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ===================================================
   ARTICLE TAG / CATEGORY BADGE
   =================================================== */
.badge.badge-secondary,
.article__tags .label-info,
dd.tag-name a {
  background-color: #1e3a5f;
  color: #4fc3f7;
  border: 1px solid rgba(79, 195, 247, 0.3);
}

/* ===================================================
   JOOMLA SYSTEM MESSAGES
   =================================================== */
.alert-message {
  background-color: rgba(79, 195, 247, 0.1);
  border-color: rgba(79, 195, 247, 0.3);
  color: #a8d8f0;
}

/* ===================================================
   BACK-TO-TOP BUTTON
   =================================================== */
#back-top,
.back-to-top-link {
  background-color: rgba(79, 195, 247, 0.15);
  border: 1px solid rgba(79, 195, 247, 0.4);
  color: #4fc3f7;
  border-radius: 50%;
  transition: all 0.3s ease;
}

#back-top:hover,
.back-to-top-link:hover {
  background-color: #4fc3f7;
  color: #050810;
  box-shadow: 0 0 20px rgba(79, 195, 247, 0.5);
}

/* ===================================================
   CUSTOM SCROLLBAR
   =================================================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #080c18;
}

::-webkit-scrollbar-thumb {
  background: #1e3a5f;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4fc3f7;
}

/* ===================================================
   TEXT SELECTION
   =================================================== */
::selection {
  background-color: rgba(79, 195, 247, 0.3);
  color: #ffffff;
}

/* ===================================================
   BANNER AREA
   =================================================== */
.container-banner {
  background: transparent;
}

/* ===================================================
   SEPARATORS & HORIZONTAL RULES
   =================================================== */
hr {
  border-color: rgba(79, 195, 247, 0.2);
  opacity: 1;
}

/* ===================================================
   BLOCKQUOTE
   =================================================== */
blockquote,
.blockquote {
  border-left: 3px solid #4fc3f7;
  padding-left: 1rem;
  color: rgba(201, 210, 224, 0.85);
  font-style: italic;
}

/* ===================================================
   CODE ELEMENTS
   =================================================== */
code {
  background-color: rgba(156, 107, 222, 0.15);
  color: #9c6bde;
  border-radius: 3px;
  padding: 0.15em 0.4em;
}

pre {
  background-color: #0a1020;
  border: 1px solid rgba(79, 195, 247, 0.15);
  border-radius: 0.4rem;
  color: #c9d2e0;
  padding: 1rem;
}

/* ===================================================
   IMAGES
   =================================================== */
.img-thumbnail {
  background-color: #0d1520;
  border-color: rgba(79, 195, 247, 0.2);
}

/* ===================================================
   MODAL
   =================================================== */
.modal-content {
  background-color: #0d1520;
  border-color: rgba(79, 195, 247, 0.25);
  color: #c9d2e0;
}

.modal-header {
  border-bottom-color: rgba(79, 195, 247, 0.2);
}

.modal-footer {
  border-top-color: rgba(79, 195, 247, 0.2);
}

.modal-title {
  color: #e8c84a;
  font-family: 'Orbitron', sans-serif;
}

.modal-backdrop.show {
  opacity: 0.8;
}

/* ===================================================
   PROGRESS BARS
   =================================================== */
.progress {
  background-color: #0a1020;
}

.progress-bar {
  background-color: #4fc3f7;
}

/* ===================================================
   LOADING STATES
   =================================================== */
.spinner-border,
.spinner-grow {
  color: #4fc3f7;
}

/* ===================================================
   JOOMLA FEATURED/INTRO ARTICLES GRID
   =================================================== */
.items-leading .card,
.items-row .card {
  background-color: #0d1520;
  border-color: rgba(79, 195, 247, 0.15);
}

.items-leading .card:hover,
.items-row .card:hover {
  border-color: rgba(79, 195, 247, 0.35);
  box-shadow: 0 4px 24px rgba(79, 195, 247, 0.12);
}

/* ===================================================
   ASTRONOMY GLOW — ACCENT ELEMENTS
   =================================================== */

/* Glowing border on focused interactive elements */
.form-control:focus,
.form-select:focus,
.btn:focus-visible,
button:focus-visible {
  outline-color: rgba(79, 195, 247, 0.5);
}

/* Site title glow */
.site-title,
.navbar-brand span {
  color: #f5c518;
  text-shadow: 0 0 20px rgba(245, 197, 24, 0.4);
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.08em;
}

/* ===================================================
   ONAA NAVBAR - Stil ISJ2 (albastru + auriu)
   =================================================== */

/* Bara de navigare principala - transparent */
.onaa-navbar {
  background: rgba(0, 10, 30, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 998;
  border-top: 1px solid rgba(79, 195, 247, 0.18);
  border-bottom: 1px solid rgba(79, 195, 247, 0.18);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.onaa-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Lista principala de meniu - ORIZONTAL */
.onaa-navbar .mod-menu {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

/* Fiecare item de meniu */
.onaa-navbar .nav-item {
  position: relative;
}

/* Link-urile din meniu */
.onaa-navbar .nav-item > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 15px 18px;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-family: 'Exo 2', 'Nunito', sans-serif;
  white-space: nowrap;
  text-decoration: none !important;
  border-bottom: 3px solid transparent;
  transition: all 0.22s cubic-bezier(.4,0,.2,1);
  transform: translateY(0);
}

/* Hover si item activ */
.onaa-navbar .nav-item:hover > a,
.onaa-navbar .nav-item:focus-within > a {
  color: #f0a500 !important;
  border-bottom-color: #f0a500;
  background: rgba(255, 255, 255, 0.10);
  transform: translateY(-2px);
  text-shadow: 0 0 18px rgba(240, 165, 0, 0.55);
  letter-spacing: 0.07em;
}
.onaa-navbar .nav-item.active > a,
.onaa-navbar .nav-item.current > a {
  color: #f0a500 !important;
  border-bottom-color: #f0a500;
  background: rgba(240, 165, 0, 0.10);
  text-shadow: 0 0 12px rgba(240, 165, 0, 0.4);
}

/* Buton chevron (toggle submeniu) */
.onaa-navbar .mod-menu__toggle-sub {
  background: none !important;
  border: none !important;
  color: rgba(255,255,255,0.6);
  padding: 0 2px;
  cursor: pointer;
  font-size: 0.65rem;
  vertical-align: middle;
}

.onaa-navbar .nav-item:hover .mod-menu__toggle-sub,
.onaa-navbar .nav-item:focus-within .mod-menu__toggle-sub {
  color: #f0a500;
}

/* ===================================================
   SUBMENIU DROPDOWN
   =================================================== */

/* Ascunde submeniu by default */
.onaa-navbar .mod-menu__sub {
  position: absolute;
  top: calc(100% + 0px);
  left: 0;
  min-width: 240px;
  background: #ffffff;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 12px 40px rgba(0, 51, 153, 0.25);
  border-top: 3px solid #f0a500;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 9999;
  list-style: none;
  padding: 6px 0;
  margin: 0;
}

/* Afisare submeniu pe desktop la hover */
@media (min-width: 992px) {
  .onaa-navbar .nav-item:hover > .mod-menu__sub,
  .onaa-navbar .nav-item:focus-within > .mod-menu__sub {
    opacity: 1 !important;
    pointer-events: all;
    transform: translateY(0);
    display: block !important;
  }

  /* Suprascrie aria-hidden pe desktop */
  .onaa-navbar .mod-menu__sub[aria-hidden="true"] {
    display: block;
  }
}

/* Link-uri in submeniu */
.onaa-navbar .mod-menu__sub .nav-item > a {
  padding: 10px 20px;
  color: #2c3e50 !important;
  font-weight: 400;
  font-size: 0.875rem;
  border-bottom: none !important;
  background: none;
  display: block;
  text-decoration: none !important;
  transition: all 0.2s;
}

.onaa-navbar .mod-menu__sub .nav-item > a:hover {
  background: #e8f0fd !important;
  color: #003399 !important;
  padding-left: 26px;
  border-bottom: none !important;
}

/* ===================================================
   RESPONSIVE NAVBAR
   =================================================== */
@media (max-width: 991px) {
  .onaa-navbar .onaa-nav-inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .onaa-navbar .mod-menu {
    flex-wrap: nowrap;
  }
  .onaa-navbar .nav-item > a {
    padding: 10px 12px;
    font-size: 0.82rem;
    border-bottom: none !important;
    white-space: nowrap;
  }
  .onaa-navbar .mod-menu__sub {
    position: static;
    opacity: 1;
    pointer-events: all;
    transform: none;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid #f0a500;
    border-radius: 0;
    background: rgba(255,255,255,0.05);
  }
  .onaa-navbar .mod-menu__sub[aria-hidden="true"] {
    display: none;
  }
  .onaa-navbar .mod-menu__sub[aria-hidden="false"] {
    display: block;
  }
}

/* ===================================================
   ORRERY 3D — Sistem Solar Interactiv
   =================================================== */

.onaa-solar-section {
  background: transparent;
  padding: 0;
}

#solar-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 1.75rem;
}

.solar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.solar-title-text {
  color: #f5c518;
  font-family: 'Orbitron', monospace, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-shadow: 0 0 12px rgba(245, 197, 24, 0.5);
}

.solar-hint {
  color: rgba(180, 210, 255, 0.55);
  font-size: 0.75rem;
  font-style: italic;
}

#solar-container {
  position: relative;
  width: 100%;
  height: clamp(300px, 52vh, 560px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(79, 195, 247, 0.15);
  box-shadow:
    0 0 60px rgba(0, 30, 90, 0.5),
    inset 0 0 80px rgba(0, 0, 15, 0.7);
  background: radial-gradient(ellipse at center, #05091c 0%, #010308 100%);
}

#solar-canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  cursor: grab;
}

#solar-canvas:active { cursor: grabbing; }

#solar-tooltip {
  display: none;
  position: absolute;
  background: rgba(2, 10, 30, 0.93);
  border: 1px solid rgba(79, 195, 247, 0.45);
  border-radius: 10px;
  padding: 10px 14px;
  pointer-events: none;
  z-index: 20;
  max-width: 230px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 50, 130, 0.4);
}

.stt-name {
  color: #f5c518;
  font-family: 'Orbitron', monospace, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}

.stt-info {
  color: #b8d4f0;
  font-size: 0.78rem;
  line-height: 1.45;
}

@media (max-width: 576px) {
  .solar-hint { display: none; }
  #solar-container { height: 260px; border-radius: 10px; }
  #solar-wrap { padding: 0.75rem 0.75rem 1rem; }
}
