/*
Theme Name: MitUp Child Theme
Theme URI: http://ovatheme.com
Description: This is child theme of mitup
Author: Ovatheme
Author URI: http://ovatheme.com
Template: mitup
Version: 1.1
Text Domain: mitup-child
*/

/* ========================================================================
   1. Tokens
   ======================================================================== */

:root {
  --irsc-navy: #182551;
  --irsc-red: #e0642e;
  --irsc-accent: #e0642e;
  --irsc-text: #222222;
  --irsc-bg: #ffffff;
  --irsc-ink: #100f0d;

  --irsc-header-h: 85px;
  --irsc-logo-h: 80px;

  --irsc-line: rgba(24, 37, 81, .12);
  --irsc-tint: rgba(24, 37, 81, .05);
}

body,
body p {
  font-size: 16px;
  line-height: 1.65;
}

/* ========================================================================
   2. Header and navigation
   ======================================================================== */

.header_menu.fixed,
.header_menu.menu_sticky {
  background-color: var(--irsc-bg);
  border-bottom: 1px solid var(--irsc-line);
}

.logo img,
.navbar-brand.logo_image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: var(--irsc-logo-h);
}

header .shrink .navbar-header a.navbar-brand {
  padding: 5px 0 !important;
}

header .shrink .navbar-header a.navbar-brand.logo_image img {
  height: 53px !important;
}

.menutop .sf-menu > li > a,
.menutop.navbar-default .nav > li > a,
.menutop .show_dropmenu {
  color: var(--irsc-navy);
}

.menutop .sf-menu > li > a:hover,
.menutop .sf-menu > li > a:focus,
.menutop.navbar-default .nav > li > a:hover,
.menutop.navbar-default .nav > li > a:focus,
.menutop .sf-menu > li.current-menu-item > a,
.menutop .sf-menu > li.current_page_item > a {
  color: var(--irsc-red);
  background-color: transparent;
}

.menutop .dropdown-menu {
  background-color: var(--irsc-bg);
  border: 1px solid var(--irsc-line);
  box-shadow: 0 6px 18px rgba(24, 37, 81, .1);
}

.menutop .dropdown-menu > li > a {
  color: var(--irsc-text);
}

.menutop .dropdown-menu > li > a:hover,
.menutop .dropdown-menu > li > a:focus {
  color: var(--irsc-red);
  background-color: var(--irsc-tint);
}

.navbar-default .navbar-toggle {
  border-color: rgba(24, 37, 81, .3);
}

.navbar-default .navbar-toggle .icon-bar {
  background-color: var(--irsc-navy);
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: rgba(24, 37, 81, .06);
}

.menutop a:focus-visible,
.navbar-toggle:focus-visible {
  outline: 2px solid var(--irsc-red);
  outline-offset: 2px;
}

.bg_heading {
  background-size: cover !important;
  background-position: center center !important;
}

@media (min-width: 768px) {
  .header_menu .menu_pos {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .header_menu .menu_pos .logo,
  .header_menu .menu_pos .menutop {
    float: none;
  }

  .header_menu .menu_pos .menutop {
    margin-bottom: 0;
  }

  /* Parent items navigate, so the dropdown opens on hover instead */
  .menutop .dropdown:hover > .dropdown-menu {
    display: block;
  }
}

@media (max-width: 767px) {
  :root {
    --irsc-header-h: 65px;
    --irsc-logo-h: 40px;
  }

  .menutop .navbar-collapse {
    background-color: var(--irsc-bg);
  }

  header.header nav.menutop li.dropdown ul.dropdown-menu a {
    color: var(--irsc-navy);
  }
}

/* ========================================================================
   3. Section headings
   ======================================================================== */

.event_heading.section-title.style1,
.event_heading.section-title.style2 {
  margin-bottom: 40px;
}

.event_heading.section-title.style1 .title-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 0;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  text-transform: none;
}

.event_heading.section-title.style1.text-center .title-inner {
  align-items: center;
}

.event_heading.section-title.style1.text-right .title-inner {
  align-items: flex-end;
}

.event_heading.section-title.style1 .title-inner small {
  order: -1;            /* eyebrow subtitle sits above the title */
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: inherit;
}

.event_heading.section-title.style1 .title-inner::after {
  display: none;
}

/* ========================================================================
   4. Footer
   ======================================================================== */

footer.footer {
  padding: 60px 0 0;
  background: var(--irsc-bg);
  color: var(--irsc-text);
  overflow: hidden;
  border-top: 1px solid var(--irsc-line);
}

footer.footer .row {
  display: flex;
  flex-wrap: wrap;
}

footer.footer .footer_copyright {
  flex: 0 0 66.6667%;
  width: 66.6667%;
  max-width: 66.6667%;
  float: none;
}

footer.footer .footer_contact {
  flex: 0 0 33.3333%;
  width: 33.3333%;
  max-width: 33.3333%;
  float: none;
}

footer.footer .footer_sub {
  display: none;
}

footer.footer .footer_social {
  flex: 0 0 100vw;
  width: 100vw;
  max-width: 100vw;
  margin: 70px calc(50% - 50vw) 0;
  padding: 0;
  float: none;
}

footer.footer .widget {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
}

footer.footer .irsc-footer-heading {
  margin: 0 0 25px;
  color: var(--irsc-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* Logos share a uniform 400x120 canvas, so equal flex shares stay
   visually even. They shrink to fit the column and cap at 200px. */
footer.footer .irsc-footer-logos {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 24px;
  margin-bottom: 35px;
}

footer.footer .irsc-footer-logos a {
  flex: 1 1 0;
  min-width: 0;
  line-height: 0;
}

footer.footer .irsc-footer-logos img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 200px;
}

footer.footer .irsc-footer-ack {
  max-width: 780px;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

footer.footer .irsc-footer-subscribe {
  margin: 0 0 40px;
}

footer.footer .irsc-footer-subscribe a {
  color: var(--irsc-accent);
  font-size: 18px;
  letter-spacing: .3px;
  text-transform: uppercase;
  text-decoration: none;
}

footer.footer .irsc-footer-subscribe a:hover {
  text-decoration: underline;
}

footer.footer .irsc-footer-list,
footer.footer .irsc-footer-social {
  margin: 0;
  padding: 0;
  list-style: none;
}

footer.footer .irsc-footer-list li {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
}

footer.footer .irsc-footer-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--irsc-text);
  font-size: 18px;
  text-decoration: none;
}

footer.footer .irsc-footer-list a:hover {
  color: var(--irsc-accent);
}

footer.footer .irsc-footer-list .fa {
  width: 16px;
  color: var(--irsc-accent);
  font-size: 15px;
  text-align: center;
}

footer.footer .irsc-footer-social {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

footer.footer .irsc-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #0a66c2;
  color: #fff;
  font-size: 26px;
  text-decoration: none;
  transition: background .2s;
}

footer.footer .irsc-footer-social a:hover {
  background: #004182;
  color: #fff;
}

footer.footer .irsc-footer-copyright {
  padding: 20px 15px;
  background: var(--irsc-navy);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 991px) {
  footer.footer {
    padding-top: 40px;
  }

  footer.footer .footer_copyright,
  footer.footer .footer_contact {
    flex-basis: 100%;
    width: 100%;
    max-width: 100%;
  }

  footer.footer .footer_contact,
  footer.footer .footer_social {
    margin-top: 40px;
  }
}

@media (max-width: 600px) {
  /* Four across is too tight on a phone — wrap to two rows */
  footer.footer .irsc-footer-logos {
    flex-wrap: wrap;
    gap: 16px;
  }

  footer.footer .irsc-footer-logos a {
    flex: 0 0 calc(50% - 8px);
  }
}