/* Cassiopeia Child Law - user.css */
:root {
  --cassiopeia-color-primary: #1a2e44;
  --brand: var(--cassiopeia-color-primary, #1a2e44);
  --radius: 1rem;
  --shadow: 0 10px 20px rgba(0,0,0,.06), 0 6px 6px rgba(0,0,0,.08);

  /* for dark & light */
  --link-color: #578dfb; 
  --chld-primary-color: #1a2e44;
  --chld-accent-color: #c1a86d;
  --chld-accent-color-70: #c1a86d70;
  /* for inactive */
  --faded-white: rgba(255,255,255,0.7); 
  --white: #fff;
  --subtle-gold: #c5a059;
  --chld-subtle-navy: #2F5075;
  /* color-scheme: light; */  
  --body-color-light-t: var(--chld-primary-color);
  --body-bg-light-t: #fff;  
  --secondary-color-light-t: #22262abf;  
  /* color-scheme: dark; */  
  --body-color-dark-t: #e5e7eb;  /* ova #1 */
  --body-bg-dark-t: #171c24;
  --secondary-color-dark-t: #8298afbf; 
  /* -------------------------------- */
  interpolate-size: allow-keywords;
  scroll-behavior: smooth;
}
html[data-bs-theme="dark"] {
  color-scheme: dark;
  --body-color: var(--body-color-dark-t);
  --body-bg: var(--body-bg-dark-t);
  --secondary-color: var(--secondary-color-dark-t); 
}
html[data-bs-theme="light"] {
  color-scheme: light; 
  --body-color: var(--body-color-light-t);
  --body-bg: var(--body-bg-light-t);
  --secondary-color: var(var(--secondary-color-light-t))  
}
/* Auto-theme based on OS/Browser settings */
@media (prefers-color-scheme: dark) {
  :root {
    --cassiopeia-color-primary: #1a2e44;
    --body-color: #e5e7eb;
    --body-bg: #171c24;    
    /* .article-info*/
    --secondary-color: #8298afbf;     
  }  
  .form-control {
    background-color: var(--body-bg);
  }
}
@media (prefers-color-scheme: light) {
  :root {
  --cassiopeia-color-primary: #1a2e44;
  --body-color: #22262a;
  --body-bg: #fff;
  --secondary-color: #22262abf;  
  }
  .form-control {
    background-color: var(--body-bg);
  }
}

/* Floating dark-mode toggle (if enabled) */
#darkModeToggle {
  position: fixed;
  right: .1rem;
  bottom: 1rem;
  z-index: 1040;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 45px;
	height: 45px;
	line-height: 45px;
	text-align: center;
	border-radius: 50%;
	border: 1px solid #fff;
	box-shadow: 1px 4px 6px rgba(26, 46, 68, 0.4);
	background-color: var(--chld-primary-color);
	color: #fff;
	text-decoration: none;
	font-size: 1.2rem;
	transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}
[data-bs-theme="dark"] #darkModeToggle i {
  color: #ffc107; /* sun */
}
[data-bs-theme="light"] #darkModeToggle  i {
  color: #d1e2f2; /* moon */
}
.item-content {
  background-color: var(--body-bg);
}
/* Base typography & spacing */
body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Utility classes */
.rounded-xl { border-radius: var(--radius) !important; }
.card-modern {
  border: 1px solid var(--chld-accent-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2.5vw, 2rem);
  background: var(--body-bg);
}
/* sticky header */
@media (max-width: 991.98px) {
  .container-header {
    position: sticky!important; 
    top: 0;
    z-index: 1030; /* Bootstrap navbar level */
  }
}
/* Back to top btn  */
.back-to-top {
  position: fixed;
  right: .1rem;
  bottom: 5rem;
  z-index: 1050;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  line-height: 45px;
  /* O */ 
  text-align: center;
  border-radius: 50%;
  border: 1px solid #fff;
  box-shadow: 1px 4px 6px rgba(26, 46, 68, 0.4);
  background-color: var(--chld-primary-color);
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;   
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 9999;
  pointer-events: none;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover,
.back-to-top:focus {
  background: var(--bs-primary-hover, var(--chld-subtle-navy));
  color: #fff;
  text-decoration: none;
}
/* MOBILE: Simple stacked order */
.section-h1-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.section-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}  
/* DESKTOP (768px+): Advanced Grid Alignment */
@media (min-width: 768px) {
  .section-h1-wrapper {
    display: grid;
    /* 2 columns: main content (2 parts) and sidebar (1 part) */
    grid-template-columns: 2fr 1fr; 
    gap: 1em 2em;
  } 
  .section-cards-h, .section-sidebar-h {
    margin-bottom: 16px;
	  align-self: end;
  } 
  .section-cards-grid {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 16px;
  }
  .section-sidebar-content {
    display: flex;
    flex-direction: column;
  }
}
.section-sidebar-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-cards, .section-sidebar {
  display: grid;
  grid-template-rows: subgrid;       
  grid-row: span 3;
  gap: 16px; 
  margin-top: 32px;
}  
.section-cards a, .section-sidebar a {
  margin-top: auto;
  width: max-content;
  justify-self: center;
}
.section-cards-card { 
  display: grid; 
  grid-template-rows: subgrid; 
  grid-row: span 3; 
  gap: 16px; 
}
.section-cards-grid.sech2 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px,1fr));
}
.section-cards-card h3 { 
  align-self: end; 
  border-bottom: 2px solid var(--subtle-gold);
	display: flex;
	align-items: center;
}
.section-cards-card h3 span {
  margin-right: 8px;
}
.section-cards-btn {
  justify-self: center;
	display: flex;
	flex-direction: column;
	gap: .5rem;
	align-items: center;
}
.section-sidebar-content img {
	width: 200px;
	height: auto;
	/* border-radius: 50%; */
	object-fit: cover;
	box-shadow: 0 0 0 2px var(--chld-accent-color);
	/* object-position: center top; */
	margin-bottom: 16px;
}
.about-us {
  display: grid;
  grid-template-columns: 1fr;
} 
.about-us img {
    width: 200px;
	height: auto;
	/* border-radius: 50%; */
	object-fit: cover;
	box-shadow: 0 0 0 2px var(--chld-accent-color);
	/* object-position: center top; */
	margin-bottom: 16px;
}
.thumb-caption {
	margin-bottom: 16px;
	line-height: 1.8rem;
	text-align: center; 
  font-weight: 500;
}
.thumb-caption .thumb-caption-role {
  font-size: 0.85rem;
  opacity: 0.8;
}

.btn.btn-primary, .btn.btn-secondary {  
    min-width: 180px;
}

.about-us img, .about-us .thumb-caption, .about-us .btn.btn-secondary {
  justify-self: center;
}  

@media (min-width: 768px) {
  .about-us img, .about-us .thumb-caption, .about-us .btn.btn-secondary {
  justify-self: start;
}  
}

.btn-primary, .mod-menu .nav-link.btn-primary {
	background-color: var(--brand);
	border-color: var(--chld-accent-color);
	border-width: 2px;
	background-image: linear-gradient(#1a2e44 10%, #0a121b 85%); 
  margin: 4px;
}

.btn-primary:hover, .btn-primary:focus {
  color: var(--chld-accent-color);
  /* light gold */
	border-color: #e6d3a7;
  background-image: linear-gradient(to top, #1a2e44 10%, #0a121b 85%); 
}
/* my mod_simple_contact */
.scc-contact-module .scc-btn::before {
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	content: "\f1d8";
	position: relative;
	z-index: 5;
	left: -8px;
}
.scc-contact-module .scc-subh {
  font-weight: 600;
  letter-spacing: 1px;
}  

/* Header/Nav tweaks */
.container-header {
    background-image: none;     
    box-shadow: none;
}
.container-header .container-nav {
	padding-bottom: .5rem;
}
.container-header.sticky-top {
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.container-header nav {
	margin-top: .5em;
	padding: 0;
  flex: 1;
  justify-content: flex-start;
}
/* pos. Lang switch - header */
.container-header .container-search {
	margin-top: .5em;
  display: flex; 
	flex: 1;
	justify-content: flex-end;	
}
.container-header .navbar-brand {
	color: var(--chld-accent-color);
	padding-top: .3125rem;
	padding-bottom: .3125rem;
	font-size: 0.9rem;
	position: relative;
	display: flex;
	justify-content: space-between;
    flex-wrap: wrap;
    margin: 0 8px;
    gap: 0.5rem; 
    align-items: self-end; 
    /* 18.01.26. Izmena */
    /* font-variant: small-caps;  */ 
    font-variant: all-small-caps;
}
.container-footer .footer-contact {
	justify-self: flex-start;
}
.container-footer .navbar-brand {
	color: var(--chld-accent-color);
	padding-top: .3125rem;
	padding-bottom: .3125rem;
	font-size: 0.9rem;
	position: relative;
	display: flex;
	justify-content: center;
    flex-wrap: wrap;
    margin: 0 8px;
    gap: 0.5rem;  
    align-items: end; 
    font-variant: all-small-caps; 
}
.container-footer .navbar-brand::after {
	content: "";
	background: #c1a860;
	width: 81%;
	height: 3px;
	margin: .2rem auto;
	display: block;
}
.footer-contact .custom {
	display: flex;
	flex-direction: column;
	align-items: center;
  gap: 0.5rem;
}
.footer-contact .cnt-data {
	display: flex;
	flex-direction: column;
  align-items: center;
	gap: 8px;
	margin-top: 16px;
}
.footer-contact .cnt-data a:hover {
  color: var(--chld-accent-color);
}  
/* footer menu */
.footer .mod-menu {
	position: relative;
  display: flex;
	flex-direction: row;
	justify-content: center;
	grid-column: span 2;
	gap: 1rem;
	margin-top: 32px;
}
.footer-dno {
	grid-column: span 2;
	margin-top: 32px;
}
.footer-dno .custom {
  display: flex;
	flex-direction: column;
  align-items: center;
}
/* navbar toggle */
.container-header .navbar-toggler {
	color: #fff;
	cursor: pointer;
	border: 1px solid var(--subtle-gold);
  font-weight: 500; 
}
.navbar-toggler:focus {
	box-shadow: none;
	outline: 0;
	text-decoration: none;
}
/* Navbar TOGGLE icon "X" */
.container-header .navbar-toggler .icon-menu::before {  
    /* must be block transition to work  */
    display: inline-block;    
    transition: transform 0.4s ease-in-out; 
}    
.container-header .navbar-toggler[aria-expanded="true"] .icon-menu::before {  
    content: "\f00d";  /* X */
    transform: rotate(-90deg); 
}
.container-header .navbar-toggler[aria-expanded="false"] .icon-menu::before {  
    content: "\f0c9";  /* hamburger */
    transform: rotate(-180deg);
}

/* CTA header */
.container-header .cta-header {
	color: #fff;
	text-align: center;
	padding: 8px 0;
	border-top: 1px solid var(--chld-subtle-navy);  
	border-bottom: 1px solid var(--subtle-gold);
}
.container-header .cta-header a {
  text-decoration: none;
  color: #fff;
}  
.container-header .cta-header a:hover {
  text-decoration: underline;
  color: var(--subtle-gold);
}  
/* 16.01.26. Izmena: dodao justify */
.cta-btns {
	display: flex;
	flex-direction: column;
	margin-top: .5rem;
	/*
	justify-content: center;
	align-items: center;
	*/
}
/* 16.01.26. Izmena: dodao */
/*
.cta-btns .btn {
	flex: 1;		
	min-width: 200px;     
	max-width: 240px;
}
*/

.container-header .navbar-brand a,
.container-footer .navbar-brand a 
{
	color: var(--chld-accent-color);  
	display: flex;
	flex-direction: row;
	align-items: center;
  justify-content: center;
	width: 48px;
	text-decoration: none;  
  font-size: .9rem;
  gap: .5rem;
}
.container-footer .navbar-brand a 
{
   font-size: 1.1rem;
}  
.container-header .navbar-brand .brand-name, 
.container-footer .navbar-brand .brand-name
{
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
  width: auto;
  gap: normal;
}
/* Tel & lang switch */
.container-below-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
/* Header Menu */
.metismenu.mod-menu .metismenu-item {
	flex-wrap: wrap;
	align-items: center;
  padding: 1em 1em;
	font-size: .9rem;
	line-height: 1.5;
	display: flex;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* header menu - 4 desktop - active link & hover have subtle gold underline */
@media (width >= 992px) { 
.container-header .metismenu > li > a::after, .container-header .metismenu > li > button::before {
	content: "";
	opacity: 1;
	background: 0 0;
	height: 1px;
	margin: auto;
	transition: all .2s,background-color .2s;
	display: block;
	position: absolute;
	bottom: 0;
	left: 50%;
	right: 50%;
}
}
.container-header .metismenu > li > a:hover::after, 
.container-header .metismenu > li > button:hover::before, 
.container-header .metismenu > li.active > a::after, 
.container-header .metismenu > li.active > button::before {
	background: var(--chld-accent-color);     
	left: 0;
	right: 0;
}
.container-header .metismenu > li.active > a,
.container-header .metismenu > li > a:hover
{
   font-weight: 600!important;
   text-decoration: none!important;
}

/* mobile menu - open */
.container-header .navbar-collapse.show {
  margin: 16px 0; 
  width: 100vw; /* full screen w. ok 4 SR/EN  */
}
.container-header .navbar-collapse.show .metismenu.mod-menu .metismenu-item {
  border-bottom: 1px solid var(--chld-subtle-navy);
}
.navbar-collapse {
  transition: height 0.4s ease-in-out;
}
.collapsing {
  height:0;
  overflow:hidden;
}
/* mobile menu - item clickable whole w. */
.container-header .navbar-collapse.show .metismenu.mod-menu .metismenu-item a {
	width: 100%;
}
/* menu divider, only 4 mobile, turn gold 4 chosen menu item, instead blue, like 4 others */
.container-header .navbar-collapse.show .metismenu.mod-menu .metismenu-item.active {
	border-bottom: 1px solid var(--chld-accent-color);
}

@media (width>=768px) {
  .container-header .navbar-brand .brand-name {
	  font-size: 1rem;
  } 
  .container-header .navbar-brand .brand-logo {
    width: 56px;
  }
  .cta-btns {
    flex-direction: row;
    margin-top: .5rem;
    /* 16.01.26. Izmena dodao justify */
    justify-content: center;
  }
  .section-cards-btn {
    flex-direction: row;
  }
}

@media (width>=992px) {
  .container-header .navbar-brand .brand-name { 
	  font-size: 1.1rem;
  }  
}

/* lang Switch cont */
.mod-languages {
  display: flex;
  align-items: center;
  height: 100%;
}
div.mod-languages li {
	margin: 0 0;
}
/* Style for LN1 / LN2 txt */
.mod-languages ul.lang-inline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px; /* space between lang-s */
}
.mod-languages ul.lang-inline li {
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
/* Link colors */
.mod-languages ul.lang-inline li a {
  color: var(--faded-white); /* for inactive */
  text-decoration: none;
  transition: color 0.3s ease;
}
.mod-languages ul.lang-inline li a:hover {
  color: var(--subtle-gold); /* gold on hover */
}
.mod-languages ul.lang-inline li.lang-active {
  color: var(--white);  /* bright white for chosen lang */
  border-bottom: 1px solid var(--subtle-gold) ;  /* subtle gold underline */
  background-color: inherit;
}
.mod-languages ul.lang-inline li.lang-active a {
  color: var(--white);  /* bright white for chosen lang */
} 
/* Hero block helper */
.hero-law {
  position: relative;
  padding: clamp(3rem, 6vw, 8rem) 0;
  background: linear-gradient(135deg, rgba(13,110,253,.08), rgba(13,110,253,.02));
}
.hero-law .title {
  font-weight: 800;
  line-height: 1.1;
}
.hero-law .subtitle {
  opacity: .85;
  max-width: 60ch;
}

/* -- prob -- */
/*
.container-banner .banner-overlay {
  background-image: url("https://www.miticlaw.rs/media/templates/site/cassiopeia_child_law_v1/images/ms-hero-2-s.jpg?v=1"); 
}

@media (width>=576px) {  
  div.container-banner .banner-overlay { 
    background-image: url("https://www.miticlaw.rs/media/templates/site/cassiopeia_child_law_v1/images/ms-hero-2-l.jpg?v=1"); 
  }
}

.container-banner .banner-overlay {
	color: #fff;
	background-position: top,50%;
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: fixed;
	height: 80vh;  
}
*/
/* -- correction -- */

/* Default Mobile-First Styles (All screens) */
.container-banner .banner-overlay {
    color: #fff;
    background-repeat: no-repeat;
    background-size: cover;
    /* Center horizontally, top vertically */
    background-position: center top; 
    /* Set scroll as default for mobile safety */
    background-attachment: scroll;   
    /* Safety fallback height */
    min-height: 400px;               
    height: 80vh;
    background-image: url("https://www.miticlaw.rs/media/templates/site/cassiopeia_child_law_v1/images/ms-hero-2-s.jpg?v=2"); 
}

/* Desktop Enhancements (Widths 576px and above) */
@media (min-width: 576px) {
    .container-banner .banner-overlay {
         background-image: url("https://www.miticlaw.rs/media/templates/site/cassiopeia_child_law_v1/images/ms-hero-2-l.jpg?v=2"); 
        /* Parallax effect is safe for desktop */
        background-attachment: fixed; 
    }
}
/* end prob */

/* overlay, text pos bottom, justify-content: end */
.container-banner .banner-overlay .overlay {
	text-align: center;
  background-color: #00000080;
  background: linear-gradient(
  to bottom, 
  rgba(0, 32, 63, 0.2) 0%, 
  rgba(0, 32, 63, 0.9) 100%
  );
  /* 16.01.26. Izmena */
  /* background: linear-gradient( to bottom, rgba(0, 0, 0, 0.1) 20%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.95) 90% ); */
  background: linear-gradient( to bottom, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, 0.5) 20%, transparent 40%, rgba(0, 0, 0, 0.7) 60%, rgba(0, 0, 0, 0.7) 80%, rgba(0, 0, 0, 1) 100% );
	flex-direction: column;
	/* 16.01.26. Izmena */
	/* justify-content: end; */
	justify-content: space-between;
	align-items: center;
	height: 100%;
	padding: 1em;
	display: flex;
	padding-bottom: 1.5rem; 
  border-bottom: 3px solid var(--subtle-gold);
}
.container-banner .banner-overlay .overlay h1 {
	margin: 0 auto;
	color: #c1a86d;   
	font-weight: 600!important;
  /* 16.01.26. Izmena */
  /* text-shadow: 0px 1px 2px rgba(2, 9, 17, 0.9);
  letter-spacing: 1.1px; */
  text-shadow: 3px 4px 3px rgba(2, 9, 17, 0.9); 
  letter-spacing: 1.5px;  
  text-transform: uppercase; 
}
/* 16.01.26. Izmena: dodao */
.overlay h1.display-4 {
  font-size: clamp(1.8rem,5vw,3.5rem);
}

.container-banner .banner-overlay .overlay .lead {
  font-style: italic;
  line-height: 1.4;
}  

/* 16.01.26. Izmena Dodao */
.lead {
    font-size: clamp(1.0rem,3vw,1.2rem);
}

/* 16.01.26. Izmena Dodao */
.container-banner .banner-overlay .overlay .lead:nth-child(2) {
  border-bottom: 1px solid var(--chld-accent-color);
  /* font-size: 1.3rem; */ 
  color: var(--chld-accent-color);
  font-style: italic; 
  font-weight: 300;
  display: inline-block;
  padding-bottom: 6px;
}

.container-banner .banner-overlay .overlay .text-thin::after {
	content: "";
	background: #c1a860;
	width: 40%;
	height: 3px;
	margin: 1rem auto 1rem;
	display: block;
}
.btn.btn-secondary {
--btn-color: #fff;
--btn-bg:  #1a2e44;
background:  linear-gradient(#1a2e44 10%, #010a13 85%);
--btn-border-color: var(--chld-primary-color);
--btn-hover-color: var(--chld-primary-color);
--btn-hover-bg: var(#fff);
--btn-hover-border-color: #1a2e44; 
box-shadow: 1px 4px 6px rgba(26, 46, 68, 0.4);
border: 2px solid #fff;
}
.btn-secondary:hover {
	color: var(--btn-hover-color);
	background-color: var(--btn-hover-bg);
	border-color: var(--btn-hover-border-color);
  background: #fff;
}
.article-body table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.footer {
  border-top: 3px solid var(--subtle-gold);
}

.footer {
	color: #fff;
  background-color: #213B58; 
  background: linear-gradient(
    to bottom,
    #213B58, /* Lighter shade: #1a2e44 lightened */
    #132233  /* Darker shade: #1a2e44 darkened */
  );
	margin-top: 1em;
}
/* 4 mobile this is flex */
.footer .grid-child {
  align-items: stretch;
}

/* desktop (768px+): Grid */
@media (min-width: 768px) {
.footer .grid-child {
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1em 2em;
  align-items: start;
}
}

/* Form */
.rapid_contact_form {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: .5em;
}
.rapid_contact .form-control {
	max-width: 100%!important;
	margin-bottom: 8px;
}
/* form - question */
.rapid_contact_form .input-group:nth-child(4) label {
  padding-top: 8px;
}
.rapid_contact_form .input-group:nth-child(4) label::before {
  content: "Odgovori " "\2192  ";
}
.rapid_contact.button.btn.btn-primary {
	margin: 0 auto;
}
.rapid_contact_form .input-group:nth-child(5) {
    position: relative;
    display: inline-block;
    width: max-content;
}
/* Add the icon over the button */
.rapid_contact_form .input-group:nth-child(5)::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f1d8"; 
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5; /* above gradient */
}
/* Add padding to the button so text doesn't overlap icon */
.rapid_contact_form .input-group:nth-child(5) input {
    padding-right: 40px;
}