/* Custom overrides for header alignment and search form */
.header-button {display:flex;align-items:center;gap:18px;}
.header-button .search-form {position:relative;display:flex;align-items:center;margin:0;margin-right:24px;} /* added margin-right */
.header-button .search-form input {height:46px;line-height:46px;padding:0 48px 0 18px;border:1px solid #e3e3e3;border-radius:50px;background:#fff;font-size:14px;transition:.3s;}
.header-button .search-form input:focus {outline:none;border-color:var(--theme-color,#FF4F38);box-shadow:0 0 0 3px rgba(255,79,56,.15);} 
.header-button .search-form button {position:absolute;top:50%;right:6px;transform:translateY(-50%);width:38px;height:38px;border-radius:50%;border:0;background:var(--theme-color,#FF4F38);color:#fff;font-size:16px;display:flex;align-items:center;justify-content:center;transition:.3s;}
.header-button .search-form button:hover {background:#111;}
.header-button .icon-btn img {display:block;max-height:32px;width:auto;}
.header-button .icon-btn, .header-button .th-menu-toggle {display:flex;align-items:center;justify-content:center;width:46px;height:46px;border:1px solid #e3e3e3;border-radius:50%;background:#fff;transition:.3s;}
.header-button .icon-btn:hover, .header-button .th-menu-toggle:hover {border-color:var(--theme-color,#FF4F38);}
/* Ensure header sticks with enough z-index above content */
.th-header {position:relative;z-index:1000;}
/* Adjust small screens */
@media (max-width:575.98px){
  .header-button {gap:12px;}
  .header-button .search-form {margin-right:12px;} /* smaller margin on mobile */
  .header-button .search-form input {height:42px;padding:0 44px 0 14px;}
  .header-button .search-form button {width:34px;height:34px;right:4px;}
  .header-button .icon-btn, .header-button .th-menu-toggle {width:42px;height:42px;}
}

/* About feature icon centering overrides */
.about-feature .box-icon{display:flex !important;align-items:center;justify-content:center;}
.about-feature .box-icon img{width:auto;max-width:48px;max-height:48px;}

/* Header info alignment fixes */
.header-info-right{display:flex;gap:42px;align-items:stretch;}
.header-info-item{display:flex;align-items:center;gap:14px;}
.header-info-item .header-info-icon{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border:1px solid #E2E6EB;border-radius:6px;line-height:0;background:#fff;transition:.3s;}
.header-info-item .header-info-icon i{font-size:18px;color:var(--theme-color,#FF4F38);transition:.3s;}
.header-info-item:hover .header-info-icon{background:var(--theme-color,#FF4F38);border-color:var(--theme-color,#FF4F38);}
.header-info-item:hover .header-info-icon i{color:#fff;}
.header-info-item .header-info-content{display:flex;flex-direction:column;justify-content:center;line-height:1.2;}
.header-info-item .header-info-text{font-size:13px;font-weight:500;letter-spacing:.5px;color:#737B85;margin-bottom:4px;}
.header-info-item .header-info-title{font-size:16px;font-weight:600;margin:0;}

/* Hero video play button centering adjustments */
.video-play-btn, .video-play-btn .play-btn{display:flex;align-items:center;justify-content:center;}
.video-play-btn{width:130px;height:130px;position:relative;}
.video-play-btn .play-btn{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);}

@media (max-width:991.98px){
  .header-info-right{gap:28px;}
  .header-info-item .header-info-icon{width:38px;height:38px;}
  .header-info-item .header-info-icon i{font-size:17px;}
}

/* Fix: ensure rotating discount tag stays centered relative to its wrapper when overflow hidden halves it */
.img-box1 .about-wrapp {pointer-events:none;}
.img-box1 .about-wrapp .discount-wrapp {display:flex;align-items:center;justify-content:center;}
.img-box1 .about-wrapp .discount-wrapp .logo {display:flex;align-items:center;justify-content:center;}
.img-box1 .about-wrapp .discount-wrapp .logo img {max-width:80px;height:auto;}

/* Utility: two-line clamp */
.line-clamp-2 {display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}

/* Blog responsive tweaks */
@media (max-width: 575.98px){
  .blog-card {margin-bottom:32px;}
  .blog-card .blog-content{padding:26px 20px 24px 20px;}
  .blog-card .blog-date{top:16px;left:16px;transform:scale(.85);}
  .blog-card .box-title{font-size:20px;line-height:1.3;}
  .blog-card .blog-meta span, .blog-card .blog-meta a{font-size:14px;margin-right:14px;}
  .blog-card .box-text{font-size:14px;}
}
/* Ensure uniform height for 2-line excerpt */
.blog-card .box-text.line-clamp-2{min-height:3em;}

/* Spacing tweak between News & Blog and Alumni Events */
.blog-area-1.space {padding-bottom:60px;} /* reduce bottom space of news */
#alumni-events.space {padding-top:60px;} /* reduce top space of alumni events */
@media (max-width: 767.98px){
  .blog-area-1.space {padding-bottom:40px;}
  #alumni-events.space {padding-top:40px;}
}

/* Ensure mobile menu toggle icon visible by setting icon color and removing white background overlap */
.th-menu-toggle i{color:#111;font-size:22px;}
.th-menu-toggle{color:#111;}
.th-header .th-menu-toggle{background:#fff;border:1px solid #e3e3e3;}
@media (max-width:575.98px){.th-menu-toggle i{font-size:24px;}}

/* Ensure white color for side menu close icon */
.sidemenu-content .closeButton{color:#fff !important;}
.sidemenu-content .closeButton i{color:#fff !important;}

/* Center speaker text vertically inside speaker cards on event detail page */
#event-speakers .instr-card .box-content{top:auto !important;bottom:var(--space) !important;transform:none !important;display:flex !important;flex-direction:column;justify-content:center;align-items:center;padding:28px 28px 28px 28px;min-height:170px;}
#event-speakers .instr-card .box-content .media-body{margin:0;}

/* Speaker cards: auto height container based on content */
#event-speakers .instr-card .box-content{
  top:auto !important;
  bottom:var(--space) !important;
  transform:none !important;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  padding:20px 24px 24px 24px;
  min-height:auto !important;
  height:auto !important;
}

/* Speaker cards: tighter height */
#event-speakers .instr-card .box-content{padding:14px 20px 18px 20px !important;}
