/* Top Header Bar */
.top-header {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: white;
  padding: var(--spacing-sm) 0;
}

.top-header-content {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--spacing-md);
  flex-wrap: wrap;
}

.contact-info {
  display: flex;
  gap: var(--spacing-lg);
  font-size: var(--font-base);
  flex-wrap: wrap;
}

.contact-info span {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.header-affiliation {
  flex: 1;
  text-align: center;
  padding: 0 var(--spacing-md);
}

.header-affiliation p {
  margin: 0;
  font-size: var(--font-base);
  color: white;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.translator-widget {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

#google_translate_element {
  display: flex;
  align-items: center;
}

/* Google Translate Dropdown Styling */
.goog-te-gadget {
  font-family: Arial, sans-serif !important;
  color: #333 !important;
}

.goog-te-gadget-simple {
  background-color: white !important;
  border: 1px solid #ddd !important;
  padding: 0 !important;
  font-size: var(--font-base) !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.goog-te-gadget .goog-te-combo {
  background-color: white !important;
  border: none !important;
  color: #333 !important;
  padding: 8px 32px 8px 12px !important;
  border-radius: 4px !important;
  font-size: var(--font-sm) !important;
  font-family: Arial, sans-serif !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="12" height="8"%3E%3Cpath fill="%23333" d="M1 1l5 5 5-5"/%3E%3C/svg%3E') !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-color: white !important;
  min-width: 140px !important;
}

.goog-te-gadget .goog-te-combo:hover {
  background-color: #f9f9f9 !important;
  border-color: #bbb !important;
}

.goog-te-gadget .goog-te-combo:focus {
  background-color: white !important;
  outline: 2px solid var(--primary-blue) !important;
  outline-offset: -2px !important;
}

.goog-te-gadget .goog-te-combo option {
  background-color: white !important;
  color: #333 !important;
  padding: 10px !important;
  font-family: Arial, sans-serif !important;
  line-height: 1.5 !important;
}

.goog-te-gadget-icon {
  display: none !important;
}

/* Hide Google Translate Attribution */
.goog-te-gadget-simple::after {
  display: none !important;
}

.goog-te-bottom-right {
  display: none !important;
}

.goog-te-gadget .goog-te-logo {
  display: none !important;
}

.goog-te-gadget-simple .goog-te-gadget-simple {
  margin: 0 !important;
}

/* Top Header Search */
.top-header-search {
  display: flex;
  align-items: center;
}

.top-header-search form {
  display: flex;
  align-items: stretch;
  background: white;
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 32px;
}

.top-header-search input[type="text"] {
  border: none;
  padding: 0 12px;
  font-size: var(--font-sm);
  background: white;
  outline: none;
  width: 160px;
  height: 100%;
  line-height: 32px;
}

.top-header-search input[type="text"]::placeholder {
  color: #999;
}

.top-header-search button {
  background: var(--primary-orange);
  color: white;
  border: none;
  padding: 0 12px;
  cursor: pointer;
  transition: background var(--transition-base);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-header-search button:hover {
  background: var(--secondary-orange);
}

/* Main Header */
.main-header {
  background: white;
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-md) 0;
}

.header-content {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--spacing-md);
}

.logo-section {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  text-decoration: none;
  color: inherit;
}

a.logo-section:hover {
  text-decoration: none;
  color: inherit;
}

.emblem {
  width: 80px;
  height: 80px;
  background: transparent;
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hospital-name h1 {
  font-size: var(--font-xl);
  color: var(--primary-blue);
  margin-bottom: var(--spacing-xs);
}

.hospital-name p {
  font-size: var(--font-base);
  color: var(--text-tertiary);
}

.header-officials {
  text-align: right;
  font-size: 13px;
}

.official {
  margin-bottom: var(--spacing-sm);
  white-space: nowrap;
}

.official strong {
  color: var(--primary-blue);
  display: block;
}

/* Header Right Wrapper */
.header-right-wrapper {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

/* Header Right Section */
.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--spacing-md);
  flex: 1;
}

.header-right-emblem {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.header-right-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Header Search Box */
.header-search {
  width: 100%;
  max-width: 300px;
}

.search-box {
  display: flex;
  align-items: center;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.search-box input {
  flex: 1;
  border: none;
  padding: 10px 16px;
  font-size: var(--font-sm);
  font-family: Arial, sans-serif;
  outline: none;
}

.search-box input::placeholder {
  color: #999;
}

.search-box button {
  background: var(--primary-blue);
  color: white;
  border: none;
  padding: 10px 16px;
  font-size: 16px;
  cursor: pointer;
  transition: background var(--transition-base);
}

.search-box button:hover {
  background: var(--secondary-blue);
}

/* Navigation */
.navigation {
  background: var(--primary-blue);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-content {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--spacing-md);
}

.nav-menu {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
}

.nav-menu li a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 15px var(--spacing-md);
  transition: background var(--transition-base);
}

.nav-menu li a:hover {
  background: var(--secondary-blue);
}

/* Submenu Styles */
.nav-menu li {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--primary-blue);
  min-width: 250px;
  list-style: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 4px 15px rgba(0, 0, 0, 0.3);
  flex-direction: column;
  z-index: 200;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu li:hover .submenu {
  display: flex;
}

.submenu li {
  margin: 0;
}

.submenu li a {
  display: block;
  padding: 12px 20px;
  color: white;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--font-base);
  transition: background var(--transition-base);
}

.submenu li:last-child a {
  border-bottom: none;
}

.submenu li a:hover {
  background: var(--secondary-orange);
  padding-left: 25px;
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

/* Tablet and Below */
@media (max-width: 1024px) {
  .top-header-content {
    padding: 0 15px;
    gap: 15px;
  }

  .header-affiliation {
    display: none;
  }

  .translator-widget {
    flex: 1;
  }

  .top-header-search {
    flex: 1;
    justify-content: flex-end;
  }

  .top-header-search input[type="text"] {
    width: 140px;
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  .top-header {
    padding: 10px 0;
  }

  .top-header-content {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 0 15px !important;
    flex-wrap: nowrap !important;
  }

  .translator-widget {
    flex: 0 1 auto !important;
    min-width: 0 !important;
  }

  .translator-widget #google_translate_element {
    max-width: 150px;
  }

  .translator-widget .goog-te-gadget {
    font-size: 0 !important;
  }

  .translator-widget .goog-te-gadget-simple {
    border: none !important;
    background: white !important;
    padding: 6px 8px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
  }

  .translator-widget .goog-te-gadget-simple img {
    display: none !important;
  }

  .translator-widget .goog-te-gadget-simple span {
    font-size: 12px !important;
  }

  .header-affiliation {
    display: none !important;
  }

  .top-header-search {
    flex: 0 1 auto !important;
    min-width: 0 !important;
  }

  .top-header-search form {
    height: 34px !important;
    width: 100% !important;
  }

  .top-header-search input[type="text"] {
    width: 120px !important;
    font-size: 12px !important;
    padding: 0 10px !important;
  }

  .top-header-search button {
    padding: 0 10px !important;
    font-size: 16px !important;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  .top-header {
    padding: 8px 0;
  }

  .top-header-content {
    padding: 0 10px !important;
    gap: 8px !important;
  }

  .translator-widget #google_translate_element {
    max-width: 120px;
  }

  .translator-widget .goog-te-gadget-simple {
    padding: 5px 6px !important;
    font-size: 11px !important;
  }

  .translator-widget .goog-te-gadget-simple span {
    font-size: 11px !important;
  }

  .top-header-search form {
    height: 32px !important;
  }

  .top-header-search input[type="text"] {
    width: 100px !important;
    font-size: 11px !important;
    padding: 0 8px !important;
  }

  .top-header-search button {
    padding: 0 8px !important;
    font-size: 14px !important;
  }
}

/* ========================================
   ANNOUNCEMENT BAR RESPONSIVE STYLES
   ======================================== */

/* Tablet and Below */
@media (max-width: 1024px) {
  .announcement-bar {
    padding: 10px 0;
  }

  .announcement-content {
    padding: 0 15px;
  }

  .announcement-label {
    font-size: 14px;
    padding: 6px 12px;
    margin-right: 12px;
  }

  .announcement-text {
    font-size: 14px;
  }

  .announcement-item {
    margin-right: 80px;
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  .announcement-bar {
    padding: 10px 0;
  }

  .announcement-content {
    padding: 0 10px;
    gap: 10px;
  }

  .announcement-label {
    font-size: 10px;
    padding: 5px 8px;
    margin-right: 10px;
    white-space: nowrap;
  }

  .announcement-slider {
    flex: 1;
    min-width: 0;
  }

  .announcement-text {
    font-size: 13px;
    animation-duration: 120s;
  }

  .announcement-item {
    margin-right: 60px;
    font-size: 13px;
  }

  .announcement-item a {
    font-size: 13px;
  }

  .new-sticker {
    font-size: 9px;
    padding: 2px 6px;
    margin-right: 6px;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  .announcement-bar {
    padding: 8px 0;
  }

  .announcement-content {
    padding: 0 10px;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .announcement-label {
    font-size: 10px;
    padding: 4px 6px;
    margin-right: 8px;
    border-radius: 3px;
    flex-shrink: 0;
  }

  .announcement-slider {
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }

  .announcement-text {
    font-size: 12px;
    animation-duration: 100s;
    white-space: nowrap;
  }

  .announcement-item {
    margin-right: 50px;
    font-size: 12px;
    display: inline-block;
  }

  .announcement-item::before {
    margin-right: 5px;
    font-size: 10px;
  }

  .announcement-item a {
    font-size: 12px;
    text-decoration: none;
    color: white;
  }

  .new-sticker {
    font-size: 8px;
    padding: 2px 5px;
    margin-right: 4px;
    border-radius: 8px;
  }
}

/* Extra Small Mobile (Portrait Phones) */
@media (max-width: 360px) {
  .announcement-label {
    font-size: 10px;
    padding: 3px 5px;
    margin-right: 6px;
  }

  .announcement-text {
    font-size: 11px;
  }

  .announcement-item {
    margin-right: 40px;
    font-size: 11px;
  }

  .announcement-item::before {
    margin-right: 4px;
    font-size: 9px;
  }

  .announcement-item a {
    font-size: 11px;
  }

  .new-sticker {
    font-size: 7px;
    padding: 1px 4px;
  }
}

/* ========================================
   MAIN HEADER RESPONSIVE STYLES
   ======================================== */

/* Tablet and Below */
@media (max-width: 1024px) {
  .main-header {
    padding: 15px 0;
  }

  .header-content {
    padding: 0 15px;
  }

  .emblem {
    width: 70px;
    height: 70px;
  }

  .hospital-name h1 {
    font-size: 18px;
  }

  .hospital-name p {
    font-size: 13px;
  }

  .header-right-wrapper {
    gap: 15px;
  }

  .header-right-emblem img {
    width: 70px;
    height: 70px;
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  .main-header {
    padding: 20px 0;
  }

  .header-content {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "logos"
      "info"
      "enquiry";
    padding: 0 15px;
    gap: 15px;
    justify-items: center;
  }

  /* Create Logo Row Area */
  .header-content::before {
    content: '';
    grid-area: logos;
    display: flex;
    justify-content: center;
    gap: 40px;
    width: 100%;
  }

  /* Logo Section - Show Only Logo, Hide Text */
  .logo-section {
    grid-area: info;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0;
    order: 2;
  }

  /* First Logo - Position at Top */
  .emblem {
    width: 70px;
    height: 70px;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-110px);
  }

  /* Hospital Name Section - Centered Below Logos */
  .hospital-name {
    width: 100%;
    text-align: center;
    margin-top: 85px;
  }

  .hospital-name h1 {
    font-size: 1rem !important;
    line-height: 1.4;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--primary-blue);
  }

  .hospital-name p {
    font-size: 11px;
    line-height: 1.4;
    margin-bottom: 5px;
    color: var(--text-secondary);
  }

  /* Hospital Enquiry Section */
  .header-right-wrapper {
    grid-area: enquiry;
    width: 100%;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
  }

  /* Second Logo - Position at Top Right */
  .header-right-emblem {
    width: 70px;
    height: 70px;
    position: absolute;
    top: -280px;
    left: 50%;
    transform: translateX(40px);
  }

  .header-right-emblem img {
    width: 70px;
    height: 70px;
    object-fit: contain;
  }

  .header-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .header-officials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 15px;
    text-align: center;
  }

  /* First Official (Title) - Full Width, Centered */
  .official:first-child {
    width: 100%;
    text-align: center !important;
    margin-bottom: 5px;
  }

  .official:first-child strong {
    font-size: 14px !important;
    font-weight: 700;
    color: var(--primary-blue);
    display: block;
    text-align: center;
  }

  /* Other Officials (Hospital Contacts) - Side by Side */
  .official {
    flex: 0 1 auto;
    text-align: center !important;
    font-size: 12px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .official:not(:first-child) {
    flex: 1;
    min-width: 150px;
  }

  .official strong {
    font-size: 13px;
    display: block;
    margin-bottom: 3px;
    color: var(--primary-blue);
    text-align: center;
  }

  .official span {
    font-size: 12px;
    text-align: center;
    display: block;
  }

  .official a {
    text-align: center;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  .main-header {
    padding: 15px 0;
  }

  .header-content {
    padding: 0 10px;
    gap: 12px;
  }

  .emblem {
    width: 100px;
    height: 100px;
    /* transform: translateX(-90px); */
    top: 64px;
    left: 41% !important;
  }

  .hospital-name {
    margin-top: 100px;
  }

  

  .hospital-name h1 {
    font-size: 0.9rem;
  }

  .hospital-name p {
    font-size: 12px !important;
  }
  

  .header-right-emblem {
    width: 100px;
    height: 100px;
    top: -236px;
    /* transform: translateX(30px); */
  }
  .header-officials{
    margin-top: -6px !important;
  }

  .header-right-emblem img {
    width: 100px;
    height: 100px;
  }

  .header-officials {
    justify-content: center;
    text-align: center;
    gap: 12px;
  }

  .official:first-child {
    width: 100%;
    margin-bottom: 5px;
  }

  .official:first-child strong {
    font-size: 13px !important;
  }

  .official {
    font-size: 11px;
    text-align: center !important;
  }

  .official:not(:first-child) {
    flex: 1;
    min-width: 140px;
  }

  .official strong {
    font-size: 12px;
    text-align: center;
  }

  .official span,
  .official a {
    text-align: center;
  }
}

/* Extra Small Mobile */
/* @media (max-width: 360px) {
  .logo-section {
    gap: 6px;
  }

  .emblem {
    width: 45px;
    height: 45px;
  }

  .hospital-name {
    max-width: calc(100% - 102px);
  }

  .hospital-name h1 {
    font-size: 1rem;
  }

  .hospital-name p {
    font-size: 9px;
  }

  .header-right-wrapper {
    gap: 6px;
  }

  .header-officials {
    font-size: 10px;
  }

  .official strong {
    font-size: 10px;
  }

  .header-right-emblem {
    width: 45px;
    height: 45px;
  }

  .header-right-emblem img {
    width: 45px;
    height: 45px;
  } */
}