:root {
  --primary-color: #1c2087; /* Deep Blue */
  --secondary-color: #2494bf; /* Light Blue */
  --accent-yellow: #f9be00; /* Yellow */
  --accent-orange: #e85d04; /* Orange */
  --bg-white: #ffffff;
  --bg-light: #f4f6f9;
  --text-dark: #333333;
  --text-light: #f0f0f0;
  --text-muted: #555555;
  --border-color: #dddddd;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--primary-color);
}

.display-title {
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1.1;
  color: var(--bg-white);
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  color: var(--text-dark);
}

/* Specific underline style from images */
.title-underline-blue {
    display: inline-block;
    border-bottom: 5px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.title-underline-yellow {
    display: inline-block;
    border-bottom: 5px solid var(--accent-yellow);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Navbar */
.navbar {
  background-color: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-brand img {
  height: 50px;
  object-fit: contain;
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0.8rem;
  transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--secondary-color) !important;
}

/* Dropdown styling */
.dropdown-menu {
  border-radius: 8px;
  padding: 0.5rem 0;
}

.dropdown-item {
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
  padding-left: 1.5rem;
}

/* Hover trigger for dropdown on desktop */
@media (min-width: 992px) {
  .navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

/* Hero Section Diagonal */
.hero-wrapper {
    position: relative;
    background-color: var(--secondary-color);
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-left-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 60%;
    height: 100%;
    background-color: transparent;
    z-index: 1;
}

/* Emulating the diagonal cuts with clip-path */
.hero-image-1 {
    position: absolute;
    left: 0;
    top: 0;
    width: 35%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1555899434-94d1368aa7af?auto=format&fit=crop&q=80'); /* Taipei 101 placeholder */
    background-size: cover;
    background-position: center;
    clip-path: polygon(0 0, 100% 0, 70% 100%, 0% 100%);
    z-index: 2;
}

.hero-diagonal-yellow {
    position: absolute;
    left: 20%;
    top: 0;
    width: 45%;
    height: 100%;
    background-color: var(--accent-yellow);
    clip-path: polygon(30% 0, 100% 0, 70% 100%, 0% 100%);
    z-index: 1;
}

.hero-image-2 {
    position: absolute;
    left: 30%;
    top: 0;
    width: 40%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1542224566-6e85f2e6772f?auto=format&fit=crop&q=80'); /* Golden gate placeholder */
    background-size: cover;
    background-position: center;
    clip-path: polygon(30% 0, 100% 0, 70% 100%, 0% 100%);
    z-index: 2;
}

.hero-right-content {
    position: relative;
    z-index: 3;
    padding: 4rem;
    color: var(--bg-white);
}

/* Buttons */
.btn-aih-yellow {
  background: var(--accent-yellow);
  color: var(--bg-white);
  border: none;
  padding: 0.8rem 2.5rem;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-aih-yellow:hover {
  background: #e0a600;
  color: var(--bg-white);
  transform: translateY(-2px);
}

.btn-aih-blue {
  background: var(--primary-color);
  color: var(--bg-white);
  border: none;
  padding: 0.8rem 2.5rem;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-aih-blue:hover {
  background: #112d61;
  color: var(--bg-white);
}

/* Connected Circles for Vision & Mission */
.circle-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.circle-vision, .circle-mission {
    width: 480px;
    height: 480px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.circle-vision {
    background-color: var(--secondary-color);
    color: white;
    padding: 2rem 4rem;
    z-index: 1;
}

.circle-mission {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 4rem;
    z-index: 1;
}

.circle-center-label {
    position: relative;
    width: 200px;
    height: 200px;
    background-color: white;
    border: 8px solid var(--accent-orange);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 3;
    color: var(--accent-orange);
    font-weight: 800;
    font-size: 1.8rem;
    text-align: center;
    line-height: 1.2;
    flex-shrink: 0;
    margin: 0 -15px; /* Slight margin to touch edges seamlessly */
}

.circle-vision h3, .circle-mission h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.circle-vision p, .circle-mission p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Offering Cards Home */
.offering-card-btn {
    display: flex;
    align-items: center;
    border-radius: 10px;
    padding: 1.5rem;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease;
    height: 100%;
}

.offering-card-btn:hover {
    transform: translateY(-5px);
    color: white;
}

.offering-card-btn .icon-circle {
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.offering-card-btn .icon-circle i {
    font-size: 1.8rem;
}

.bg-yellow { background-color: var(--accent-yellow); }
.bg-yellow .icon-circle i { color: var(--accent-yellow); }

.bg-blue-light { background-color: var(--secondary-color); }
.bg-blue-light .icon-circle i { color: var(--secondary-color); }

.bg-orange { background-color: var(--accent-orange); }
.bg-orange .icon-circle i { color: var(--accent-orange); }

/* About Us Layout Elements */
.about-circle-heading {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin: 0 auto;
}

.about-row {
    margin-bottom: 4rem;
    align-items: center;
}

.about-text-content {
    padding-left: 2rem;
}

.team-member-card {
    text-align: center;
    margin-bottom: 2rem;
}

.team-member-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.team-member-name {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 0.2rem;
}

/* Flagship Program Page Content */
.program-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.program-table td {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.program-table td:first-child {
    background-color: var(--accent-yellow);
    color: white;
    font-weight: 700;
    width: 30%;
}

/* Global Sections */
.section-padding { padding: 5rem 0; }
.bg-light-section { background-color: var(--bg-light); }

/* Custom Partner Bar */
.partner-bar {
    background-color: var(--accent-yellow);
    padding: 2rem 0;
}

/* Footer Focus */
.site-footer {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: var(--bg-white);
  padding: 4rem 0 2rem;
}

.site-footer .footer-logo img {
  max-height: 80px;
  margin-bottom: 1.5rem;
}

.footer-heading {
  color: var(--accent-yellow);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
}

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

.footer-divider {
  border-color: rgba(255, 255, 255, 0.2);
  margin: 2rem 0 1.5rem;
}

.copyright {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
}

/* Animation Classes */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-wrapper { flex-direction: column; padding-top: 80px; }
    .hero-left-bg { position: relative; width: 100%; height: 300px; display: none; }
    .hero-right-content { text-align: center; padding: 2rem 1rem; }
    
    .circle-container { flex-direction: column; min-height: auto; padding: 2rem 0; gap: 1rem; }
    .circle-vision, .circle-mission { position: relative; left: auto; transform: none; margin-bottom: 0; width: 340px; height: 340px; padding: 2rem; }
    .circle-center-label { position: relative; margin: 0 auto; z-index: 5; width: 150px; height: 150px; font-size: 1.4rem; }
}
