/*
 Theme Name:   Rapid - Divi Child Theme
 Description:  A child theme of the Divi theme — South Newman Primary School
 Author:       Bam Creative
 Template:     Divi
 Version:      1.1.0

 BRAND COLORS:
   Dark Green:    #154513
   Medium Green:  #5ca760
   Light Green:   #cbddd1
   Cream:         #f6f6e9
   Footer Icons:  #006838
   Accent Yellow: #FFD42E

 FONTS:
   Headings & UI: Poppins
   Italic accent: Playfair Display
   Body:          Raleway
*/


/* ============================================================
   1. LAYOUT FUNDAMENTALS
   ============================================================ */

@media (min-width: 981px) {
  .et_pb_gutter.et_pb_gutters2 #sidebar {
    width: 30.75%;
  }
  .et_pb_gutter.et_pb_gutters2 #left-area {
    padding: 0 !important;
    width: 68.25%;
  }
}

#main-content .container:before {
  width: 0;
  background-color: transparent;
}


/* ============================================================
   2. INTERNAL BANNERS
   ============================================================ */

.banner-internal {
  width: 100%;
  height: auto !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 0;
  border-top: 10px #1e5d27 solid;
  overflow: visible !important;
  background-color: transparent !important;
}

.banner-internal img {
  display: block;
  width: 100%;
  height: auto !important;
  max-width: 100%;
  vertical-align: top;
}

.breadcrumbs {
  margin-bottom: 2em;
  font-size: 0.8em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .banner-internal {
    border-top: 10px #1e5d27 solid;
  }
}


/* ============================================================
   3. GRAVITY FORMS
   ============================================================ */

.gform_wrapper .top_label input.medium,
.gform_wrapper .top_label select.medium {
  width: 100% !important;
}

.gform_button {
  color: #ffffff;
  background: #c41c6f;
  padding: 18px;
  border-radius: 3px;
  border: 0;
  font-weight: bold;
}

.gform_wrapper .gform_button:hover,
.gform_wrapper .gform_button:focus {
  background: #0092b9;
}

.gform_wrapper .gform_footer {
  padding: 0px 0 10px !important;
  margin: 0;
}


/* ============================================================
   4. OVERLAP SECTIONS (desktop only)
   ============================================================ */

@media (min-width: 981px) {
  .overlap-text  { width: 110%; }
  .overlap-image { margin-top: 2em; width: 110%; }
  .overlap-left  { margin-right: -10%; z-index: 1; position: relative; }
  .overlap-right { margin-left: -10% !important; }
}

/* ============================================================
   4.1 OVERLAP SECTIONS (mobile only)
   ============================================================ */

@media (max-width: 980px) {
  .overlap-text,
  .overlap-image {
    width: 100% !important;
  }
  .overlap-left,
  .overlap-right {
    margin: 0 !important;
  }
}


/* ============================================================
   5. TYPOGRAPHY BASE
   ============================================================ */

p:last-of-type {
  padding-bottom: 1em !important;
}

a {
  transition: all .2s ease-in;
}

a:hover {
  color: #1E5D27;
}

.et_pb_button {
  color: #fff !important;
}


/* ============================================================
   6. HEADER & NAVIGATION — FINALNA VERZIJA
   ============================================================ */

/* --- 6.1 OPŠTE (sve rezolucije) --- */

#top-header {
  z-index: 99999;
}

#et-top-navigation {
  font-weight: 400 !important;
}

#et-secondary-nav a {
  font-size: 18px !important;
}

#top-menu li.current-menu-item > a,
#top-menu li.current-menu-ancestor > a,
.nav li ul .current-menu-item a {
  font-weight: 600;
}

.et_mobile_menu li a:hover,
.nav ul li a:hover {
  background-color: #d15600;
  color: #fff !important;
}

#top-menu > li > a:hover {
  color: #d15600 !important;
}

.nav li ul {
  padding: 0;
}
#top-menu li li {
  padding: 0;
  width: 100%;
}
#main-header .nav li ul a {
  width: 100%;
  padding: 10px 20px !important;
  opacity: 1;
}
#top-menu li a {
  padding-right: 0 !important;
}

body #et-secondary-nav .menu-item-has-children > a:first-child:after,
body #top-menu .menu-item-has-children > a:first-child:after {
  content: none !important;
  display: none !important;
  padding: 0 !important;
}

/* --- 6.2 MOBILE + TABLET (≤980px) --- */
@media (max-width: 980px) {

  body #main-header,
  body.et_fixed_nav.et_show_nav #main-header,
  body #top-header {
    background-color: #ffffff !important;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08) !important;
  }

  body .mobile_menu_bar:before,
  body .et_mobile_nav_menu .mobile_menu_bar:before {
    color: #154513 !important;
  }

  body .et_mobile_menu {
    background-color: #ffffff !important;
    border-top: 3px solid #154513 !important;
  }
  body .et_mobile_menu li a {
    color: #154513 !important;
    font-family: "Poppins", sans-serif !important;
    font-weight: 500 !important;
    letter-spacing: -0.02em !important;
  }
  body .et_mobile_menu li a:hover {
    background-color: #f6f6e9 !important;
    color: #154513 !important;
  }

  .nav-home {
    display: none;
  }
}

/* --- 6.3 DESKTOP (≥981px) --- */
@media (min-width: 981px) {

  body #main-header .container.et_menu_container {
    display: flex !important;
    align-items: center;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: calc(clamp(20px, 2vw, 50px) + clamp(130px, 10vw, 240px) + clamp(30px, 3vw, 60px)) !important;
    padding-right: clamp(30px, 3vw, 80px) !important;
  }
  body #main-header,
  body #main-header .container.et_menu_container {
    overflow: visible !important;
  }

  body #main-header .et_menu_container {
    min-height: clamp(95px, 7vw, 170px) !important;
  }

  body #main-header #et-top-navigation {
    flex: 1 1 auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    min-width: 0 !important;
    display: flex !important;
    justify-content: flex-end;
  }

  body #main-header #top-menu {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    align-items: center;
    gap: clamp(12px, 1.2vw, 28px);
    width: auto !important;
  }
  body #main-header #top-menu > li {
    white-space: nowrap;
    padding: 0 !important;
    margin: 0 !important;
    flex: 0 0 auto;
    display: list-item;
  }

  body #main-header #top-menu > li > a {
    font-family: "Poppins", sans-serif !important;
    font-size: clamp(14px, 1.1vw, 18px) !important;
    font-weight: 500 !important;
    letter-spacing: -0.02em !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
  }

  body #main-header #top-menu .sub-menu {
    display: block !important;
    min-width: 240px !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
  }
  body #main-header #top-menu .sub-menu li {
    display: block !important;
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    white-space: normal !important;
    flex: none !important;
  }
  body #main-header #top-menu .sub-menu li a {
    display: block !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-family: "Poppins", sans-serif !important;
    font-size: clamp(14px, 1.1vw, 18px) !important;
    font-weight: 500 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    box-sizing: border-box !important;
  }

  #top-menu .mobile-home-nav a {
    display: none;
  }
}


/* ============================================================
   7. LOGO
   ============================================================ */

#logo {
  -webkit-transition: all .3s ease-in-out;
  -moz-transition: all .3s ease-in-out;
  transition: all .3s ease-in-out;
}

#logo-area {
  background: transparent !important;
  opacity: 1 !important;
}

/* --- 7.1 DESKTOP --- */
@media (min-width: 981px) {

  body #main-header .logo_container {
    position: absolute !important;
    float: none !important;
    flex: 0 0 auto !important;
    width: clamp(130px, 10vw, 240px) !important;
    height: clamp(130px, 10vw, 240px) !important;
    left: clamp(20px, 2vw, 50px) !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: #f6f6e9 !important;
    opacity: 0.9 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: visible !important;
    z-index: 100;
  }

  body #main-header .logo_helper {
    display: none !important;
  }

  body #main-header .logo_container > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    padding: 18% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }

  body #main-header img#logo,
  body #main-header .logo_container a img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    padding: 0 !important;
    margin: 0 !important;
    position: static !important;
    transition: transform 0.3s ease !important;
  }

  body #main-header #logo:hover {
    transform: rotate(-5deg);
  }
}

/* --- 7.2 MOBILE --- */
@media (max-width: 980px) {

  body #main-header .logo_container {
    background: transparent !important;
    background-image: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    opacity: 1 !important;
    margin-top: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
  }

  body #main-header img#logo {
    max-height: 55px !important;
    margin-top: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
  }

  .et_header_style_left #logo,
  .et_header_style_split #logo {
    position: relative;
    top: auto;
    left: auto;
    margin: 0 !important;
    padding: 0 !important;
  }
}


/* ============================================================
   8. HOMEPAGE — blurb, welcome accents
   ============================================================ */

.home-blurb {
  height: 230px !important;
  transition: background-color 1s;
  position: relative;
}

.home-blurb:hover {
  background-color: rgba(0, 0, 0, .3);
  cursor: pointer;
}

.home-blurb:hover a {
  color: #FFD42E;
}

.home-blurb:hover h4:after {
  width: 25%;
  transition: all 0.5s ease-in-out;
}

.home-blurb:before {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-color: inherit;
  content: ' ';
}

.home-blurb h4 {
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-size: 26px !important;
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
  position: relative;
  padding-top: 85px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.home-blurb h4::after {
  content: '';
  display: block;
  border-bottom: 6px solid #FFD42E;
  width: 50%;
  margin: 15px auto 0;
  transition: all 0.5s ease-in-out;
}

.home-welcome:after {
  content: '';
  position: absolute;
  border-bottom: 14px solid #FFD42E;
  left: 0;
  bottom: 0;
  width: 100%;
}


/* ============================================================
   9. INTERNAL PAGES
   ============================================================ */

h1.entry-title.main_title {
  display: none !important;
}

#left-area {
  padding-bottom: 0;
}


/* ============================================================
   10. NEWSLETTER PAGE
   ============================================================ */

.newsletter-blurb {
  height: 400px !important;
  transition: background-color 1s;
  position: relative;
}

.newsletter-blurb:hover {
  background-color: rgba(255, 255, 255, .5);
  cursor: pointer;
}

.newsletter-blurb:before {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-color: inherit;
  content: ' ';
}

.newsletter-blurb .et_pb_blurb_content {
  position: absolute;
  bottom: -50px;
  width: 100%;
}

.newsletter-blurb h4 {
  color: #000;
  font-family: 'Raleway', sans-serif;
  font-size: 26px !important;
  text-align: center;
  font-weight: 600;
  position: relative;
}

.newsletter-blurb:hover h4 {
  color: #1e5d27;
}


/* ============================================================
   11. SIDEBAR (sakriven globalno)
   ============================================================ */

#sidebar,
.sidebar,
.et_pb_widget_area,
#main-content .sidebar,
body.page #sidebar {
  display: none !important;
}

body.page #left-area,
body.page #main-content {
  width: 100% !important;
  float: none !important;
  margin-right: 0 !important;
}

.et_right_sidebar #left-area,
.et_left_sidebar #left-area {
  padding: 0 !important;
  width: 100% !important;
}

.error404 #sidebar {
  display: none;
}
.error404 #left-area {
  padding: 0 !important;
  float: left;
  padding-left: 0;
}

#sidebar a:hover {
  color: #d15600 !important;
}


/* ============================================================
   12. FOOTER — SINGLE SOURCE OF TRUTH
   ------------------------------------------------------------
   Desktop: 4 col | Tablet ≤1100px: 2 col | Mobile ≤640px: 1 col
   ============================================================ */

.map .et_pb_map { height: 300px; }

#left-area .contact-footer-section {
  width: 100vw !important;
}

#main-footer a { font-weight: bold; }

#main-footer a:hover,
#et-secondary-menu > ul > li a:hover {
  color: #FFD42E !important;
  opacity: 1;
}

#footer-bottom { display: none; }

/* Container reset */
html body #main-footer > .container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* Kolone reset */
html body #main-footer #footer-widgets .footer-widget,
html body #main-footer #footer-widgets.clearfix .footer-widget {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 15px 0 0 0 !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

/* Grid — desktop */
html body #main-footer #footer-widgets,
html body #main-footer #footer-widgets.clearfix {
  position: static !important;
  left: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(min-content, 240px) auto auto auto !important;
  justify-content: space-between !important;
  column-gap: 40px !important;
  row-gap: 2rem !important;
  padding: 50px 8% !important;
}

/* Grid — tablet */
@media (max-width: 1100px) {
  html body #main-footer #footer-widgets,
  html body #main-footer #footer-widgets.clearfix {
    grid-template-columns: 1fr 1fr !important;
    justify-content: stretch !important;
    column-gap: 40px !important;
    row-gap: 2.5rem !important;
    padding: 40px 8% !important;
  }
}

/* Grid — mobile */
@media (max-width: 640px) {
  html body #main-footer #footer-widgets,
  html body #main-footer #footer-widgets.clearfix {
    grid-template-columns: 1fr !important;
    justify-content: stretch !important;
    column-gap: 0 !important;
    row-gap: 2rem !important;
    padding: 2rem 1rem !important;
  }
}

/* Globalni text reset */
#main-footer,
#main-footer .footer-widget,
#main-footer .footer-widget *,
#main-footer p,
#main-footer li,
#main-footer a {
  word-break: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
  writing-mode: horizontal-tb !important;
  min-width: 0 !important;
}

/* Naslovi */
html body #main-footer #footer-widgets .footer-widget h3 {
  font-family: "Poppins", sans-serif !important;
  font-size: 18px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin-bottom: 20px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
}

/* Paragrafi */
html body #main-footer #footer-widgets .footer-widget p {
  font-family: "Raleway", sans-serif !important;
  font-size: 15px !important;
  line-height: 1.8 !important;
  color: #ffffff !important;
  margin-bottom: 15px !important;
}

/* ============================================================
   13. PBE WRAPPERS
   ============================================================ */

#pbe-above-header-wa-wrap,
#pbe-below-header-wa-wrap,
#pbe-above-content-wa-wrap,
#pbe-below-content-wa-wrap,
#pbe-footer-wa-wrap {
  z-index: 10;
  clear: both;
}

.et-fb #pbe-above-header-wa-wrap,
.et-fb #pbe-below-header-wa-wrap,
.et-fb #pbe-above-content-wa-wrap,
.et-fb #pbe-below-content-wa-wrap,
.et-fb #pbe-footer-wa-wrap {
  display: none !important;
}


/* ============================================================
   14. SNPS HOME PAGE — custom sekcije
   ============================================================ */

/* --- 14.1 Hero image --- */
.snps-hero-image,
.snps-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}
.snps-hero-image img {
  object-fit: cover;
}

/* --- 14.2 Hero text (cream) --- */
.snps-hero {
  background: #f6f6e9;
  padding: 6.875rem 1.25rem;
}

.snps-hero .et_pb_row {
  width: 100%;
  max-width: 68.75rem;
  margin: 0 auto;
}

.snps-hero-text,
.snps-hero-button {
  text-align: center;
}

.snps-hero-text .et_pb_text_inner {
  all: unset;
  display: block;
}

.snps-hero-inner {
  max-width: 47.5rem;
  margin: 0 auto;
  text-align: center;
}

.snps-title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: 0.0625rem;
  text-transform: uppercase;
  color: #000000;
  margin: 0;
}

.snps-subtitle {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.625rem);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: 0.375rem;
  text-transform: uppercase;
  color: #000000;
  margin: 0.5rem 0 2.125rem 0;
}

.snps-intro {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.25rem, 2.4vw, 2.125rem);
  line-height: 1.5;
  font-style: italic;
  font-weight: 400;
  color: #000000;
  margin: 0 auto 2.25rem auto;
}

.snps-hero-button .et_pb_button_module_wrapper {
  text-align: center;
}

.snps-hero-button .et_pb_button {
  background: #154513 !important;
  color: #ffffff !important;
  font-family: "Poppins", sans-serif !important;
  font-size: clamp(1.125rem, 1.8vw, 1.75rem);
  line-height: 1.2;
  font-weight: 700;
  padding: 1.125rem 1.75rem !important;
  border: 0 !important;
  border-radius: 62.4375rem !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transition: all 0.3s ease;
}
.snps-hero-button .et_pb_button:after { display: none !important; }
.snps-hero-button .et_pb_button:hover {
  background: #0f3310 !important;
  transform: translateY(-0.125rem);
  box-shadow: 0 0.25rem 0.75rem rgba(21, 69, 19, 0.3) !important;
}

/* --- 14.3 Welcome to Sunny (light green) --- */
.snps-welcome {
  background: #cbddd1;
  padding: 5rem 1.25rem;
}

.snps-welcome .et_pb_row {
  max-width: 75rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3.75rem;
}

.snps-welcome-image { flex: 0 0 45%; }
.snps-welcome-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
  object-fit: cover;
}

.snps-welcome-content { flex: 1; min-width: 0; }

.snps-welcome-label {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.0625rem;
  color: #154513;
  margin: 0 0 0.75rem 0;
}

.snps-welcome-title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 3.25rem);
  line-height: 1.1;
  font-weight: 800;
  text-transform: uppercase;
  color: #000000;
  margin: 0 0 0.5rem 0;
}

.snps-welcome-subtitle {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  line-height: 1.2;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.125rem;
  color: #000000;
  margin: 0 0 1.5rem 0;
}

.snps-welcome-text {
  font-family: "Raleway", sans-serif;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.7;
  color: #000000;
  margin: 0 0 1.25rem 0;
}

.snps-welcome-link,
.snps-alt-welcome-link {
  display: inline-flex;
  align-items: center;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #154513;
  text-decoration: none;
  transition: all 0.3s ease;
}
.snps-welcome-link:hover,
.snps-alt-welcome-link:hover {
  color: #0f3310;
  transform: translateX(0.25rem);
}
.snps-welcome-link::after,
.snps-alt-welcome-link::after {
  content: "→";
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}
.snps-welcome-link:hover::after,
.snps-alt-welcome-link:hover::after {
  transform: translateX(0.25rem);
}

/* --- 14.4 Teaching Staff (medium green) --- */
.snps-teaching-staff {
  background: #5ca760;
  padding: 4.375rem 1.25rem;
  color: #ffffff;
}

.snps-teaching-staff .et_pb_row {
  max-width: 68.75rem;
  margin: 0 auto;
}

.snps-teaching-staff-title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.5rem, 2.8vw, 2.625rem);
  line-height: 1.3;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  color: #ffffff;
  margin: 0 0 2rem 0;
  letter-spacing: 0.0625rem;
}

.snps-teaching-staff-text {
  font-family: "Raleway", sans-serif;
  font-size: clamp(1rem, 1.15vw, 1.0625rem);
  line-height: 1.8;
  color: #ffffff;
  max-width: 56.25rem;
  margin: 0 auto;
  text-align: center;
}
.snps-teaching-staff-text p { margin: 0 0 1.25rem 0; }
.snps-teaching-staff-text p:last-child { margin: 0; }

/* --- 14.5 Alternate Welcome (white sa kružnom slikom) --- */
.snps-alt-welcome {
  background: #ffffff;
  padding: 5rem 1.25rem;
}

.snps-alt-welcome .et_pb_row {
  max-width: 75rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3.75rem;
}

.snps-alt-welcome-image {
  flex: 0 0 45%;
  position: relative;
}

.snps-alt-welcome-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.snps-alt-welcome-image::before {
  content: "";
  position: absolute;
  top: -1.25rem;
  left: -1.25rem;
  width: 3.75rem;
  height: 9.375rem;
  background: #cbddd1;
  border-radius: 1.875rem;
  z-index: -1;
}

.snps-alt-welcome-content { flex: 1; min-width: 0; }

.snps-alt-welcome-label {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.0625rem;
  color: #154513;
  margin: 0 0 0.75rem 0;
}

.snps-alt-welcome-title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 3.25rem);
  line-height: 1.1;
  font-weight: 800;
  text-transform: uppercase;
  color: #000000;
  margin: 0 0 0.5rem 0;
}

.snps-alt-welcome-subtitle {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  line-height: 1.2;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.125rem;
  color: #000000;
  margin: 0 0 1.5rem 0;
}

.snps-alt-welcome-text {
  font-family: "Raleway", sans-serif;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.7;
  color: #000000;
  margin: 0 0 1.25rem 0;
}

/* --- 14.6 SNPS responsive prelomi --- */
@media (max-width: 980px) {
  /* Izlazimo iz flex moda — kolone se sada stekuju kao blok elementi.
     flex-direction: column je uzrokovao ogromne praznine jer flex
     nije dobro rasporedjivao Divi kolone u column smjeru. */
  .snps-welcome .et_pb_row,
  .snps-alt-welcome .et_pb_row {
    display: block !important;
  }

  .snps-welcome-image,
  .snps-alt-welcome-image {
    width: 100% !important;
    max-width: 600px !important;
    margin: 0 auto 2rem !important;
    flex: none !important;
  }

  .snps-welcome-content,
  .snps-alt-welcome-content {
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 767px) {
  .snps-hero { padding: 3.75rem 1rem; }
  .snps-welcome,
  .snps-alt-welcome { padding: 3.75rem 1rem; }
  .snps-welcome .et_pb_row,
  .snps-alt-welcome .et_pb_row { gap: 2rem; }
  .snps-teaching-staff { padding: 3.125rem 1rem; }
}


/* ============================================================
   15. CHILD PAGES MENU — elegant arrow cards
   ============================================================ */

.et_pb_posts {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  gap: 20px !important;
  padding: 40px 0 !important;
}

.et_pb_posts article {
  background: #ffffff !important;
  padding: 30px 25px !important;
  border-left: 5px solid #fed630 !important;
  border-radius: 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.3s ease !important;
  margin: 0 !important;
}

.et_pb_posts article:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15) !important;
  border-left-color: #154513 !important;
}

.et_pb_posts .entry-title {
  margin: 0 !important;
  padding: 0 !important;
}

.et_pb_posts .entry-title a {
  font-family: 'Poppins', sans-serif !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #154513 !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
.et_pb_posts .entry-title a:hover { color: #5ca760 !important; }

.et_pb_posts .post-meta,
.et_pb_posts .post-content { display: none !important; }

.et_pb_posts .entry-title a::after {
  content: "" !important;
  display: inline-block !important;
  width: 30px !important;
  height: 2px !important;
  background: #154513 !important;
  position: relative !important;
  transition: all 0.3s ease !important;
  margin-left: 10px !important;
  flex-shrink: 0 !important;
}
.et_pb_posts .entry-title a::before {
  content: "" !important;
  position: absolute !important;
  right: 25px !important;
  width: 0 !important;
  height: 0 !important;
  border-left: 6px solid #154513 !important;
  border-top: 5px solid transparent !important;
  border-bottom: 5px solid transparent !important;
  transition: all 0.3s ease !important;
}
.et_pb_posts .entry-title a:hover::after {
  width: 40px !important;
  background: #5ca760 !important;
}
.et_pb_posts .entry-title a:hover::before {
  border-left-color: #5ca760 !important;
  right: 15px !important;
}


/* ============================================================
   16. GLOBAL CONTENT WIDTH + WRAPPER GAP FIX
   ============================================================ */

#main-content,
#main-content > .container,
#main-content .container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

#main-content #content-area,
#main-content #left-area {
  padding: 0 !important;
  margin: 0 !important;
}

#main-content article.page,
#main-content article.post {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

#main-content article.page > .entry-content,
#main-content article.post > .entry-content,
#main-content .et_builder_inner_content {
  padding: 0 !important;
  margin: 0 !important;
}

/* ============================================================
   16.1 MOBILE LAYOUT — TARGETED FIXES
   ------------------------------------------------------------
   Princip: NE dodajemo padding sekcijama (to uzrokuje
   vidljive obojene rubove jer sekcija ostaje puna širina
   dok row unutar nje postaje viewport - padding).
   Padding ide SAMO na innermost tekst sloj (et_pb_text_inner).
   Sekcije su puna širina, redovi 100%, kolone 100%.
   ============================================================ */

@media (max-width: 980px) {

  /* Sekcije — bez bočnog paddinga, overflow-x sprječava
     horizontalni scroll kad nešto slučajno prelazi okvir */
  body .et_pb_section {
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: hidden !important;
  }

  /* Redovi na punu širinu */
  body .et_pb_row,
  body .et_pb_row_inner {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Kolone na 100% — standardni mobilni stack.
     Moramo pokriti i Divi-specifične klase širine (1_2, 1_3, itd.)
     jer one imaju višu specifičnost od generičke .et_pb_column. */
  body .et_pb_column,
  body .et_pb_column_inner,
  body .et_pb_column.et_pb_column_1_2,
  body .et_pb_column.et_pb_column_1_3,
  body .et_pb_column.et_pb_column_2_3,
  body .et_pb_column.et_pb_column_1_4,
  body .et_pb_column.et_pb_column_3_4,
  body .et_pb_column.et_pb_column_1_5,
  body .et_pb_column.et_pb_column_2_5,
  body .et_pb_column.et_pb_column_3_5,
  body .et_pb_column_inner.et_pb_column_1_2,
  body .et_pb_column_inner.et_pb_column_1_3,
  body .et_pb_column_inner.et_pb_column_2_3 {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
  }

  /* Padding samo na innermost tekst sloju — daje tekstu
     prostor od rubova ekrana bez sabiranja na više nivoa */
  body .et_pb_text_inner {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }

  /* snps-hero-text ima vlastiti layout (all: unset) — ne treba pad */
  body .snps-hero-text .et_pb_text_inner {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Divider bez paddinga */
  body .et_pb_divider,
  body .et_pb_divider_internal {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Tekst lomi po riječima */
  body p, body li, body span, body a,
  body .et_pb_text_inner * {
    word-break: normal !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
  }

  /* Slike nikad šire od kontejnera */
  body img,
  body video,
  body iframe {
    max-width: 100% !important;
    height: auto;
  }

  /* ---- Sakrij prazne spacing kolone na mobilnom ----
     Divi kolone koje služe samo za razmak na desktopu
     ne treba da postoje na mobilnom — grabe prostor i
     komprimuju kolone sa sadržajem.

     Pokrivamo tri scenarija:
     1. Potpuno prazna kolona (nema ni jednog child elementa)
     2. Kolona koja sadrži SAMO Divi Spacer modul
     3. Kolona koja sadrži SAMO prazan tekst modul
     4. Ručno označene kolone klasom snps-spacer-col u Divi builderu
  */

  /* 1. Potpuno prazne kolone */
  body .et_pb_column:empty,
  body .et_pb_column_inner:empty {
    display: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* 2. Samo Divi Spacer modul unutra */
  body .et_pb_column:has(> .et_pb_spacer:only-child),
  body .et_pb_column_inner:has(> .et_pb_spacer:only-child) {
    display: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* 3. Samo prazan tekst modul unutra */
  body .et_pb_column:has(> .et_pb_text:only-child > .et_pb_text_inner:empty),
  body .et_pb_column_inner:has(> .et_pb_text:only-child > .et_pb_text_inner:empty) {
    display: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* 4. Ručno označene spacer kolone — dodaj klasu "snps-spacer-col"
     u Divi builderu za kolone koje treba sakrit na mobilnom */
  body .snps-spacer-col {
    display: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}


/* ============================================================
   17. ZOOM ZA VRLO VELIKE EKRANE
   ============================================================ */

@media (min-width: 1600px) {
  body:not(.et-fb) #page-container {
    zoom: 1.2;
  }
}


/* ============================================================
   20. NASLOVI: NE LOMI RIJEČ — fluidno smanjuj font
   ============================================================ */

@media (max-width: 980px) {

  body h1, body h2, body h3, body h4, body h5, body h6,
  body .et_pb_module h1, body .et_pb_module h2,
  body .et_pb_module h3, body .et_pb_module h4 {
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    word-wrap: normal !important;
    hyphens: none !important;
    line-height: 1.2 !important;
  }

  body h1, body .et_pb_module h1 {
    font-size: clamp(1.5rem, 6.5vw, 2.5rem) !important;
  }
  body h2, body .et_pb_module h2 {
    font-size: clamp(1.375rem, 6vw, 2.25rem) !important;
  }
  body h3, body .et_pb_module h3 {
    font-size: clamp(1.25rem, 5vw, 2rem) !important;
  }
  body h4, body .et_pb_module h4 {
    font-size: clamp(1.125rem, 4.5vw, 1.75rem) !important;
  }
}

@media (max-width: 480px) {
  body h1, body .et_pb_module h1 {
    font-size: clamp(1.375rem, 7vw, 2rem) !important;
  }
  body h2, body .et_pb_module h2 {
    font-size: clamp(1.25rem, 6.5vw, 1.875rem) !important;
  }
}


/* ============================================================
   21. PATCH — ULTRA-HIGH SPECIFICITY OVERRIDES
   ============================================================ */

/* --- 21.1 Mobile/tablet header (≤980px) — beli, ultra forced --- */
@media (max-width: 980px) {

  html body #main-header,
  html body.et_fixed_nav #main-header,
  html body.et_fixed_nav.et_show_nav #main-header,
  html body.home #main-header,
  html body #top-header,
  html body #et-main-area > #main-header {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08) !important;
  }

  html body .mobile_menu_bar,
  html body .mobile_menu_bar:before,
  html body .et_mobile_nav_menu .mobile_menu_bar,
  html body .et_mobile_nav_menu .mobile_menu_bar:before,
  html body .et_pb_menu__wrapper .mobile_menu_bar:before {
    color: #154513 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  html body #main-header #logo,
  html body #main-header .logo_container img {
    max-height: 55px !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
  }
}

/* --- 21.2 Mobile text-align --- */
/* Strategija: ne forsiramo nikakvo poravnanje na mobilnom.
   Svaki element nasljeđuje text-align koji ima na desktopu
   (centred ostaje centred, left ostaje left).
   Jedino što kontrolišemo je da slike/media ne prelaze okvir. */
@media (max-width: 980px) {

  body img,
  body video,
  body iframe,
  body embed,
  body object {
    max-width: 100% !important;
    height: auto !important;
  }
}


/* ============================================================
   HEADER FIX — STABILITY PATCH (Divi-safe)
   ============================================================ */

@media (min-width: 981px) {

  #main-header .container.et_menu_container {
    max-width: 1680px !important;
    margin: 0 auto !important;
    width: 100% !important;
    padding-left: clamp(120px, 10vw, 220px) !important;
    padding-right: 40px !important;
    box-sizing: border-box !important;
  }

  #main-header .logo_container {
    position: relative !important;
    float: left !important;
    margin-right: 30px !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    z-index: 10 !important;
  }

  #main-header #logo {
    max-height: 90px !important;
    width: auto !important;
  }

  #et-top-navigation {
    float: right !important;
    width: auto !important;
    max-width: 100% !important;
  }

  #top-menu {
    display: flex !important;
    gap: 18px !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }

  #top-menu > li {
    white-space: nowrap !important;
  }

  #top-menu > li > a {
    font-size: clamp(14px, 0.9vw, 17px) !important;
    padding: 0 !important;
  }
}


/* ============================================================
   SUBMENU TRANSPARENCY FIX
   ============================================================ */

#top-menu .sub-menu {
  background-color: rgba(255, 255, 255, 0.8) !important;
}