.image.circle img {
  border-radius: 50%;
}

.image.border img {
  background: #fff;
  padding: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.1);
}

.image.circle.border img {
  border-radius: 50%;
  background: #fff;
  padding: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.1);
}

.image.small img {
  max-width: 240px;
}

/* CRITICAL FIX: Header logo positioning - loads last to override all other CSS */
#header-title h1 {
    display: none !important;
}

/* Mobile/tablet screens (< 960px) - uses BOTTOM centered circle - LOCKED IN */
@media screen and (max-width: 959px) {
    #header-title {
        background: #fff url(/themes/custom/annantech/asset/AnnanTechLogo.jpg) no-repeat center center !important;
        background-size: 75% !important;
        border-radius: 50% !important;
        height: 140px !important;
        width: 140px !important;
        left: 50% !important;
        margin-left: -70px !important;
        top: 10px !important;
        right: auto !important;
        transform: none !important;
    }
}

/* Desktop screens (960px - 1199px) */
@media screen and (min-width: 960px) and (max-width: 1199px) {
    #header-title {
        background: #fff url(/themes/custom/annantech/asset/AnnanTechLogo.jpg) no-repeat center center !important;
        background-size: 75% !important;
        border-radius: 50% !important;
        height: 190px !important;
        width: 190px !important;
        left: calc(50% + 326px) !important;
        margin-left: -100px !important;
        top: -8px !important;
        right: auto !important;
        transform: none !important;
    }
}

/* Wide screens (1200px+) */
@media screen and (min-width: 1200px) {
    #header-title {
        background: #fff url(/themes/custom/annantech/asset/AnnanTechLogo.jpg) no-repeat center center !important;
        background-size: 75% !important;
        border-radius: 50% !important;
        height: 190px !important;
        width: 190px !important;
        left: calc(50% + 406px) !important;
        margin-left: -100px !important;
        top: -8px !important;
        right: auto !important;
        transform: none !important;
    }
}

/* PAGE CONTENT CONSTRAINTS - Enforce consistent layout */
/* Constrain all page content images to prevent expansion */
.page-content-wrapper img,
.column img,
.image.circle img,
.image.small img {
    max-width: 100% !important;
    height: auto !important;
}

/* Ensure circular images stay circular and constrained */
.image.circle.small {
    max-width: 240px !important;
    width: 100% !important;
    height: auto !important;
}

.image.circle.small img {
    width: 100% !important;
    max-width: 240px !important;
    height: auto !important;
    display: block !important;
}

/* Breadcrumb styling */
.breadcrumb-wrapper {
    padding: 20px 40px 0 40px;
    font-size: 14px;
}

.breadcrumb-wrapper nav {
    color: rgba(0,0,0,0.5);
}

.breadcrumb-wrapper a {
    color: #004080;
    text-decoration: none;
}

.breadcrumb-wrapper a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 959px) {
    .breadcrumb-wrapper {
        padding: 10px 20px 0 20px;
        font-size: 12px;
    }
}

/* Icon circle styling for page icons */
.icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.icon-circle img {
  width: 60% !important;
  height: 60% !important;
  object-fit: scale-down !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Nav item spacing fix - tighter padding for more items */
@media screen and (min-width: 960px) {
  #header-nav > li > a {
    padding: 0 12px !important;
  }
}

/* Icon treatment - 3D effect with shadow */
.icon-circle {
  opacity: 1;
  transform: none;
  background: transparent !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
}

.icon-circle img {
  background: linear-gradient(145deg, #ffffff, #e6e6e6) !important;
  padding: 5px !important;
  border: 3px solid #d0d0d0 !important;
  border-radius: 50% !important;
  width: 190px !important;
  height: 190px !important;
  object-fit: scale-down !important;
  max-width: none !important;
  /* 3D shadow effect */
  box-shadow: 
    4px 4px 10px rgba(0,0,0,0.15),
    -2px -2px 6px rgba(255,255,255,0.8),
    inset 1px 1px 2px rgba(255,255,255,0.5) !important;
}

.image.border img {
  box-shadow: none !important;
}

.column {
  overflow: visible !important;
}
