﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
  color: #0366d6;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px; /* Vertically center the text there */
}

/* visibility helpers for header variants */
.mobile-only { display: none; }
.desktop-only { display: block; }

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .mobile-only { display: block; }
  .desktop-only { display: none; }
  /* Top header mobile: show only SAIMS, date, language */
  .web__topbar .ui.horizontal.list .item:not(:first-child) { display: none !important; }
  .web__topbar .language { display: block; }
  
  /* Second header: hide text lines; keep logo + flag */
  .border-top .row p,
  .border-top .row strong { display: none !important; }
  
  /* Menu color adjustments to match theme */
  .nav-main > li > a,
  .nav-main .dropdown > a { color: #b30000 !important; }
  .nav-main > li > a:hover,
  .nav-main .dropdown > a:hover { color: #8c0000 !important; }
  .nav-main .dropdown > a:after { border-top-color: #b30000 !important; }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0.75rem;
  }
  
  .table-responsive {
    border: none;
  }
  
  .btn {
    font-size: 0.875rem;
  }
  
  .btn-sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
  
  .card {
    margin-bottom: 1rem;
  }
  
  .panel {
    margin-bottom: 1rem;
  }
  
  .panel-body {
    padding: 0.75rem;
  }
  
  .nav-tabs {
    flex-wrap: wrap;
  }
  
  .nav-tabs .nav-item {
    margin-bottom: 0.25rem;
  }
  
  .carousel-caption {
    padding: 0.5rem;
  }
  
  .carousel-caption h2 {
    font-size: 1.1rem;
  }
  
  .carousel-caption p {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .nav-main > li > a,
  .nav-main .dropdown > a { color: #b30000 !important; }
  
  .navbar-brand {
    font-size: 1rem;
  }
  
  .btn {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
  }
  
  .btn-sm {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }
  
  .card-body {
    padding: 0.75rem;
  }
  
  .panel-body {
    padding: 0.5rem;
  }
  
  .nav-tabs .nav-link {
    padding: 0.375rem 0.5rem;
    font-size: 0.8rem;
  }
  
  .table th, .table td {
    padding: 0.25rem;
    font-size: 0.8rem;
  }
  
  .carousel-caption h2 {
    font-size: 1rem;
  }
  
  .carousel-caption p {
    font-size: 0.75rem;
  }
  
  .alert {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .gallery {
    margin-bottom: 1rem;
  }
  
  .gallery img {
    width: 100%;
    height: auto;
  }
  
  .gallery .desc {
    font-size: 0.8rem;
    padding: 0.25rem;
  }
}

/* HEADER VISIBILITY: Minimal, Safe Responsive Toggle */
/* Hide mobile headers on desktop */
.web__topbar.mobile,
.border-top-mobile {
    display: none !important;
}
/* Show mobile headers and hide desktop headers only on mobile screens */
@media (max-width: 767px) {
    .web__topbar.mobile,
    .border-top-mobile {
        display: block !important;
    }
    .web__topbar:not(.mobile),
    .border-top {
        display: none !important;
    }
    #topNav {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }
}

#mobileMenuToggle, #mobileMainNav { display: none; }
@media (max-width: 767px) {
    #mobileMenuToggle {
        display: inline-block !important;
        background: transparent;
        border: none;
        font-size: 2rem;
        color: #333;
        margin-left: 15px;
        vertical-align: middle;
    }
    #mobileMainNav {
        display: none; /* shown via .open or inline JS */
        position: absolute;
        top: 55px;
        left: 0;
        width: 100%;
        background: #fff;
        z-index: 10001;
        box-shadow: 0 2px 10px rgba(0,0,0,.1);
    }
    #mobileMainNav.open,
    #mobileMainNav[style*='display: block'] {
        display: block !important;
    }
    #mobileMainNav ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }
    #mobileMainNav li {
        padding: 14px 22px;
        border-bottom: 1px solid #dadada;
    }
    #mobileMainNav a {
        color: #222;
        display: block;
        text-decoration: none;
        font-size: 1.15rem;
    }
    #mobileMainNav a:hover {
        color: #c40c0c;
    }
}

/* MobileMenu Dropdown enhancements */
#mobileMainNav .dropdown-arrow {
  float: right;
  font-size: 1.1em;
  pointer-events: none;
  margin-left: 7px;
}
#mobileMainNav ul.dropdown-menu {
  display: none;
}
#mobileMainNav li.open > ul.dropdown-menu {
  display: block;
}
#mobileMainNav li.open > a .dropdown-arrow {
  transform: rotate(180deg);
}