@import url('https://fonts.googleapis.com/css2?family=Anek+Latin:wdth,wght@75..125,100..800&display=swap');

:root {
    --tu-blue: #006AAC;
    --tu-dark-blue: #0A214A;
    --tu-white: #FFFFFF;
}

html, body, #page {
  margin: 0;
  padding: 0;
  /* overflow-x: hidden !important;
  overflow-y: auto !important;
  height: 100% !important;
  width: 100% !important;
  max-width: 100vw !important;
  position: relative !important; */
  font-family: 'Anek Latin', sans-serif !important;
}

.i2c-hero-general {
  position: relative;
  width: 100%;
  height: 30vh; /* adjustable */
  display: flex;
  align-items: center;
  justify-content: center;

  background-size: cover;
  background-position: center;
  overflow: hidden;
  margin-top: 100px;
  min-height: 300px;
}

.i2c-hero-general__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.i2c-hero-general__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1rem;
}

.i2c-hero-general__logo {
  max-width: 50%;
  height: auto;
}

/* Hero title text */
.i2c-hero-general__title {
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 800;
  /* text-transform: uppercase; */
  letter-spacing: 2px;
  color: #f5f5f5;
  line-height: 1.2 !important;
  /* text-shadow: -1px -1px 8px rgba(0,0,0,0.8) */
}

/* Optional subtitle (if you ever need it) */
.i2c-hero-general__subtitle {
  margin-top: 0.5em;
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  font-weight: 400;
}

@media (min-width: 2000px) {
  .i2c-hero-general {
    height: 20vh !important;
  }
}

/* @media (max-width: 768px) {
  .i2c-hero {
    height: 40vh !important;
  }
} */

@media (max-width: 1200px) {
  .i2c-hero-general__title {
    font-size: clamp(2.8rem, 3vw, 3rem);
  }
}

@media (max-width: 440px) {
  .i2c-hero-general {
    height: 20vh !important;
  }

  .i2c-hero-general__logo {
    max-width: 70%;
    height: auto;
  }

  .i2c-hero-general__title {
    font-size: clamp(2rem, 3vw, 3rem);
  }
}

.gridContainer {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

#page > .page-content {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.cards-style.style-4 figure {
  background: none;
}

[id*="pg-"][id*="-"], [id*="pg-"][id*="-"] {
  margin-bottom: 0 !important;
}

.row {
  margin-right: 0 !important;
}

/* body[class^="page-template page-template-"] .gridContainer :not(.footer) {
    max-width: 100vw !important;
    box-sizing: border-box !important;
} */

.i2c-title-general {
    font-family: 'Anek Latin', sans-serif !important;
    font-size: 38px !important;
    font-weight: 700 !important;
    color: #0a1b3f !important;
    line-height: 1.2 !important;
    margin: 0 auto 1rem auto !important;  /* More space above, moderate below */
    padding: 0 1.5rem !important;            /* Horizontal padding */
    max-width: 1000px !important;
    text-align: center !important;           /* Centered heading */
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    .i2c-title-general {
        font-size: 28px !important;          /* Scale down for tablets/mobiles */
        margin-top: 1.5rem !important;
    }
}

.i2c-subheading-general {
    font-family: 'Anek Latin', sans-serif !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #0a1b3f !important;
    line-height: 1.4 !important;
    margin: 1.5rem auto 1rem auto !important; /* Space above and below */
    padding: 0 1.5rem !important;
    max-width: 1000px !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    .i2c-subheading-general {
        font-size: 20px !important;
    }
}

.i2c-paragraph-general {
    font-family: 'Anek Latin', sans-serif !important;
    font-size: 1rem !important;
    line-height: 1.8 !important;
    color: #0a1b3f !important;
    margin: 1.5rem auto !important;      /* Vertical margin and horizontal centering */
    padding: 0 1.5rem !important;        /* Horizontal padding to prevent edge contact */
    max-width: 1000px !important;        /* Limit width for readability on large screens */
    box-sizing: border-box !important;   /* Ensure padding doesn't affect width */
    text-align: left !important;
}

.i2c-paragraph-general ul {
    padding-left: 0 !important;              /* Reset padding */
    margin-left: 0 !important;          
    list-style-position: inside !important;  /* Bullets stay outside but aligned */
}

.i2c-paragraph-general li {
    margin-bottom: 0.5rem !important;          /* Spacing between items */
}

/* Optional: Adjust padding for very small screens */
@media (max-width: 480px) {
    .i2c-paragraph-general {
        padding: 0 1rem !important;      /* Slightly less padding on very small devices */
    }
}

.i2c-images-general {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 2rem !important;
    padding: 2rem 1rem !important;
    max-width: 2000px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

.i2c-images-general img {
    max-height: 300px !important;     /* Allow large regular images */
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}

.i2c-images-general img.logo {
    max-height: 80px !important;      /* Logos stay compact */
    max-width: 150px !important;
    margin-top: 10px !important;  /* Space above logos */
}

.i2c-images-general img:hover {
    transform: scale(1.05) !important;
}

.i2c-images-general iframe {
    max-width: 40% !important;
    width: 100% !important;
    max-height: 560px !important;
    aspect-ratio: 16 / 9 !important;
    display: block !important;
    margin: 0 auto !important;
    border: none !important;
    transition: transform 0.3s ease !important;
    border-radius: 15px;
}

.i2c-video-embed-column-general iframe {
    max-width: 100% !important;
}

@media (max-width: 768px) {
    .i2c-images-general img.logo {
        max-height: 60px !important;
        max-width: 100px !important;
    }

    .i2c-images-general img {
        max-height: 200px !important;  /* Shrink regular images a bit on mobile */
    }

    .i2c-images-general iframe {
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
    }
}

.i2c-section-gray {
    background-color: #f7f7f7 !important;
}

section {
    padding: 2rem 1rem !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.section-full-width {
    padding: 2rem 0 !important;
}

.i2c-button-general {
  display: inline-block !important;
  padding: 1rem 2rem !important;             /* larger click target */
  font-family: 'Anek Latin', sans-serif !important;
  /* font-size: 1.125rem !important; */
  font-weight: 700 !important;
  color: #ffffff !important;                  /* white text */
  background-color: #006498 !important;       /* TU blue */
  border: 3px solid #006498 !important;       /* TU blue outline */
  border-radius: 999px !important;            /* pill shape */
  text-decoration: none !important;
  text-align: center !important;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15) !important;
  transition:
    background-color 0.2s ease,
    border-color      0.2s ease,
    transform         0.2s ease,
    box-shadow        0.2s ease !important;
  max-width: 250px;
  margin: 2rem !important;           
}
.i2c-button-general:hover {
  background-color: #005a7a !important;       /* slightly darker */
  border-color:    #005a7a !important;
  transform:       translateY(-2px) !important;
  box-shadow:      0 8px 16px rgba(0,0,0,0.2) !important;
}
.i2c-button-general:active {
  transform:    translateY(0) !important;
  box-shadow:   0 6px 12px rgba(0,0,0,0.15) !important;
}
.i2c-button-general:focus {
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(0,100,152,0.4) !important; /* TU-blue glow */
}

.i2c-center-general {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.i2c-subtitle-general {
    font-family: 'Anek Latin', sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #0a1b3f !important;
    line-height: 1.6 !important;
    margin: 0 auto 2rem auto !important;
    padding: 0 1.5rem !important;
    max-width: 1000px !important;
    text-align: center !important;
    box-sizing: border-box !important;
    opacity: 0.85 !important;
}

.i2c-columns-general {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    gap: 2rem !important;
    padding: 2rem 1.5rem !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

.i2c-column {
    flex: 1 1 45% !important; /* Adjust width for 2 per row, with spacing */
    box-sizing: border-box !important;
    min-width: 280px !important; /* Prevent being too narrow on small screens */
}

.i2c-column.wide-col {
    flex: 2 1 60% !important; /* 2x growth factor, takes more space */
}

.i2c-column.narrow-col {
    flex: 1 1 25% !important; /* Takes less space */
}


@media (max-width: 768px) {
    .i2c-column {
        flex: 1 1 100% !important; /* Stack columns vertically on small screens */
    }

    section {
      padding: 0rem 1rem !important;
    }
}

.esi-facts-grid.two-column {
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)) !important;
}

.i2c-carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1000px;
  margin: 2rem auto;
  box-sizing: border-box;
}

.i2c-carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.i2c-carousel-slide {
  flex: 0 0 20%; /* 5 items visible */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  box-sizing: border-box;
}

.i2c-carousel-slide img {
  max-height: 100px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.i2c-carousel-slide img:hover {
  transform: scale(1.05);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: rgba(255,255,255,0.8);
  border: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  z-index: 10;
}
.carousel-nav.left {
  left: 0;
}
.carousel-nav.right {
  right: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .i2c-carousel-slide {
    flex: 0 0 33.33%; /* 3 items visible */
  }
}
@media (max-width: 480px) {
  .i2c-carousel-slide {
    flex: 0 0 50%; /* 2 items visible */
  }
}

.mesmerize-inner-page #main_menu > li > a {
  font-family: 'Anek Latin', sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #1B3B74 !important;
}

ul.dropdown-menu > li {
  padding-top: 1.5rem !important;
}

/* =========================
   i2c reset sandbox (opt-in)
   ========================= */

/* #page .i2c-section.i2c-reset,
#page .i2c-section.i2c-reset *{
  all: revert !important;
  box-sizing: border-box !important;
} */
 
/* Light reset (your current one) */
#page .i2c-section.i2c-reset,
#page .i2c-section.i2c-reset *{
  font-family: "Anek Latin", sans-serif !important;
  color: #0a1b3f !important;
  line-height: 1.8 !important;
}

/* Page padding like your old section-full-width */
#page .i2c-section.i2c-reset{
  padding: 2rem 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Constrain readable width for typical content blocks */
#page .i2c-section.i2c-reset :where(h1,h2,h3,p,ul,ol){
  max-width: 1000px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  box-sizing: border-box !important;
}

/* Typography that matches your previous classes */
#page .i2c-section.i2c-reset h1{
  font-size: 38px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  /* text-align: center !important; */
  margin: 0 auto 1rem auto !important;
}

#page .i2c-section.i2c-reset h2{
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  /* text-align: center !important; */
  margin: 1.5rem auto 1rem auto !important;
}

#page .i2c-section.i2c-reset h3{
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin: 1.25rem auto 0.5rem auto !important;
}

#page .i2c-section.i2c-reset p{
  font-size: 1rem !important;
  margin: 1.5rem auto !important;
  /* text-align: left !important; */
}

/* Lists like your old .i2c-paragraph-general ul */
#page .i2c-section.i2c-reset ul,
#page .i2c-section.i2c-reset ol{
  margin: 1.5rem auto !important;
  padding-left: 1.5rem !important;       /* keep sane indentation */
  list-style-position: inside !important;
}

#page .i2c-section.i2c-reset li{
  margin-bottom: 0.5rem !important;
}

/* Links */
#page .i2c-section.i2c-reset a{
  color: #006AAC !important;
}

/* IMPORTANT: allow Gutenberg alignment controls to work */
/* #page .i2c-section.i2c-reset .has-text-align-center{ text-align: center !important; }
#page .i2c-section.i2c-reset .has-text-align-right{  text-align: right !important; }
#page .i2c-section.i2c-reset .has-text-align-left{   text-align: left !important; } */

/* Optional: a “date line” style you can apply via Gutenberg block Advanced > Additional CSS class(es) */
#page .i2c-section.i2c-reset .i2c-legal-date{
  opacity: 0.85 !important;
  /* text-align: center !important; */
  margin-top: 2rem !important;
}

/* Mobile */
@media (max-width: 1025px){
  #page .i2c-section.i2c-reset h1{ font-size: 24px !important; }
  #page .i2c-section.i2c-reset h2{ font-size: 20px !important; }

  #page .i2c-section.i2c-reset {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }

  #page .i2c-section.i2c-reset :where(p,ul,ol){
    text-align: justify !important;
  }
}
