/* Custom styles for the Hu Group Website */

:root {
    --primary-blue: #005eba;
    --accent-orange: #f39c12;
    --light-gray: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    overflow-x: hidden;
}

/* Hero Slider Animations */
.slider-container {
    display: flex;
    width: 200%; /* Adjust based on number of slides */
}

.slide {
    width: 50%; /* Adjust based on number of slides */
}

/* Indicators in Hero */
.hero-indicators {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.indicator {
    height: 10px;
    width: 70px;
    background-color: #e5e7eb;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: #f39c12;
}

/* Icon Cards shadow and hover */
.group {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.group:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Section titles with bottom border */
h2 {
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #005eba;
}

/* Featured news card indicators */
.news-indicators {
    display: flex;
    gap: 6px;
}

.news-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.news-dot.active {
    background-color: white;
}

/* Wave Shape refinement */
svg path {
    transform-origin: center;
}

/* Custom shadows for the icon cards */
.group:hover {
    transform: translateY(-5px);
}

/* Nav link orange underline effect */
#nav-menu a {
    position: relative;
    text-decoration: none;
}

#nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2.5px;
    background-color: #f39c12;
    border-radius: 2px;
    transition: width 0.3s ease;
}

#nav-menu a:hover::after,
#nav-menu a.active::after {
    width: 100%;
}

/* --- Smooth Responsive Font Scaling for Header --- */

/* Smooth scaling transitions (applied globally for seamless cross-breakpoint animation) */
#nav-menu a,
#nav-menu button {
    transition: font-size 0.15s ease;
}

#title-container h1,
#title-container p {
    transition: font-size 0.15s ease;
    white-space: normal; /* Allow wrapping on small screens */
}

@media (min-width: 640px) {
    #title-container h1,
    #title-container p {
        white-space: nowrap; /* Keep nowrap on larger screens */
    }
}

#logo-container {
    transition: width 0.15s ease, height 0.15s ease;
}

header .space-x-3 {
    transition: gap 0.15s ease;
}

/* Large screens: nav visible, font sizes smoothly scale with viewport */
@media (min-width: 1024px) {
    #nav-menu {
        gap: clamp(0.5rem, 1.2vw, 1.5rem);
        transition: gap 0.2s ease;
    }

    #nav-menu a,
    #nav-menu button {
        font-size: clamp(0.7rem, 1.1vw + 0.1rem, 1.25rem);
    }

    #title-container h1 {
        font-size: clamp(1.2rem, 2vw + 0.2rem, 1.875rem);
    }

    #title-container p {
        font-size: clamp(0.9rem, 1.5vw + 0.2rem, 1.5rem);
    }

    /* Ensure minimum gap between left title block and right nav */
    header > div {
        gap: clamp(1.5rem, 4vw, 6rem);
        transition: gap 0.15s ease;
    }
}

/* Mobile dropdown nav: appears below 1024px */
@media (max-width: 1023px) {
    #nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 100;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }

    #nav-menu a {
        padding: 0.75rem 0;
        width: 100%;
        text-align: center;
    }

    #nav-menu a::after {
        bottom: 2px;
    }
}

/* Small mobile: further shrink title and icon */
@media (max-width: 640px) {
    header .space-x-3 {
        gap: 0.5rem;
    }
}

/* Typography refinements */
h1, h2, h3 {
    letter-spacing: -0.02em;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #005eba;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1f2d8c;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .h-\[400px\] {
        height: 250px;
    }
}

/* Jinbo Hu Profile Page Specific Styles */
.profile-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #edf2f7;
}

.section-bar {
    position: relative;
    padding-left: 0.75rem;
    background-color: #f0f7ff;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .section-bar {
        padding-left: 1rem;
        margin-bottom: 1.5rem;
    }
}

.section-bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 50%;
    background-color: #005eba;
    border-radius: 0 2px 2px 0;
}

.tab-btn {
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-width: 120px;
}

@media (min-width: 640px) {
    .tab-btn {
        min-width: 170px;
    }
}

@media (min-width: 768px) {
    .tab-btn {
        min-width: 230px;
    }
}

.tab-btn.active {
    color: #005eba;
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-color: #005eba;
    text-decoration-thickness: 2px;
    background-color: #f2f2f2;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
}

/* Effects */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Hero breathing scale animation */
@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.10); }
}

.hero-breathe {
    animation: breathe 6s ease-in-out infinite;
}

i {
    font-family: "FontAwesome";
    font-weight: normal;
    font-style: normal;
}
/* ·­Ò³ */
#pages {
  width: 100%;
  font-size: 14px;
  clear: both;
  overflow: hidden;
  text-align: right;
  padding-top: 40px;
  padding-bottom: 40px;
}
#pages a,
#pages a:visited,
#pages a:hover {
  height: 40px;
  color: #666;
  padding: 0 15px;
  display: inline-block;
  line-height: 40px;
  font-size: 14px;
  width: auto;
  background-color: #ffffff;
  border-radius: 4px;
  margin: 0 5px;
  border: solid 1px #e5e5e5;
}
#pages span.active,#pages span:hover,#pages a:hover{
  background: #2A88D0;
  color: #fff;
}
#pages span {
  height: 40px;
  color: #666;
  width: auto;
  display: inline-block;
  line-height: 40px;
  font-size: 14px;
  border-radius: 4px;
  margin: 0 5px;
}
#pages span.active{
  padding: 0 15px;
  border: solid 1px #ebebeb;
}
#pages span.next::after {
   content: ">";
}
#pages span.prev::after {
   content: "<";
}
#more {
  display: inline-block;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 3px;
  font-size: 18px;
  width: 100%;
  background: #2A88D0;
  color: #fff;
}

@media (max-width: 991px) {
  #pages .pages {
    display: none;
  }
  #pages #more {
    width: 100%;
    background: #2A88D0;
    color: #fff;
    display: block !important;
  }
}