/* Reset and basic styling */
body {
    padding-top: 60px; /* Adjust this value based on the height of the navbar */
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Muli', sans-serif;
}

.container {
    max-width: 70%;
    width: 100%;
    margin: 0 auto;
    /* padding: 0 20px; */
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Section styles */
.intro {
    /* margin-top: 120px; */
    background-color: #D96D00;
    color: white;
    text-align: center;
}

.intro h1 {
    position: relative;
    font-size: 30px;
    font-weight: 600;
    line-height: 37.65px;
    letter-spacing: 0.05em;
}

.intro h1::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 2px;
    background: white;
}

.intro .lead {
    font-size: 22px;
    font-weight: 400;
    line-height: 32px;
}

/* Button styles */
.btn {
    background-color: #FFFFFF;
    color: #777777;
    width: 220px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn span {
    font-size: 15px;
    font-weight: 600;
    line-height: 18px;
    max-width: 190px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn:hover, .btn:active {
    background-color: #FFFFFF;
    color: #003366;
}

/* Display styles */
.display-dark {
    background-color: #3F4C60;
    color: white;
}

.display-light {
    background-color: #71D4FE;
    color: black;
}

.display-yellow {
    background-color: #FEC93F;
    color: black;
}

.display-black {
    background-color: #222222;
    color: white;
}

.display h2 {
    text-align: left;
    margin-bottom: 20px;
    font-size: 30px;
    font-weight: 800;
    line-height: 30px;
}

.display img {
    width: 100%;
    display: block;
    /* margin: 0 auto 20px; */
}

.tech-specs, .content-submission, .operations {
    margin: 0 auto;
}

.tech-specs h3, .content-submission h3, .operations h3 .enquiry h3{
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 700;
    line-height: 28px;
}

.operations h3 {
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 700;
    line-height: 28px;
}

.tech-specs ul, .content-submission ul, .operations ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
}

.tech-specs li, .content-submission li, .operations li {
    margin: 0px 0;
}

.image-caption {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
    text-align: left;
}

.float-right-img {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
    width: 50%;
}

/* Header and footer styles */
.header-data {
    background: #FFF;
}

.header-data.fixed{
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    z-index: 100;
}
   
.header {
    background: #003366;
    /*min-width: 1120px;*/
    width:100%;
}
.site-header-content{
    background: #003366;
    /* max-width: 1280px; */
    max-width: 1460px;
    margin: 0 auto;
    height:40px;
}

.main-menu{
    /* background: #FFF; */
    /* max-width: 1280px; */
    max-width: 1460px;
    margin: 0 auto;
}

.header-data .pc-header-menu .main-menu, .header-data .mobile-header-menu .main-menu{
    background: #FFF;
    /* max-width: 1280px; */
    max-width: 1460px;
    margin: 0 auto;
}



.header-data .site-header-content .right {
    display: flex;
    color: #FFF;
    float:right;
   padding-right: 2%;
  /*   align-items: center;*/
}

.header-data .site-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2%; /* Adjust padding as needed */
}

.right1 {
    float: left;
    border-left: 1px solid white;
    border-right: 1px solid white;
    height: 40px;
    align-items: center;
    display: flex;
}

.header-data .department-name {
    display: inline-block;
    position: relative;
    font-size: 14px;
    color: white;
    margin-right: 20px;
    vertical-align: text-bottom;
}

.pc-header-menu {
   /* min-width: 1120px;*/
    width:100%;
    margin: 0 auto;
    background: #FFF;
    /* padding-top: 26px;
    padding-bottom: 26px; */
}

.pc-header-menu.fixed{
    position:fixed;
    top:0px;
    left:0px;
    z-index:100;
}


.hkust-logo{
    float:left;
    padding-right: 0px;
      padding-left: 28px;
}

.pc-header-fixed .hkust-logo:first-child{
    padding-left: 0px;
}

.pc-header-fixed{
    position: fixed;
    width: 100%;
    z-index: 100;
    top:0px;
    background-color:#FFF;
    display:none;
}

.logo-img3{
    margin-top:22px;
    margin-bottom:20px;
}

.pc-header-menu .hkust-logo {
     
    /* border-right-width: 2px;
    border-right-color: #003366;
    border-right-style: solid;*/
    padding-right: 0px;
      padding-left: 28px;
      float:left;
}

.pc-header-menu .hkust-logo:first-child{
    padding-left: 0px;
}

.pc-header-menu .site {
  /*  padding-top: 10px;  
   padding-left: 20px;*/
   float: left;
}
.pc-header-menu .search {
   padding-bottom: 5px;
   padding-left: 20px;
   padding-right: 8px;
   float: right;
}
.pc-header-menu .main-menu .pc_left {
   display: inline-block;
}
.pc-header-menu .main-menu .pc_right {
    /* align-items: center; */
    height: 60px;
   display: flex;
   float: right;
   padding-right:2%;
   
}
/*.main-menu .mobile_right {
   
   display: none;
 
   
}*/

.header .right_sitename {
	font-size: 14px;
	align-items: center;
	float: left;
	padding-right: 12px;
	display: flex;
	
}

.header a.right_sitename:link {
	font-size: 14px;
	text-decoration: none;
    color: #FFF;
    
	font-weight:700;
	/* padding-right: 28px; */
	padding-right: 10px;
}
.header a.right_sitename:hover {
	font-size: 14px;
	text-decoration: none;
	color: #FFF;
	
}
.header a.right_sitename:visited {
	font-size: 14px;
	text-decoration: none;
	color: #FFF;
}


.header .drawer-toggle {
    padding-left: 24px;
    padding-right: 24px;
    cursor: pointer;
	align-items: center;
    display: flex;

}
.header .end-menu {
	float:left;
    
}


.header-data .mobile_search {
  
   display:none;
}

.header-data a.m_link:link {
  
   color:#9B9DA2;
   font-size:16px;
   text-decoration: none;
}
.header-data a.m_link:hover {
  
   color:#9B9DA2;
   font-size:16px;
   text-decoration: none;
}
.header-data a.m_link:visited {
  
   color:#9B9DA2;
   font-size:16px;
   text-decoration: none;
}

a.header_lang_link:link {
  
   color:#FFF;
   font-size:16px;
   text-decoration: none;
}
a.header_lang_link:hover {
  
   color:#FFF;
   font-size:16px;
   text-decoration: none;
}
a.header_lang_link:visited {
  
   color:#FFF;
   font-size:16px;
   text-decoration: none;
}

.header-mobile-menu {
	display: flex;
    align-items: center;
}

.navbar1 {
    display: flex;
    align-items: center;
   float:left;
    padding:0;
   
}

.navbar1 ul {
    list-style:none;
    padding:0;
    margin:0;
}
.navbar1 ul>li {
    display:inline-block;
}

.navbar1 ul li ul>li {
    display:block;
	    padding-bottom: 10px;
}
.secondlevel {
    position:absolute;
    margin-top: 14px;
    background:#fff;
   padding-left: 23px;
    padding-right: 23px;
    padding-top: 10px;
    padding-bottom: 8px;
    border: 1px solid #c3c4c4;
}
.secondlevel {
	background: #003366;
	z-index:9999;
    display:none;
}
/*.active {
    display:block;
}
.hidden {
    display:none;
}*/
.navbar1 ul li a {
    display:block;
}

.drawer {
    overflow: hidden;
    position: relative;
    display:flex;
       background: #FFF;
}

.drawer:before {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: -webkit-gradient(linear, left top, left bottom, from(transparent), to(rgba(0, 0, 0, 0.4)));
    /* background: -webkit-linear-gradient(top, transparent 0%, rgba(0, 0, 0, 0.4) 100%); */
    background: -o-linear-gradient(top, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    /* background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 100%); */
}


.drawer .content-wrapper {
    margin: 36px 0;
    margin-top: 28px;
     /*   min-width: 1120px;*/
}

.drawer .drawer-content {
	font-family: Muli, "Microsoft JhengHei", sans-serif;
    display: table;
    table-layout: fixed;
    width: 100%;
}
.drawer .more-about {
   /* display: table-caption;*/
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #00153f;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    height: 34px;
}
.drawer .more-about2 {
   display:inline;
   margin: 0px auto;
    text-align: center !important;
    width: 90%;
}
.drawer .row {
	
	display: table-row;
       
}
.drawer .row > a {
    font-family: Muli, "Microsoft JhengHei", sans-serif;
    display: table-cell;
    width: 25%;
    text-align: center;
    padding: 12px 0;
    font-size: 16px;
    color: #161616;
    text-transform: uppercase;
    line-height: 20px;
        text-decoration: none;
    vertical-align: text-top;
}

.drawer .center {
    margin: 0 auto;
    max-width:1280px; 
    text-align:center;
}

.transfer_180 {   
    transform: rotate(180deg);
    transition-duration: 0.5s;
}

.transfer_0 {   
    transform: rotate(0deg);
    transition-duration: 0.5s;
}

.mobile-header-menu {
   
    padding-top: 3%;
    padding-bottom: 3%;
    padding-left: 2%;
    padding-right: 2%;
    display:none;
    
}

/* Footer styles */
/* .footer-data-pc .hkust-mlogo img {
    display: inline-block;
    width: 110px;
}

.footer-data-mobile .ust-footer, .footer-data-pc .ust-footer {
    background: #003366;
    width: 100%;
    padding: 26px 0;
    color: #FFF;
}

.footer-data-mobile .search, .footer-data-pc .search, .footer-data-mobile .privacy, .footer-data-pc .privacy, .footer-data-mobile .copyright, .footer-data-pc .copyright {
    text-align: center;
    font-size: 14px;
}

.footer-data-mobile .search img, .footer-data-pc .search img {
    width: 24px;
    height: 24px;
}

.footer-data-mobile .hkust-mlogo {
    text-align: center;
}

.footer-data-mobile .hkust-mlogo img {
    display: inline-block;
    width: 110px;
} */

.footer-data-mobile {
    font-family: Noto Sans, Arial, Helvetica, sans-serif;
    font-size:12px;
    display:none;
    
}

.footer-data-mobile .ust-footer {
    background: #003366;
    width: 100%;
        margin: 0 auto;
    padding-top: 26px;
    padding-bottom: 26px;
}

.footer-data-mobile .main-menu {
   
    margin: 0 auto;
}


.footer-data-mobile .hkust-mlogo {
     
    padding-top: 20px;  
  text-align:center;
    
}
.footer-data-mobile .site {
    padding-top: 10px;  
	padding-bottom: 15px;
 
}
.footer-data-mobile .search {
    padding-top: 10px;  
 font-size:14px;
 font-weight:400;
    color: #FFF;
  
}


.footer-data-mobile  .main-menu .left {
   display: inline-block;
}
.footer-data-mobile  .main-menu .right {
   display: inline-block;
   color: #FFF;
 
}

.footer-data-mobile  .privacy {
	font-size:14px;
	  color: #FFF;
}



.footer-data-mobile  .copyright {
	text-align:center;
   padding-top:8px;
   color: #FFF;
}


.r-button-img{
    cursor:pointer;
    margin-top:30px;
    margin-bottom:30px;
}

.pc_right2{
    float:right;
    padding-right:2%;
}

.ust-logo-img2{
    width:128px;
    margin-top:10px;
    margin-bottom:10px;
}

.r-button-scroll{
    width:30px;
    height:30px;
    cursor:pointer;
    margin-top:18px;
    margin-bottom:20px;
    border:1px solid #FF8000;
}

.r-button-scroll .rline{
    width:12px;
    height:2px;
    background-color:#FF8000;
    margin:0px auto; 
}

.r-button-scroll .rline1{
    margin-top:7px;
    transform-origin: left top;
}

.r-button-scroll .rline2{
    margin-top:4px;
}

.r-button-scroll .rline3{
    margin-top:4px;
    transform-origin: left bottom;
}

.r-button-scroll.active>.rline1{
    margin-left:8px;
    width:20px;
    transform: rotate(45deg);
}

.r-button-scroll.active>.rline2{
    opacity:0;
}

.r-button-scroll.active>.rline3{
    margin-top:4.5px;
    margin-left:8px;
    width:20px;
    transform: rotate(-45deg);
}

.r-button{
    width:40px;
    height:40px;
    cursor:pointer;
    margin-top:30px;
    margin-bottom:30px;
    border:1px solid #FF8000;
    transition: all 0.3s linear;
}

.r-button.m{
    width:40px;
    height:40px;
    cursor:pointer;
    margin-top:18px;
    margin-bottom:20px;
    border:1px solid #FF8000;
}

.rline{
    width:20px;
    height:2px;
    background-color:#FF8000;
    margin:0px auto;
    transition: all 0.3s linear;
}

.rline1{
    margin-top:11px;
    transform-origin: left top;
}

.rline2{
    margin-top:5px;
}

.rline3{
    margin-top:5px;
    transform-origin: left bottom;
}

.r-button.m .rline1{
    width:22px;
    margin-top:11px;
    transform-origin: left top;
}

.r-button.m .rline2{
    width:22px;
    margin-top:5px;
}

.r-button.m .rline3{
    width:22px;
    margin-top:5px;
    transform-origin: left bottom;
}

.r-button.active>.rline1{
    margin-left:12px;
    transform: rotate(45deg);
}

.r-button.active>.rline2{
    opacity:0;
}

.r-button.active>.rline3{
    margin-top:4.5px;
    margin-left:12px;
    transform: rotate(-45deg);
}

.logo-img{
    /* margin-top:40px; */
    /* margin-top:38px;
    margin-bottom:38px; */
    margin-top:25px;
    margin-bottom:25px;
    /* width:274px; */
    /* width:114px; */
    height:50px;
    transition: all 0.3s linear;
}

.ust-logo-img{
    margin-top:27px;
    width:161px;
    transition: all 0.3s linear;
}

.scroll {
    /* margin-top: 11px!important;
    margin-bottom: 7px!important; */
    margin-top: 21px!important;
    margin-bottom: 7px!important;
}

.scroll2{
    /* margin-top:8px!important;
    margin-bottom:0px!important; */
    margin-top:18px!important;
    margin-bottom:16px!important;
}

.left{
    display:inline-block;
    vertical-align: top;
}

.left_hkust{
    vertical-align: top;
    font-size: 14px;
    align-items: center;
    padding-left: 28px;
    height:28px;
    color:#FFF;
    display: none;
    font-weight:700;
}

.hkust-a{
    color:#FFF;
    text-decoration: none;
}

.hkust-a:hover{
    color:#FFF;
    text-decoration: none;
}

.main-menu-m{
    height:75px;
    background-color:#FFF;
    position:relative;
    display:none;
}

.r-button-div{
    position:absolute;
    right:15px;
    top:50%;
    transform: translateY(-50%);
}

.ust-logo-m{
    display:flex;
    justify-content: center;
    position:absolute;
    top:50%;
    left:10px;
    transform: translateY(-50%);
}

.logo-m-2{
    /* width:100px; */
    /* margin-top:3px; */
    height:40px;
    
}

.logo-m-1{
    width:115px;
    
}

.logo-div-1{
    padding-right:10px;
    border-right:1px solid #003366;
    margin-right:10px;
    display:inline-block;
    vertical-align: top;
}

.logo-div-2{
    display:inline-block;
    vertical-align: top;
}

@media only screen and (max-width: 1023px) {

    /* .header .right_sitename {
        display:none;	
    } */

    .secondlevel {
        margin-top: 0px;
    }

    .site-header-content{
        height: 28px;
    }

    .site-header-content-inner{
        height: 28px;
    }

    .right1 {
        height: 28px;
    }

    /* .pc-header-menu, .footer-data-pc {
    display:none;	
    }
    .mobile-header-menu, .footer-data-mobile {
    display:block;	
    } */

    .footer-data-pc {
        display:none;
    }

    .footer-data-mobile {
        display:block;	
    }
        
    .header-data .mobile_search {
    
        float: left;
        margin-left: 24px;
        align-items: center;
        display: flex;
        margin-right: 8px;

    }

    .header-data .navbar1 {
        display:none;	
    }



    .drawer .row > a {
        
        display: inline-block;
        width: 48%;
        padding: 3px 0;
    }
	
	
}

@media only screen and (max-width: 764px) {
    .pc-header-menu .main-menu .pc_right{
        display:none;
    }

    .main-menu-top{
        display:none;
    }

    .main-menu-m{
        display:block;
    }
}


@media only screen and (max-width: 650px) {

	.drawer .more-about {
	   
		font-size: 11px;
		
	}
	
	.drawer .row > a {
    
    font-size: 11px;
    
    
	}
}

@media only screen and (max-width: 575px) {
    

    .pc_right2{
        display:none;
    }

    .r-button{
        margin-top:23px;
        margin-bottom:20px;
    }

    .logo-img {
        margin-top: 32px;
        margin-bottom: 29px;
        max-width:274px;
        width:100%;
    }

    

    .header-data .pc-header-menu .main-menu, .header-data .mobile-header-menu .main-menu{
        height:auto;
    }

    .left_hkust{
        /* display: inline-flex; */
        display:none;
    }

    
}

@media only screen and (max-width: 390px) {
	
.drawer .row > a {
    
    display: inline-block;
    width: 45%;
    padding: 3px 0;
    font-size: 9px;
 }

	.hkust-logo2{
        padding-left:15px;
    }
}
/*
@media only screen and (max-width: 550px) {


	.header .right_sitename {
		font-size:12px;
		
	}
}
*/

.footer-data-pc {
font-family: Muli;
font-size:12px;
}


.footer-data-pc .ust-footer {
    background: #003366;
    width: 100%;
        margin: 0 auto;
    padding-top: 26px;
    padding-bottom: 26px;
}

.footer-data-pc .main-menu, .footer-data-mobile .main-menu {
   
    max-width: 1500px;
    margin: 0 auto;
}


.footer-data-pc .hkust-mlogo {
     
    
    padding-right: 20px;
      padding-left: 10px;
      float:left;
}
.footer-data-pc .site {
    /* padding-top: 10px;   */
 
   float: left;
}
.footer-data-pc .search {
    padding-top: 10px;  
   padding-left: 20px;
   padding-right: 20px;
    color: #FFF;
   float: right;
    font-size: 14px;
}


.footer-data-pc  .main-menu .left {
   display: inline-block;
}
.footer-data-pc  .main-menu .right {
   display: inline-block;
   color: #FFF;
   float: right;
}

.footer-data-pc  .privacy {
	font-size:14px;

   color: #FFF;
}
.footer-data-pc  .copyright {
   clear: both;
   /* padding-top:8px; */
   color: #FFF;
}

a.flink {
color: #FFF !important;
font-weight:bold;
font-size: 16px;
text-decoration: none;
line-height: 27px;
}
a.flink:visited {
color: #FFF !important;
font-weight:bold;
font-size: 16px;
text-decoration: none;
}
a.flink:hover {
color: #FFF !important;
font-weight:bold;
font-size: 16px;
text-decoration: underline;
}	


a.sitemap_link {
   
    font-weight: 400;
    font-size: 20px;
    color: #333 !important;
    vertical-align: top;
	text-decoration: none;
}

a.sitemap_link:visited {
   
    font-weight: 400;
    font-size: 20px;
      color: #333 !important;
    vertical-align: top;
	text-decoration: none;
}

a.sitemap_link:hover {
   
    font-weight: 400;
    font-size: 20px;
      color: #333 !important;
    vertical-align: top;
	text-decoration: none;
}


.follow {
   
    color: #FFF;
    font-size: 14px;
}

/* Width settings */
.navbar .container {
    max-width: 1500px;
    width: 100%;
}

.container-main {
    max-width: 1280px;
    width: 100%;
    /* margin-top: 30px; */
}

/* Hyperlink styles */
a.custom-link {
    color: #05A5E1;
    font-weight: bold;
    text-decoration: underline;
}

a.custom-link:hover {
    text-decoration: none;
}

a.footer-custom-link {
    color: white;
    font-weight: bold;
    text-decoration: underline;
}

a.footer-custom-link:hover {
    text-decoration: none;
}

/* Navbar styles */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: #ffffff; /* Ensure a consistent background */
    position: fixed;
    /* top: -100px;  */
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: top 0.3s ease-in-out;
}

.navbar {
    transition: top 0.3s ease-in-out; /* Adjust the duration as needed */
}
.navbar.sticky {
    top: 0;
}

.navbar .container {
    max-width: 1500px; /* Set the width for the navbar */
    width: 100%;
    display: flex;
    align-items: center; /* Align items vertically */
    justify-content: space-between; /* Space between brand and links */
}

.navbar-brand {
    display: flex;
    align-items: center; /* Vertically align items */
    gap: 10px; /* Space between logo and text */
    flex-grow: 1;
    white-space: nowrap; /* Prevent text wrapping */
}

.navbar-brand img {
    max-height: 60px; 
}

.navbar-brand span {
    /* padding-left: 10px; */
    font-size: 1.25rem;
    font-weight: 600;
    color: #003366;
    white-space: nowrap; /* Prevent the text from wrapping to the next line */
}

/* .navbar-nav {
    display: flex;
    align-items: flex-start;
    gap: 20px; 
} */

.navbar-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-item {
    margin-right: 20px; /* Adjust this to match the alignment with MTPC and arrow */
}

.navbar-nav .nav-item:last-child {
    margin-right: 0; /* No margin on the last item */
}

.nav-item {
    margin-right: 20px;
}

.nav-link {
    color: #666666; 
    /* font-size: 1rem; */
}

.nav-link:hover {
    color: #003366; 
}

.navbar-toggler-icon-img {
    width: 18px;
    height: 12px;
}

.navbar-toggler {
    display: flex;            /* Enable flexbox layout */
    justify-content: flex-end; /* Align items to the right */
    width: 100%;              /* Ensure the button takes the full width */
}

.navbar-brand a {
    font-size: 1.25rem;
    font-weight: 600;
    color: #003366;
    white-space: nowrap;
    text-decoration: none; /* Remove underline */
}

.navbar-brand a:hover {
    text-decoration: none; /* Ensure no underline on hover */
}


/* Additional header and footer styles */
.header-data {
    background: #FFF;
}

.header-data.fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.header .left {
    color: #FFF;
    float: left;
    align-items: center;
    height: 40px !important;
}

.header .right {
    display: flex;
    color: #FFF;
    float: right;
}

.right1 {
    float: right;
    /* margin-top: 10px; */
}

.hfix-height {
    height: 50px;
}

.mt-10 {
    margin-top: 10px;
}

.mh-5 {
    margin-bottom: 5px;
}

.sh_top li {
    float: left;
    list-style-type: none;
}

.sh_top li a {
    color: #FFF;
}

.sh_top .sl1 a {
    color: #FFF;
}

.sh_top li a:hover {
    color: #666;
}

.hust-footer .site {
    text-align: center;
}

.hust-footer .site p {
    margin: 0;
    padding: 0;
}

.hust-footer .site a {
    color: #FFF;
}

.hust-footer .site a:hover {
    color: #666;
}

/* Ensuring full width for images in specific sections */
.intro img, .display img {
    width: 100%;
    max-width: none;
}

.center {
    text-align: center;
}

#hkustLink {
    padding-right: 15px;
    border-right: 1px solid #0f3f6f;
    height: 100%; /* Set the height of the span to match the logo */
    display: flex;
    align-items: center;
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .container-main {
        width: 90%;
    }
    .navbar-toggler-icon {
        outline: none;
        color: #003366;
        margin-left: auto;
        transform: scale(0.8);
    }

    .navbar {
        flex-direction: row;
        padding: 10px; /* Adjust padding for mobile */
    }
    .navbar-brand {
        flex-grow: 1;
        justify-content: flex-start; /* Align logo and text to the start */
    }
    .navbar-toggler {
        margin-left: auto; /* Ensures the toggler is at the end */
        padding: 0;
        display: flex;
        align-items: flex-end;
        border: none;        /* Removes the border */
        background: none;    /* Removes the background */
        outline: none;       /* Removes the outline that appears when focused */
        box-shadow: none;    /* Removes any shadow that might be applied */
    }
    .navbar-nav {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-link {
        padding: 10px 15px; /* Adjust padding for better alignment */
        /* text-align: center; */
    }
    /* .navbar-toggler {
        margin-right: -10px;
    } */
    .navbar-brand a {
        display: flex;
        align-items: center;
        flex-grow: 1;
    }
    .navbar-brand img {
        max-height: 35px; /* Reduce logo size specifically for mobile */
    }
    .navbar-brand span {
        /* padding-left: 10px; */
        font-size: 0.875rem;
    }
    .intro h1 {
        font-size: 26px;
        font-weight: 600;
        line-height: 37.65px;
        letter-spacing: 0.05em;
    }
    .intro .lead .mb-5 {
        font-size: 18px;
        font-weight: 400;
        line-height: 24px;
    }
    .display img {
        width: 100%;
        height: auto;
    }
    .tech-specs, .content-submission, .operations {
        margin: 0 auto;
    }

    .container {
        max-width: 100%;
    }
    .container h2 {
        font-size: 22px;
        font-weight: 800;
        line-height: 28px;
    }

    .tech-specs h3, .content-submission h3, .operations h3 {
        margin-bottom: 10px;
        font-size: 20px;
        font-weight: 700;
        line-height: 26px;
    }

    .tech-specs ul, .content-submission ul, .operations ul {
        list-style-type: disc;
        padding-left: 20px;
        margin: 0;
        font-size: 16px;
        font-weight: 400;
        line-height: 24px;
    }

    .tech-specs li, .content-submission li, .operations li {
        margin: 10px 0;
    }
    .footer {
        padding: 20px;
    }
    .footer img {
        width: 80px;
    }
    .footer .privacy, .footer .follow, .footer .copyright {
        font-size: 12px;
    }
}

/* Tablet (iPad) specific adjustments */
@media (min-width: 577px) and (max-width: 768px) {
    .container-main {
        width: 90%;
    }
    .intro {
        margin-top: 90px;
    }
    .navbar {
        flex-direction: row;
        padding: 10px 15px; /* Standard padding */
    }
    .navbar-toggler {
        margin-left: auto; /* Align toggler icon to the right */
    }
    
    .navbar-collapse {
        justify-content: flex-end; /* Ensure the content is aligned to the right */
    }

    .navbar-brand {
        flex-grow: 1;
        justify-content: flex-start;
    }
}

@media (min-width: 769px) {
    .container-main {
        width: 90%;
    }
    .intro {
        margin-top: 80px;
    }
}

@media (max-width: 768px) {
    .container-main {
        width: 90%;
    }
    .intro {
        margin-top: 60px;
    }
    .navbar-toggler {
        display: flex;
        justify-content: flex-end;
        width: 100%;
    }

    .navbar-toggler-icon-img {
        margin-right: 10px; /* Adjust as necessary for padding */
    }

    .navbar-brand {
        margin-right: 0;
    }
}
/* Navbar menu styles */
.navbar-toggler {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

/* Navbar menu styles */
.navbar-menu {
    display: none;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    padding: 20px;
    color: #ffffff;
}

.navbar-menu.active {
    display: flex;
}

.navbar-menu ul {
    list-style: none;
    padding: 0;
    margin: 50px 0 0 0;
    width: 100%;
}

.navbar-menu ul li {
    margin: 20px 0;
}

.navbar-menu ul li a {
    text-decoration: none;
    color: #003366;
    letter-spacing: 1px;
    font-weight: 700;
    cursor: pointer;
    margin: 0 30px;
    position: relative;
    font-size: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.arrow {
    font-size: 18px;
    color: #ffffff;
}

/* Close button */
.navbar-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 26px;
    color: #003366;
    font-weight: 400;
    position: absolute;
    top: 40px;
    right: 20px;
}

.custom-times {
    font-size: 26px;        /* Adjust the size if necessary */
    transform: scaleX(1); /* Scale horizontally to make it thinner */
    color: #003366;         /* Match the color */
    font-weight: 100;
}

/* Responsive styling */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }
}

/* Desktop nav-link styles */
.navbar-nav .nav-link {
    font-size: 17px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    color: #777777;
    padding: 10px 15px;
    transition: color 0.3s ease;
}

/* Hover effect */
.navbar-nav .nav-link:hover {
    color: #0056b3;
}

/* Active link style */
.navbar-nav .nav-link.is-active {
    color: #003366;
}

/* Make sure the mobile version doesn't inherit desktop styles */
@media (max-width: 992px) {
    .navbar-nav .nav-link {
        font-size: 16px;
        color: #003366;
    }
}

@media (min-width: 992px) { /* This targets screens larger than 992px (Bootstrap's large breakpoint) */
    .container-main {
        padding-top: 30px;
    }
    
    .navbar {
        height: 120px;
    }

    .navbar-brand {
        height: 100%;
        display: flex;
        align-items: center;
    }

    .navbar-brand a {
        margin-right: 10px;
        display: flex;
        align-items: center;
    }

    .navbar-brand img {
        height: auto; /* Ensure logo maintains its aspect ratio */
        max-height: 100%; /* The logo will not exceed the height of the navbar */
    }

    .navbar-nav .nav-link {
        line-height: 120px; /* Vertically center the text within the navbar */
    }

    .navbar-toggler {
        align-self: center;
    }
}

#mainNavbar {
    transition: height 0.1s ease;
}

.section-divider {
    border: none;
    border-top: 2px solid #333333;
    margin-top: 30px; 
    margin-bottom: 72px;
}